Class: Google::Apis::ComputeV1::SourceInstanceParams
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::SourceInstanceParams
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/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
-
#disk_configs ⇒ Array<Google::Apis::ComputeV1::DiskInstantiationConfig>
Attached disks configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceInstanceParams
constructor
A new instance of SourceInstanceParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceInstanceParams
Returns a new instance of SourceInstanceParams.
51449 51450 51451 |
# File 'lib/google/apis/compute_v1/classes.rb', line 51449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_configs ⇒ Array<Google::Apis::ComputeV1::DiskInstantiationConfig>
Attached disks configuration. If not provided, defaults are applied:
For boot disk and any other R/W disks, the source images for each disk
will be used. 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
51447 51448 51449 |
# File 'lib/google/apis/compute_v1/classes.rb', line 51447 def disk_configs @disk_configs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51454 51455 51456 |
# File 'lib/google/apis/compute_v1/classes.rb', line 51454 def update!(**args) @disk_configs = args[:disk_configs] if args.key?(:disk_configs) end |