Class: Puppet::GoogleAPI::Compute::ZoneOperations

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/google_api/compute.rb

Instance Method Summary collapse

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