Class: Google::Apis::VmmigrationV1::BootDiskDefaults
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::VmmigrationV1::BootDiskDefaults
 
 
- 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
- 
  
    
      #device_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #disk_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #disk_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #encryption  ⇒ Google::Apis::VmmigrationV1::Encryption 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Encryption message describes the details of the applied encryption.
 - 
  
    
      #image  ⇒ Google::Apis::VmmigrationV1::DiskImageDefaults 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Contains details about the image source used to create the disk.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BootDiskDefaults 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BootDiskDefaults.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ BootDiskDefaults
Returns a new instance of BootDiskDefaults.
      761 762 763  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 761 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#device_name ⇒ String
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
      739 740 741  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 739 def device_name @device_name end  | 
  
#disk_name ⇒ String
Optional. The name of the disk.
Corresponds to the JSON property diskName
      744 745 746  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 744 def disk_name @disk_name end  | 
  
#disk_type ⇒ String
Optional. The type of disk provisioning to use for the VM.
Corresponds to the JSON property diskType
      749 750 751  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 749 def disk_type @disk_type end  | 
  
#encryption ⇒ Google::Apis::VmmigrationV1::Encryption
Encryption message describes the details of the applied encryption.
Corresponds to the JSON property encryption
      754 755 756  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 754 def encryption @encryption end  | 
  
#image ⇒ Google::Apis::VmmigrationV1::DiskImageDefaults
Contains details about the image source used to create the disk.
Corresponds to the JSON property image
      759 760 761  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 759 def image @image end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      766 767 768 769 770 771 772  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 766 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  |