class Google::Apis::FileV1beta1::Backup

A Cloud Filestore backup.

Attributes

capacity_gb[RW]

Output only. Capacity of the source file share when the backup was created. Corresponds to the JSON property `capacityGb` @return [Fixnum]

create_time[RW]

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

description[RW]

A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected. Corresponds to the JSON property `description` @return [String]

download_bytes[RW]

Output only. Amount of bytes that will be downloaded if the backup is restored Corresponds to the JSON property `downloadBytes` @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 backup, in the format `projects/` project_id`/locations/`location_id`/backups/`backup_id“. Corresponds to the JSON property `name` @return [String]

satisfies_pzs[RW]

Output only. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

satisfies_pzs?[RW]

Output only. Reserved for future use. Corresponds to the JSON property `satisfiesPzs` @return [Boolean]

source_file_share[RW]

Name of the file share in the source Cloud Filestore instance that the backup is created from. Corresponds to the JSON property `sourceFileShare` @return [String]

source_instance[RW]

The resource name of the source Cloud Filestore instance, in the format ` projects/`project_id`/locations/`location_id`/instances/`instance_id“, used to create this backup. Corresponds to the JSON property `sourceInstance` @return [String]

source_instance_tier[RW]

Output only. The service tier of the source Cloud Filestore instance that this backup is created from. Corresponds to the JSON property `sourceInstanceTier` @return [String]

state[RW]

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

storage_bytes[RW]

Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion. Corresponds to the JSON property `storageBytes` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/file_v1beta1/classes.rb, line 97
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 102
def update!(**args)
  @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @download_bytes = args[:download_bytes] if args.key?(:download_bytes)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
  @source_file_share = args[:source_file_share] if args.key?(:source_file_share)
  @source_instance = args[:source_instance] if args.key?(:source_instance)
  @source_instance_tier = args[:source_instance_tier] if args.key?(:source_instance_tier)
  @state = args[:state] if args.key?(:state)
  @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
end