Class: Puppet::GoogleAPI::Compute::ZoneOperations
- Inherits:
-
Object
- Object
- Puppet::GoogleAPI::Compute::ZoneOperations
- Defined in:
- lib/puppet/google_api/compute.rb
Instance Method Summary collapse
- #get(project, zone, name) ⇒ Object
-
#initialize(api, compute) ⇒ ZoneOperations
constructor
A new instance of ZoneOperations.
Constructor Details
#initialize(api, compute) ⇒ ZoneOperations
Returns a new instance of ZoneOperations.
292 293 294 295 |
# File 'lib/puppet/google_api/compute.rb', line 292 def initialize(api, compute) @api = api @compute = compute end |
Instance Method Details
#get(project, zone, name) ⇒ Object
297 298 299 300 301 302 |
# File 'lib/puppet/google_api/compute.rb', line 297 def get(project, zone, name) args = {project: project, zone: zone, operation: name} @api.execute(@compute.zone_operations.get, args).first rescue nil end |