google-apis-gkebackup_v1 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 645850df1e41c28b875a12dbaaebe33c88a78af4e1a5e9d03df58409c1d035dc
|
4
|
+
data.tar.gz: 84bd69f2e124d53204e0928930901b97e94b92718eae0c153f7a111e4164d798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ec2c21fdca347cc8858c2db6eda1de0eb6213ea65c232fef200d3bda9c2c462afb86162591729dd45074dcf1c21ac52cd4a47fd77b288b18c12af18713c5901
|
7
|
+
data.tar.gz: 6763ce3c9b0695cb87e694c60443d50d892e77d72995a7259ea50646b95693d0d1e019653edcc5e5bc7d15b7a007c347f83af73b7a0c6e0f42f289b83695f8d1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-gkebackup_v1
|
2
2
|
|
3
|
+
### v0.43.0 (2025-04-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250326
|
6
|
+
|
7
|
+
### v0.42.0 (2025-03-30)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250317
|
10
|
+
|
3
11
|
### v0.41.0 (2025-03-16)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250305
|
@@ -325,6 +325,88 @@ module Google
|
|
325
325
|
end
|
326
326
|
end
|
327
327
|
|
328
|
+
# A BackupChannel imposes constraints on where clusters can be backed up. The
|
329
|
+
# BackupChannel should be in the same project and region as the cluster being
|
330
|
+
# backed up. The backup can be created only in destination_project.
|
331
|
+
class BackupChannel
|
332
|
+
include Google::Apis::Core::Hashable
|
333
|
+
|
334
|
+
# Output only. The timestamp when this BackupChannel resource was created.
|
335
|
+
# Corresponds to the JSON property `createTime`
|
336
|
+
# @return [String]
|
337
|
+
attr_accessor :create_time
|
338
|
+
|
339
|
+
# Optional. User specified descriptive string for this BackupChannel.
|
340
|
+
# Corresponds to the JSON property `description`
|
341
|
+
# @return [String]
|
342
|
+
attr_accessor :description
|
343
|
+
|
344
|
+
# Required. Immutable. The project where Backups are allowed to be stored. The
|
345
|
+
# format is `projects/`project``. Currently, `project` can only be the project
|
346
|
+
# number. Support for project IDs will be added in the future.
|
347
|
+
# Corresponds to the JSON property `destinationProject`
|
348
|
+
# @return [String]
|
349
|
+
attr_accessor :destination_project
|
350
|
+
|
351
|
+
# Output only. The project_id where Backups are allowed to be stored. Example
|
352
|
+
# Project ID: "my-project-id". This will be an OUTPUT_ONLY field to return the
|
353
|
+
# project_id of the destination project.
|
354
|
+
# Corresponds to the JSON property `destinationProjectId`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :destination_project_id
|
357
|
+
|
358
|
+
# Output only. `etag` is used for optimistic concurrency control as a way to
|
359
|
+
# help prevent simultaneous updates of a BackupChannel from overwriting each
|
360
|
+
# other. It is strongly suggested that systems make use of the 'etag' in the
|
361
|
+
# read-modify-write cycle to perform BackupChannel updates in order to avoid
|
362
|
+
# race conditions: An `etag` is returned in the response to `GetBackupChannel`,
|
363
|
+
# and systems are expected to put that etag in the request to `
|
364
|
+
# UpdateBackupChannel` or `DeleteBackupChannel` to ensure that their change will
|
365
|
+
# be applied to the same version of the resource.
|
366
|
+
# Corresponds to the JSON property `etag`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :etag
|
369
|
+
|
370
|
+
# Optional. A set of custom labels supplied by user.
|
371
|
+
# Corresponds to the JSON property `labels`
|
372
|
+
# @return [Hash<String,String>]
|
373
|
+
attr_accessor :labels
|
374
|
+
|
375
|
+
# Identifier. The fully qualified name of the BackupChannel. `projects/*/
|
376
|
+
# locations/*/backupChannels/*`
|
377
|
+
# Corresponds to the JSON property `name`
|
378
|
+
# @return [String]
|
379
|
+
attr_accessor :name
|
380
|
+
|
381
|
+
# Output only. Server generated global unique identifier of [UUID](https://en.
|
382
|
+
# wikipedia.org/wiki/Universally_unique_identifier) format.
|
383
|
+
# Corresponds to the JSON property `uid`
|
384
|
+
# @return [String]
|
385
|
+
attr_accessor :uid
|
386
|
+
|
387
|
+
# Output only. The timestamp when this BackupChannel resource was last updated.
|
388
|
+
# Corresponds to the JSON property `updateTime`
|
389
|
+
# @return [String]
|
390
|
+
attr_accessor :update_time
|
391
|
+
|
392
|
+
def initialize(**args)
|
393
|
+
update!(**args)
|
394
|
+
end
|
395
|
+
|
396
|
+
# Update properties of this object
|
397
|
+
def update!(**args)
|
398
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
399
|
+
@description = args[:description] if args.key?(:description)
|
400
|
+
@destination_project = args[:destination_project] if args.key?(:destination_project)
|
401
|
+
@destination_project_id = args[:destination_project_id] if args.key?(:destination_project_id)
|
402
|
+
@etag = args[:etag] if args.key?(:etag)
|
403
|
+
@labels = args[:labels] if args.key?(:labels)
|
404
|
+
@name = args[:name] if args.key?(:name)
|
405
|
+
@uid = args[:uid] if args.key?(:uid)
|
406
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
328
410
|
# BackupConfig defines the configuration of Backups created via this BackupPlan.
|
329
411
|
class BackupConfig
|
330
412
|
include Google::Apis::Core::Hashable
|
@@ -537,6 +619,136 @@ module Google
|
|
537
619
|
end
|
538
620
|
end
|
539
621
|
|
622
|
+
# A BackupPlanBinding binds a BackupPlan with a BackupChannel. This resource is
|
623
|
+
# created automatically when a BackupPlan is created using a BackupChannel. This
|
624
|
+
# also serves as a holder for cross-project fields that need to be displayed in
|
625
|
+
# the current project.
|
626
|
+
class BackupPlanBinding
|
627
|
+
include Google::Apis::Core::Hashable
|
628
|
+
|
629
|
+
# Output only. Immutable. The fully qualified name of the BackupPlan bound with
|
630
|
+
# the parent BackupChannel. `projects/*/locations/*/backupPlans/`backup_plan``
|
631
|
+
# Corresponds to the JSON property `backupPlan`
|
632
|
+
# @return [String]
|
633
|
+
attr_accessor :backup_plan
|
634
|
+
|
635
|
+
# Contains metadata about the backup plan/backup.
|
636
|
+
# Corresponds to the JSON property `backupPlanDetails`
|
637
|
+
# @return [Google::Apis::GkebackupV1::BackupPlanDetails]
|
638
|
+
attr_accessor :backup_plan_details
|
639
|
+
|
640
|
+
# Output only. Immutable. The fully qualified name of the cluster that is being
|
641
|
+
# backed up Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/
|
642
|
+
# zones/*/clusters/*`
|
643
|
+
# Corresponds to the JSON property `cluster`
|
644
|
+
# @return [String]
|
645
|
+
attr_accessor :cluster
|
646
|
+
|
647
|
+
# Output only. The timestamp when this binding was created.
|
648
|
+
# Corresponds to the JSON property `createTime`
|
649
|
+
# @return [String]
|
650
|
+
attr_accessor :create_time
|
651
|
+
|
652
|
+
# Output only. `etag` is used for optimistic concurrency control as a way to
|
653
|
+
# help prevent simultaneous updates of a BackupPlanBinding from overwriting each
|
654
|
+
# other. It is strongly suggested that systems make use of the 'etag' in the
|
655
|
+
# read-modify-write cycle to perform BackupPlanBinding updates in order to avoid
|
656
|
+
# race conditions: An `etag` is returned in the response to `
|
657
|
+
# GetBackupPlanBinding`, and systems are expected to put that etag in the
|
658
|
+
# request to `UpdateBackupPlanBinding` or `DeleteBackupPlanBinding` to ensure
|
659
|
+
# that their change will be applied to the same version of the resource.
|
660
|
+
# Corresponds to the JSON property `etag`
|
661
|
+
# @return [String]
|
662
|
+
attr_accessor :etag
|
663
|
+
|
664
|
+
# Identifier. The fully qualified name of the BackupPlanBinding. `projects/*/
|
665
|
+
# locations/*/backupChannels/*/backupPlanBindings/*`
|
666
|
+
# Corresponds to the JSON property `name`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :name
|
669
|
+
|
670
|
+
# Output only. Server generated global unique identifier of [UUID4](https://en.
|
671
|
+
# wikipedia.org/wiki/Universally_unique_identifier)
|
672
|
+
# Corresponds to the JSON property `uid`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :uid
|
675
|
+
|
676
|
+
# Output only. The timestamp when this binding was created.
|
677
|
+
# Corresponds to the JSON property `updateTime`
|
678
|
+
# @return [String]
|
679
|
+
attr_accessor :update_time
|
680
|
+
|
681
|
+
def initialize(**args)
|
682
|
+
update!(**args)
|
683
|
+
end
|
684
|
+
|
685
|
+
# Update properties of this object
|
686
|
+
def update!(**args)
|
687
|
+
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
688
|
+
@backup_plan_details = args[:backup_plan_details] if args.key?(:backup_plan_details)
|
689
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
690
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
691
|
+
@etag = args[:etag] if args.key?(:etag)
|
692
|
+
@name = args[:name] if args.key?(:name)
|
693
|
+
@uid = args[:uid] if args.key?(:uid)
|
694
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
698
|
+
# Contains metadata about the backup plan/backup.
|
699
|
+
class BackupPlanDetails
|
700
|
+
include Google::Apis::Core::Hashable
|
701
|
+
|
702
|
+
# Output only. The fully qualified name of the last successful Backup created
|
703
|
+
# under this BackupPlan. `projects/*/locations/*/backupPlans/*/backups/*`
|
704
|
+
# Corresponds to the JSON property `lastSuccessfulBackup`
|
705
|
+
# @return [String]
|
706
|
+
attr_accessor :last_successful_backup
|
707
|
+
|
708
|
+
# Output only. Completion time of the last successful Backup. This is sourced
|
709
|
+
# from a successful Backup's complete_time field.
|
710
|
+
# Corresponds to the JSON property `lastSuccessfulBackupTime`
|
711
|
+
# @return [String]
|
712
|
+
attr_accessor :last_successful_backup_time
|
713
|
+
|
714
|
+
# Output only. Start time of next scheduled backup under this BackupPlan by
|
715
|
+
# either cron_schedule or rpo config. This is sourced from BackupPlan.
|
716
|
+
# Corresponds to the JSON property `nextScheduledBackupTime`
|
717
|
+
# @return [String]
|
718
|
+
attr_accessor :next_scheduled_backup_time
|
719
|
+
|
720
|
+
# Output only. The number of Kubernetes Pods backed up in the last successful
|
721
|
+
# Backup created via this BackupPlan.
|
722
|
+
# Corresponds to the JSON property `protectedPodCount`
|
723
|
+
# @return [Fixnum]
|
724
|
+
attr_accessor :protected_pod_count
|
725
|
+
|
726
|
+
# Output only. A number that represents the current risk level of this
|
727
|
+
# BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.
|
728
|
+
# Corresponds to the JSON property `rpoRiskLevel`
|
729
|
+
# @return [Fixnum]
|
730
|
+
attr_accessor :rpo_risk_level
|
731
|
+
|
732
|
+
# Output only. State of the BackupPlan.
|
733
|
+
# Corresponds to the JSON property `state`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :state
|
736
|
+
|
737
|
+
def initialize(**args)
|
738
|
+
update!(**args)
|
739
|
+
end
|
740
|
+
|
741
|
+
# Update properties of this object
|
742
|
+
def update!(**args)
|
743
|
+
@last_successful_backup = args[:last_successful_backup] if args.key?(:last_successful_backup)
|
744
|
+
@last_successful_backup_time = args[:last_successful_backup_time] if args.key?(:last_successful_backup_time)
|
745
|
+
@next_scheduled_backup_time = args[:next_scheduled_backup_time] if args.key?(:next_scheduled_backup_time)
|
746
|
+
@protected_pod_count = args[:protected_pod_count] if args.key?(:protected_pod_count)
|
747
|
+
@rpo_risk_level = args[:rpo_risk_level] if args.key?(:rpo_risk_level)
|
748
|
+
@state = args[:state] if args.key?(:state)
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
540
752
|
# Associates `members`, or principals, with a `role`.
|
541
753
|
class Binding
|
542
754
|
include Google::Apis::Core::Hashable
|
@@ -989,7 +1201,7 @@ module Google
|
|
989
1201
|
class GetBackupIndexDownloadUrlResponse
|
990
1202
|
include Google::Apis::Core::Hashable
|
991
1203
|
|
992
|
-
#
|
1204
|
+
# Required. The signed URL for downloading the backup index.
|
993
1205
|
# Corresponds to the JSON property `signedUrl`
|
994
1206
|
# @return [String]
|
995
1207
|
attr_accessor :signed_url
|
@@ -1201,6 +1413,72 @@ module Google
|
|
1201
1413
|
end
|
1202
1414
|
end
|
1203
1415
|
|
1416
|
+
# Response message for ListBackupChannels.
|
1417
|
+
class ListBackupChannelsResponse
|
1418
|
+
include Google::Apis::Core::Hashable
|
1419
|
+
|
1420
|
+
# The list of BackupChannels matching the given criteria.
|
1421
|
+
# Corresponds to the JSON property `backupChannels`
|
1422
|
+
# @return [Array<Google::Apis::GkebackupV1::BackupChannel>]
|
1423
|
+
attr_accessor :backup_channels
|
1424
|
+
|
1425
|
+
# A token which may be sent as page_token in a subsequent `ListBackupChannels`
|
1426
|
+
# call to retrieve the next page of results. If this field is omitted or empty,
|
1427
|
+
# then there are no more results to return.
|
1428
|
+
# Corresponds to the JSON property `nextPageToken`
|
1429
|
+
# @return [String]
|
1430
|
+
attr_accessor :next_page_token
|
1431
|
+
|
1432
|
+
# Locations that could not be reached.
|
1433
|
+
# Corresponds to the JSON property `unreachable`
|
1434
|
+
# @return [Array<String>]
|
1435
|
+
attr_accessor :unreachable
|
1436
|
+
|
1437
|
+
def initialize(**args)
|
1438
|
+
update!(**args)
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
# Update properties of this object
|
1442
|
+
def update!(**args)
|
1443
|
+
@backup_channels = args[:backup_channels] if args.key?(:backup_channels)
|
1444
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1445
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1446
|
+
end
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# Response message for ListBackupPlanBindings.
|
1450
|
+
class ListBackupPlanBindingsResponse
|
1451
|
+
include Google::Apis::Core::Hashable
|
1452
|
+
|
1453
|
+
# The list of BackupPlanBindings matching the given criteria.
|
1454
|
+
# Corresponds to the JSON property `backupPlanBindings`
|
1455
|
+
# @return [Array<Google::Apis::GkebackupV1::BackupPlanBinding>]
|
1456
|
+
attr_accessor :backup_plan_bindings
|
1457
|
+
|
1458
|
+
# A token which may be sent as page_token in a subsequent `
|
1459
|
+
# ListBackupPlanBindingss` call to retrieve the next page of results. If this
|
1460
|
+
# field is omitted or empty, then there are no more results to return.
|
1461
|
+
# Corresponds to the JSON property `nextPageToken`
|
1462
|
+
# @return [String]
|
1463
|
+
attr_accessor :next_page_token
|
1464
|
+
|
1465
|
+
# Locations that could not be reached.
|
1466
|
+
# Corresponds to the JSON property `unreachable`
|
1467
|
+
# @return [Array<String>]
|
1468
|
+
attr_accessor :unreachable
|
1469
|
+
|
1470
|
+
def initialize(**args)
|
1471
|
+
update!(**args)
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# Update properties of this object
|
1475
|
+
def update!(**args)
|
1476
|
+
@backup_plan_bindings = args[:backup_plan_bindings] if args.key?(:backup_plan_bindings)
|
1477
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1478
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1204
1482
|
# Response message for ListBackupPlans.
|
1205
1483
|
class ListBackupPlansResponse
|
1206
1484
|
include Google::Apis::Core::Hashable
|
@@ -1292,6 +1570,72 @@ module Google
|
|
1292
1570
|
end
|
1293
1571
|
end
|
1294
1572
|
|
1573
|
+
# Response message for ListRestoreChannels.
|
1574
|
+
class ListRestoreChannelsResponse
|
1575
|
+
include Google::Apis::Core::Hashable
|
1576
|
+
|
1577
|
+
# A token which may be sent as page_token in a subsequent `ListRestoreChannels`
|
1578
|
+
# call to retrieve the next page of results. If this field is omitted or empty,
|
1579
|
+
# then there are no more results to return.
|
1580
|
+
# Corresponds to the JSON property `nextPageToken`
|
1581
|
+
# @return [String]
|
1582
|
+
attr_accessor :next_page_token
|
1583
|
+
|
1584
|
+
# The list of RestoreChannels matching the given criteria.
|
1585
|
+
# Corresponds to the JSON property `restoreChannels`
|
1586
|
+
# @return [Array<Google::Apis::GkebackupV1::RestoreChannel>]
|
1587
|
+
attr_accessor :restore_channels
|
1588
|
+
|
1589
|
+
# Locations that could not be reached.
|
1590
|
+
# Corresponds to the JSON property `unreachable`
|
1591
|
+
# @return [Array<String>]
|
1592
|
+
attr_accessor :unreachable
|
1593
|
+
|
1594
|
+
def initialize(**args)
|
1595
|
+
update!(**args)
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
# Update properties of this object
|
1599
|
+
def update!(**args)
|
1600
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1601
|
+
@restore_channels = args[:restore_channels] if args.key?(:restore_channels)
|
1602
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1603
|
+
end
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
# Response message for ListRestorePlanBindings.
|
1607
|
+
class ListRestorePlanBindingsResponse
|
1608
|
+
include Google::Apis::Core::Hashable
|
1609
|
+
|
1610
|
+
# A token which may be sent as page_token in a subsequent `
|
1611
|
+
# ListRestorePlanBindings` call to retrieve the next page of results. If this
|
1612
|
+
# field is omitted or empty, then there are no more results to return.
|
1613
|
+
# Corresponds to the JSON property `nextPageToken`
|
1614
|
+
# @return [String]
|
1615
|
+
attr_accessor :next_page_token
|
1616
|
+
|
1617
|
+
# The list of RestorePlanBindings matching the given criteria.
|
1618
|
+
# Corresponds to the JSON property `restorePlanBindings`
|
1619
|
+
# @return [Array<Google::Apis::GkebackupV1::RestorePlanBinding>]
|
1620
|
+
attr_accessor :restore_plan_bindings
|
1621
|
+
|
1622
|
+
# Unordered list. Locations that could not be reached.
|
1623
|
+
# Corresponds to the JSON property `unreachable`
|
1624
|
+
# @return [Array<String>]
|
1625
|
+
attr_accessor :unreachable
|
1626
|
+
|
1627
|
+
def initialize(**args)
|
1628
|
+
update!(**args)
|
1629
|
+
end
|
1630
|
+
|
1631
|
+
# Update properties of this object
|
1632
|
+
def update!(**args)
|
1633
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1634
|
+
@restore_plan_bindings = args[:restore_plan_bindings] if args.key?(:restore_plan_bindings)
|
1635
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1636
|
+
end
|
1637
|
+
end
|
1638
|
+
|
1295
1639
|
# Response message for ListRestorePlans.
|
1296
1640
|
class ListRestorePlansResponse
|
1297
1641
|
include Google::Apis::Core::Hashable
|
@@ -1921,6 +2265,88 @@ module Google
|
|
1921
2265
|
end
|
1922
2266
|
end
|
1923
2267
|
|
2268
|
+
# A RestoreChannel imposes constraints on where backups can be restored. The
|
2269
|
+
# RestoreChannel should be in the same project and region as the backups. The
|
2270
|
+
# backups can only be restored in the `destination_project`.
|
2271
|
+
class RestoreChannel
|
2272
|
+
include Google::Apis::Core::Hashable
|
2273
|
+
|
2274
|
+
# Output only. The timestamp when this RestoreChannel was created.
|
2275
|
+
# Corresponds to the JSON property `createTime`
|
2276
|
+
# @return [String]
|
2277
|
+
attr_accessor :create_time
|
2278
|
+
|
2279
|
+
# Optional. User specified descriptive string for this RestoreChannel.
|
2280
|
+
# Corresponds to the JSON property `description`
|
2281
|
+
# @return [String]
|
2282
|
+
attr_accessor :description
|
2283
|
+
|
2284
|
+
# Required. Immutable. The project into which the backups will be restored. The
|
2285
|
+
# format is `projects/`project``. Currently, `project` can only be the project
|
2286
|
+
# number. Support for project IDs will be added in the future.
|
2287
|
+
# Corresponds to the JSON property `destinationProject`
|
2288
|
+
# @return [String]
|
2289
|
+
attr_accessor :destination_project
|
2290
|
+
|
2291
|
+
# Output only. The project_id where backups will be restored. Example Project ID:
|
2292
|
+
# "my-project-id". This will be an OUTPUT_ONLY field to return the project_id
|
2293
|
+
# of the destination project.
|
2294
|
+
# Corresponds to the JSON property `destinationProjectId`
|
2295
|
+
# @return [String]
|
2296
|
+
attr_accessor :destination_project_id
|
2297
|
+
|
2298
|
+
# Output only. `etag` is used for optimistic concurrency control as a way to
|
2299
|
+
# help prevent simultaneous updates of a RestoreChannel from overwriting each
|
2300
|
+
# other. It is strongly suggested that systems make use of the 'etag' in the
|
2301
|
+
# read-modify-write cycle to perform RestoreChannel updates in order to avoid
|
2302
|
+
# race conditions: An `etag` is returned in the response to `GetRestoreChannel`,
|
2303
|
+
# and systems are expected to put that etag in the request to `
|
2304
|
+
# UpdateRestoreChannel` or `DeleteRestoreChannel` to ensure that their change
|
2305
|
+
# will be applied to the same version of the resource.
|
2306
|
+
# Corresponds to the JSON property `etag`
|
2307
|
+
# @return [String]
|
2308
|
+
attr_accessor :etag
|
2309
|
+
|
2310
|
+
# Optional. A set of custom labels supplied by user.
|
2311
|
+
# Corresponds to the JSON property `labels`
|
2312
|
+
# @return [Hash<String,String>]
|
2313
|
+
attr_accessor :labels
|
2314
|
+
|
2315
|
+
# Identifier. The fully qualified name of the RestoreChannel. `projects/*/
|
2316
|
+
# locations/*/restoreChannels/*`
|
2317
|
+
# Corresponds to the JSON property `name`
|
2318
|
+
# @return [String]
|
2319
|
+
attr_accessor :name
|
2320
|
+
|
2321
|
+
# Output only. Server generated global unique identifier of [UUID](https://en.
|
2322
|
+
# wikipedia.org/wiki/Universally_unique_identifier) format.
|
2323
|
+
# Corresponds to the JSON property `uid`
|
2324
|
+
# @return [String]
|
2325
|
+
attr_accessor :uid
|
2326
|
+
|
2327
|
+
# Output only. The timestamp when this RestoreChannel was last updated.
|
2328
|
+
# Corresponds to the JSON property `updateTime`
|
2329
|
+
# @return [String]
|
2330
|
+
attr_accessor :update_time
|
2331
|
+
|
2332
|
+
def initialize(**args)
|
2333
|
+
update!(**args)
|
2334
|
+
end
|
2335
|
+
|
2336
|
+
# Update properties of this object
|
2337
|
+
def update!(**args)
|
2338
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2339
|
+
@description = args[:description] if args.key?(:description)
|
2340
|
+
@destination_project = args[:destination_project] if args.key?(:destination_project)
|
2341
|
+
@destination_project_id = args[:destination_project_id] if args.key?(:destination_project_id)
|
2342
|
+
@etag = args[:etag] if args.key?(:etag)
|
2343
|
+
@labels = args[:labels] if args.key?(:labels)
|
2344
|
+
@name = args[:name] if args.key?(:name)
|
2345
|
+
@uid = args[:uid] if args.key?(:uid)
|
2346
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2347
|
+
end
|
2348
|
+
end
|
2349
|
+
|
1924
2350
|
# Configuration of a restore.
|
1925
2351
|
class RestoreConfig
|
1926
2352
|
include Google::Apis::Core::Hashable
|
@@ -2168,6 +2594,75 @@ module Google
|
|
2168
2594
|
end
|
2169
2595
|
end
|
2170
2596
|
|
2597
|
+
# A RestorePlanBinding binds a RestorePlan with a RestoreChannel. This resource
|
2598
|
+
# is created automatically when a RestorePlan is created using a RestoreChannel.
|
2599
|
+
# This also serves as a holder for cross-project fields that need to be
|
2600
|
+
# displayed in the current project.
|
2601
|
+
class RestorePlanBinding
|
2602
|
+
include Google::Apis::Core::Hashable
|
2603
|
+
|
2604
|
+
# Output only. The fully qualified name of the BackupPlan bound to the specified
|
2605
|
+
# RestorePlan. `projects/*/locations/*/backukpPlans/`backup_plan``
|
2606
|
+
# Corresponds to the JSON property `backupPlan`
|
2607
|
+
# @return [String]
|
2608
|
+
attr_accessor :backup_plan
|
2609
|
+
|
2610
|
+
# Output only. The timestamp when this binding was created.
|
2611
|
+
# Corresponds to the JSON property `createTime`
|
2612
|
+
# @return [String]
|
2613
|
+
attr_accessor :create_time
|
2614
|
+
|
2615
|
+
# Output only. `etag` is used for optimistic concurrency control as a way to
|
2616
|
+
# help prevent simultaneous updates of a RestorePlanBinding from overwriting
|
2617
|
+
# each other. It is strongly suggested that systems make use of the 'etag' in
|
2618
|
+
# the read-modify-write cycle to perform RestorePlanBinding updates in order to
|
2619
|
+
# avoid race conditions: An `etag` is returned in the response to `
|
2620
|
+
# GetRestorePlanBinding`, and systems are expected to put that etag in the
|
2621
|
+
# request to `UpdateRestorePlanBinding` or `DeleteRestorePlanBinding` to ensure
|
2622
|
+
# that their change will be applied to the same version of the resource.
|
2623
|
+
# Corresponds to the JSON property `etag`
|
2624
|
+
# @return [String]
|
2625
|
+
attr_accessor :etag
|
2626
|
+
|
2627
|
+
# Identifier. The fully qualified name of the RestorePlanBinding. `projects/*/
|
2628
|
+
# locations/*/restoreChannels/*/restorePlanBindings/*`
|
2629
|
+
# Corresponds to the JSON property `name`
|
2630
|
+
# @return [String]
|
2631
|
+
attr_accessor :name
|
2632
|
+
|
2633
|
+
# Output only. The fully qualified name of the RestorePlan bound to this
|
2634
|
+
# RestoreChannel. `projects/*/locations/*/restorePlans/`restore_plan``
|
2635
|
+
# Corresponds to the JSON property `restorePlan`
|
2636
|
+
# @return [String]
|
2637
|
+
attr_accessor :restore_plan
|
2638
|
+
|
2639
|
+
# Output only. Server generated global unique identifier of [UUID4](https://en.
|
2640
|
+
# wikipedia.org/wiki/Universally_unique_identifier)
|
2641
|
+
# Corresponds to the JSON property `uid`
|
2642
|
+
# @return [String]
|
2643
|
+
attr_accessor :uid
|
2644
|
+
|
2645
|
+
# Output only. The timestamp when this binding was created.
|
2646
|
+
# Corresponds to the JSON property `updateTime`
|
2647
|
+
# @return [String]
|
2648
|
+
attr_accessor :update_time
|
2649
|
+
|
2650
|
+
def initialize(**args)
|
2651
|
+
update!(**args)
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
# Update properties of this object
|
2655
|
+
def update!(**args)
|
2656
|
+
@backup_plan = args[:backup_plan] if args.key?(:backup_plan)
|
2657
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2658
|
+
@etag = args[:etag] if args.key?(:etag)
|
2659
|
+
@name = args[:name] if args.key?(:name)
|
2660
|
+
@restore_plan = args[:restore_plan] if args.key?(:restore_plan)
|
2661
|
+
@uid = args[:uid] if args.key?(:uid)
|
2662
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2663
|
+
end
|
2664
|
+
end
|
2665
|
+
|
2171
2666
|
# RetentionPolicy defines a Backup retention policy for a BackupPlan.
|
2172
2667
|
class RetentionPolicy
|
2173
2668
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module GkebackupV1
|
18
18
|
# Version of the google-apis-gkebackup_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.43.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250326"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|