Class: Google::Apis::ComputeAlpha::SourceInstanceParams

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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

Constructor Details

#initialize(**args) ⇒ SourceInstanceParams

Returns a new instance of SourceInstanceParams.



42775
42776
42777
# File 'lib/google/apis/compute_alpha/classes.rb', line 42775

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

Instance Attribute Details

#disk_configsArray<Google::Apis::ComputeAlpha::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



42773
42774
42775
# File 'lib/google/apis/compute_alpha/classes.rb', line 42773

def disk_configs
  @disk_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42780
42781
42782
# File 'lib/google/apis/compute_alpha/classes.rb', line 42780

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