Class: Google::Apis::VmmigrationV1::DiskImageTargetDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::DiskImageTargetDetails
- 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
The target details of the image resource that will be created by the import job.
Instance Attribute Summary collapse
-
#additional_licenses ⇒ Array<String>
Optional.
-
#data_disk_image_import ⇒ Google::Apis::VmmigrationV1::DataDiskImageImport
Mentions that the image import is not using OS adaptation process.
-
#description ⇒ String
Optional.
-
#encryption ⇒ Google::Apis::VmmigrationV1::Encryption
Encryption message describes the details of the applied encryption.
-
#family_name ⇒ String
Optional.
-
#image_name ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
Optional.
-
#os_adaptation_parameters ⇒ Google::Apis::VmmigrationV1::ImageImportOsAdaptationParameters
Parameters affecting the OS adaptation process.
-
#single_region_storage ⇒ Boolean
(also: #single_region_storage?)
Optional.
-
#target_project ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskImageTargetDetails
constructor
A new instance of DiskImageTargetDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskImageTargetDetails
Returns a new instance of DiskImageTargetDetails.
1825 1826 1827 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1825 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_licenses ⇒ Array<String>
Optional. Additional licenses to assign to the image.
Corresponds to the JSON property additionalLicenses
1775 1776 1777 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1775 def additional_licenses @additional_licenses end |
#data_disk_image_import ⇒ Google::Apis::VmmigrationV1::DataDiskImageImport
Mentions that the image import is not using OS adaptation process.
Corresponds to the JSON property dataDiskImageImport
1780 1781 1782 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1780 def data_disk_image_import @data_disk_image_import end |
#description ⇒ String
Optional. An optional description of the image.
Corresponds to the JSON property description
1785 1786 1787 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1785 def description @description end |
#encryption ⇒ Google::Apis::VmmigrationV1::Encryption
Encryption message describes the details of the applied encryption.
Corresponds to the JSON property encryption
1790 1791 1792 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1790 def encryption @encryption end |
#family_name ⇒ String
Optional. The name of the image family to which the new image belongs.
Corresponds to the JSON property familyName
1795 1796 1797 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1795 def family_name @family_name end |
#image_name ⇒ String
Required. The name of the image to be created.
Corresponds to the JSON property imageName
1800 1801 1802 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1800 def image_name @image_name end |
#labels ⇒ Hash<String,String>
Optional. A map of labels to associate with the image.
Corresponds to the JSON property labels
1805 1806 1807 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1805 def labels @labels end |
#os_adaptation_parameters ⇒ Google::Apis::VmmigrationV1::ImageImportOsAdaptationParameters
Parameters affecting the OS adaptation process.
Corresponds to the JSON property osAdaptationParameters
1810 1811 1812 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1810 def os_adaptation_parameters @os_adaptation_parameters end |
#single_region_storage ⇒ Boolean Also known as: single_region_storage?
Optional. Set to true to set the image storageLocations to the single region
of the import job. When false, the closest multi-region is selected.
Corresponds to the JSON property singleRegionStorage
1816 1817 1818 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1816 def single_region_storage @single_region_storage end |
#target_project ⇒ String
Required. Reference to the TargetProject resource that represents the target
project in which the imported image will be created.
Corresponds to the JSON property targetProject
1823 1824 1825 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1823 def target_project @target_project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1830 def update!(**args) @additional_licenses = args[:additional_licenses] if args.key?(:additional_licenses) @data_disk_image_import = args[:data_disk_image_import] if args.key?(:data_disk_image_import) @description = args[:description] if args.key?(:description) @encryption = args[:encryption] if args.key?(:encryption) @family_name = args[:family_name] if args.key?(:family_name) @image_name = args[:image_name] if args.key?(:image_name) @labels = args[:labels] if args.key?(:labels) @os_adaptation_parameters = args[:os_adaptation_parameters] if args.key?(:os_adaptation_parameters) @single_region_storage = args[:single_region_storage] if args.key?(:single_region_storage) @target_project = args[:target_project] if args.key?(:target_project) end |