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.



4258
4259
4260
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4258

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>)


4231
4232
4233
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4231

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)


4236
4237
4238
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4236

def disk_name
  @disk_name
end

#disk_typeString

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

Returns:

  • (String)


4241
4242
4243
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4241

def disk_type
  @disk_type
end

#encryptionGoogle::Apis::VmmigrationV1alpha1::Encryption

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



4246
4247
4248
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4246

def encryption
  @encryption
end

#source_disk_numberFixnum

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

Returns:

  • (Fixnum)


4251
4252
4253
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4251

def source_disk_number
  @source_disk_number
end

#vm_attachment_detailsGoogle::Apis::VmmigrationV1alpha1::VmAttachmentDetails

Details for attachment of the disk to a VM. Corresponds to the JSON property vmAttachmentDetails



4256
4257
4258
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4256

def vm_attachment_details
  @vm_attachment_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4263
4264
4265
4266
4267
4268
4269
4270
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4263

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)
  @encryption = args[:encryption] if args.key?(:encryption)
  @source_disk_number = args[:source_disk_number] if args.key?(:source_disk_number)
  @vm_attachment_details = args[:vm_attachment_details] if args.key?(:vm_attachment_details)
end