Class: Google::Apis::VmmigrationV1::OsDisk
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::VmmigrationV1::OsDisk
 
 
- 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
A message describing the OS disk.
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The disk's full name.
 - 
  
    
      #size_gb  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The disk's size in GB.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The disk's type.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OsDisk 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OsDisk.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ OsDisk
Returns a new instance of OsDisk.
      3475 3476 3477  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 3475 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#name ⇒ String
The disk's full name.
Corresponds to the JSON property name
      3463 3464 3465  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 3463 def name @name end  | 
  
#size_gb ⇒ Fixnum
The disk's size in GB.
Corresponds to the JSON property sizeGb
      3468 3469 3470  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 3468 def size_gb @size_gb end  | 
  
#type ⇒ String
The disk's type.
Corresponds to the JSON property type
      3473 3474 3475  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 3473 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3480 3481 3482 3483 3484  | 
    
      # File 'lib/google/apis/vmmigration_v1/classes.rb', line 3480 def update!(**args) @name = args[:name] if args.key?(:name) @size_gb = args[:size_gb] if args.key?(:size_gb) @type = args[:type] if args.key?(:type) end  |