Class: Google::Apis::FileV1beta1::Backup
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::Backup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/file_v1beta1/classes.rb,
generated/google/apis/file_v1beta1/representations.rb,
generated/google/apis/file_v1beta1/representations.rb
Overview
A Cloud Filestore backup.
Instance Attribute Summary collapse
-
#capacity_gb ⇒ Fixnum
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of the backup with 2048 characters or less.
-
#download_bytes ⇒ Fixnum
Output only.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#name ⇒ String
Output only.
-
#source_file_share ⇒ String
Name of the file share in the source Cloud Filestore instance that the backup is created from.
-
#source_instance ⇒ String
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. -
#source_instance_tier ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#storage_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Backup
constructor
A new instance of Backup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Backup
Returns a new instance of Backup.
91 92 93 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 91 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_gb ⇒ Fixnum
Output only. Capacity of the source file share when the backup was created.
Corresponds to the JSON property capacityGb
32 33 34 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 32 def capacity_gb @capacity_gb end |
#create_time ⇒ String
Output only. The time when the backup was created.
Corresponds to the JSON property createTime
37 38 39 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 37 def create_time @create_time end |
#description ⇒ String
A description of the backup with 2048 characters or less. Requests with longer
descriptions will be rejected.
Corresponds to the JSON property description
43 44 45 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 43 def description @description end |
#download_bytes ⇒ Fixnum
Output only. Amount of bytes that will be downloaded if the backup is restored
Corresponds to the JSON property downloadBytes
48 49 50 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 48 def download_bytes @download_bytes end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
53 54 55 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 53 def labels @labels end |
#name ⇒ String
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
59 60 61 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 59 def name @name end |
#source_file_share ⇒ String
Name of the file share in the source Cloud Filestore instance that the backup
is created from.
Corresponds to the JSON property sourceFileShare
65 66 67 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 65 def source_file_share @source_file_share end |
#source_instance ⇒ String
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
72 73 74 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 72 def source_instance @source_instance end |
#source_instance_tier ⇒ String
Output only. The service tier of the source Cloud Filestore instance that this
backup is created from.
Corresponds to the JSON property sourceInstanceTier
78 79 80 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 78 def source_instance_tier @source_instance_tier end |
#state ⇒ String
Output only. The backup state.
Corresponds to the JSON property state
83 84 85 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 83 def state @state end |
#storage_bytes ⇒ Fixnum
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
89 90 91 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 89 def storage_bytes @storage_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 96 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) @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 |