Class: IBM::Cloud::SDK::VPC::Instances
- Inherits:
-
BaseCollection
- Object
- BaseVPC
- BaseCollection
- IBM::Cloud::SDK::VPC::Instances
- Defined in:
- lib/ibm/cloud/sdk/vpc/instances.rb
Overview
Work with multiple VM instances.
Instance Attribute Summary
Attributes inherited from BaseVPC
#connection, #endpoint, #logger
Instance Method Summary collapse
-
#initialize(parent) ⇒ Instances
constructor
A new instance of Instances.
-
#params(start: nil, limit: nil, name: nil, vpc_id: nil, vpc_crn: nil, vpc_name: nil) ⇒ BaseCollection
A chainable method to set query filters on the collection.
Methods inherited from BaseCollection
#all, #count, #create, #data, #fetch, #has_count?
Methods inherited from BaseVPC
#adhoc, #delete, #get, #patch, #post, #put, #url
Constructor Details
Instance Method Details
#params(start: nil, limit: nil, name: nil, vpc_id: nil, vpc_crn: nil, vpc_name: nil) ⇒ BaseCollection
A chainable method to set query filters on the collection.
29 30 31 32 33 34 35 36 |
# File 'lib/ibm/cloud/sdk/vpc/instances.rb', line 29 def params(start: nil, limit: nil, name: nil, vpc_id: nil, vpc_crn: nil, vpc_name: nil) super(start: start, limit: limit) @params['name'] = name if name @params['vpc.id'] = vpc_id if vpc_id @params['vpc.crn'] = vpc_crn if vpc_crn @params['vpc.name'] = vpc_name if vpc_name self end |