Class: Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::ManagedInstanceOverrideDiskOverride
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #device_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the device on the VM Corresponds to the JSON property deviceName.
- 
  
    
      #mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The mode in which to attach this disk, either READ_WRITE or READ_ONLY. 
- 
  
    
      #source  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The disk that is/will be mounted Corresponds to the JSON property source.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ManagedInstanceOverrideDiskOverride 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ManagedInstanceOverrideDiskOverride. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ManagedInstanceOverrideDiskOverride
Returns a new instance of ManagedInstanceOverrideDiskOverride
| 14565 14566 14567 | # File 'generated/google/apis/compute_alpha/classes.rb', line 14565 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#device_name ⇒ String
The name of the device on the VM
Corresponds to the JSON property deviceName
| 14552 14553 14554 | # File 'generated/google/apis/compute_alpha/classes.rb', line 14552 def device_name @device_name end | 
#mode ⇒ String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
specified, the default is to attach the disk in READ_WRITE mode.
Corresponds to the JSON property mode
| 14558 14559 14560 | # File 'generated/google/apis/compute_alpha/classes.rb', line 14558 def mode @mode end | 
#source ⇒ String
The disk that is/will be mounted
Corresponds to the JSON property source
| 14563 14564 14565 | # File 'generated/google/apis/compute_alpha/classes.rb', line 14563 def source @source end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 14570 14571 14572 14573 14574 | # File 'generated/google/apis/compute_alpha/classes.rb', line 14570 def update!(**args) @device_name = args[:device_name] if args.key?(:device_name) @mode = args[:mode] if args.key?(:mode) @source = args[:source] if args.key?(:source) end |