google-cloud-gke_backup-v1 0.9.0 → 0.10.1
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/api/client.rb +31 -10
- data/proto_docs/google/api/resource.rb +7 -2
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c957721d2727ec0c185f91a6911c513bcd9482179d4fad0f74823237d267a6
|
4
|
+
data.tar.gz: 48ded999cc4e655b11f706f26ef68f3a00e25a6911feef34ef4b7024027115a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d35c2a14538e98cc0f76991676e5fac8a08a4d120a07d175edb75293050046a9b48451eed6378accb73f1537b60753a64015388e4a832934f4c53c8dc4bc55a
|
7
|
+
data.tar.gz: 81641804104cbbc3e94e3c4d54dd37ce43c5820e48d7ab71da2221cecfe48eca24cdd68336d1c3ee9e46ff1c0839744eba8d20fb8ddafe6220501df92c229637
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# manage backup and restore operations for their GKE clusters.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "gkebackup.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -368,10 +371,11 @@ module Google
|
|
368
371
|
# Customize the options with defaults
|
369
372
|
metadata = @config.rpcs.create_backup_plan.metadata.to_h
|
370
373
|
|
371
|
-
# Set x-goog-api-client
|
374
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
372
375
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
373
376
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
374
377
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
378
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
375
379
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
376
380
|
|
377
381
|
header_params = {}
|
@@ -477,10 +481,11 @@ module Google
|
|
477
481
|
# Customize the options with defaults
|
478
482
|
metadata = @config.rpcs.list_backup_plans.metadata.to_h
|
479
483
|
|
480
|
-
# Set x-goog-api-client
|
484
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
481
485
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
486
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
487
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
488
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
484
489
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
485
490
|
|
486
491
|
header_params = {}
|
@@ -564,10 +569,11 @@ module Google
|
|
564
569
|
# Customize the options with defaults
|
565
570
|
metadata = @config.rpcs.get_backup_plan.metadata.to_h
|
566
571
|
|
567
|
-
# Set x-goog-api-client
|
572
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
568
573
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
569
574
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
570
575
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
576
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
571
577
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
572
578
|
|
573
579
|
header_params = {}
|
@@ -667,10 +673,11 @@ module Google
|
|
667
673
|
# Customize the options with defaults
|
668
674
|
metadata = @config.rpcs.update_backup_plan.metadata.to_h
|
669
675
|
|
670
|
-
# Set x-goog-api-client
|
676
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
671
677
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
672
678
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
673
679
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
680
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
674
681
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
675
682
|
|
676
683
|
header_params = {}
|
@@ -765,10 +772,11 @@ module Google
|
|
765
772
|
# Customize the options with defaults
|
766
773
|
metadata = @config.rpcs.delete_backup_plan.metadata.to_h
|
767
774
|
|
768
|
-
# Set x-goog-api-client
|
775
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
769
776
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
770
777
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
771
778
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
779
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
772
780
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
773
781
|
|
774
782
|
header_params = {}
|
@@ -870,10 +878,11 @@ module Google
|
|
870
878
|
# Customize the options with defaults
|
871
879
|
metadata = @config.rpcs.create_backup.metadata.to_h
|
872
880
|
|
873
|
-
# Set x-goog-api-client
|
881
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
874
882
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
875
883
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
876
884
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
885
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
877
886
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
878
887
|
|
879
888
|
header_params = {}
|
@@ -979,10 +988,11 @@ module Google
|
|
979
988
|
# Customize the options with defaults
|
980
989
|
metadata = @config.rpcs.list_backups.metadata.to_h
|
981
990
|
|
982
|
-
# Set x-goog-api-client
|
991
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
983
992
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
984
993
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
985
994
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
995
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
986
996
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
987
997
|
|
988
998
|
header_params = {}
|
@@ -1066,10 +1076,11 @@ module Google
|
|
1066
1076
|
# Customize the options with defaults
|
1067
1077
|
metadata = @config.rpcs.get_backup.metadata.to_h
|
1068
1078
|
|
1069
|
-
# Set x-goog-api-client
|
1079
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1070
1080
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1071
1081
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1072
1082
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1083
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1073
1084
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1074
1085
|
|
1075
1086
|
header_params = {}
|
@@ -1168,10 +1179,11 @@ module Google
|
|
1168
1179
|
# Customize the options with defaults
|
1169
1180
|
metadata = @config.rpcs.update_backup.metadata.to_h
|
1170
1181
|
|
1171
|
-
# Set x-goog-api-client
|
1182
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1172
1183
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1173
1184
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1174
1185
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1186
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1175
1187
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1176
1188
|
|
1177
1189
|
header_params = {}
|
@@ -1270,10 +1282,11 @@ module Google
|
|
1270
1282
|
# Customize the options with defaults
|
1271
1283
|
metadata = @config.rpcs.delete_backup.metadata.to_h
|
1272
1284
|
|
1273
|
-
# Set x-goog-api-client
|
1285
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1274
1286
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1275
1287
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1276
1288
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1289
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1277
1290
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1278
1291
|
|
1279
1292
|
header_params = {}
|
@@ -1379,10 +1392,11 @@ module Google
|
|
1379
1392
|
# Customize the options with defaults
|
1380
1393
|
metadata = @config.rpcs.list_volume_backups.metadata.to_h
|
1381
1394
|
|
1382
|
-
# Set x-goog-api-client
|
1395
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1383
1396
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1384
1397
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1385
1398
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1399
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1386
1400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1387
1401
|
|
1388
1402
|
header_params = {}
|
@@ -1466,10 +1480,11 @@ module Google
|
|
1466
1480
|
# Customize the options with defaults
|
1467
1481
|
metadata = @config.rpcs.get_volume_backup.metadata.to_h
|
1468
1482
|
|
1469
|
-
# Set x-goog-api-client
|
1483
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1470
1484
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1471
1485
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1472
1486
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1487
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1473
1488
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1474
1489
|
|
1475
1490
|
header_params = {}
|
@@ -1570,10 +1585,11 @@ module Google
|
|
1570
1585
|
# Customize the options with defaults
|
1571
1586
|
metadata = @config.rpcs.create_restore_plan.metadata.to_h
|
1572
1587
|
|
1573
|
-
# Set x-goog-api-client
|
1588
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1574
1589
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1575
1590
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1576
1591
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1592
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1577
1593
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1578
1594
|
|
1579
1595
|
header_params = {}
|
@@ -1679,10 +1695,11 @@ module Google
|
|
1679
1695
|
# Customize the options with defaults
|
1680
1696
|
metadata = @config.rpcs.list_restore_plans.metadata.to_h
|
1681
1697
|
|
1682
|
-
# Set x-goog-api-client
|
1698
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1683
1699
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1684
1700
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1685
1701
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1702
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1686
1703
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1687
1704
|
|
1688
1705
|
header_params = {}
|
@@ -1766,10 +1783,11 @@ module Google
|
|
1766
1783
|
# Customize the options with defaults
|
1767
1784
|
metadata = @config.rpcs.get_restore_plan.metadata.to_h
|
1768
1785
|
|
1769
|
-
# Set x-goog-api-client
|
1786
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1770
1787
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1771
1788
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1772
1789
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1790
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1773
1791
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1774
1792
|
|
1775
1793
|
header_params = {}
|
@@ -1868,10 +1886,11 @@ module Google
|
|
1868
1886
|
# Customize the options with defaults
|
1869
1887
|
metadata = @config.rpcs.update_restore_plan.metadata.to_h
|
1870
1888
|
|
1871
|
-
# Set x-goog-api-client
|
1889
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1872
1890
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1873
1891
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1874
1892
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1893
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1875
1894
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1876
1895
|
|
1877
1896
|
header_params = {}
|
@@ -1970,10 +1989,11 @@ module Google
|
|
1970
1989
|
# Customize the options with defaults
|
1971
1990
|
metadata = @config.rpcs.delete_restore_plan.metadata.to_h
|
1972
1991
|
|
1973
|
-
# Set x-goog-api-client
|
1992
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1974
1993
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1975
1994
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1976
1995
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
1996
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1977
1997
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1978
1998
|
|
1979
1999
|
header_params = {}
|
@@ -2075,10 +2095,11 @@ module Google
|
|
2075
2095
|
# Customize the options with defaults
|
2076
2096
|
metadata = @config.rpcs.create_restore.metadata.to_h
|
2077
2097
|
|
2078
|
-
# Set x-goog-api-client
|
2098
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2079
2099
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2080
2100
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2081
2101
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2102
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2082
2103
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2083
2104
|
|
2084
2105
|
header_params = {}
|
@@ -2184,10 +2205,11 @@ module Google
|
|
2184
2205
|
# Customize the options with defaults
|
2185
2206
|
metadata = @config.rpcs.list_restores.metadata.to_h
|
2186
2207
|
|
2187
|
-
# Set x-goog-api-client
|
2208
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2188
2209
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2189
2210
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2190
2211
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2212
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2191
2213
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2192
2214
|
|
2193
2215
|
header_params = {}
|
@@ -2271,10 +2293,11 @@ module Google
|
|
2271
2293
|
# Customize the options with defaults
|
2272
2294
|
metadata = @config.rpcs.get_restore.metadata.to_h
|
2273
2295
|
|
2274
|
-
# Set x-goog-api-client
|
2296
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2275
2297
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2276
2298
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2277
2299
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2300
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2278
2301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2279
2302
|
|
2280
2303
|
header_params = {}
|
@@ -2373,10 +2396,11 @@ module Google
|
|
2373
2396
|
# Customize the options with defaults
|
2374
2397
|
metadata = @config.rpcs.update_restore.metadata.to_h
|
2375
2398
|
|
2376
|
-
# Set x-goog-api-client
|
2399
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2377
2400
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2378
2401
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2379
2402
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2403
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2380
2404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2381
2405
|
|
2382
2406
|
header_params = {}
|
@@ -2475,10 +2499,11 @@ module Google
|
|
2475
2499
|
# Customize the options with defaults
|
2476
2500
|
metadata = @config.rpcs.delete_restore.metadata.to_h
|
2477
2501
|
|
2478
|
-
# Set x-goog-api-client
|
2502
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2479
2503
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2480
2504
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2481
2505
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2506
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2482
2507
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2483
2508
|
|
2484
2509
|
header_params = {}
|
@@ -2584,10 +2609,11 @@ module Google
|
|
2584
2609
|
# Customize the options with defaults
|
2585
2610
|
metadata = @config.rpcs.list_volume_restores.metadata.to_h
|
2586
2611
|
|
2587
|
-
# Set x-goog-api-client
|
2612
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2588
2613
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2589
2614
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2590
2615
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2616
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2591
2617
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2592
2618
|
|
2593
2619
|
header_params = {}
|
@@ -2671,10 +2697,11 @@ module Google
|
|
2671
2697
|
# Customize the options with defaults
|
2672
2698
|
metadata = @config.rpcs.get_volume_restore.metadata.to_h
|
2673
2699
|
|
2674
|
-
# Set x-goog-api-client
|
2700
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2675
2701
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2676
2702
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2677
2703
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2704
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2678
2705
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2679
2706
|
|
2680
2707
|
header_params = {}
|
@@ -2758,10 +2785,11 @@ module Google
|
|
2758
2785
|
# Customize the options with defaults
|
2759
2786
|
metadata = @config.rpcs.get_backup_index_download_url.metadata.to_h
|
2760
2787
|
|
2761
|
-
# Set x-goog-api-client
|
2788
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2762
2789
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2763
2790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2764
2791
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
2792
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2765
2793
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2766
2794
|
|
2767
2795
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module BackupForGKE
|
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
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::GkeBackup::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|