Class: Google::Compute::Data::InstaTemplInitiParamApi

Inherits:
InstaTemplInitiParam show all
Defined in:
lib/google/compute/property/instancetemplate_initialize_params.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstaTemplInitiParam

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

Instance Method Summary collapse

Methods inherited from InstaTemplInitiParam

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

Constructor Details

#initialize(args) ⇒ InstaTemplInitiParamApi

Returns a new instance of InstaTemplInitiParamApi.



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/google/compute/property/instancetemplate_initialize_params.rb', line 101

def initialize(args)
  @disk_name =
    Google::Compute::Property::String.api_munge(args['diskName'])
  @disk_size_gb =
    Google::Compute::Property::Integer.api_munge(args['diskSizeGb'])
  @disk_type = Google::Compute::Property::DiskTypeSelfLinkRef.api_munge(
    args['diskType']
  )
  @source_image =
    Google::Compute::Property::String.api_munge(args['sourceImage'])
  @source_image_encryption_key =
    Google::Compute::Property::InsTemSouImaEncKey.api_munge(
      args['sourceImageEncryptionKey']
    )
end