class Google::Apis::FileV1beta1::Snapshot
A Cloud Filestore snapshot.
Attributes
Output only. The time when the snapshot was created. Corresponds to the JSON property `createTime` @return [String]
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected. Corresponds to the JSON property `description` @return [String]
Output only. The amount of bytes needed to allocate a full copy of the snapshot content Corresponds to the JSON property `filesystemUsedBytes` @return [Fixnum]
Resource labels to represent user provided metadata. Corresponds to the JSON property `labels` @return [Hash<String,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` @return [String]
Output only. The snapshot state. Corresponds to the JSON property `state` @return [String]
Public Class Methods
# File lib/google/apis/file_v1beta1/classes.rb, line 1403 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/file_v1beta1/classes.rb, line 1408 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