Class: Google::Apis::GkebackupV1::Restore
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::Restore
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself. Next id: 18
Instance Attribute Summary collapse
-
#backup ⇒ String
Required.
-
#cluster ⇒ String
Output only.
-
#complete_time ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
User specified descriptive string for this Restore.
-
#etag ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
GCP Labels.
-
#name ⇒ String
Output only.
-
#resources_excluded_count ⇒ Fixnum
Output only.
-
#resources_failed_count ⇒ Fixnum
Output only.
-
#resources_restored_count ⇒ Fixnum
Output only.
-
#restore_config ⇒ Google::Apis::GkebackupV1::RestoreConfig
Configuration of a restore.
-
#state ⇒ String
Output only.
-
#state_reason ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#volumes_restored_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Restore
constructor
A new instance of Restore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Restore
Returns a new instance of Restore.
1455 1456 1457 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
Required. Immutable. The Backup used as the source from which this Restore
will restore. Note that this Backup must be a sub-resource of the RestorePlan'
s backup_plan. Format: projects//locations//backupPlans//backups/.
Corresponds to the JSON property backup
1357 1358 1359 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1357 def backup @backup end |
#cluster ⇒ String
Output only. The target cluster into which this Restore will restore data.
Possible formats: 1. projects//locations//clusters/* 2. projects//zones//
clusters/* Inherited from parent RestorePlan's cluster field.
Corresponds to the JSON property cluster
1364 1365 1366 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1364 def cluster @cluster end |
#complete_time ⇒ String
Output only. When the restore operation either successfully completed or
failed.
Corresponds to the JSON property completeTime
1370 1371 1372 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1370 def complete_time @complete_time end |
#create_time ⇒ String
Output only. [Output Only] The timestamp when this Restore resource was
created - can be converted to and from RFC3339
Corresponds to the JSON property createTime
1377 1378 1379 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1377 def create_time @create_time end |
#description ⇒ String
User specified descriptive string for this Restore.
Corresponds to the JSON property description
1382 1383 1384 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1382 def description @description end |
#etag ⇒ String
Output only. etag is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a restore from overwriting each other. It
is strongly suggested that systems make use of the etag in the read-modify-
write cycle to perform restore updates in order to avoid race conditions: An
etag is returned in the response to GetRestore, and systems are expected to
put that etag in the request to UpdateRestore to ensure that their change
will be applied to the same version.
Corresponds to the JSON property etag
1393 1394 1395 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1393 def etag @etag end |
#labels ⇒ Hash<String,String>
GCP Labels.
Corresponds to the JSON property labels
1398 1399 1400 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1398 def labels @labels end |
#name ⇒ String
Output only. The full name of the Restore resource. Format: projects//
locations//restorePlans//restores/
Corresponds to the JSON property name
1404 1405 1406 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1404 def name @name end |
#resources_excluded_count ⇒ Fixnum
Output only. Number of resources excluded in this restore action.
Corresponds to the JSON property resourcesExcludedCount
1409 1410 1411 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1409 def resources_excluded_count @resources_excluded_count end |
#resources_failed_count ⇒ Fixnum
Output only. Number of resources failed to be restored in this restore action.
Corresponds to the JSON property resourcesFailedCount
1414 1415 1416 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1414 def resources_failed_count @resources_failed_count end |
#resources_restored_count ⇒ Fixnum
Output only. Number of resources restored in this restore action.
Corresponds to the JSON property resourcesRestoredCount
1419 1420 1421 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1419 def resources_restored_count @resources_restored_count end |
#restore_config ⇒ Google::Apis::GkebackupV1::RestoreConfig
Configuration of a restore. Next id: 9
Corresponds to the JSON property restoreConfig
1424 1425 1426 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1424 def restore_config @restore_config end |
#state ⇒ String
Output only. The current state of the Restore.
Corresponds to the JSON property state
1429 1430 1431 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1429 def state @state end |
#state_reason ⇒ String
Output only. Human-readable description of why the Restore is in its current
state.
Corresponds to the JSON property stateReason
1435 1436 1437 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1435 def state_reason @state_reason end |
#uid ⇒ String
Output only. [Output Only] Server generated global unique identifier of UUID format.
Corresponds to the JSON property uid
1441 1442 1443 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1441 def uid @uid end |
#update_time ⇒ String
Output only. [Output Only] The timestamp when this Restore resource was last
updated - can be converted to and from RFC3339
Corresponds to the JSON property updateTime
1448 1449 1450 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1448 def update_time @update_time end |
#volumes_restored_count ⇒ Fixnum
Output only. Number of volumes restored in this restore action.
Corresponds to the JSON property volumesRestoredCount
1453 1454 1455 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1453 def volumes_restored_count @volumes_restored_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1460 def update!(**args) @backup = args[:backup] if args.key?(:backup) @cluster = args[:cluster] if args.key?(:cluster) @complete_time = args[:complete_time] if args.key?(:complete_time) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @resources_excluded_count = args[:resources_excluded_count] if args.key?(:resources_excluded_count) @resources_failed_count = args[:resources_failed_count] if args.key?(:resources_failed_count) @resources_restored_count = args[:resources_restored_count] if args.key?(:resources_restored_count) @restore_config = args[:restore_config] if args.key?(:restore_config) @state = args[:state] if args.key?(:state) @state_reason = args[:state_reason] if args.key?(:state_reason) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) @volumes_restored_count = args[:volumes_restored_count] if args.key?(:volumes_restored_count) end |