Class: Google::Compute::Data::InstancTemplatDisksCatalog

Inherits:
InstancTemplatDisks show all
Defined in:
lib/google/compute/property/instancetemplate_disks.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstancTemplatDisks

#auto_delete, #boot, #device_name, #disk_encryption_key, #index, #initialize_params, #interface, #mode, #source, #type

Instance Method Summary collapse

Methods inherited from InstancTemplatDisks

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

Constructor Details

#initialize(args) ⇒ InstancTemplatDisksCatalog

rubocop:disable Metrics/MethodLength



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 149

def initialize(args)
  @auto_delete =
    Google::Compute::Property::Boolean.unsafe_munge(args['auto_delete'])
  @boot = Google::Compute::Property::Boolean.unsafe_munge(args['boot'])
  @device_name =
    Google::Compute::Property::String.unsafe_munge(args['device_name'])
  @disk_encryption_key =
    Google::Compute::Property::InstTempDiskEncrKey.unsafe_munge(
      args['disk_encryption_key']
    )
  @index =
    Google::Compute::Property::Integer.unsafe_munge(args['index'])
  @initialize_params =
    Google::Compute::Property::InstaTemplInitiParam.unsafe_munge(
      args['initialize_params']
    )
  @interface =
    Google::Compute::Property::Enum.unsafe_munge(args['interface'])
  @mode = Google::Compute::Property::Enum.unsafe_munge(args['mode'])
  @source =
    Google::Compute::Property::DiskNameRef.unsafe_munge(args['source'])
  @type = Google::Compute::Property::Enum.unsafe_munge(args['type'])
end