google-cloud-gke_hub-v1beta1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/client.rb +10 -1
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/operations.rb +10 -1
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/rest/client.rb +153 -0
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/rest/operations.rb +75 -0
- data/lib/google/cloud/gke_hub/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- 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
|
@@ -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
|
|
@@ -1189,6 +1190,14 @@ module Google
|
|
1189
1190
|
end
|
1190
1191
|
end
|
1191
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
|
+
|
1192
1201
|
##
|
1193
1202
|
# Configuration RPC class for the GkeHubMembershipService API.
|
1194
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
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
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
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
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
|