Class: Google::Apis::VmmigrationV1::DiskImageDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::DiskImageDefaults
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb
Overview
Contains details about the image source used to create the disk.
Instance Attribute Summary collapse
-
#source_image ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskImageDefaults
constructor
A new instance of DiskImageDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskImageDefaults
Returns a new instance of DiskImageDefaults.
1806 1807 1808 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1806 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_image ⇒ String
Required. The Image resource used when creating the disk.
Corresponds to the JSON property sourceImage
1804 1805 1806 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1804 def source_image @source_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1811 1812 1813 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1811 def update!(**args) @source_image = args[:source_image] if args.key?(:source_image) end |