class Google::Apis::FileV1beta1::Snapshot

A Cloud Filestore snapshot.

Attributes

create_time[RW]

Output only. The time when the snapshot was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

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]

filesystem_used_bytes[RW]

Output only. The amount of bytes needed to allocate a full copy of the snapshot content Corresponds to the JSON property `filesystemUsedBytes` @return [Fixnum]

labels[RW]

Resource labels to represent user provided metadata. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

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]

state[RW]

Output only. The snapshot state. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/file_v1beta1/classes.rb, line 1403
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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