Class: Google::Apis::VmmigrationV1alpha1::DiskImageDefaults

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb

Overview

Contains details about the image source used to create the disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskImageDefaults

Returns a new instance of DiskImageDefaults.



2086
2087
2088
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2086

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

Instance Attribute Details

#source_imageString

Required. The Image resource used when creating the disk. Corresponds to the JSON property sourceImage

Returns:

  • (String)


2084
2085
2086
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2084

def source_image
  @source_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2091
2092
2093
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2091

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