Class: Google::Apis::VmmigrationV1alpha1::DiskImageTargetDetails

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

The target details of the image resource that will be created by the import job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskImageTargetDetails

Returns a new instance of DiskImageTargetDetails.



2157
2158
2159
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2157

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

Instance Attribute Details

#additional_licensesArray<String>

Optional. Additional licenses to assign to the image. Format: https://www. googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/ LICENSE_NAME Corresponds to the JSON property additionalLicenses

Returns:

  • (Array<String>)


2107
2108
2109
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2107

def additional_licenses
  @additional_licenses
end

#data_disk_image_importGoogle::Apis::VmmigrationV1alpha1::DataDiskImageImport

Used when the image import is not using OS adaptation process. Corresponds to the JSON property dataDiskImageImport



2112
2113
2114
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2112

def data_disk_image_import
  @data_disk_image_import
end

#descriptionString

Optional. An optional description of the image. Corresponds to the JSON property description

Returns:

  • (String)


2117
2118
2119
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2117

def description
  @description
end

#encryptionGoogle::Apis::VmmigrationV1alpha1::Encryption

Encryption message describes the details of the applied encryption. Corresponds to the JSON property encryption



2122
2123
2124
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2122

def encryption
  @encryption
end

#family_nameString

Optional. The name of the image family to which the new image belongs. Corresponds to the JSON property familyName

Returns:

  • (String)


2127
2128
2129
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2127

def family_name
  @family_name
end

#image_nameString

Required. The name of the image to be created. Corresponds to the JSON property imageName

Returns:

  • (String)


2132
2133
2134
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2132

def image_name
  @image_name
end

#labelsHash<String,String>

Optional. A map of labels to associate with the image. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2137
2138
2139
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2137

def labels
  @labels
end

#os_adaptation_parametersGoogle::Apis::VmmigrationV1alpha1::ImageImportOsAdaptationParameters

Parameters affecting the OS adaptation process. Corresponds to the JSON property osAdaptationParameters



2142
2143
2144
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2142

def os_adaptation_parameters
  @os_adaptation_parameters
end

#single_region_storageBoolean 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

Returns:

  • (Boolean)


2148
2149
2150
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2148

def single_region_storage
  @single_region_storage
end

#target_projectString

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

Returns:

  • (String)


2155
2156
2157
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2155

def target_project
  @target_project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2162

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