Class: Google::Apis::ComputeV1::SourceInstanceParams

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

A specification of the parameters to use when creating the instance template from a source instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceInstanceParams

Returns a new instance of SourceInstanceParams



18784
18785
18786
# File 'generated/google/apis/compute_v1/classes.rb', line 18784

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disk_configsArray<Google::Apis::ComputeV1::DiskInstantiationConfig>

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. Corresponds to the JSON property diskConfigs



18782
18783
18784
# File 'generated/google/apis/compute_v1/classes.rb', line 18782

def disk_configs
  @disk_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18789
18790
18791
# File 'generated/google/apis/compute_v1/classes.rb', line 18789

def update!(**args)
  @disk_configs = args[:disk_configs] if args.key?(:disk_configs)
end