Class: Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults

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

Details for creation of a Persistent Disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PersistentDiskDefaults

Returns a new instance of PersistentDiskDefaults.



2421
2422
2423
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2421

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

Instance Attribute Details

#additional_labelsHash<String,String>

A map of labels to associate with the Persistent Disk. Corresponds to the JSON property additionalLabels

Returns:

  • (Hash<String,String>)


2404
2405
2406
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2404

def additional_labels
  @additional_labels
end

#disk_nameString

Optional. The name of the Persistent Disk to create. Corresponds to the JSON property diskName

Returns:

  • (String)


2409
2410
2411
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2409

def disk_name
  @disk_name
end

#disk_typeString

The disk type to use. Corresponds to the JSON property diskType

Returns:

  • (String)


2414
2415
2416
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2414

def disk_type
  @disk_type
end

#source_disk_numberFixnum

The ordinal number of the source VM disk. Corresponds to the JSON property sourceDiskNumber

Returns:

  • (Fixnum)


2419
2420
2421
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2419

def source_disk_number
  @source_disk_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2426
2427
2428
2429
2430
2431
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2426

def update!(**args)
  @additional_labels = args[:additional_labels] if args.key?(:additional_labels)
  @disk_name = args[:disk_name] if args.key?(:disk_name)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @source_disk_number = args[:source_disk_number] if args.key?(:source_disk_number)
end