Class: Google::Apis::VmmigrationV1::BootDiskDefaults

Inherits:
Object
  • Object
show all
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

BootDiskDefaults hold information about the boot disk of a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BootDiskDefaults

Returns a new instance of BootDiskDefaults.



850
851
852
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 850

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

Instance Attribute Details

#device_nameString

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. Corresponds to the JSON property deviceName

Returns:

  • (String)


828
829
830
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 828

def device_name
  @device_name
end

#disk_nameString

Optional. The name of the disk. Corresponds to the JSON property diskName

Returns:

  • (String)


833
834
835
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 833

def disk_name
  @disk_name
end

#disk_typeString

Optional. The type of disk provisioning to use for the VM. Corresponds to the JSON property diskType

Returns:

  • (String)


838
839
840
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 838

def disk_type
  @disk_type
end

#encryptionGoogle::Apis::VmmigrationV1::Encryption

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



843
844
845
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 843

def encryption
  @encryption
end

#imageGoogle::Apis::VmmigrationV1::DiskImageDefaults

Contains details about the image source used to create the disk. Corresponds to the JSON property image



848
849
850
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 848

def image
  @image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



855
856
857
858
859
860
861
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 855

def update!(**args)
  @device_name = args[:device_name] if args.key?(:device_name)
  @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)
  @image = args[:image] if args.key?(:image)
end