Class: Google::Compute::Data::InstancInitialParamsCatalog

Inherits:
InstancInitialParams show all
Defined in:
lib/google/compute/property/instance_initialize_params.rb

Overview

Manages a InstancInitialParams nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from InstancInitialParams

#disk_name, #disk_size_gb, #disk_type, #source_image, #source_image_encryption_key

Instance Method Summary collapse

Methods inherited from InstancInitialParams

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstancInitialParamsCatalog

Returns a new instance of InstancInitialParamsCatalog.



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/google/compute/property/instance_initialize_params.rb', line 121

def initialize(args)
  @disk_name =
    Google::Compute::Property::String.unsafe_munge(args['disk_name'])
  @disk_size_gb = Google::Compute::Property::Integer.unsafe_munge(
    args['disk_size_gb']
  )
  @disk_type =
    Google::Compute::Property::DiskTypeSelfLinkRef.unsafe_munge(
      args['disk_type']
    )
  @source_image =
    Google::Compute::Property::String.unsafe_munge(args['source_image'])
  @source_image_encryption_key =
    Google::Compute::Property::InstSourImagEncrKey.unsafe_munge(
      args['source_image_encryption_key']
    )
end