google-cloud-gke_multi_cloud-v1 0.8.2 → 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/README.md +1 -1
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +21 -9
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +13 -5
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/client.rb +21 -9
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/operations.rb +11 -4
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +35 -16
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +13 -5
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/client.rb +35 -16
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/operations.rb +11 -4
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +54 -22
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +13 -5
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/client.rb +54 -22
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/operations.rb +11 -4
- data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +2 -2
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +13 -1
- metadata +4 -116
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# to create and manage Anthos clusters that run on Azure infrastructure.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -339,10 +342,11 @@ module Google
|
|
339
342
|
# Customize the options with defaults
|
340
343
|
metadata = @config.rpcs.create_azure_client.metadata.to_h
|
341
344
|
|
342
|
-
# Set x-goog-api-client
|
345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
343
346
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
344
347
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
345
348
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
349
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
346
350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
347
351
|
|
348
352
|
header_params = {}
|
@@ -435,10 +439,11 @@ module Google
|
|
435
439
|
# Customize the options with defaults
|
436
440
|
metadata = @config.rpcs.get_azure_client.metadata.to_h
|
437
441
|
|
438
|
-
# Set x-goog-api-client
|
442
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
439
443
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
440
444
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
441
445
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
446
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
442
447
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
443
448
|
|
444
449
|
header_params = {}
|
@@ -543,10 +548,11 @@ module Google
|
|
543
548
|
# Customize the options with defaults
|
544
549
|
metadata = @config.rpcs.list_azure_clients.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
|
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::GkeMultiCloud::V1::VERSION
|
555
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
550
556
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
551
557
|
|
552
558
|
header_params = {}
|
@@ -661,10 +667,11 @@ module Google
|
|
661
667
|
# Customize the options with defaults
|
662
668
|
metadata = @config.rpcs.delete_azure_client.metadata.to_h
|
663
669
|
|
664
|
-
# Set x-goog-api-client
|
670
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
665
671
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
666
672
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
667
673
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
674
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
668
675
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
669
676
|
|
670
677
|
header_params = {}
|
@@ -781,10 +788,11 @@ module Google
|
|
781
788
|
# Customize the options with defaults
|
782
789
|
metadata = @config.rpcs.create_azure_cluster.metadata.to_h
|
783
790
|
|
784
|
-
# Set x-goog-api-client
|
791
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
785
792
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
786
793
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
787
794
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
795
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
788
796
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
789
797
|
|
790
798
|
header_params = {}
|
@@ -899,10 +907,11 @@ module Google
|
|
899
907
|
# Customize the options with defaults
|
900
908
|
metadata = @config.rpcs.update_azure_cluster.metadata.to_h
|
901
909
|
|
902
|
-
# Set x-goog-api-client
|
910
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
903
911
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
904
912
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
905
913
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
914
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
906
915
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
907
916
|
|
908
917
|
header_params = {}
|
@@ -994,10 +1003,11 @@ module Google
|
|
994
1003
|
# Customize the options with defaults
|
995
1004
|
metadata = @config.rpcs.get_azure_cluster.metadata.to_h
|
996
1005
|
|
997
|
-
# Set x-goog-api-client
|
1006
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
998
1007
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
999
1008
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1000
1009
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1010
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1001
1011
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1002
1012
|
|
1003
1013
|
header_params = {}
|
@@ -1102,10 +1112,11 @@ module Google
|
|
1102
1112
|
# Customize the options with defaults
|
1103
1113
|
metadata = @config.rpcs.list_azure_clusters.metadata.to_h
|
1104
1114
|
|
1105
|
-
# Set x-goog-api-client
|
1115
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1106
1116
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1107
1117
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1108
1118
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1119
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1109
1120
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1110
1121
|
|
1111
1122
|
header_params = {}
|
@@ -1154,7 +1165,7 @@ module Google
|
|
1154
1165
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1155
1166
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1156
1167
|
#
|
1157
|
-
# @overload delete_azure_cluster(name: nil, allow_missing: nil, validate_only: nil, etag: nil)
|
1168
|
+
# @overload delete_azure_cluster(name: nil, allow_missing: nil, validate_only: nil, etag: nil, ignore_errors: nil)
|
1158
1169
|
# Pass arguments to `delete_azure_cluster` via keyword arguments. Note that at
|
1159
1170
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1160
1171
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1185,6 +1196,11 @@ module Google
|
|
1185
1196
|
#
|
1186
1197
|
# If the provided etag does not match the current etag of the cluster,
|
1187
1198
|
# the request will fail and an ABORTED error will be returned.
|
1199
|
+
# @param ignore_errors [::Boolean]
|
1200
|
+
# Optional. If set to true, the deletion of
|
1201
|
+
# {::Google::Cloud::GkeMultiCloud::V1::AzureCluster AzureCluster} resource will
|
1202
|
+
# succeed even if errors occur during deleting in cluster resources. Using
|
1203
|
+
# this parameter may result in orphaned resources in the cluster.
|
1188
1204
|
#
|
1189
1205
|
# @yield [response, operation] Access the result along with the RPC operation
|
1190
1206
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1227,10 +1243,11 @@ module Google
|
|
1227
1243
|
# Customize the options with defaults
|
1228
1244
|
metadata = @config.rpcs.delete_azure_cluster.metadata.to_h
|
1229
1245
|
|
1230
|
-
# Set x-goog-api-client
|
1246
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1231
1247
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1232
1248
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1233
1249
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1250
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1234
1251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1235
1252
|
|
1236
1253
|
header_params = {}
|
@@ -1331,10 +1348,11 @@ module Google
|
|
1331
1348
|
# Customize the options with defaults
|
1332
1349
|
metadata = @config.rpcs.generate_azure_cluster_agent_token.metadata.to_h
|
1333
1350
|
|
1334
|
-
# Set x-goog-api-client
|
1351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1335
1352
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1336
1353
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1337
1354
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1355
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1338
1356
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1339
1357
|
|
1340
1358
|
header_params = {}
|
@@ -1425,10 +1443,11 @@ module Google
|
|
1425
1443
|
# Customize the options with defaults
|
1426
1444
|
metadata = @config.rpcs.generate_azure_access_token.metadata.to_h
|
1427
1445
|
|
1428
|
-
# Set x-goog-api-client
|
1446
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1429
1447
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1430
1448
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1431
1449
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1450
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1432
1451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1433
1452
|
|
1434
1453
|
header_params = {}
|
@@ -1546,10 +1565,11 @@ module Google
|
|
1546
1565
|
# Customize the options with defaults
|
1547
1566
|
metadata = @config.rpcs.create_azure_node_pool.metadata.to_h
|
1548
1567
|
|
1549
|
-
# Set x-goog-api-client
|
1568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1550
1569
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1551
1570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1552
1571
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1572
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1553
1573
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1554
1574
|
|
1555
1575
|
header_params = {}
|
@@ -1654,10 +1674,11 @@ module Google
|
|
1654
1674
|
# Customize the options with defaults
|
1655
1675
|
metadata = @config.rpcs.update_azure_node_pool.metadata.to_h
|
1656
1676
|
|
1657
|
-
# Set x-goog-api-client
|
1677
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1658
1678
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1659
1679
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1660
1680
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1681
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1661
1682
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1662
1683
|
|
1663
1684
|
header_params = {}
|
@@ -1749,10 +1770,11 @@ module Google
|
|
1749
1770
|
# Customize the options with defaults
|
1750
1771
|
metadata = @config.rpcs.get_azure_node_pool.metadata.to_h
|
1751
1772
|
|
1752
|
-
# Set x-goog-api-client
|
1773
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1753
1774
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1754
1775
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1755
1776
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1777
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1756
1778
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1757
1779
|
|
1758
1780
|
header_params = {}
|
@@ -1859,10 +1881,11 @@ module Google
|
|
1859
1881
|
# Customize the options with defaults
|
1860
1882
|
metadata = @config.rpcs.list_azure_node_pools.metadata.to_h
|
1861
1883
|
|
1862
|
-
# Set x-goog-api-client
|
1884
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1863
1885
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1864
1886
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1865
1887
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
1888
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1866
1889
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1867
1890
|
|
1868
1891
|
header_params = {}
|
@@ -1908,7 +1931,7 @@ module Google
|
|
1908
1931
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1909
1932
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1910
1933
|
#
|
1911
|
-
# @overload delete_azure_node_pool(name: nil, validate_only: nil, allow_missing: nil, etag: nil)
|
1934
|
+
# @overload delete_azure_node_pool(name: nil, validate_only: nil, allow_missing: nil, etag: nil, ignore_errors: nil)
|
1912
1935
|
# Pass arguments to `delete_azure_node_pool` via keyword arguments. Note that at
|
1913
1936
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1914
1937
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1941,6 +1964,11 @@ module Google
|
|
1941
1964
|
#
|
1942
1965
|
# If the provided ETag does not match the current etag of the node pool,
|
1943
1966
|
# the request will fail and an ABORTED error will be returned.
|
1967
|
+
# @param ignore_errors [::Boolean]
|
1968
|
+
# Optional. If set to true, the deletion of
|
1969
|
+
# {::Google::Cloud::GkeMultiCloud::V1::AzureNodePool AzureNodePool} resource will
|
1970
|
+
# succeed even if errors occur during deleting in node pool resources. Using
|
1971
|
+
# this parameter may result in orphaned resources in the node pool.
|
1944
1972
|
#
|
1945
1973
|
# @yield [response, operation] Access the result along with the RPC operation
|
1946
1974
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1983,10 +2011,11 @@ module Google
|
|
1983
2011
|
# Customize the options with defaults
|
1984
2012
|
metadata = @config.rpcs.delete_azure_node_pool.metadata.to_h
|
1985
2013
|
|
1986
|
-
# Set x-goog-api-client
|
2014
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1987
2015
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1988
2016
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1989
2017
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
2018
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1990
2019
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1991
2020
|
|
1992
2021
|
header_params = {}
|
@@ -2075,10 +2104,11 @@ module Google
|
|
2075
2104
|
# Customize the options with defaults
|
2076
2105
|
metadata = @config.rpcs.get_azure_open_id_config.metadata.to_h
|
2077
2106
|
|
2078
|
-
# Set x-goog-api-client
|
2107
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2079
2108
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2080
2109
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2081
2110
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
2111
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2082
2112
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2083
2113
|
|
2084
2114
|
header_params = {}
|
@@ -2127,7 +2157,7 @@ module Google
|
|
2127
2157
|
# @param azure_cluster [::String]
|
2128
2158
|
# Required. The AzureCluster, which owns the JsonWebKeys.
|
2129
2159
|
# Format:
|
2130
|
-
# projects/<project-id>/locations/<region>/azureClusters/<cluster-id
|
2160
|
+
# `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`
|
2131
2161
|
#
|
2132
2162
|
# @yield [response, operation] Access the result along with the RPC operation
|
2133
2163
|
# @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::AzureJsonWebKeys]
|
@@ -2163,10 +2193,11 @@ module Google
|
|
2163
2193
|
# Customize the options with defaults
|
2164
2194
|
metadata = @config.rpcs.get_azure_json_web_keys.metadata.to_h
|
2165
2195
|
|
2166
|
-
# Set x-goog-api-client
|
2196
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2167
2197
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2168
2198
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2169
2199
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
2200
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2170
2201
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2171
2202
|
|
2172
2203
|
header_params = {}
|
@@ -2257,10 +2288,11 @@ module Google
|
|
2257
2288
|
# Customize the options with defaults
|
2258
2289
|
metadata = @config.rpcs.get_azure_server_config.metadata.to_h
|
2259
2290
|
|
2260
|
-
# Set x-goog-api-client
|
2291
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2261
2292
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2262
2293
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2263
2294
|
gapic_version: ::Google::Cloud::GkeMultiCloud::V1::VERSION
|
2295
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2264
2296
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2265
2297
|
|
2266
2298
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module AzureClusters
|
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 = "gkemulticloud.$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::GkeMultiCloud::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::GkeMultiCloud::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::GkeMultiCloud::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::GkeMultiCloud::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::GkeMultiCloud::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,
|