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
Snapshot registered for a given storage volume.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The description of the storage volume snapshot.
-
#id ⇒ String
An identifier for the snapshot, generated by the backend.
-
#name ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
The size of the storage volume snapshot, in bytes.
-
#storage_volume ⇒ String
The storage volume this snapshot belongs to.
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.
1823 1824 1825 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation time of the storage volume snapshot.
Corresponds to the JSON property createTime
1796 1797 1798 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1796 def create_time @create_time end |
#description ⇒ String
The description of the storage volume snapshot.
Corresponds to the JSON property description
1801 1802 1803 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1801 def description @description end |
#id ⇒ String
An identifier for the snapshot, generated by the backend.
Corresponds to the JSON property id
1806 1807 1808 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1806 def id @id end |
#name ⇒ String
Output only. The name of the storage volume snapshot.
Corresponds to the JSON property name
1811 1812 1813 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1811 def name @name end |
#size_bytes ⇒ Fixnum
The size of the storage volume snapshot, in bytes.
Corresponds to the JSON property sizeBytes
1816 1817 1818 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1816 def size_bytes @size_bytes end |
#storage_volume ⇒ String
The storage volume this snapshot belongs to.
Corresponds to the JSON property storageVolume
1821 1822 1823 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1821 def storage_volume @storage_volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1828 1829 1830 1831 1832 1833 1834 1835 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1828 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) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @storage_volume = args[:storage_volume] if args.key?(:storage_volume) end |