google-cloud-gke_backup-v1 0.9.0 → 0.10.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 +4 -4
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +53 -25
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/operations.rb +13 -5
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +53 -25
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/operations.rb +11 -4
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/common_pb.rb +3 -1
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +7 -1
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +9 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +11 -2
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +15 -0
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +173 -0
- metadata +2 -2
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# manage backup and restore operations for their GKE clusters.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "gkebackup.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -362,12 +365,13 @@ module Google
|
|
362
365
|
# Customize the options with defaults
|
363
366
|
call_metadata = @config.rpcs.create_backup_plan.metadata.to_h
|
364
367
|
|
365
|
-
# Set x-goog-api-client
|
368
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
366
369
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
367
370
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
368
371
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
369
372
|
transports_version_send: [:rest]
|
370
373
|
|
374
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
371
375
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
372
376
|
|
373
377
|
options.apply_defaults timeout: @config.rpcs.create_backup_plan.timeout,
|
@@ -464,12 +468,13 @@ module Google
|
|
464
468
|
# Customize the options with defaults
|
465
469
|
call_metadata = @config.rpcs.list_backup_plans.metadata.to_h
|
466
470
|
|
467
|
-
# Set x-goog-api-client
|
471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
468
472
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
469
473
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
470
474
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
471
475
|
transports_version_send: [:rest]
|
472
476
|
|
477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
473
478
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
479
|
|
475
480
|
options.apply_defaults timeout: @config.rpcs.list_backup_plans.timeout,
|
@@ -543,12 +548,13 @@ module Google
|
|
543
548
|
# Customize the options with defaults
|
544
549
|
call_metadata = @config.rpcs.get_backup_plan.metadata.to_h
|
545
550
|
|
546
|
-
# Set x-goog-api-client
|
551
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
547
552
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
548
553
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
549
554
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
550
555
|
transports_version_send: [:rest]
|
551
556
|
|
557
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
552
558
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
553
559
|
|
554
560
|
options.apply_defaults timeout: @config.rpcs.get_backup_plan.timeout,
|
@@ -639,12 +645,13 @@ module Google
|
|
639
645
|
# Customize the options with defaults
|
640
646
|
call_metadata = @config.rpcs.update_backup_plan.metadata.to_h
|
641
647
|
|
642
|
-
# Set x-goog-api-client
|
648
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
643
649
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
644
650
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
645
651
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
646
652
|
transports_version_send: [:rest]
|
647
653
|
|
654
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
648
655
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
649
656
|
|
650
657
|
options.apply_defaults timeout: @config.rpcs.update_backup_plan.timeout,
|
@@ -730,12 +737,13 @@ module Google
|
|
730
737
|
# Customize the options with defaults
|
731
738
|
call_metadata = @config.rpcs.delete_backup_plan.metadata.to_h
|
732
739
|
|
733
|
-
# Set x-goog-api-client
|
740
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
734
741
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
735
742
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
736
743
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
737
744
|
transports_version_send: [:rest]
|
738
745
|
|
746
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
739
747
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
740
748
|
|
741
749
|
options.apply_defaults timeout: @config.rpcs.delete_backup_plan.timeout,
|
@@ -828,12 +836,13 @@ module Google
|
|
828
836
|
# Customize the options with defaults
|
829
837
|
call_metadata = @config.rpcs.create_backup.metadata.to_h
|
830
838
|
|
831
|
-
# Set x-goog-api-client
|
839
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
832
840
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
833
841
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
834
842
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
835
843
|
transports_version_send: [:rest]
|
836
844
|
|
845
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
837
846
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
838
847
|
|
839
848
|
options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
|
@@ -930,12 +939,13 @@ module Google
|
|
930
939
|
# Customize the options with defaults
|
931
940
|
call_metadata = @config.rpcs.list_backups.metadata.to_h
|
932
941
|
|
933
|
-
# Set x-goog-api-client
|
942
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
934
943
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
935
944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
936
945
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
937
946
|
transports_version_send: [:rest]
|
938
947
|
|
948
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
939
949
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
940
950
|
|
941
951
|
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
@@ -1010,12 +1020,13 @@ module Google
|
|
1010
1020
|
# Customize the options with defaults
|
1011
1021
|
call_metadata = @config.rpcs.get_backup.metadata.to_h
|
1012
1022
|
|
1013
|
-
# Set x-goog-api-client
|
1023
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1014
1024
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1015
1025
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1016
1026
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1017
1027
|
transports_version_send: [:rest]
|
1018
1028
|
|
1029
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1019
1030
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1020
1031
|
|
1021
1032
|
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
@@ -1105,12 +1116,13 @@ module Google
|
|
1105
1116
|
# Customize the options with defaults
|
1106
1117
|
call_metadata = @config.rpcs.update_backup.metadata.to_h
|
1107
1118
|
|
1108
|
-
# Set x-goog-api-client
|
1119
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1109
1120
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1110
1121
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1111
1122
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1112
1123
|
transports_version_send: [:rest]
|
1113
1124
|
|
1125
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1114
1126
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1115
1127
|
|
1116
1128
|
options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
|
@@ -1200,12 +1212,13 @@ module Google
|
|
1200
1212
|
# Customize the options with defaults
|
1201
1213
|
call_metadata = @config.rpcs.delete_backup.metadata.to_h
|
1202
1214
|
|
1203
|
-
# Set x-goog-api-client
|
1215
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1204
1216
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1205
1217
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1206
1218
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1207
1219
|
transports_version_send: [:rest]
|
1208
1220
|
|
1221
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1209
1222
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1210
1223
|
|
1211
1224
|
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
@@ -1302,12 +1315,13 @@ module Google
|
|
1302
1315
|
# Customize the options with defaults
|
1303
1316
|
call_metadata = @config.rpcs.list_volume_backups.metadata.to_h
|
1304
1317
|
|
1305
|
-
# Set x-goog-api-client
|
1318
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1306
1319
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1307
1320
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1308
1321
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1309
1322
|
transports_version_send: [:rest]
|
1310
1323
|
|
1324
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1311
1325
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1312
1326
|
|
1313
1327
|
options.apply_defaults timeout: @config.rpcs.list_volume_backups.timeout,
|
@@ -1382,12 +1396,13 @@ module Google
|
|
1382
1396
|
# Customize the options with defaults
|
1383
1397
|
call_metadata = @config.rpcs.get_volume_backup.metadata.to_h
|
1384
1398
|
|
1385
|
-
# Set x-goog-api-client
|
1399
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1386
1400
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1387
1401
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1388
1402
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1389
1403
|
transports_version_send: [:rest]
|
1390
1404
|
|
1405
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1391
1406
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1392
1407
|
|
1393
1408
|
options.apply_defaults timeout: @config.rpcs.get_volume_backup.timeout,
|
@@ -1479,12 +1494,13 @@ module Google
|
|
1479
1494
|
# Customize the options with defaults
|
1480
1495
|
call_metadata = @config.rpcs.create_restore_plan.metadata.to_h
|
1481
1496
|
|
1482
|
-
# Set x-goog-api-client
|
1497
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1483
1498
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1484
1499
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1485
1500
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1486
1501
|
transports_version_send: [:rest]
|
1487
1502
|
|
1503
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1488
1504
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1489
1505
|
|
1490
1506
|
options.apply_defaults timeout: @config.rpcs.create_restore_plan.timeout,
|
@@ -1581,12 +1597,13 @@ module Google
|
|
1581
1597
|
# Customize the options with defaults
|
1582
1598
|
call_metadata = @config.rpcs.list_restore_plans.metadata.to_h
|
1583
1599
|
|
1584
|
-
# Set x-goog-api-client
|
1600
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1585
1601
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1586
1602
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1587
1603
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1588
1604
|
transports_version_send: [:rest]
|
1589
1605
|
|
1606
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1590
1607
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1591
1608
|
|
1592
1609
|
options.apply_defaults timeout: @config.rpcs.list_restore_plans.timeout,
|
@@ -1660,12 +1677,13 @@ module Google
|
|
1660
1677
|
# Customize the options with defaults
|
1661
1678
|
call_metadata = @config.rpcs.get_restore_plan.metadata.to_h
|
1662
1679
|
|
1663
|
-
# Set x-goog-api-client
|
1680
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1664
1681
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1665
1682
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1666
1683
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1667
1684
|
transports_version_send: [:rest]
|
1668
1685
|
|
1686
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1669
1687
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1670
1688
|
|
1671
1689
|
options.apply_defaults timeout: @config.rpcs.get_restore_plan.timeout,
|
@@ -1755,12 +1773,13 @@ module Google
|
|
1755
1773
|
# Customize the options with defaults
|
1756
1774
|
call_metadata = @config.rpcs.update_restore_plan.metadata.to_h
|
1757
1775
|
|
1758
|
-
# Set x-goog-api-client
|
1776
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1759
1777
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1760
1778
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1761
1779
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1762
1780
|
transports_version_send: [:rest]
|
1763
1781
|
|
1782
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1764
1783
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1765
1784
|
|
1766
1785
|
options.apply_defaults timeout: @config.rpcs.update_restore_plan.timeout,
|
@@ -1850,12 +1869,13 @@ module Google
|
|
1850
1869
|
# Customize the options with defaults
|
1851
1870
|
call_metadata = @config.rpcs.delete_restore_plan.metadata.to_h
|
1852
1871
|
|
1853
|
-
# Set x-goog-api-client
|
1872
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1854
1873
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1855
1874
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1856
1875
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1857
1876
|
transports_version_send: [:rest]
|
1858
1877
|
|
1878
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1859
1879
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1860
1880
|
|
1861
1881
|
options.apply_defaults timeout: @config.rpcs.delete_restore_plan.timeout,
|
@@ -1948,12 +1968,13 @@ module Google
|
|
1948
1968
|
# Customize the options with defaults
|
1949
1969
|
call_metadata = @config.rpcs.create_restore.metadata.to_h
|
1950
1970
|
|
1951
|
-
# Set x-goog-api-client
|
1971
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1952
1972
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1953
1973
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1954
1974
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
1955
1975
|
transports_version_send: [:rest]
|
1956
1976
|
|
1977
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1957
1978
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1958
1979
|
|
1959
1980
|
options.apply_defaults timeout: @config.rpcs.create_restore.timeout,
|
@@ -2050,12 +2071,13 @@ module Google
|
|
2050
2071
|
# Customize the options with defaults
|
2051
2072
|
call_metadata = @config.rpcs.list_restores.metadata.to_h
|
2052
2073
|
|
2053
|
-
# Set x-goog-api-client
|
2074
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2054
2075
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2055
2076
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2056
2077
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2057
2078
|
transports_version_send: [:rest]
|
2058
2079
|
|
2080
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2059
2081
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2060
2082
|
|
2061
2083
|
options.apply_defaults timeout: @config.rpcs.list_restores.timeout,
|
@@ -2129,12 +2151,13 @@ module Google
|
|
2129
2151
|
# Customize the options with defaults
|
2130
2152
|
call_metadata = @config.rpcs.get_restore.metadata.to_h
|
2131
2153
|
|
2132
|
-
# Set x-goog-api-client
|
2154
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2133
2155
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2134
2156
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2135
2157
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2136
2158
|
transports_version_send: [:rest]
|
2137
2159
|
|
2160
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2138
2161
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2139
2162
|
|
2140
2163
|
options.apply_defaults timeout: @config.rpcs.get_restore.timeout,
|
@@ -2224,12 +2247,13 @@ module Google
|
|
2224
2247
|
# Customize the options with defaults
|
2225
2248
|
call_metadata = @config.rpcs.update_restore.metadata.to_h
|
2226
2249
|
|
2227
|
-
# Set x-goog-api-client
|
2250
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2228
2251
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2229
2252
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2230
2253
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2231
2254
|
transports_version_send: [:rest]
|
2232
2255
|
|
2256
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2233
2257
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2234
2258
|
|
2235
2259
|
options.apply_defaults timeout: @config.rpcs.update_restore.timeout,
|
@@ -2319,12 +2343,13 @@ module Google
|
|
2319
2343
|
# Customize the options with defaults
|
2320
2344
|
call_metadata = @config.rpcs.delete_restore.metadata.to_h
|
2321
2345
|
|
2322
|
-
# Set x-goog-api-client
|
2346
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2323
2347
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2324
2348
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2325
2349
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2326
2350
|
transports_version_send: [:rest]
|
2327
2351
|
|
2352
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2328
2353
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2329
2354
|
|
2330
2355
|
options.apply_defaults timeout: @config.rpcs.delete_restore.timeout,
|
@@ -2421,12 +2446,13 @@ module Google
|
|
2421
2446
|
# Customize the options with defaults
|
2422
2447
|
call_metadata = @config.rpcs.list_volume_restores.metadata.to_h
|
2423
2448
|
|
2424
|
-
# Set x-goog-api-client
|
2449
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2425
2450
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2426
2451
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2427
2452
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2428
2453
|
transports_version_send: [:rest]
|
2429
2454
|
|
2455
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2430
2456
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2431
2457
|
|
2432
2458
|
options.apply_defaults timeout: @config.rpcs.list_volume_restores.timeout,
|
@@ -2501,12 +2527,13 @@ module Google
|
|
2501
2527
|
# Customize the options with defaults
|
2502
2528
|
call_metadata = @config.rpcs.get_volume_restore.metadata.to_h
|
2503
2529
|
|
2504
|
-
# Set x-goog-api-client
|
2530
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2505
2531
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2506
2532
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2507
2533
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2508
2534
|
transports_version_send: [:rest]
|
2509
2535
|
|
2536
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2510
2537
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2511
2538
|
|
2512
2539
|
options.apply_defaults timeout: @config.rpcs.get_volume_restore.timeout,
|
@@ -2581,12 +2608,13 @@ module Google
|
|
2581
2608
|
# Customize the options with defaults
|
2582
2609
|
call_metadata = @config.rpcs.get_backup_index_download_url.metadata.to_h
|
2583
2610
|
|
2584
|
-
# Set x-goog-api-client
|
2611
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2585
2612
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2586
2613
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2587
2614
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
2588
2615
|
transports_version_send: [:rest]
|
2589
2616
|
|
2617
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2590
2618
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2591
2619
|
|
2592
2620
|
options.apply_defaults timeout: @config.rpcs.get_backup_index_download_url.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "gkebackup.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -10,7 +10,7 @@ require 'google/cloud/gkebackup/v1/common_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n&google/cloud/gkebackup/v1/backup.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n&google/cloud/gkebackup/v1/backup.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x0e\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06manual\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x06 \x03(\x0b\x32-.google.cloud.gkebackup.v1.Backup.LabelsEntryB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65lete_lock_days\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12@\n\x17\x64\x65lete_lock_expire_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0bretain_days\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12;\n\x12retain_expire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x0e\x65ncryption_key\x18\x0b \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x1d\n\x0e\x61ll_namespaces\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03H\x00\x12I\n\x13selected_namespaces\x18\r \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesB\x03\xe0\x41\x03H\x00\x12P\n\x15selected_applications\x18\x0e \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesB\x03\xe0\x41\x03H\x00\x12!\n\x14\x63ontains_volume_data\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontains_secrets\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12P\n\x10\x63luster_metadata\x18\x11 \x01(\x0b\x32\x31.google.cloud.gkebackup.v1.Backup.ClusterMetadataB\x03\xe0\x41\x03\x12;\n\x05state\x18\x12 \x01(\x0e\x32\'.google.cloud.gkebackup.v1.Backup.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0eresource_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0cvolume_count\x18\x16 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x19 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpod_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x63onfig_backup_size_bytes\x18\x1b \x01(\x03\x42\x03\xe0\x41\x03\x12\x1c\n\x0fpermissive_mode\x18\x1c \x01(\x08\x42\x03\xe0\x41\x03\x1a\xb6\x02\n\x0f\x43lusterMetadata\x12\x14\n\x07\x63luster\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bk8s_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12j\n\x13\x62\x61\x63kup_crd_versions\x18\x03 \x03(\x0b\x32H.google.cloud.gkebackup.v1.Backup.ClusterMetadata.BackupCrdVersionsEntryB\x03\xe0\x41\x03\x12\x1a\n\x0bgke_version\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x1d\n\x0e\x61nthos_version\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x1a\x38\n\x16\x42\x61\x63kupCrdVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x12\n\x10platform_version\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:x\xea\x41u\n\x1fgkebackup.googleapis.com/Backup\x12Rprojects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}B\x0e\n\x0c\x62\x61\x63kup_scopeB\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x42\x61\x63kupProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -14,7 +14,7 @@ require 'google/type/dayofweek_pb'
|
|
14
14
|
require 'google/type/timeofday_pb'
|
15
15
|
|
16
16
|
|
17
|
-
descriptor_data = "\n+google/cloud/gkebackup/v1/backup_plan.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\
|
17
|
+
descriptor_data = "\n+google/cloud/gkebackup/v1/backup_plan.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xd4\r\n\nBackupPlan\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12<\n\x07\x63luster\x18\x06 \x01(\tB+\xe0\x41\x05\xe0\x41\x02\xfa\x41\"\n container.googleapis.com/Cluster\x12T\n\x10retention_policy\x18\x07 \x01(\x0b\x32\x35.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicyB\x03\xe0\x41\x01\x12\x46\n\x06labels\x18\x08 \x03(\x0b\x32\x31.google.cloud.gkebackup.v1.BackupPlan.LabelsEntryB\x03\xe0\x41\x01\x12L\n\x0f\x62\x61\x63kup_schedule\x18\t \x01(\x0b\x32..google.cloud.gkebackup.v1.BackupPlan.ScheduleB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65\x61\x63tivated\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12N\n\rbackup_config\x18\x0c \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.BackupPlan.BackupConfigB\x03\xe0\x41\x01\x12 \n\x13protected_pod_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12?\n\x05state\x18\x0e \x01(\x0e\x32+.google.cloud.gkebackup.v1.BackupPlan.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0erpo_risk_level\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0frpo_risk_reason\x18\x11 \x01(\tB\x03\xe0\x41\x03\x1am\n\x0fRetentionPolicy\x12$\n\x17\x62\x61\x63kup_delete_lock_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_retain_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06locked\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xbf\x01\n\x08Schedule\x12\x1a\n\rcron_schedule\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06paused\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12=\n\nrpo_config\x18\x03 \x01(\x0b\x32$.google.cloud.gkebackup.v1.RpoConfigB\x03\xe0\x41\x01\x12\x43\n\x1anext_scheduled_backup_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xf0\x02\n\x0c\x42\x61\x63kupConfig\x12\x18\n\x0e\x61ll_namespaces\x18\x01 \x01(\x08H\x00\x12\x44\n\x13selected_namespaces\x18\x02 \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12K\n\x15selected_applications\x18\x03 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x12 \n\x13include_volume_data\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0finclude_secrets\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x45\n\x0e\x65ncryption_key\x18\x06 \x01(\x0b\x32(.google.cloud.gkebackup.v1.EncryptionKeyB\x03\xe0\x41\x01\x12\x1c\n\x0fpermissive_mode\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0e\n\x0c\x62\x61\x63kup_scope\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43LUSTER_PENDING\x10\x01\x12\x10\n\x0cPROVISIONING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0f\n\x0b\x44\x45\x41\x43TIVATED\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06:k\xea\x41h\n#gkebackup.googleapis.com/BackupPlan\x12\x41projects/{project}/locations/{location}/backupPlans/{backup_plan}\"x\n\tRpoConfig\x12\x1f\n\x12target_rpo_minutes\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12J\n\x11\x65xclusion_windows\x18\x02 \x03(\x0b\x32*.google.cloud.gkebackup.v1.ExclusionWindowB\x03\xe0\x41\x01\"\xde\x02\n\x0f\x45xclusionWindow\x12/\n\nstart_time\x18\x01 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x02\x12\x30\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x33\n\x16single_occurrence_date\x18\x03 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x0f\n\x05\x64\x61ily\x18\x04 \x01(\x08H\x00\x12P\n\x0c\x64\x61ys_of_week\x18\x05 \x01(\x0b\x32\x38.google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekListH\x00\x1a\x42\n\rDayOfWeekList\x12\x31\n\x0c\x64\x61ys_of_week\x18\x01 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x42\x0c\n\nrecurrenceB\xc6\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0f\x42\x61\x63kupPlanProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
|
18
18
|
|
19
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
20
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n&google/cloud/gkebackup/v1/common.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"%\n\nNamespaces\x12\x17\n\nnamespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\";\n\x0eNamespacedName\x12\x16\n\tnamespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"[\n\x0fNamespacedNames\x12H\n\x10namespaced_names\x18\x01 \x03(\x0b\x32).google.cloud.gkebackup.v1.NamespacedNameB\x03\xe0\x41\x01\"Z\n\rEncryptionKey\x12I\n\x16gcp_kms_encryption_key\x18\x01 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/
|
11
|
+
descriptor_data = "\n&google/cloud/gkebackup/v1/common.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"%\n\nNamespaces\x12\x17\n\nnamespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\";\n\x0eNamespacedName\x12\x16\n\tnamespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"[\n\x0fNamespacedNames\x12H\n\x10namespaced_names\x18\x01 \x03(\x0b\x32).google.cloud.gkebackup.v1.NamespacedNameB\x03\xe0\x41\x01\"Z\n\rEncryptionKey\x12I\n\x16gcp_kms_encryption_key\x18\x01 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"T\n\x0eVolumeTypeEnum\"B\n\nVolumeType\x12\x1b\n\x17VOLUME_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13GCE_PERSISTENT_DISK\x10\x01\x42\xc2\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0b\x43ommonProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -42,6 +42,8 @@ module Google
|
|
42
42
|
NamespacedName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.NamespacedName").msgclass
|
43
43
|
NamespacedNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.NamespacedNames").msgclass
|
44
44
|
EncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.EncryptionKey").msgclass
|
45
|
+
VolumeTypeEnum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeTypeEnum").msgclass
|
46
|
+
VolumeTypeEnum::VolumeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType").enummodule
|
45
47
|
end
|
46
48
|
end
|
47
49
|
end
|
@@ -10,7 +10,7 @@ require 'google/cloud/gkebackup/v1/common_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n\'google/cloud/gkebackup/v1/restore.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n\'google/cloud/gkebackup/v1/restore.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd9\n\n\x07Restore\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12:\n\x06\x62\x61\x63kup\x18\x06 \x01(\tB*\xe0\x41\x05\xe0\x41\x02\xfa\x41!\n\x1fgkebackup.googleapis.com/Backup\x12\x39\n\x07\x63luster\x18\x07 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n container.googleapis.com/Cluster\x12\x45\n\x0erestore_config\x18\x08 \x01(\x0b\x32(.google.cloud.gkebackup.v1.RestoreConfigB\x03\xe0\x41\x03\x12>\n\x06labels\x18\t \x03(\x0b\x32..google.cloud.gkebackup.v1.Restore.LabelsEntry\x12<\n\x05state\x18\n \x01(\x0e\x32(.google.cloud.gkebackup.v1.Restore.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12%\n\x18resources_restored_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18resources_excluded_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12#\n\x16resources_failed_count\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12#\n\x16volumes_restored_count\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x06\x66ilter\x18\x12 \x01(\x0b\x32).google.cloud.gkebackup.v1.Restore.FilterB\x06\xe0\x41\x05\xe0\x41\x01\x12p\n$volume_data_restore_policy_overrides\x18\x13 \x03(\x0b\x32:.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideB\x06\xe0\x41\x05\xe0\x41\x01\x1a\xa2\x01\n\x06\x46ilter\x12K\n\x11inclusion_filters\x18\x01 \x03(\x0b\x32+.google.cloud.gkebackup.v1.ResourceSelectorB\x03\xe0\x41\x01\x12K\n\x11\x65xclusion_filters\x18\x02 \x03(\x0b\x32+.google.cloud.gkebackup.v1.ResourceSelectorB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:}\xea\x41z\n gkebackup.googleapis.com/Restore\x12Vprojects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}\"\xef\x1a\n\rRestoreConfig\x12i\n\x1avolume_data_restore_policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x01\x12u\n cluster_resource_conflict_policy\x18\x02 \x01(\x0e\x32\x46.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicyB\x03\xe0\x41\x01\x12u\n namespaced_resource_restore_mode\x18\x03 \x01(\x0e\x32\x46.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreModeB\x03\xe0\x41\x01\x12q\n\x1e\x63luster_resource_restore_scope\x18\x04 \x01(\x0b\x32\x44.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeB\x03\xe0\x41\x01\x12\x18\n\x0e\x61ll_namespaces\x18\x05 \x01(\x08H\x00\x12\x44\n\x13selected_namespaces\x18\x06 \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12K\n\x15selected_applications\x18\x07 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\x17\n\rno_namespaces\x18\t \x01(\x08H\x00\x12\x44\n\x13\x65xcluded_namespaces\x18\n \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12Z\n\x12substitution_rules\x18\x08 \x03(\x0b\x32\x39.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleB\x03\xe0\x41\x01\x12^\n\x14transformation_rules\x18\x0b \x03(\x0b\x32;.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleB\x03\xe0\x41\x01\x12y\n#volume_data_restore_policy_bindings\x18\x0c \x03(\x0b\x32G.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingB\x03\xe0\x41\x01\x12Q\n\rrestore_order\x18\r \x01(\x0b\x32\x35.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderB\x03\xe0\x41\x01\x1a\x44\n\tGroupKind\x12\x1b\n\x0eresource_group\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_kind\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a\x86\x02\n\x1b\x43lusterResourceRestoreScope\x12U\n\x14selected_group_kinds\x18\x01 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12U\n\x14\x65xcluded_group_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61ll_group_kinds\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1b\n\x0eno_group_kinds\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xe3\x01\n\x10SubstitutionRule\x12\x1e\n\x11target_namespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12S\n\x12target_group_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x1d\n\x10target_json_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16original_value_pattern\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tnew_value\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\x8a\x02\n\x18TransformationRuleAction\x12U\n\x02op\x18\x01 \x01(\x0e\x32\x44.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.OpB\x03\xe0\x41\x02\x12\x16\n\tfrom_path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x04 \x01(\tB\x03\xe0\x41\x01\"X\n\x02Op\x12\x12\n\x0eOP_UNSPECIFIED\x10\x00\x12\n\n\x06REMOVE\x10\x01\x12\x08\n\x04MOVE\x10\x02\x12\x08\n\x04\x43OPY\x10\x03\x12\x07\n\x03\x41\x44\x44\x10\x04\x12\x08\n\x04TEST\x10\x05\x12\x0b\n\x07REPLACE\x10\x06\x1a\x8f\x01\n\x0eResourceFilter\x12\x17\n\nnamespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12L\n\x0bgroup_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x16\n\tjson_path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xe4\x01\n\x12TransformationRule\x12]\n\rfield_actions\x18\x01 \x03(\x0b\x32\x41.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleActionB\x03\xe0\x41\x02\x12U\n\x0fresource_filter\x18\x02 \x01(\x0b\x32\x37.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilterB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xcd\x01\n\x1eVolumeDataRestorePolicyBinding\x12U\n\x06policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x02\x12K\n\x0bvolume_type\x18\x02 \x01(\x0e\x32\x34.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeTypeH\x00\x42\x07\n\x05scope\x1a\xb0\x02\n\x0cRestoreOrder\x12o\n\x17group_kind_dependencies\x18\x01 \x03(\x0b\x32I.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyB\x03\xe0\x41\x01\x1a\xae\x01\n\x13GroupKindDependency\x12K\n\nsatisfying\x18\x01 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x02\x12J\n\trequiring\x18\x02 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x02\"\xaf\x01\n\x17VolumeDataRestorePolicy\x12*\n&VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\x10\x00\x12#\n\x1fRESTORE_VOLUME_DATA_FROM_BACKUP\x10\x01\x12#\n\x1fREUSE_VOLUME_HANDLE_FROM_BACKUP\x10\x02\x12\x1e\n\x1aNO_VOLUME_DATA_RESTORATION\x10\x03\"\x83\x01\n\x1d\x43lusterResourceConflictPolicy\x12\x30\n,CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12\x18\n\x14USE_EXISTING_VERSION\x10\x01\x12\x16\n\x12USE_BACKUP_VERSION\x10\x02\"\xe0\x01\n\x1dNamespacedResourceRestoreMode\x12\x30\n,NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44\x45LETE_AND_RESTORE\x10\x01\x12\x14\n\x10\x46\x41IL_ON_CONFLICT\x10\x02\x12\x1a\n\x16MERGE_SKIP_ON_CONFLICT\x10\x03\x12$\n MERGE_REPLACE_VOLUME_ON_CONFLICT\x10\x04\x12\x1d\n\x19MERGE_REPLACE_ON_CONFLICT\x10\x05\x42#\n!namespaced_resource_restore_scope\"\x87\x02\n\x10ResourceSelector\x12K\n\ngroup_kind\x18\x01 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tnamespace\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x06labels\x18\x04 \x03(\x0b\x32\x37.google.cloud.gkebackup.v1.ResourceSelector.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x01\n\x1fVolumeDataRestorePolicyOverride\x12U\n\x06policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x02\x12\x43\n\rselected_pvcs\x18\x02 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x42\x07\n\x05scopeB\xc3\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0cRestoreProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -43,6 +43,7 @@ module Google
|
|
43
43
|
module GkeBackup
|
44
44
|
module V1
|
45
45
|
Restore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore").msgclass
|
46
|
+
Restore::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore.Filter").msgclass
|
46
47
|
Restore::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore.State").enummodule
|
47
48
|
RestoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig").msgclass
|
48
49
|
RestoreConfig::GroupKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.GroupKind").msgclass
|
@@ -52,9 +53,14 @@ module Google
|
|
52
53
|
RestoreConfig::TransformationRuleAction::Op = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op").enummodule
|
53
54
|
RestoreConfig::ResourceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter").msgclass
|
54
55
|
RestoreConfig::TransformationRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.TransformationRule").msgclass
|
56
|
+
RestoreConfig::VolumeDataRestorePolicyBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding").msgclass
|
57
|
+
RestoreConfig::RestoreOrder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder").msgclass
|
58
|
+
RestoreConfig::RestoreOrder::GroupKindDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency").msgclass
|
55
59
|
RestoreConfig::VolumeDataRestorePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy").enummodule
|
56
60
|
RestoreConfig::ClusterResourceConflictPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy").enummodule
|
57
61
|
RestoreConfig::NamespacedResourceRestoreMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode").enummodule
|
62
|
+
ResourceSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ResourceSelector").msgclass
|
63
|
+
VolumeDataRestorePolicyOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride").msgclass
|
58
64
|
end
|
59
65
|
end
|
60
66
|
end
|
@@ -157,6 +157,15 @@ module Google
|
|
157
157
|
# @!attribute [r] config_backup_size_bytes
|
158
158
|
# @return [::Integer]
|
159
159
|
# Output only. The size of the config backup in bytes.
|
160
|
+
# @!attribute [r] permissive_mode
|
161
|
+
# @return [::Boolean]
|
162
|
+
# Output only. If false, Backup will fail when Backup for GKE detects
|
163
|
+
# Kubernetes configuration that is non-standard or
|
164
|
+
# requires additional setup to restore.
|
165
|
+
#
|
166
|
+
# Inherited from the parent BackupPlan's
|
167
|
+
# {::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig#permissive_mode permissive_mode}
|
168
|
+
# value.
|
160
169
|
class Backup
|
161
170
|
include ::Google::Protobuf::MessageExts
|
162
171
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|