Class: Google::Apis::NetappV1::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::Snapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
Snapshot is a point-in-time version of a Volume's content.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of the snapshot with 2048 characters or less.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#name ⇒ String
Identifier.
-
#state ⇒ String
Output only.
-
#state_details ⇒ String
Output only.
-
#used_bytes ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Snapshot
constructor
A new instance of Snapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot.
1582 1583 1584 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the snapshot was created.
Corresponds to the JSON property createTime
1548 1549 1550 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1548 def create_time @create_time end |
#description ⇒ String
A description of the snapshot with 2048 characters or less. Requests with
longer descriptions will be rejected.
Corresponds to the JSON property description
1554 1555 1556 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1554 def description @description end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
1559 1560 1561 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1559 def labels @labels end |
#name ⇒ String
Identifier. The resource name of the snapshot. Format: projects/
project_id/
locations/
location/volumes/
volume_id/snapshots/
snapshot_id`.
Corresponds to the JSON property
name`
1565 1566 1567 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1565 def name @name end |
#state ⇒ String
Output only. The snapshot state.
Corresponds to the JSON property state
1570 1571 1572 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1570 def state @state end |
#state_details ⇒ String
Output only. State details of the storage pool
Corresponds to the JSON property stateDetails
1575 1576 1577 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1575 def state_details @state_details end |
#used_bytes ⇒ Float
Output only. Current storage usage for the snapshot in bytes.
Corresponds to the JSON property usedBytes
1580 1581 1582 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1580 def used_bytes @used_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1587 1588 1589 1590 1591 1592 1593 1594 1595 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1587 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @state_details = args[:state_details] if args.key?(:state_details) @used_bytes = args[:used_bytes] if args.key?(:used_bytes) end |