google-cloud-gke_hub-v1beta1 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/client.rb +14 -3
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/operations.rb +13 -2
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/rest/client.rb +157 -2
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/rest/operations.rb +82 -5
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/gke_hub/v1beta1/version.rb +1 -1
- data/lib/google/cloud/gkehub/v1beta1/membership_pb.rb +27 -193
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7e4dd9a7690470ee177508a45d700c918732c7041325de1c05d0e437767a38
|
4
|
+
data.tar.gz: 0d0b642c4699a00630efa4a26ebd4c3a44933a56aa92b18be5da75caa85a9788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 247be229bd48bbac06f5c5f30296bc8bcc7cc2c2f430747e161a752bc8e160a5cbaa6f36512beb8832b1e0d66d835c009f3800b85c45e52fb2c80c1d88c680c3
|
7
|
+
data.tar.gz: 8eda22efb521bf1035b0940122e814534909676eba7cb074d0c668d2db59ee79470c8f5ca9f6d8715cb9518284d6d0bfcaee0e9ffc59c37b67eef2a1afc0407d
|
@@ -139,7 +139,7 @@ module Google
|
|
139
139
|
credentials = @config.credentials
|
140
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
141
141
|
# but only if the default endpoint does not have a region prefix.
|
142
|
-
enable_self_signed_jwt = @config.endpoint ==
|
142
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
143
143
|
!@config.endpoint.split(".").first.include?("-")
|
144
144
|
credentials ||= Credentials.default scope: @config.scope,
|
145
145
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -172,7 +172,8 @@ module Google
|
|
172
172
|
credentials: credentials,
|
173
173
|
endpoint: @config.endpoint,
|
174
174
|
channel_args: @config.channel_args,
|
175
|
-
interceptors: @config.interceptors
|
175
|
+
interceptors: @config.interceptors,
|
176
|
+
channel_pool_config: @config.channel_pool
|
176
177
|
)
|
177
178
|
end
|
178
179
|
|
@@ -1152,7 +1153,9 @@ module Google
|
|
1152
1153
|
class Configuration
|
1153
1154
|
extend ::Gapic::Config
|
1154
1155
|
|
1155
|
-
|
1156
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
1157
|
+
|
1158
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1156
1159
|
config_attr :credentials, nil do |value|
|
1157
1160
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1158
1161
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1187,6 +1190,14 @@ module Google
|
|
1187
1190
|
end
|
1188
1191
|
end
|
1189
1192
|
|
1193
|
+
##
|
1194
|
+
# Configuration for the channel pool
|
1195
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1196
|
+
#
|
1197
|
+
def channel_pool
|
1198
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1199
|
+
end
|
1200
|
+
|
1190
1201
|
##
|
1191
1202
|
# Configuration RPC class for the GkeHubMembershipService API.
|
1192
1203
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
credentials = @config.credentials
|
136
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
137
137
|
# but only if the default endpoint does not have a region prefix.
|
138
|
-
enable_self_signed_jwt = @config.endpoint ==
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
139
139
|
!@config.endpoint.split(".").first.include?("-")
|
140
140
|
credentials ||= Credentials.default scope: @config.scope,
|
141
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -253,6 +253,26 @@ module Google
|
|
253
253
|
# @return [::Google::Cloud::GkeHub::V1beta1::ListMembershipsResponse]
|
254
254
|
#
|
255
255
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
|
+
#
|
257
|
+
# @example Basic example
|
258
|
+
# require "google/cloud/gke_hub/v1beta1"
|
259
|
+
#
|
260
|
+
# # Create a client object. The client can be reused for multiple calls.
|
261
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
262
|
+
#
|
263
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
264
|
+
# request = Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest.new
|
265
|
+
#
|
266
|
+
# # Call the list_memberships method.
|
267
|
+
# result = client.list_memberships request
|
268
|
+
#
|
269
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
270
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
271
|
+
# result.each do |item|
|
272
|
+
# # Each element is of type ::Google::Cloud::GkeHub::V1beta1::Membership.
|
273
|
+
# p item
|
274
|
+
# end
|
275
|
+
#
|
256
276
|
def list_memberships request, options = nil
|
257
277
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
258
278
|
|
@@ -316,6 +336,22 @@ module Google
|
|
316
336
|
# @return [::Google::Cloud::GkeHub::V1beta1::Membership]
|
317
337
|
#
|
318
338
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
339
|
+
#
|
340
|
+
# @example Basic example
|
341
|
+
# require "google/cloud/gke_hub/v1beta1"
|
342
|
+
#
|
343
|
+
# # Create a client object. The client can be reused for multiple calls.
|
344
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
345
|
+
#
|
346
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
347
|
+
# request = Google::Cloud::GkeHub::V1beta1::GetMembershipRequest.new
|
348
|
+
#
|
349
|
+
# # Call the get_membership method.
|
350
|
+
# result = client.get_membership request
|
351
|
+
#
|
352
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1beta1::Membership.
|
353
|
+
# p result
|
354
|
+
#
|
319
355
|
def get_membership request, options = nil
|
320
356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
321
357
|
|
@@ -409,6 +445,29 @@ module Google
|
|
409
445
|
# @return [::Gapic::Operation]
|
410
446
|
#
|
411
447
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
448
|
+
#
|
449
|
+
# @example Basic example
|
450
|
+
# require "google/cloud/gke_hub/v1beta1"
|
451
|
+
#
|
452
|
+
# # Create a client object. The client can be reused for multiple calls.
|
453
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
454
|
+
#
|
455
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
456
|
+
# request = Google::Cloud::GkeHub::V1beta1::CreateMembershipRequest.new
|
457
|
+
#
|
458
|
+
# # Call the create_membership method.
|
459
|
+
# result = client.create_membership request
|
460
|
+
#
|
461
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
462
|
+
# # check the status of an operation, cancel it, or wait for results.
|
463
|
+
# # Here is how to wait for a response.
|
464
|
+
# result.wait_until_done! timeout: 60
|
465
|
+
# if result.response?
|
466
|
+
# p result.response
|
467
|
+
# else
|
468
|
+
# puts "No response received."
|
469
|
+
# end
|
470
|
+
#
|
412
471
|
def create_membership request, options = nil
|
413
472
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
414
473
|
|
@@ -495,6 +554,29 @@ module Google
|
|
495
554
|
# @return [::Gapic::Operation]
|
496
555
|
#
|
497
556
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
557
|
+
#
|
558
|
+
# @example Basic example
|
559
|
+
# require "google/cloud/gke_hub/v1beta1"
|
560
|
+
#
|
561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
562
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
563
|
+
#
|
564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
565
|
+
# request = Google::Cloud::GkeHub::V1beta1::DeleteMembershipRequest.new
|
566
|
+
#
|
567
|
+
# # Call the delete_membership method.
|
568
|
+
# result = client.delete_membership request
|
569
|
+
#
|
570
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
571
|
+
# # check the status of an operation, cancel it, or wait for results.
|
572
|
+
# # Here is how to wait for a response.
|
573
|
+
# result.wait_until_done! timeout: 60
|
574
|
+
# if result.response?
|
575
|
+
# p result.response
|
576
|
+
# else
|
577
|
+
# puts "No response received."
|
578
|
+
# end
|
579
|
+
#
|
498
580
|
def delete_membership request, options = nil
|
499
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
500
582
|
|
@@ -585,6 +667,29 @@ module Google
|
|
585
667
|
# @return [::Gapic::Operation]
|
586
668
|
#
|
587
669
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
670
|
+
#
|
671
|
+
# @example Basic example
|
672
|
+
# require "google/cloud/gke_hub/v1beta1"
|
673
|
+
#
|
674
|
+
# # Create a client object. The client can be reused for multiple calls.
|
675
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
676
|
+
#
|
677
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
678
|
+
# request = Google::Cloud::GkeHub::V1beta1::UpdateMembershipRequest.new
|
679
|
+
#
|
680
|
+
# # Call the update_membership method.
|
681
|
+
# result = client.update_membership request
|
682
|
+
#
|
683
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
684
|
+
# # check the status of an operation, cancel it, or wait for results.
|
685
|
+
# # Here is how to wait for a response.
|
686
|
+
# result.wait_until_done! timeout: 60
|
687
|
+
# if result.response?
|
688
|
+
# p result.response
|
689
|
+
# else
|
690
|
+
# puts "No response received."
|
691
|
+
# end
|
692
|
+
#
|
588
693
|
def update_membership request, options = nil
|
589
694
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
590
695
|
|
@@ -665,6 +770,22 @@ module Google
|
|
665
770
|
# @return [::Google::Cloud::GkeHub::V1beta1::GenerateConnectManifestResponse]
|
666
771
|
#
|
667
772
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
773
|
+
#
|
774
|
+
# @example Basic example
|
775
|
+
# require "google/cloud/gke_hub/v1beta1"
|
776
|
+
#
|
777
|
+
# # Create a client object. The client can be reused for multiple calls.
|
778
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
779
|
+
#
|
780
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
781
|
+
# request = Google::Cloud::GkeHub::V1beta1::GenerateConnectManifestRequest.new
|
782
|
+
#
|
783
|
+
# # Call the generate_connect_manifest method.
|
784
|
+
# result = client.generate_connect_manifest request
|
785
|
+
#
|
786
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1beta1::GenerateConnectManifestResponse.
|
787
|
+
# p result
|
788
|
+
#
|
668
789
|
def generate_connect_manifest request, options = nil
|
669
790
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
670
791
|
|
@@ -736,6 +857,22 @@ module Google
|
|
736
857
|
# @return [::Google::Cloud::GkeHub::V1beta1::ValidateExclusivityResponse]
|
737
858
|
#
|
738
859
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
860
|
+
#
|
861
|
+
# @example Basic example
|
862
|
+
# require "google/cloud/gke_hub/v1beta1"
|
863
|
+
#
|
864
|
+
# # Create a client object. The client can be reused for multiple calls.
|
865
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
866
|
+
#
|
867
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
868
|
+
# request = Google::Cloud::GkeHub::V1beta1::ValidateExclusivityRequest.new
|
869
|
+
#
|
870
|
+
# # Call the validate_exclusivity method.
|
871
|
+
# result = client.validate_exclusivity request
|
872
|
+
#
|
873
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1beta1::ValidateExclusivityResponse.
|
874
|
+
# p result
|
875
|
+
#
|
739
876
|
def validate_exclusivity request, options = nil
|
740
877
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
741
878
|
|
@@ -818,6 +955,22 @@ module Google
|
|
818
955
|
# @return [::Google::Cloud::GkeHub::V1beta1::GenerateExclusivityManifestResponse]
|
819
956
|
#
|
820
957
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
958
|
+
#
|
959
|
+
# @example Basic example
|
960
|
+
# require "google/cloud/gke_hub/v1beta1"
|
961
|
+
#
|
962
|
+
# # Create a client object. The client can be reused for multiple calls.
|
963
|
+
# client = Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Rest::Client.new
|
964
|
+
#
|
965
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
966
|
+
# request = Google::Cloud::GkeHub::V1beta1::GenerateExclusivityManifestRequest.new
|
967
|
+
#
|
968
|
+
# # Call the generate_exclusivity_manifest method.
|
969
|
+
# result = client.generate_exclusivity_manifest request
|
970
|
+
#
|
971
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1beta1::GenerateExclusivityManifestResponse.
|
972
|
+
# p result
|
973
|
+
#
|
821
974
|
def generate_exclusivity_manifest request, options = nil
|
822
975
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
823
976
|
|
@@ -926,7 +1079,9 @@ module Google
|
|
926
1079
|
class Configuration
|
927
1080
|
extend ::Gapic::Config
|
928
1081
|
|
929
|
-
|
1082
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
1083
|
+
|
1084
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
930
1085
|
config_attr :credentials, nil do |value|
|
931
1086
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
932
1087
|
allowed.any? { |klass| klass === value }
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "gkehub.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
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_get_membership_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_create_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_delete_membership_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_update_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_generate_connect_manifest_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_validate_exclusivity_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_generate_exclusivity_manifest_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
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/gkehub/v1beta1/membership.proto
|
3
4
|
|
@@ -13,201 +14,34 @@ require 'google/protobuf/field_mask_pb'
|
|
13
14
|
require 'google/protobuf/timestamp_pb'
|
14
15
|
require 'google/rpc/status_pb'
|
15
16
|
|
16
|
-
|
17
|
-
add_file("google/cloud/gkehub/v1beta1/membership.proto", :syntax => :proto3) do
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
41
|
-
add_message "google.cloud.gkehub.v1beta1.MembershipEndpoint" do
|
42
|
-
optional :kubernetes_metadata, :message, 5, "google.cloud.gkehub.v1beta1.KubernetesMetadata"
|
43
|
-
optional :kubernetes_resource, :message, 6, "google.cloud.gkehub.v1beta1.KubernetesResource"
|
44
|
-
oneof :type do
|
45
|
-
optional :gke_cluster, :message, 4, "google.cloud.gkehub.v1beta1.GkeCluster"
|
46
|
-
optional :on_prem_cluster, :message, 7, "google.cloud.gkehub.v1beta1.OnPremCluster"
|
47
|
-
optional :multi_cloud_cluster, :message, 8, "google.cloud.gkehub.v1beta1.MultiCloudCluster"
|
48
|
-
optional :edge_cluster, :message, 9, "google.cloud.gkehub.v1beta1.EdgeCluster"
|
49
|
-
optional :appliance_cluster, :message, 10, "google.cloud.gkehub.v1beta1.ApplianceCluster"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
add_message "google.cloud.gkehub.v1beta1.KubernetesResource" do
|
53
|
-
optional :membership_cr_manifest, :string, 1
|
54
|
-
repeated :membership_resources, :message, 2, "google.cloud.gkehub.v1beta1.ResourceManifest"
|
55
|
-
repeated :connect_resources, :message, 3, "google.cloud.gkehub.v1beta1.ResourceManifest"
|
56
|
-
optional :resource_options, :message, 4, "google.cloud.gkehub.v1beta1.ResourceOptions"
|
57
|
-
end
|
58
|
-
add_message "google.cloud.gkehub.v1beta1.ResourceOptions" do
|
59
|
-
optional :connect_version, :string, 1
|
60
|
-
optional :v1beta1_crd, :bool, 2
|
61
|
-
optional :k8s_version, :string, 3
|
62
|
-
end
|
63
|
-
add_message "google.cloud.gkehub.v1beta1.ResourceManifest" do
|
64
|
-
optional :manifest, :string, 1
|
65
|
-
optional :cluster_scoped, :bool, 2
|
66
|
-
end
|
67
|
-
add_message "google.cloud.gkehub.v1beta1.GkeCluster" do
|
68
|
-
optional :resource_link, :string, 1
|
69
|
-
optional :cluster_missing, :bool, 3
|
70
|
-
end
|
71
|
-
add_message "google.cloud.gkehub.v1beta1.OnPremCluster" do
|
72
|
-
optional :resource_link, :string, 1
|
73
|
-
optional :cluster_missing, :bool, 2
|
74
|
-
optional :admin_cluster, :bool, 3
|
75
|
-
optional :cluster_type, :enum, 4, "google.cloud.gkehub.v1beta1.OnPremCluster.ClusterType"
|
76
|
-
end
|
77
|
-
add_enum "google.cloud.gkehub.v1beta1.OnPremCluster.ClusterType" do
|
78
|
-
value :CLUSTERTYPE_UNSPECIFIED, 0
|
79
|
-
value :BOOTSTRAP, 1
|
80
|
-
value :HYBRID, 2
|
81
|
-
value :STANDALONE, 3
|
82
|
-
value :USER, 4
|
83
|
-
end
|
84
|
-
add_message "google.cloud.gkehub.v1beta1.MultiCloudCluster" do
|
85
|
-
optional :resource_link, :string, 1
|
86
|
-
optional :cluster_missing, :bool, 2
|
87
|
-
end
|
88
|
-
add_message "google.cloud.gkehub.v1beta1.EdgeCluster" do
|
89
|
-
optional :resource_link, :string, 1
|
90
|
-
end
|
91
|
-
add_message "google.cloud.gkehub.v1beta1.ApplianceCluster" do
|
92
|
-
optional :resource_link, :string, 1
|
93
|
-
end
|
94
|
-
add_message "google.cloud.gkehub.v1beta1.KubernetesMetadata" do
|
95
|
-
optional :kubernetes_api_server_version, :string, 1
|
96
|
-
optional :node_provider_id, :string, 2
|
97
|
-
optional :node_count, :int32, 3
|
98
|
-
optional :vcpu_count, :int32, 4
|
99
|
-
optional :memory_mb, :int32, 5
|
100
|
-
optional :update_time, :message, 100, "google.protobuf.Timestamp"
|
101
|
-
end
|
102
|
-
add_message "google.cloud.gkehub.v1beta1.Authority" do
|
103
|
-
optional :issuer, :string, 1
|
104
|
-
optional :workload_identity_pool, :string, 2
|
105
|
-
optional :identity_provider, :string, 3
|
106
|
-
optional :oidc_jwks, :bytes, 4
|
107
|
-
end
|
108
|
-
add_message "google.cloud.gkehub.v1beta1.MonitoringConfig" do
|
109
|
-
optional :project_id, :string, 1
|
110
|
-
optional :location, :string, 2
|
111
|
-
optional :cluster, :string, 3
|
112
|
-
optional :kubernetes_metrics_prefix, :string, 4
|
113
|
-
optional :cluster_hash, :string, 5
|
114
|
-
end
|
115
|
-
add_message "google.cloud.gkehub.v1beta1.MembershipState" do
|
116
|
-
optional :code, :enum, 1, "google.cloud.gkehub.v1beta1.MembershipState.Code"
|
117
|
-
optional :description, :string, 2
|
118
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
119
|
-
end
|
120
|
-
add_enum "google.cloud.gkehub.v1beta1.MembershipState.Code" do
|
121
|
-
value :CODE_UNSPECIFIED, 0
|
122
|
-
value :CREATING, 1
|
123
|
-
value :READY, 2
|
124
|
-
value :DELETING, 3
|
125
|
-
value :UPDATING, 4
|
126
|
-
value :SERVICE_UPDATING, 5
|
127
|
-
end
|
128
|
-
add_message "google.cloud.gkehub.v1beta1.ListMembershipsRequest" do
|
129
|
-
optional :parent, :string, 1
|
130
|
-
optional :page_size, :int32, 2
|
131
|
-
optional :page_token, :string, 3
|
132
|
-
optional :filter, :string, 4
|
133
|
-
optional :order_by, :string, 5
|
134
|
-
end
|
135
|
-
add_message "google.cloud.gkehub.v1beta1.ListMembershipsResponse" do
|
136
|
-
repeated :resources, :message, 1, "google.cloud.gkehub.v1beta1.Membership"
|
137
|
-
optional :next_page_token, :string, 2
|
138
|
-
repeated :unreachable, :string, 3
|
139
|
-
end
|
140
|
-
add_message "google.cloud.gkehub.v1beta1.GetMembershipRequest" do
|
141
|
-
optional :name, :string, 1
|
142
|
-
end
|
143
|
-
add_message "google.cloud.gkehub.v1beta1.CreateMembershipRequest" do
|
144
|
-
optional :parent, :string, 1
|
145
|
-
optional :membership_id, :string, 2
|
146
|
-
optional :resource, :message, 3, "google.cloud.gkehub.v1beta1.Membership"
|
147
|
-
optional :request_id, :string, 4
|
148
|
-
end
|
149
|
-
add_message "google.cloud.gkehub.v1beta1.DeleteMembershipRequest" do
|
150
|
-
optional :name, :string, 1
|
151
|
-
optional :request_id, :string, 4
|
152
|
-
optional :force, :bool, 5
|
153
|
-
end
|
154
|
-
add_message "google.cloud.gkehub.v1beta1.UpdateMembershipRequest" do
|
155
|
-
optional :name, :string, 1
|
156
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
157
|
-
optional :resource, :message, 3, "google.cloud.gkehub.v1beta1.Membership"
|
158
|
-
optional :request_id, :string, 4
|
159
|
-
end
|
160
|
-
add_message "google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest" do
|
161
|
-
optional :name, :string, 1
|
162
|
-
optional :connect_agent, :message, 2, "google.cloud.gkehub.v1beta1.ConnectAgent"
|
163
|
-
optional :version, :string, 3
|
164
|
-
optional :is_upgrade, :bool, 4
|
165
|
-
optional :registry, :string, 5
|
166
|
-
optional :image_pull_secret_content, :bytes, 6
|
167
|
-
end
|
168
|
-
add_message "google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse" do
|
169
|
-
repeated :manifest, :message, 1, "google.cloud.gkehub.v1beta1.ConnectAgentResource"
|
170
|
-
end
|
171
|
-
add_message "google.cloud.gkehub.v1beta1.ConnectAgentResource" do
|
172
|
-
optional :type, :message, 1, "google.cloud.gkehub.v1beta1.TypeMeta"
|
173
|
-
optional :manifest, :string, 2
|
174
|
-
end
|
175
|
-
add_message "google.cloud.gkehub.v1beta1.TypeMeta" do
|
176
|
-
optional :kind, :string, 1
|
177
|
-
optional :api_version, :string, 2
|
178
|
-
end
|
179
|
-
add_message "google.cloud.gkehub.v1beta1.ConnectAgent" do
|
180
|
-
optional :name, :string, 1
|
181
|
-
optional :proxy, :bytes, 2
|
182
|
-
optional :namespace, :string, 3
|
183
|
-
end
|
184
|
-
add_message "google.cloud.gkehub.v1beta1.ValidateExclusivityRequest" do
|
185
|
-
optional :parent, :string, 1
|
186
|
-
optional :cr_manifest, :string, 2
|
187
|
-
optional :intended_membership, :string, 3
|
188
|
-
end
|
189
|
-
add_message "google.cloud.gkehub.v1beta1.ValidateExclusivityResponse" do
|
190
|
-
optional :status, :message, 1, "google.rpc.Status"
|
191
|
-
end
|
192
|
-
add_message "google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest" do
|
193
|
-
optional :name, :string, 1
|
194
|
-
optional :crd_manifest, :string, 2
|
195
|
-
optional :cr_manifest, :string, 3
|
196
|
-
end
|
197
|
-
add_message "google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse" do
|
198
|
-
optional :crd_manifest, :string, 1
|
199
|
-
optional :cr_manifest, :string, 2
|
200
|
-
end
|
201
|
-
add_message "google.cloud.gkehub.v1beta1.OperationMetadata" do
|
202
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
203
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
204
|
-
optional :target, :string, 3
|
205
|
-
optional :verb, :string, 4
|
206
|
-
optional :status_detail, :string, 5
|
207
|
-
optional :cancel_requested, :bool, 6
|
208
|
-
optional :api_version, :string, 7
|
17
|
+
|
18
|
+
descriptor_data = "\n,google/cloud/gkehub/v1beta1/membership.proto\x12\x1bgoogle.cloud.gkehub.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x88\x08\n\nMembership\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12H\n\x06labels\x18\x02 \x03(\x0b\x32\x33.google.cloud.gkehub.v1beta1.Membership.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x08\x65ndpoint\x18\x04 \x01(\x0b\x32/.google.cloud.gkehub.v1beta1.MembershipEndpointB\x03\xe0\x41\x01H\x00\x12@\n\x05state\x18\x05 \x01(\x0b\x32,.google.cloud.gkehub.v1beta1.MembershipStateB\x03\xe0\x41\x03\x12>\n\tauthority\x18\t \x01(\x0b\x32&.google.cloud.gkehub.v1beta1.AuthorityB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xternal_id\x18\n \x01(\tB\x03\xe0\x41\x01\x12=\n\x14last_connection_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tunique_id\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\\\n\x13infrastructure_type\x18\r \x01(\x0e\x32:.google.cloud.gkehub.v1beta1.Membership.InfrastructureTypeB\x03\xe0\x41\x01\x12M\n\x11monitoring_config\x18\x0e \x01(\x0b\x32-.google.cloud.gkehub.v1beta1.MonitoringConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x12InfrastructureType\x12#\n\x1fINFRASTRUCTURE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07ON_PREM\x10\x01\x12\x0f\n\x0bMULTI_CLOUD\x10\x02:g\xea\x41\x64\n gkehub.googleapis.com/Membership\x12@projects/{project}/locations/{location}/memberships/{membership}B\x06\n\x04type\"\xbf\x04\n\x12MembershipEndpoint\x12\x43\n\x0bgke_cluster\x18\x04 \x01(\x0b\x32\'.google.cloud.gkehub.v1beta1.GkeClusterB\x03\xe0\x41\x01H\x00\x12J\n\x0fon_prem_cluster\x18\x07 \x01(\x0b\x32*.google.cloud.gkehub.v1beta1.OnPremClusterB\x03\xe0\x41\x01H\x00\x12R\n\x13multi_cloud_cluster\x18\x08 \x01(\x0b\x32..google.cloud.gkehub.v1beta1.MultiCloudClusterB\x03\xe0\x41\x01H\x00\x12\x45\n\x0c\x65\x64ge_cluster\x18\t \x01(\x0b\x32(.google.cloud.gkehub.v1beta1.EdgeClusterB\x03\xe0\x41\x01H\x00\x12O\n\x11\x61ppliance_cluster\x18\n \x01(\x0b\x32-.google.cloud.gkehub.v1beta1.ApplianceClusterB\x03\xe0\x41\x01H\x00\x12Q\n\x13kubernetes_metadata\x18\x05 \x01(\x0b\x32/.google.cloud.gkehub.v1beta1.KubernetesMetadataB\x03\xe0\x41\x03\x12Q\n\x13kubernetes_resource\x18\x06 \x01(\x0b\x32/.google.cloud.gkehub.v1beta1.KubernetesResourceB\x03\xe0\x41\x01\x42\x06\n\x04type\"\xa7\x02\n\x12KubernetesResource\x12#\n\x16membership_cr_manifest\x18\x01 \x01(\tB\x03\xe0\x41\x04\x12P\n\x14membership_resources\x18\x02 \x03(\x0b\x32-.google.cloud.gkehub.v1beta1.ResourceManifestB\x03\xe0\x41\x03\x12M\n\x11\x63onnect_resources\x18\x03 \x03(\x0b\x32-.google.cloud.gkehub.v1beta1.ResourceManifestB\x03\xe0\x41\x03\x12K\n\x10resource_options\x18\x04 \x01(\x0b\x32,.google.cloud.gkehub.v1beta1.ResourceOptionsB\x03\xe0\x41\x01\"c\n\x0fResourceOptions\x12\x1c\n\x0f\x63onnect_version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bv1beta1_crd\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bk8s_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\"<\n\x10ResourceManifest\x12\x10\n\x08manifest\x18\x01 \x01(\t\x12\x16\n\x0e\x63luster_scoped\x18\x02 \x01(\x08\"F\n\nGkeCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x1c\n\x0f\x63luster_missing\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"\x99\x02\n\rOnPremCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x1c\n\x0f\x63luster_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\radmin_cluster\x18\x03 \x01(\x08\x42\x03\xe0\x41\x05\x12Q\n\x0c\x63luster_type\x18\x04 \x01(\x0e\x32\x36.google.cloud.gkehub.v1beta1.OnPremCluster.ClusterTypeB\x03\xe0\x41\x05\"_\n\x0b\x43lusterType\x12\x1b\n\x17\x43LUSTERTYPE_UNSPECIFIED\x10\x00\x12\r\n\tBOOTSTRAP\x10\x01\x12\n\n\x06HYBRID\x10\x02\x12\x0e\n\nSTANDALONE\x10\x03\x12\x08\n\x04USER\x10\x04\"M\n\x11MultiCloudCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x1c\n\x0f\x63luster_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\")\n\x0b\x45\x64geCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\".\n\x10\x41pplianceCluster\x12\x1a\n\rresource_link\x18\x01 \x01(\tB\x03\xe0\x41\x05\"\xdf\x01\n\x12KubernetesMetadata\x12*\n\x1dkubernetes_api_server_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10node_provider_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nnode_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\nvcpu_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12\x16\n\tmemory_mb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x64 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"}\n\tAuthority\x12\x13\n\x06issuer\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16workload_identity_pool\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11identity_provider\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\toidc_jwks\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x01\"\x96\x01\n\x10MonitoringConfig\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x07\x63luster\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12!\n\x19kubernetes_metrics_prefix\x18\x04 \x01(\t\x12\x19\n\x0c\x63luster_hash\x18\x05 \x01(\tB\x03\xe0\x41\x05\"\x8e\x02\n\x0fMembershipState\x12\x44\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x31.google.cloud.gkehub.v1beta1.MembershipState.CodeB\x03\xe0\x41\x03\x12\x17\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x02\x18\x01\x12\x33\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\"g\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x14\n\x10SERVICE_UPDATING\x10\x05\"\xaf\x01\n\x16ListMembershipsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 gkehub.googleapis.com/Membership\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x17ListMembershipsResponse\x12:\n\tresources\x18\x01 \x03(\x0b\x32\'.google.cloud.gkehub.v1beta1.Membership\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x14GetMembershipRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n gkehub.googleapis.com/Membership\"\xc8\x01\n\x17\x43reateMembershipRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 gkehub.googleapis.com/Membership\x12\x1a\n\rmembership_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x08resource\x18\x03 \x01(\x0b\x32\'.google.cloud.gkehub.v1beta1.MembershipB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x17\x44\x65leteMembershipRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n gkehub.googleapis.com/Membership\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x66orce\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xe0\x01\n\x17UpdateMembershipRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n gkehub.googleapis.com/Membership\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12>\n\x08resource\x18\x03 \x01(\x0b\x32\'.google.cloud.gkehub.v1beta1.MembershipB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x8d\x02\n\x1eGenerateConnectManifestRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n gkehub.googleapis.com/Membership\x12\x45\n\rconnect_agent\x18\x02 \x01(\x0b\x32).google.cloud.gkehub.v1beta1.ConnectAgentB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nis_upgrade\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08registry\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12&\n\x19image_pull_secret_content\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x01\"f\n\x1fGenerateConnectManifestResponse\x12\x43\n\x08manifest\x18\x01 \x03(\x0b\x32\x31.google.cloud.gkehub.v1beta1.ConnectAgentResource\"]\n\x14\x43onnectAgentResource\x12\x33\n\x04type\x18\x01 \x01(\x0b\x32%.google.cloud.gkehub.v1beta1.TypeMeta\x12\x10\n\x08manifest\x18\x02 \x01(\t\"-\n\x08TypeMeta\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0b\x61pi_version\x18\x02 \x01(\t\"L\n\x0c\x43onnectAgent\x12\x10\n\x04name\x18\x01 \x01(\tB\x02\x18\x01\x12\x12\n\x05proxy\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\x12\x16\n\tnamespace\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n\x1aValidateExclusivityRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 gkehub.googleapis.com/Membership\x12\x18\n\x0b\x63r_manifest\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13intended_membership\x18\x03 \x01(\tB\x03\xe0\x41\x02\"A\n\x1bValidateExclusivityResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\"\x91\x01\n\"GenerateExclusivityManifestRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n gkehub.googleapis.com/Membership\x12\x19\n\x0c\x63rd_manifest\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x63r_manifest\x18\x03 \x01(\tB\x03\xe0\x41\x01\"P\n#GenerateExclusivityManifestResponse\x12\x14\n\x0c\x63rd_manifest\x18\x01 \x01(\t\x12\x13\n\x0b\x63r_manifest\x18\x02 \x01(\t\"\xf9\x01\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rstatus_detail\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xe6\x0e\n\x17GkeHubMembershipService\x12\xc3\x01\n\x0fListMemberships\x12\x33.google.cloud.gkehub.v1beta1.ListMembershipsRequest\x1a\x34.google.cloud.gkehub.v1beta1.ListMembershipsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{parent=projects/*/locations/*}/memberships\xda\x41\x06parent\x12\xb0\x01\n\rGetMembership\x12\x31.google.cloud.gkehub.v1beta1.GetMembershipRequest\x1a\'.google.cloud.gkehub.v1beta1.Membership\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{name=projects/*/locations/*/memberships/*}\xda\x41\x04name\x12\xf2\x01\n\x10\x43reateMembership\x12\x34.google.cloud.gkehub.v1beta1.CreateMembershipRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02@\"4/v1beta1/{parent=projects/*/locations/*}/memberships:\x08resource\xda\x41\x1dparent,resource,membership_id\xca\x41\x1f\n\nMembership\x12\x11OperationMetadata\x12\xd9\x01\n\x10\x44\x65leteMembership\x12\x34.google.cloud.gkehub.v1beta1.DeleteMembershipRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x36*4/v1beta1/{name=projects/*/locations/*/memberships/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xee\x01\n\x10UpdateMembership\x12\x34.google.cloud.gkehub.v1beta1.UpdateMembershipRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\x82\xd3\xe4\x93\x02@24/v1beta1/{name=projects/*/locations/*/memberships/*}:\x08resource\xda\x41\x19name,resource,update_mask\xca\x41\x1f\n\nMembership\x12\x11OperationMetadata\x12\xea\x01\n\x17GenerateConnectManifest\x12;.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest\x1a<.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1beta1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest\x12\xda\x01\n\x13ValidateExclusivity\x12\x37.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest\x1a\x38.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse\"P\x82\xd3\xe4\x93\x02J\x12H/v1beta1/{parent=projects/*/locations/*}/memberships:validateExclusivity\x12\xfa\x01\n\x1bGenerateExclusivityManifest\x12?.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest\x1a@.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1beta1/{name=projects/*/locations/*/memberships/*}:generateExclusivityManifest\x1aI\xca\x41\x15gkehub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb9\x01\n\x1f\x63om.google.cloud.gkehub.v1beta1P\x01Z7cloud.google.com/go/gkehub/apiv1beta1/gkehubpb;gkehubpb\xaa\x02\x1bGoogle.Cloud.GkeHub.V1Beta1\xca\x02\x1bGoogle\\Cloud\\GkeHub\\V1beta1\xea\x02\x1eGoogle::Cloud::GkeHub::V1beta1b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
209
41
|
end
|
210
42
|
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
211
45
|
end
|
212
46
|
|
213
47
|
module Google
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# long-running operation pattern.
|
84
84
|
# @!attribute [rw] new_issue_uri
|
85
85
|
# @return [::String]
|
86
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
88
88
|
# @!attribute [rw] documentation_uri
|
89
89
|
# @return [::String]
|
@@ -353,6 +353,15 @@ module Google
|
|
353
353
|
|
354
354
|
# Street View Org.
|
355
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
356
365
|
end
|
357
366
|
|
358
367
|
# To where should client libraries be published?
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-gke_hub-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
- !ruby/object:Gem::Version
|
260
260
|
version: '0'
|
261
261
|
requirements: []
|
262
|
-
rubygems_version: 3.4.
|
262
|
+
rubygems_version: 3.4.19
|
263
263
|
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: API Client library for the GKE Hub V1beta1 API
|