Class: Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
VolumeSnapshot registered for given Volume
Instance Attribute Summary collapse
-
#description ⇒ String
The description of this Snapshot.
-
#name ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
The real size of this Snapshot, in bytes.
-
#state ⇒ String
The state of this Snapshot.
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.
1109 1110 1111 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this Snapshot.
Corresponds to the JSON property description
1092 1093 1094 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1092 def description @description end |
#name ⇒ String
Output only. The name of this Snapshot.
Corresponds to the JSON property name
1097 1098 1099 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1097 def name @name end |
#size_bytes ⇒ Fixnum
The real size of this Snapshot, in bytes.
Corresponds to the JSON property sizeBytes
1102 1103 1104 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1102 def size_bytes @size_bytes end |
#state ⇒ String
The state of this Snapshot.
Corresponds to the JSON property state
1107 1108 1109 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1107 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1114 1115 1116 1117 1118 1119 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1114 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @state = args[:state] if args.key?(:state) end |