google-cloud-alloy_db-v1 0.8.2 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +65 -31
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +13 -5
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +65 -31
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +11 -4
- data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +1 -1
- data/lib/google/cloud/alloydb/v1/service_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +5 -117
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0851b99802b449dda5587f1f79647345ef74a0f7b67205c9c56ebecd73373b1e'
|
4
|
+
data.tar.gz: 4b238117b87b7370272ad70c4c53581ba9ca97d4156e2ad36d0c47829f324e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ff9e1383b80446aedc77f8ea50a84952a342955cca530b0c809bf8640e8ba3f73e0ba5ad68bb7be8a1ce020c4b8d6083e2004f68d51eec85a239c96cc6d7b4
|
7
|
+
data.tar.gz: f4afa390e07d2a5c108abb1c6277fe30c56e0a161c6b97a7c105dae505ccdb2f9180a402d19320d8b8911f5328902a498ce5ccb1bd533affe68114d32e3dd88c
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
|
4
4
|
|
5
|
-
AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance.
|
5
|
+
AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
|
6
6
|
|
7
7
|
https://github.com/googleapis/google-cloud-ruby
|
8
8
|
|
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Service describing handlers for resources
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "alloydb.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -322,10 +325,11 @@ module Google
|
|
322
325
|
# Customize the options with defaults
|
323
326
|
metadata = @config.rpcs.list_clusters.metadata.to_h
|
324
327
|
|
325
|
-
# Set x-goog-api-client
|
328
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
326
329
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
327
330
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
328
331
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
332
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
329
333
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
330
334
|
|
331
335
|
header_params = {}
|
@@ -412,10 +416,11 @@ module Google
|
|
412
416
|
# Customize the options with defaults
|
413
417
|
metadata = @config.rpcs.get_cluster.metadata.to_h
|
414
418
|
|
415
|
-
# Set x-goog-api-client
|
419
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
416
420
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
417
421
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
418
422
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
423
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
419
424
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
420
425
|
|
421
426
|
header_params = {}
|
@@ -527,10 +532,11 @@ module Google
|
|
527
532
|
# Customize the options with defaults
|
528
533
|
metadata = @config.rpcs.create_cluster.metadata.to_h
|
529
534
|
|
530
|
-
# Set x-goog-api-client
|
535
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
531
536
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
532
537
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
533
538
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
539
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
534
540
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
535
541
|
|
536
542
|
header_params = {}
|
@@ -647,10 +653,11 @@ module Google
|
|
647
653
|
# Customize the options with defaults
|
648
654
|
metadata = @config.rpcs.update_cluster.metadata.to_h
|
649
655
|
|
650
|
-
# Set x-goog-api-client
|
656
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
651
657
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
652
658
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
653
659
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
660
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
654
661
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
655
662
|
|
656
663
|
header_params = {}
|
@@ -764,10 +771,11 @@ module Google
|
|
764
771
|
# Customize the options with defaults
|
765
772
|
metadata = @config.rpcs.delete_cluster.metadata.to_h
|
766
773
|
|
767
|
-
# Set x-goog-api-client
|
774
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
768
775
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
769
776
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
770
777
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
778
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
771
779
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
772
780
|
|
773
781
|
header_params = {}
|
@@ -882,10 +890,11 @@ module Google
|
|
882
890
|
# Customize the options with defaults
|
883
891
|
metadata = @config.rpcs.promote_cluster.metadata.to_h
|
884
892
|
|
885
|
-
# Set x-goog-api-client
|
893
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
886
894
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
887
895
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
888
896
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
897
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
889
898
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
890
899
|
|
891
900
|
header_params = {}
|
@@ -1005,10 +1014,11 @@ module Google
|
|
1005
1014
|
# Customize the options with defaults
|
1006
1015
|
metadata = @config.rpcs.restore_cluster.metadata.to_h
|
1007
1016
|
|
1008
|
-
# Set x-goog-api-client
|
1017
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1009
1018
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1010
1019
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1011
1020
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1021
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1012
1022
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1013
1023
|
|
1014
1024
|
header_params = {}
|
@@ -1122,10 +1132,11 @@ module Google
|
|
1122
1132
|
# Customize the options with defaults
|
1123
1133
|
metadata = @config.rpcs.create_secondary_cluster.metadata.to_h
|
1124
1134
|
|
1125
|
-
# Set x-goog-api-client
|
1135
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1126
1136
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1127
1137
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1128
1138
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1139
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1129
1140
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1130
1141
|
|
1131
1142
|
header_params = {}
|
@@ -1226,10 +1237,11 @@ module Google
|
|
1226
1237
|
# Customize the options with defaults
|
1227
1238
|
metadata = @config.rpcs.list_instances.metadata.to_h
|
1228
1239
|
|
1229
|
-
# Set x-goog-api-client
|
1240
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1230
1241
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1231
1242
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1232
1243
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1244
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1233
1245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1234
1246
|
|
1235
1247
|
header_params = {}
|
@@ -1315,10 +1327,11 @@ module Google
|
|
1315
1327
|
# Customize the options with defaults
|
1316
1328
|
metadata = @config.rpcs.get_instance.metadata.to_h
|
1317
1329
|
|
1318
|
-
# Set x-goog-api-client
|
1330
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1319
1331
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1320
1332
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1321
1333
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1334
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1322
1335
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1323
1336
|
|
1324
1337
|
header_params = {}
|
@@ -1430,10 +1443,11 @@ module Google
|
|
1430
1443
|
# Customize the options with defaults
|
1431
1444
|
metadata = @config.rpcs.create_instance.metadata.to_h
|
1432
1445
|
|
1433
|
-
# Set x-goog-api-client
|
1446
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1434
1447
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1435
1448
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1436
1449
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1450
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1437
1451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1438
1452
|
|
1439
1453
|
header_params = {}
|
@@ -1546,10 +1560,11 @@ module Google
|
|
1546
1560
|
# Customize the options with defaults
|
1547
1561
|
metadata = @config.rpcs.create_secondary_instance.metadata.to_h
|
1548
1562
|
|
1549
|
-
# Set x-goog-api-client
|
1563
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1550
1564
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1551
1565
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1552
1566
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1567
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1553
1568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1554
1569
|
|
1555
1570
|
header_params = {}
|
@@ -1664,10 +1679,11 @@ module Google
|
|
1664
1679
|
# Customize the options with defaults
|
1665
1680
|
metadata = @config.rpcs.batch_create_instances.metadata.to_h
|
1666
1681
|
|
1667
|
-
# Set x-goog-api-client
|
1682
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1668
1683
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1669
1684
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1670
1685
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1686
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1671
1687
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1672
1688
|
|
1673
1689
|
header_params = {}
|
@@ -1784,10 +1800,11 @@ module Google
|
|
1784
1800
|
# Customize the options with defaults
|
1785
1801
|
metadata = @config.rpcs.update_instance.metadata.to_h
|
1786
1802
|
|
1787
|
-
# Set x-goog-api-client
|
1803
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1788
1804
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1789
1805
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1790
1806
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1807
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1791
1808
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1792
1809
|
|
1793
1810
|
header_params = {}
|
@@ -1899,10 +1916,11 @@ module Google
|
|
1899
1916
|
# Customize the options with defaults
|
1900
1917
|
metadata = @config.rpcs.delete_instance.metadata.to_h
|
1901
1918
|
|
1902
|
-
# Set x-goog-api-client
|
1919
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1903
1920
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1904
1921
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1905
1922
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
1923
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1906
1924
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1907
1925
|
|
1908
1926
|
header_params = {}
|
@@ -2012,10 +2030,11 @@ module Google
|
|
2012
2030
|
# Customize the options with defaults
|
2013
2031
|
metadata = @config.rpcs.failover_instance.metadata.to_h
|
2014
2032
|
|
2015
|
-
# Set x-goog-api-client
|
2033
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2016
2034
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2017
2035
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2018
2036
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2037
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2019
2038
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2020
2039
|
|
2021
2040
|
header_params = {}
|
@@ -2127,10 +2146,11 @@ module Google
|
|
2127
2146
|
# Customize the options with defaults
|
2128
2147
|
metadata = @config.rpcs.inject_fault.metadata.to_h
|
2129
2148
|
|
2130
|
-
# Set x-goog-api-client
|
2149
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2131
2150
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2132
2151
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2133
2152
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2153
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2134
2154
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2135
2155
|
|
2136
2156
|
header_params = {}
|
@@ -2239,10 +2259,11 @@ module Google
|
|
2239
2259
|
# Customize the options with defaults
|
2240
2260
|
metadata = @config.rpcs.restart_instance.metadata.to_h
|
2241
2261
|
|
2242
|
-
# Set x-goog-api-client
|
2262
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2243
2263
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2244
2264
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2245
2265
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2266
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2246
2267
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2247
2268
|
|
2248
2269
|
header_params = {}
|
@@ -2338,10 +2359,11 @@ module Google
|
|
2338
2359
|
# Customize the options with defaults
|
2339
2360
|
metadata = @config.rpcs.list_backups.metadata.to_h
|
2340
2361
|
|
2341
|
-
# Set x-goog-api-client
|
2362
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2342
2363
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2343
2364
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2344
2365
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2366
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2345
2367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2346
2368
|
|
2347
2369
|
header_params = {}
|
@@ -2424,10 +2446,11 @@ module Google
|
|
2424
2446
|
# Customize the options with defaults
|
2425
2447
|
metadata = @config.rpcs.get_backup.metadata.to_h
|
2426
2448
|
|
2427
|
-
# Set x-goog-api-client
|
2449
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2428
2450
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2429
2451
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2430
2452
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2453
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2431
2454
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2432
2455
|
|
2433
2456
|
header_params = {}
|
@@ -2537,10 +2560,11 @@ module Google
|
|
2537
2560
|
# Customize the options with defaults
|
2538
2561
|
metadata = @config.rpcs.create_backup.metadata.to_h
|
2539
2562
|
|
2540
|
-
# Set x-goog-api-client
|
2563
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2541
2564
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2542
2565
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2543
2566
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2567
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2544
2568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2545
2569
|
|
2546
2570
|
header_params = {}
|
@@ -2656,10 +2680,11 @@ module Google
|
|
2656
2680
|
# Customize the options with defaults
|
2657
2681
|
metadata = @config.rpcs.update_backup.metadata.to_h
|
2658
2682
|
|
2659
|
-
# Set x-goog-api-client
|
2683
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2660
2684
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2661
2685
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2662
2686
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2687
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2663
2688
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2664
2689
|
|
2665
2690
|
header_params = {}
|
@@ -2771,10 +2796,11 @@ module Google
|
|
2771
2796
|
# Customize the options with defaults
|
2772
2797
|
metadata = @config.rpcs.delete_backup.metadata.to_h
|
2773
2798
|
|
2774
|
-
# Set x-goog-api-client
|
2799
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2775
2800
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2776
2801
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2777
2802
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2803
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2778
2804
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2779
2805
|
|
2780
2806
|
header_params = {}
|
@@ -2872,10 +2898,11 @@ module Google
|
|
2872
2898
|
# Customize the options with defaults
|
2873
2899
|
metadata = @config.rpcs.list_supported_database_flags.metadata.to_h
|
2874
2900
|
|
2875
|
-
# Set x-goog-api-client
|
2901
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2876
2902
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2877
2903
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2878
2904
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
2905
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2879
2906
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2880
2907
|
|
2881
2908
|
header_params = {}
|
@@ -2989,10 +3016,11 @@ module Google
|
|
2989
3016
|
# Customize the options with defaults
|
2990
3017
|
metadata = @config.rpcs.generate_client_certificate.metadata.to_h
|
2991
3018
|
|
2992
|
-
# Set x-goog-api-client
|
3019
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2993
3020
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2994
3021
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2995
3022
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3023
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2996
3024
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2997
3025
|
|
2998
3026
|
header_params = {}
|
@@ -3089,10 +3117,11 @@ module Google
|
|
3089
3117
|
# Customize the options with defaults
|
3090
3118
|
metadata = @config.rpcs.get_connection_info.metadata.to_h
|
3091
3119
|
|
3092
|
-
# Set x-goog-api-client
|
3120
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3093
3121
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3094
3122
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3095
3123
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3124
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3096
3125
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3097
3126
|
|
3098
3127
|
header_params = {}
|
@@ -3187,10 +3216,11 @@ module Google
|
|
3187
3216
|
# Customize the options with defaults
|
3188
3217
|
metadata = @config.rpcs.list_users.metadata.to_h
|
3189
3218
|
|
3190
|
-
# Set x-goog-api-client
|
3219
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3191
3220
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3192
3221
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3193
3222
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3223
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3194
3224
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3195
3225
|
|
3196
3226
|
header_params = {}
|
@@ -3274,10 +3304,11 @@ module Google
|
|
3274
3304
|
# Customize the options with defaults
|
3275
3305
|
metadata = @config.rpcs.get_user.metadata.to_h
|
3276
3306
|
|
3277
|
-
# Set x-goog-api-client
|
3307
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3278
3308
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3279
3309
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3280
3310
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3311
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3281
3312
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3282
3313
|
|
3283
3314
|
header_params = {}
|
@@ -3380,10 +3411,11 @@ module Google
|
|
3380
3411
|
# Customize the options with defaults
|
3381
3412
|
metadata = @config.rpcs.create_user.metadata.to_h
|
3382
3413
|
|
3383
|
-
# Set x-goog-api-client
|
3414
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3384
3415
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3385
3416
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3386
3417
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3418
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3387
3419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3388
3420
|
|
3389
3421
|
header_params = {}
|
@@ -3490,10 +3522,11 @@ module Google
|
|
3490
3522
|
# Customize the options with defaults
|
3491
3523
|
metadata = @config.rpcs.update_user.metadata.to_h
|
3492
3524
|
|
3493
|
-
# Set x-goog-api-client
|
3525
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3494
3526
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3495
3527
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3496
3528
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3529
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3497
3530
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3498
3531
|
|
3499
3532
|
header_params = {}
|
@@ -3593,10 +3626,11 @@ module Google
|
|
3593
3626
|
# Customize the options with defaults
|
3594
3627
|
metadata = @config.rpcs.delete_user.metadata.to_h
|
3595
3628
|
|
3596
|
-
# Set x-goog-api-client
|
3629
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3597
3630
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3598
3631
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3599
3632
|
gapic_version: ::Google::Cloud::AlloyDB::V1::VERSION
|
3633
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3600
3634
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3601
3635
|
|
3602
3636
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module AlloyDBAdmin
|
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 = "alloydb.$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::AlloyDB::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::AlloyDB::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::AlloyDB::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::AlloyDB::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::AlloyDB::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,
|