Class: Google::Apis::BigtableadminV2::Backup
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::Backup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/google/apis/bigtableadmin_v2/representations.rb
Overview
A backup of a Cloud Bigtable table.
Instance Attribute Summary collapse
-
#end_time ⇒ String
Output only.
-
#expire_time ⇒ String
Required.
-
#name ⇒ String
A globally unique identifier for the backup which cannot be changed.
-
#size_bytes ⇒ Fixnum
Output only.
-
#source_table ⇒ String
Required.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
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.
204 205 206 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 204 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Output only. end_time
is the time that the backup was finished. The row data
in the backup will be no newer than this timestamp.
Corresponds to the JSON property endTime
160 161 162 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 160 def end_time @end_time end |
#expire_time ⇒ String
Required. The expiration time of the backup, with microseconds granularity
that must be at least 6 hours and at most 30 days from the time the request is
received. Once the expire_time
has passed, Cloud Bigtable will delete the
backup and free the resources used by the backup.
Corresponds to the JSON property expireTime
168 169 170 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 168 def expire_time @expire_time end |
#name ⇒ String
A globally unique identifier for the backup which cannot be changed. Values
are of the form projects/
project/instances/
instance/clusters/
cluster/
backups/_a-zA-Z0-9*
The final segment of the name must be between 1 and 50
characters in length. The backup is stored in the cluster identified by the
prefix of the backup name of the form projects/
project/instances/
instance/
clusters/
cluster`.
Corresponds to the JSON property
name`
178 179 180 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 178 def name @name end |
#size_bytes ⇒ Fixnum
Output only. Size of the backup in bytes.
Corresponds to the JSON property sizeBytes
183 184 185 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 183 def size_bytes @size_bytes end |
#source_table ⇒ String
Required. Immutable. Name of the table from which this backup was created.
This needs to be in the same instance as the backup. Values are of the form
projects/
project/instances/
instance/tables/
source_table`.
Corresponds to the JSON property
sourceTable`
190 191 192 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 190 def source_table @source_table end |
#start_time ⇒ String
Output only. start_time
is the time that the backup was started (i.e.
approximately the time the CreateBackup request is received). The row data in
this backup will be no older than this timestamp.
Corresponds to the JSON property startTime
197 198 199 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 197 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the backup.
Corresponds to the JSON property state
202 203 204 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 202 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
209 210 211 212 213 214 215 216 217 |
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 209 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @expire_time = args[:expire_time] if args.key?(:expire_time) @name = args[:name] if args.key?(:name) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @source_table = args[:source_table] if args.key?(:source_table) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) end |