google-cloud-gke_hub-v1 0.4.0 → 0.6.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_hub/v1/gke_hub/client.rb +36 -24
- data/lib/google/cloud/gke_hub/v1/gke_hub/operations.rb +5 -3
- data/lib/google/cloud/gke_hub/v1/gke_hub/rest/client.rb +36 -24
- data/lib/google/cloud/gke_hub/v1/gke_hub/rest/operations.rb +9 -7
- data/lib/google/cloud/gke_hub/v1/gke_hub/rest/service_stub.rb +11 -11
- data/lib/google/cloud/gke_hub/v1/gke_hub/rest.rb +4 -1
- data/lib/google/cloud/gke_hub/v1/gke_hub.rb +4 -1
- data/lib/google/cloud/gke_hub/v1/version.rb +1 -1
- data/lib/google/cloud/gkehub/v1/configmanagement/configmanagement_pb.rb +25 -135
- data/lib/google/cloud/gkehub/v1/feature_pb.rb +27 -54
- data/lib/google/cloud/gkehub/v1/membership_pb.rb +26 -65
- data/lib/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb.rb +24 -4
- data/lib/google/cloud/gkehub/v1/service_pb.rb +29 -92
- data/lib/google/cloud/gkehub/v1/service_services_pb.rb +4 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/gkehub/v1/membership.rb +87 -39
- data/proto_docs/google/cloud/gkehub/v1/service.rb +26 -18
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27e7b02fd7adb08c9f32e6140e3689b3a31253a196408c51a292cf416715de28
|
4
|
+
data.tar.gz: cabf715bb8060c89f229459088f0899667168dab79a606484b7e466c307f173c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac483fc43f907cd66427c115edab4bc5ded0369e51d095d1bfc0ba9831926f354266e399795a8cfe12c49ee4037ac219e36e2aaa34be34818da8696998669dbd
|
7
|
+
data.tar.gz: 708c0453e4c75dccfed7092b5877bd44573de8d22d05dc71591110dbe78b938505b3e48642e58785e20b750298747a727dafb89516f1d6a19d81e3831e274dfe
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -36,7 +36,10 @@ module Google
|
|
36
36
|
# * {::Google::Cloud::GkeHub::V1::Membership Membership}
|
37
37
|
# * {::Google::Cloud::GkeHub::V1::Feature Feature}
|
38
38
|
#
|
39
|
-
# GKE Hub is currently
|
39
|
+
# GKE Hub is currently available in the global region and all regions in
|
40
|
+
# https://cloud.google.com/compute/docs/regions-zones. Feature is only
|
41
|
+
# available in global region while membership is global region and all the
|
42
|
+
# regions.
|
40
43
|
#
|
41
44
|
# **Membership management may be non-trivial:** it is recommended to use one
|
42
45
|
# of the Google-provided client libraries or tools where possible when working
|
@@ -141,7 +144,7 @@ module Google
|
|
141
144
|
credentials = @config.credentials
|
142
145
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
143
146
|
# but only if the default endpoint does not have a region prefix.
|
144
|
-
enable_self_signed_jwt = @config.endpoint ==
|
147
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
145
148
|
!@config.endpoint.split(".").first.include?("-")
|
146
149
|
credentials ||= Credentials.default scope: @config.scope,
|
147
150
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -194,19 +197,20 @@ module Google
|
|
194
197
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
195
198
|
#
|
196
199
|
# @param parent [::String]
|
197
|
-
# Required. The parent (project and location) where the Memberships will be
|
198
|
-
# Specified in the format `projects/*/locations/*`.
|
200
|
+
# Required. The parent (project and location) where the Memberships will be
|
201
|
+
# listed. Specified in the format `projects/*/locations/*`.
|
202
|
+
# `projects/*/locations/-` list memberships in all the regions.
|
199
203
|
# @param page_size [::Integer]
|
200
|
-
# Optional. When requesting a 'page' of resources, `page_size` specifies
|
201
|
-
# resources to return. If unspecified or set to 0, all resources
|
202
|
-
# be returned.
|
204
|
+
# Optional. When requesting a 'page' of resources, `page_size` specifies
|
205
|
+
# number of resources to return. If unspecified or set to 0, all resources
|
206
|
+
# will be returned.
|
203
207
|
# @param page_token [::String]
|
204
208
|
# Optional. Token returned by previous call to `ListMemberships` which
|
205
209
|
# specifies the position in the list from where to continue listing the
|
206
210
|
# resources.
|
207
211
|
# @param filter [::String]
|
208
|
-
# Optional. Lists Memberships that match the filter expression, following the
|
209
|
-
# outlined in https://google.aip.dev/160.
|
212
|
+
# Optional. Lists Memberships that match the filter expression, following the
|
213
|
+
# syntax outlined in https://google.aip.dev/160.
|
210
214
|
#
|
211
215
|
# Examples:
|
212
216
|
#
|
@@ -612,11 +616,11 @@ module Google
|
|
612
616
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
613
617
|
#
|
614
618
|
# @param parent [::String]
|
615
|
-
# Required. The parent (project and location) where the Memberships will be
|
616
|
-
# Specified in the format `projects/*/locations/*`.
|
619
|
+
# Required. The parent (project and location) where the Memberships will be
|
620
|
+
# created. Specified in the format `projects/*/locations/*`.
|
617
621
|
# @param membership_id [::String]
|
618
|
-
# Required. Client chosen ID for the membership. `membership_id` must be a
|
619
|
-
# 1123 compliant DNS label:
|
622
|
+
# Required. Client chosen ID for the membership. `membership_id` must be a
|
623
|
+
# valid RFC 1123 compliant DNS label:
|
620
624
|
#
|
621
625
|
# 1. At most 63 characters in length
|
622
626
|
# 2. It must consist of lower case alphanumeric characters or `-`
|
@@ -842,7 +846,7 @@ module Google
|
|
842
846
|
# @param options [::Gapic::CallOptions, ::Hash]
|
843
847
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
844
848
|
#
|
845
|
-
# @overload delete_membership(name: nil, request_id: nil)
|
849
|
+
# @overload delete_membership(name: nil, request_id: nil, force: nil)
|
846
850
|
# Pass arguments to `delete_membership` via keyword arguments. Note that at
|
847
851
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
848
852
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -864,6 +868,10 @@ module Google
|
|
864
868
|
#
|
865
869
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
866
870
|
# not supported (00000000-0000-0000-0000-000000000000).
|
871
|
+
# @param force [::Boolean]
|
872
|
+
# Optional. If set to true, any subresource from this Membership will also be
|
873
|
+
# deleted. Otherwise, the request will only work if the Membership has no
|
874
|
+
# subresource.
|
867
875
|
#
|
868
876
|
# @yield [response, operation] Access the result along with the RPC operation
|
869
877
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1309,22 +1317,24 @@ module Google
|
|
1309
1317
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1310
1318
|
#
|
1311
1319
|
# @param name [::String]
|
1312
|
-
# Required. The Membership resource name the Agent will associate with, in
|
1313
|
-
# `projects/*/locations/*/memberships/*`.
|
1320
|
+
# Required. The Membership resource name the Agent will associate with, in
|
1321
|
+
# the format `projects/*/locations/*/memberships/*`.
|
1314
1322
|
# @param namespace [::String]
|
1315
|
-
# Optional. Namespace for GKE Connect agent resources. Defaults to
|
1323
|
+
# Optional. Namespace for GKE Connect agent resources. Defaults to
|
1324
|
+
# `gke-connect`.
|
1316
1325
|
#
|
1317
1326
|
# The Connect Agent is authorized automatically when run in the default
|
1318
1327
|
# namespace. Otherwise, explicit authorization must be granted with an
|
1319
1328
|
# additional IAM binding.
|
1320
1329
|
# @param proxy [::String]
|
1321
|
-
# Optional. URI of a proxy if connectivity from the agent to
|
1322
|
-
# requires the use of a proxy. Format must be in
|
1323
|
-
# `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
|
1330
|
+
# Optional. URI of a proxy if connectivity from the agent to
|
1331
|
+
# gkeconnect.googleapis.com requires the use of a proxy. Format must be in
|
1332
|
+
# the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
|
1324
1333
|
# supported by the proxy. This will direct the connect agent's outbound
|
1325
1334
|
# traffic through a HTTP(S) proxy.
|
1326
1335
|
# @param version [::String]
|
1327
|
-
# Optional. The Connect agent version to use. Defaults to the most current
|
1336
|
+
# Optional. The Connect agent version to use. Defaults to the most current
|
1337
|
+
# version.
|
1328
1338
|
# @param is_upgrade [::Boolean]
|
1329
1339
|
# Optional. If true, generate the resources for upgrade only. Some resources
|
1330
1340
|
# generated only for installation (e.g. secrets) will be excluded.
|
@@ -1436,9 +1446,9 @@ module Google
|
|
1436
1446
|
# * (`String`) The path to a service account key file in JSON format
|
1437
1447
|
# * (`Hash`) A service account key as a Hash
|
1438
1448
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1439
|
-
# (see the [googleauth docs](https://
|
1449
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1440
1450
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1441
|
-
# (see the [signet docs](https://
|
1451
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1442
1452
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1443
1453
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1444
1454
|
# * (`nil`) indicating no credentials
|
@@ -1480,7 +1490,9 @@ module Google
|
|
1480
1490
|
class Configuration
|
1481
1491
|
extend ::Gapic::Config
|
1482
1492
|
|
1483
|
-
|
1493
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
1494
|
+
|
1495
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1484
1496
|
config_attr :credentials, nil do |value|
|
1485
1497
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1486
1498
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -38,7 +38,10 @@ module Google
|
|
38
38
|
# * {::Google::Cloud::GkeHub::V1::Membership Membership}
|
39
39
|
# * {::Google::Cloud::GkeHub::V1::Feature Feature}
|
40
40
|
#
|
41
|
-
# GKE Hub is currently
|
41
|
+
# GKE Hub is currently available in the global region and all regions in
|
42
|
+
# https://cloud.google.com/compute/docs/regions-zones. Feature is only
|
43
|
+
# available in global region while membership is global region and all the
|
44
|
+
# regions.
|
42
45
|
#
|
43
46
|
# **Membership management may be non-trivial:** it is recommended to use one
|
44
47
|
# of the Google-provided client libraries or tools where possible when working
|
@@ -137,7 +140,7 @@ module Google
|
|
137
140
|
credentials = @config.credentials
|
138
141
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
139
142
|
# but only if the default endpoint does not have a region prefix.
|
140
|
-
enable_self_signed_jwt = @config.endpoint ==
|
143
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
141
144
|
!@config.endpoint.split(".").first.include?("-")
|
142
145
|
credentials ||= Credentials.default scope: @config.scope,
|
143
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -185,19 +188,20 @@ module Google
|
|
185
188
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
186
189
|
#
|
187
190
|
# @param parent [::String]
|
188
|
-
# Required. The parent (project and location) where the Memberships will be
|
189
|
-
# Specified in the format `projects/*/locations/*`.
|
191
|
+
# Required. The parent (project and location) where the Memberships will be
|
192
|
+
# listed. Specified in the format `projects/*/locations/*`.
|
193
|
+
# `projects/*/locations/-` list memberships in all the regions.
|
190
194
|
# @param page_size [::Integer]
|
191
|
-
# Optional. When requesting a 'page' of resources, `page_size` specifies
|
192
|
-
# resources to return. If unspecified or set to 0, all resources
|
193
|
-
# be returned.
|
195
|
+
# Optional. When requesting a 'page' of resources, `page_size` specifies
|
196
|
+
# number of resources to return. If unspecified or set to 0, all resources
|
197
|
+
# will be returned.
|
194
198
|
# @param page_token [::String]
|
195
199
|
# Optional. Token returned by previous call to `ListMemberships` which
|
196
200
|
# specifies the position in the list from where to continue listing the
|
197
201
|
# resources.
|
198
202
|
# @param filter [::String]
|
199
|
-
# Optional. Lists Memberships that match the filter expression, following the
|
200
|
-
# outlined in https://google.aip.dev/160.
|
203
|
+
# Optional. Lists Memberships that match the filter expression, following the
|
204
|
+
# syntax outlined in https://google.aip.dev/160.
|
201
205
|
#
|
202
206
|
# Examples:
|
203
207
|
#
|
@@ -502,11 +506,11 @@ module Google
|
|
502
506
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
503
507
|
#
|
504
508
|
# @param parent [::String]
|
505
|
-
# Required. The parent (project and location) where the Memberships will be
|
506
|
-
# Specified in the format `projects/*/locations/*`.
|
509
|
+
# Required. The parent (project and location) where the Memberships will be
|
510
|
+
# created. Specified in the format `projects/*/locations/*`.
|
507
511
|
# @param membership_id [::String]
|
508
|
-
# Required. Client chosen ID for the membership. `membership_id` must be a
|
509
|
-
# 1123 compliant DNS label:
|
512
|
+
# Required. Client chosen ID for the membership. `membership_id` must be a
|
513
|
+
# valid RFC 1123 compliant DNS label:
|
510
514
|
#
|
511
515
|
# 1. At most 63 characters in length
|
512
516
|
# 2. It must consist of lower case alphanumeric characters or `-`
|
@@ -672,7 +676,7 @@ module Google
|
|
672
676
|
# @param options [::Gapic::CallOptions, ::Hash]
|
673
677
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
674
678
|
#
|
675
|
-
# @overload delete_membership(name: nil, request_id: nil)
|
679
|
+
# @overload delete_membership(name: nil, request_id: nil, force: nil)
|
676
680
|
# Pass arguments to `delete_membership` via keyword arguments. Note that at
|
677
681
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
678
682
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -694,6 +698,10 @@ module Google
|
|
694
698
|
#
|
695
699
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
696
700
|
# not supported (00000000-0000-0000-0000-000000000000).
|
701
|
+
# @param force [::Boolean]
|
702
|
+
# Optional. If set to true, any subresource from this Membership will also be
|
703
|
+
# deleted. Otherwise, the request will only work if the Membership has no
|
704
|
+
# subresource.
|
697
705
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
698
706
|
# @yieldparam result [::Gapic::Operation]
|
699
707
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1019,22 +1027,24 @@ module Google
|
|
1019
1027
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1020
1028
|
#
|
1021
1029
|
# @param name [::String]
|
1022
|
-
# Required. The Membership resource name the Agent will associate with, in
|
1023
|
-
# `projects/*/locations/*/memberships/*`.
|
1030
|
+
# Required. The Membership resource name the Agent will associate with, in
|
1031
|
+
# the format `projects/*/locations/*/memberships/*`.
|
1024
1032
|
# @param namespace [::String]
|
1025
|
-
# Optional. Namespace for GKE Connect agent resources. Defaults to
|
1033
|
+
# Optional. Namespace for GKE Connect agent resources. Defaults to
|
1034
|
+
# `gke-connect`.
|
1026
1035
|
#
|
1027
1036
|
# The Connect Agent is authorized automatically when run in the default
|
1028
1037
|
# namespace. Otherwise, explicit authorization must be granted with an
|
1029
1038
|
# additional IAM binding.
|
1030
1039
|
# @param proxy [::String]
|
1031
|
-
# Optional. URI of a proxy if connectivity from the agent to
|
1032
|
-
# requires the use of a proxy. Format must be in
|
1033
|
-
# `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
|
1040
|
+
# Optional. URI of a proxy if connectivity from the agent to
|
1041
|
+
# gkeconnect.googleapis.com requires the use of a proxy. Format must be in
|
1042
|
+
# the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
|
1034
1043
|
# supported by the proxy. This will direct the connect agent's outbound
|
1035
1044
|
# traffic through a HTTP(S) proxy.
|
1036
1045
|
# @param version [::String]
|
1037
|
-
# Optional. The Connect agent version to use. Defaults to the most current
|
1046
|
+
# Optional. The Connect agent version to use. Defaults to the most current
|
1047
|
+
# version.
|
1038
1048
|
# @param is_upgrade [::Boolean]
|
1039
1049
|
# Optional. If true, generate the resources for upgrade only. Some resources
|
1040
1050
|
# generated only for installation (e.g. secrets) will be excluded.
|
@@ -1123,9 +1133,9 @@ module Google
|
|
1123
1133
|
# * (`String`) The path to a service account key file in JSON format
|
1124
1134
|
# * (`Hash`) A service account key as a Hash
|
1125
1135
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1126
|
-
# (see the [googleauth docs](https://
|
1136
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1127
1137
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1128
|
-
# (see the [signet docs](https://
|
1138
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1129
1139
|
# * (`nil`) indicating no credentials
|
1130
1140
|
# @return [::Object]
|
1131
1141
|
# @!attribute [rw] scope
|
@@ -1158,7 +1168,9 @@ module Google
|
|
1158
1168
|
class Configuration
|
1159
1169
|
extend ::Gapic::Config
|
1160
1170
|
|
1161
|
-
|
1171
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
1172
|
+
|
1173
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1162
1174
|
config_attr :credentials, nil do |value|
|
1163
1175
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1164
1176
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_memberships_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_features_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_membership_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_feature_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_membership_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_feature_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_membership_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_feature_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_membership_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_feature_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_generate_connect_manifest_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -41,7 +41,10 @@ module Google
|
|
41
41
|
# * {::Google::Cloud::GkeHub::V1::Membership Membership}
|
42
42
|
# * {::Google::Cloud::GkeHub::V1::Feature Feature}
|
43
43
|
#
|
44
|
-
# GKE Hub is currently
|
44
|
+
# GKE Hub is currently available in the global region and all regions in
|
45
|
+
# https://cloud.google.com/compute/docs/regions-zones. Feature is only
|
46
|
+
# available in global region while membership is global region and all the
|
47
|
+
# regions.
|
45
48
|
#
|
46
49
|
# **Membership management may be non-trivial:** it is recommended to use one
|
47
50
|
# of the Google-provided client libraries or tools where possible when working
|
@@ -42,7 +42,10 @@ module Google
|
|
42
42
|
# * {::Google::Cloud::GkeHub::V1::Membership Membership}
|
43
43
|
# * {::Google::Cloud::GkeHub::V1::Feature Feature}
|
44
44
|
#
|
45
|
-
# GKE Hub is currently
|
45
|
+
# GKE Hub is currently available in the global region and all regions in
|
46
|
+
# https://cloud.google.com/compute/docs/regions-zones. Feature is only
|
47
|
+
# available in global region while membership is global region and all the
|
48
|
+
# regions.
|
46
49
|
#
|
47
50
|
# **Membership management may be non-trivial:** it is recommended to use one
|
48
51
|
# of the Google-provided client libraries or tools where possible when working
|