Class: Google::Apis::BaremetalsolutionV2::VolumeSnapshot

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeSnapshot

Returns a new instance of VolumeSnapshot.



2649
2650
2651
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2649

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

Instance Attribute Details

#create_timeString

Output only. The creation time of the snapshot. Corresponds to the JSON property createTime

Returns:

  • (String)


2621
2622
2623
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2621

def create_time
  @create_time
end

#descriptionString

The description of the snapshot. Corresponds to the JSON property description

Returns:

  • (String)


2626
2627
2628
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2626

def description
  @description
end

#idString

Output only. An identifier for the snapshot, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


2631
2632
2633
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2631

def id
  @id
end

#nameString

The name of the snapshot. Corresponds to the JSON property name

Returns:

  • (String)


2636
2637
2638
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2636

def name
  @name
end

#storage_volumeString

Output only. The name of the volume which this snapshot belongs to. Corresponds to the JSON property storageVolume

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2641

def storage_volume
  @storage_volume
end

#typeString

Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc. Corresponds to the JSON property type

Returns:

  • (String)


2647
2648
2649
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2647

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2654
2655
2656
2657
2658
2659
2660
2661
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2654

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