Class: Puppet::GoogleAPI::Compute

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

Defined Under Namespace

Classes: Images, Instances, MachineTypes, Networks, ZoneOperations

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ Compute

Returns a new instance of Compute.



4
5
6
7
# File 'lib/puppet/google_api/compute.rb', line 4

def initialize(api)
  @api     = api
  @compute = api.discover('compute', 'v1beta15')
end

Instance Method Details

#imagesObject



251
252
253
# File 'lib/puppet/google_api/compute.rb', line 251

def images
  @images ||= Images.new(@api, @compute)
end

#instancesObject



9
10
11
# File 'lib/puppet/google_api/compute.rb', line 9

def instances
  @instances ||= Instances.new(@api, @compute)
end

#machine_typesObject



234
235
236
# File 'lib/puppet/google_api/compute.rb', line 234

def machine_types
  @machine_types ||= MachineTypes.new(@api, @compute)
end

#networksObject



269
270
271
# File 'lib/puppet/google_api/compute.rb', line 269

def networks
  @networks ||= Networks.new(@api, @compute)
end

#zone_operationsObject



287
288
289
# File 'lib/puppet/google_api/compute.rb', line 287

def zone_operations
  @zone_operations ||= ZoneOperations.new(@api, @compute)
end