Class: Google::Compute::Data::InstanceDisksApi

Inherits:
InstanceDisks show all
Defined in:
lib/google/compute/property/instance_disks.rb

Overview

Manages a InstanceDisks nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from InstanceDisks

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

Instance Method Summary collapse

Methods inherited from InstanceDisks

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

Constructor Details

#initialize(args) ⇒ InstanceDisksApi

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/instance_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::InstaDiskEncryKey.api_munge(
      args['diskEncryptionKey']
    )
  @index = Google::Compute::Property::Integer.api_munge(args['index'])
  @initialize_params =
    Google::Compute::Property::InstancInitialParams.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::DiskSelfLinkRef.api_munge(args['source'])
  @type = Google::Compute::Property::Enum.api_munge(args['type'])
end