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
Optional.
-
#description ⇒ String
The description of the storage volume snapshot.
-
#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.
938 939 940 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Optional. The creation time of the storage volume snapshot.
Corresponds to the JSON property createTime
916 917 918 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 916 def create_time @create_time end |
#description ⇒ String
The description of the storage volume snapshot.
Corresponds to the JSON property description
921 922 923 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 921 def description @description end |
#name ⇒ String
Output only. The name of the storage volume snapshot.
Corresponds to the JSON property name
926 927 928 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 926 def name @name end |
#size_bytes ⇒ Fixnum
The size of the storage volume snapshot, in bytes.
Corresponds to the JSON property sizeBytes
931 932 933 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 931 def size_bytes @size_bytes end |
#storage_volume ⇒ String
The storage volume this snapshot belongs to.
Corresponds to the JSON property storageVolume
936 937 938 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 936 def storage_volume @storage_volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
943 944 945 946 947 948 949 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 943 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @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 |