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
-
#creation_time ⇒ String
The creation time of this Snapshot.
-
#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.
1153 1154 1155 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
The creation time of this Snapshot.
Corresponds to the JSON property creationTime
1131 1132 1133 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1131 def creation_time @creation_time end |
#description ⇒ String
The description of this Snapshot.
Corresponds to the JSON property description
1136 1137 1138 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1136 def description @description end |
#name ⇒ String
Output only. The name of this Snapshot.
Corresponds to the JSON property name
1141 1142 1143 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1141 def name @name end |
#size_bytes ⇒ Fixnum
The real size of this Snapshot, in bytes.
Corresponds to the JSON property sizeBytes
1146 1147 1148 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1146 def size_bytes @size_bytes end |
#state ⇒ String
The state of this Snapshot.
Corresponds to the JSON property state
1151 1152 1153 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1151 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 1158 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_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) @state = args[:state] if args.key?(:state) end |