Class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::BaremetalsolutionV2::VolumeSnapshot
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb 
Overview
A snapshot of a volume. Only boot volumes can have snapshots.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The description of the snapshot.
 - 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the snapshot.
 - 
  
    
      #storage_volume  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VolumeSnapshot 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of VolumeSnapshot.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ VolumeSnapshot
Returns a new instance of VolumeSnapshot.
      2797 2798 2799  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2797 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time of the snapshot.
Corresponds to the JSON property createTime
      2769 2770 2771  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2769 def create_time @create_time end  | 
  
#description ⇒ String
The description of the snapshot.
Corresponds to the JSON property description
      2774 2775 2776  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2774 def description @description end  | 
  
#id ⇒ String
Output only. An identifier for the snapshot, generated by the backend.
Corresponds to the JSON property id
      2779 2780 2781  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2779 def id @id end  | 
  
#name ⇒ String
The name of the snapshot.
Corresponds to the JSON property name
      2784 2785 2786  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2784 def name @name end  | 
  
#storage_volume ⇒ String
Output only. The name of the volume which this snapshot belongs to.
Corresponds to the JSON property storageVolume
      2789 2790 2791  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2789 def storage_volume @storage_volume end  | 
  
#type ⇒ String
Output only. The type of the snapshot which indicates whether it was scheduled
or manual/ad-hoc.
Corresponds to the JSON property type
      2795 2796 2797  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2795 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2802 2803 2804 2805 2806 2807 2808 2809  | 
    
      # File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2802 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @storage_volume = args[:storage_volume] if args.key?(:storage_volume) @type = args[:type] if args.key?(:type) end  |