Class: Google::Compute::Data::InstancTemplatDisksApi
- Inherits:
-
InstancTemplatDisks
- Object
- InstancTemplatDisks
- Google::Compute::Data::InstancTemplatDisksApi
- Defined in:
- lib/google/compute/property/instancetemplate_disks.rb
Overview
Manages a InstancTemplatDisks nested object Data is coming from the GCP API
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
-
#initialize(args) ⇒ InstancTemplatDisksApi
constructor
rubocop:disable Metrics/MethodLength.
Methods inherited from InstancTemplatDisks
Constructor Details
#initialize(args) ⇒ InstancTemplatDisksApi
rubocop:disable Metrics/MethodLength
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/google/compute/property/instancetemplate_disks.rb', line 120 def initialize(args) @auto_delete = Google::Compute::Property::Boolean.api_munge(args['autoDelete']) @boot = Google::Compute::Property::Boolean.api_munge(args['boot']) @device_name = Google::Compute::Property::String.api_munge(args['deviceName']) @disk_encryption_key = Google::Compute::Property::InstTempDiskEncrKey.api_munge( args['diskEncryptionKey'] ) @index = Google::Compute::Property::Integer.api_munge(args['index']) @initialize_params = Google::Compute::Property::InstaTemplInitiParam.api_munge( args['initializeParams'] ) @interface = Google::Compute::Property::Enum.api_munge(args['interface']) @mode = Google::Compute::Property::Enum.api_munge(args['mode']) @source = Google::Compute::Property::DiskNameRef.api_munge(args['source']) @type = Google::Compute::Property::Enum.api_munge(args['type']) end |