Class: Google::Apis::FileV1::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::FileV1::Snapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1/classes.rb,
lib/google/apis/file_v1/representations.rb,
lib/google/apis/file_v1/representations.rb
Overview
A Filestore snapshot.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of the snapshot with 2048 characters or less.
-
#filesystem_used_bytes ⇒ Fixnum
Output only.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#name ⇒ String
Output only.
-
#state ⇒ String
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.
1436 1437 1438 |
# File 'lib/google/apis/file_v1/classes.rb', line 1436 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
1405 1406 1407 |
# File 'lib/google/apis/file_v1/classes.rb', line 1405 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
1411 1412 1413 |
# File 'lib/google/apis/file_v1/classes.rb', line 1411 def description @description end |
#filesystem_used_bytes ⇒ Fixnum
Output only. The amount of bytes needed to allocate a full copy of the
snapshot content
Corresponds to the JSON property filesystemUsedBytes
1417 1418 1419 |
# File 'lib/google/apis/file_v1/classes.rb', line 1417 def filesystem_used_bytes @filesystem_used_bytes end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
1422 1423 1424 |
# File 'lib/google/apis/file_v1/classes.rb', line 1422 def labels @labels end |
#name ⇒ String
Output only. The resource name of the snapshot, in the format projects/
project_id/locations/
location_id/instances/
instance_id/snapshots/
snapshot_id`.
Corresponds to the JSON property
name`
1429 1430 1431 |
# File 'lib/google/apis/file_v1/classes.rb', line 1429 def name @name end |
#state ⇒ String
Output only. The snapshot state.
Corresponds to the JSON property state
1434 1435 1436 |
# File 'lib/google/apis/file_v1/classes.rb', line 1434 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1441 1442 1443 1444 1445 1446 1447 1448 |
# File 'lib/google/apis/file_v1/classes.rb', line 1441 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |