Class: Google::Apis::VmmigrationV1alpha1::ImageImportJob
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::ImageImportJob
- 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
ImageImportJob describes the progress and result of an image import.
Instance Attribute Summary collapse
-
#cloud_storage_uri ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#created_resources ⇒ Array<String>
Output only.
-
#disk_image_target_details ⇒ Google::Apis::VmmigrationV1alpha1::DiskImageTargetDetails
The target details of the image resource that will be created by the import job.
-
#end_time ⇒ String
Output only.
-
#errors ⇒ Array<Google::Apis::VmmigrationV1alpha1::Status>
Output only.
-
#machine_image_target_details ⇒ Google::Apis::VmmigrationV1alpha1::MachineImageTargetDetails
The target details of the machine image resource that will be created by the image import job.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#steps ⇒ Array<Google::Apis::VmmigrationV1alpha1::ImageImportStep>
Output only.
-
#warnings ⇒ Array<Google::Apis::VmmigrationV1alpha1::MigrationWarning>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageImportJob
constructor
A new instance of ImageImportJob.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageImportJob
Returns a new instance of ImageImportJob.
2382 2383 2384 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_storage_uri ⇒ String
Output only. The path to the Cloud Storage file from which the image should be
imported.
Corresponds to the JSON property cloudStorageUri
2325 2326 2327 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2325 def cloud_storage_uri @cloud_storage_uri end |
#create_time ⇒ String
Output only. The time the image import was created (as an API call, not when
it was actually created in the target).
Corresponds to the JSON property createTime
2331 2332 2333 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2331 def create_time @create_time end |
#created_resources ⇒ Array<String>
Output only. The resource paths of the resources created by the image import
job.
Corresponds to the JSON property createdResources
2337 2338 2339 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2337 def created_resources @created_resources end |
#disk_image_target_details ⇒ Google::Apis::VmmigrationV1alpha1::DiskImageTargetDetails
The target details of the image resource that will be created by the import
job.
Corresponds to the JSON property diskImageTargetDetails
2343 2344 2345 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2343 def disk_image_target_details @disk_image_target_details end |
#end_time ⇒ String
Output only. The time the image import was ended.
Corresponds to the JSON property endTime
2348 2349 2350 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2348 def end_time @end_time end |
#errors ⇒ Array<Google::Apis::VmmigrationV1alpha1::Status>
Output only. Provides details on the error that led to the image import state
in case of an error.
Corresponds to the JSON property errors
2354 2355 2356 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2354 def errors @errors end |
#machine_image_target_details ⇒ Google::Apis::VmmigrationV1alpha1::MachineImageTargetDetails
The target details of the machine image resource that will be created by the
image import job.
Corresponds to the JSON property machineImageTargetDetails
2360 2361 2362 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2360 def machine_image_target_details @machine_image_target_details end |
#name ⇒ String
Output only. The resource path of the ImageImportJob.
Corresponds to the JSON property name
2365 2366 2367 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2365 def name @name end |
#state ⇒ String
Output only. The state of the image import.
Corresponds to the JSON property state
2370 2371 2372 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2370 def state @state end |
#steps ⇒ Array<Google::Apis::VmmigrationV1alpha1::ImageImportStep>
Output only. The image import steps list representing its progress.
Corresponds to the JSON property steps
2375 2376 2377 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2375 def steps @steps end |
#warnings ⇒ Array<Google::Apis::VmmigrationV1alpha1::MigrationWarning>
Output only. Warnings that occurred during the image import.
Corresponds to the JSON property warnings
2380 2381 2382 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2380 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2387 def update!(**args) @cloud_storage_uri = args[:cloud_storage_uri] if args.key?(:cloud_storage_uri) @create_time = args[:create_time] if args.key?(:create_time) @created_resources = args[:created_resources] if args.key?(:created_resources) @disk_image_target_details = args[:disk_image_target_details] if args.key?(:disk_image_target_details) @end_time = args[:end_time] if args.key?(:end_time) @errors = args[:errors] if args.key?(:errors) @machine_image_target_details = args[:machine_image_target_details] if args.key?(:machine_image_target_details) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @steps = args[:steps] if args.key?(:steps) @warnings = args[:warnings] if args.key?(:warnings) end |