google-cloud-gke_hub-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/gke_hub/v1/gke_hub/client.rb +280 -38
- data/lib/google/cloud/gke_hub/v1/gke_hub/operations.rb +115 -12
- data/lib/google/cloud/gke_hub/v1/version.rb +1 -1
- data/lib/google/cloud/gke_hub/v1.rb +2 -0
- data/lib/google/cloud/gkehub/v1/configmanagement/configmanagement_pb.rb +2 -2
- data/lib/google/cloud/gkehub/v1/feature_pb.rb +2 -2
- data/lib/google/cloud/gkehub/v1/membership_pb.rb +22 -3
- data/lib/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb.rb +1 -1
- data/lib/google/cloud/gkehub/v1/service_pb.rb +3 -2
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/gkehub/v1/membership.rb +89 -1
- data/proto_docs/google/cloud/gkehub/v1/service.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab270f9a65942083380c26d16fd3ae1d0089d8eeb36a134cd82743e4196b7955
|
4
|
+
data.tar.gz: 6ba4a2cada35b35f52df499645a3287ffa22106076a6cc351be314d7b21a9247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e68fd0e24d7be18d89db16b1fff0562d5d0522c8f584e7a240b4b0c2d1529973ad3d3d6c1aaa751afe940a7608fc03b9a455a5faa49d0769c4e6b548ed4eb161
|
7
|
+
data.tar.gz: eb3d9b6c7812fbbbc964bb1714d9c66a454ef0e128cb08c290b267c75c7d99dab4cc4803e1995fa5c14f3eb46dd07b87bc0ce86aca2e902d6eea204aa116ef40
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::GkeHub::V1::ListMembershipsRequest.new # (request fie
|
|
37
37
|
response = client.list_memberships request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/anthos/clusters/docs)
|
@@ -153,6 +153,7 @@ module Google
|
|
153
153
|
|
154
154
|
@operations_client = Operations.new do |config|
|
155
155
|
config.credentials = credentials
|
156
|
+
config.quota_project = @quota_project_id
|
156
157
|
config.endpoint = @config.endpoint
|
157
158
|
end
|
158
159
|
|
@@ -236,6 +237,27 @@ module Google
|
|
236
237
|
#
|
237
238
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
238
239
|
#
|
240
|
+
# @example Basic example
|
241
|
+
# require "google/cloud/gke_hub/v1"
|
242
|
+
#
|
243
|
+
# # Create a client object. The client can be reused for multiple calls.
|
244
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
245
|
+
#
|
246
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
247
|
+
# request = Google::Cloud::GkeHub::V1::ListMembershipsRequest.new
|
248
|
+
#
|
249
|
+
# # Call the list_memberships method.
|
250
|
+
# result = client.list_memberships request
|
251
|
+
#
|
252
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
253
|
+
# # iterate over all elements by calling #each, and the enumerable
|
254
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
255
|
+
# # methods are also available for managing paging directly.
|
256
|
+
# result.each do |response|
|
257
|
+
# # Each element is of type ::Google::Cloud::GkeHub::V1::Membership.
|
258
|
+
# p response
|
259
|
+
# end
|
260
|
+
#
|
239
261
|
def list_memberships request, options = nil
|
240
262
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
241
263
|
|
@@ -253,9 +275,11 @@ module Google
|
|
253
275
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
254
276
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
255
277
|
|
256
|
-
header_params = {
|
257
|
-
|
258
|
-
|
278
|
+
header_params = {}
|
279
|
+
if request.parent
|
280
|
+
header_params["parent"] = request.parent
|
281
|
+
end
|
282
|
+
|
259
283
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
260
284
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
261
285
|
|
@@ -295,7 +319,7 @@ module Google
|
|
295
319
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
296
320
|
#
|
297
321
|
# @param parent [::String]
|
298
|
-
# The parent (project and location) where the Features will be listed.
|
322
|
+
# Required. The parent (project and location) where the Features will be listed.
|
299
323
|
# Specified in the format `projects/*/locations/*`.
|
300
324
|
# @param page_size [::Integer]
|
301
325
|
# When requesting a 'page' of resources, `page_size` specifies number of
|
@@ -334,6 +358,27 @@ module Google
|
|
334
358
|
#
|
335
359
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
336
360
|
#
|
361
|
+
# @example Basic example
|
362
|
+
# require "google/cloud/gke_hub/v1"
|
363
|
+
#
|
364
|
+
# # Create a client object. The client can be reused for multiple calls.
|
365
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
366
|
+
#
|
367
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
368
|
+
# request = Google::Cloud::GkeHub::V1::ListFeaturesRequest.new
|
369
|
+
#
|
370
|
+
# # Call the list_features method.
|
371
|
+
# result = client.list_features request
|
372
|
+
#
|
373
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
374
|
+
# # iterate over all elements by calling #each, and the enumerable
|
375
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
376
|
+
# # methods are also available for managing paging directly.
|
377
|
+
# result.each do |response|
|
378
|
+
# # Each element is of type ::Google::Cloud::GkeHub::V1::Feature.
|
379
|
+
# p response
|
380
|
+
# end
|
381
|
+
#
|
337
382
|
def list_features request, options = nil
|
338
383
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
339
384
|
|
@@ -351,9 +396,11 @@ module Google
|
|
351
396
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
352
397
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
398
|
|
354
|
-
header_params = {
|
355
|
-
|
356
|
-
|
399
|
+
header_params = {}
|
400
|
+
if request.parent
|
401
|
+
header_params["parent"] = request.parent
|
402
|
+
end
|
403
|
+
|
357
404
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
358
405
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
359
406
|
|
@@ -404,6 +451,21 @@ module Google
|
|
404
451
|
#
|
405
452
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
406
453
|
#
|
454
|
+
# @example Basic example
|
455
|
+
# require "google/cloud/gke_hub/v1"
|
456
|
+
#
|
457
|
+
# # Create a client object. The client can be reused for multiple calls.
|
458
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
459
|
+
#
|
460
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
461
|
+
# request = Google::Cloud::GkeHub::V1::GetMembershipRequest.new
|
462
|
+
#
|
463
|
+
# # Call the get_membership method.
|
464
|
+
# result = client.get_membership request
|
465
|
+
#
|
466
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1::Membership.
|
467
|
+
# p result
|
468
|
+
#
|
407
469
|
def get_membership request, options = nil
|
408
470
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
409
471
|
|
@@ -421,9 +483,11 @@ module Google
|
|
421
483
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
422
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
423
485
|
|
424
|
-
header_params = {
|
425
|
-
|
426
|
-
|
486
|
+
header_params = {}
|
487
|
+
if request.name
|
488
|
+
header_params["name"] = request.name
|
489
|
+
end
|
490
|
+
|
427
491
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
428
492
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
429
493
|
|
@@ -462,7 +526,7 @@ module Google
|
|
462
526
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
463
527
|
#
|
464
528
|
# @param name [::String]
|
465
|
-
# The Feature resource name in the format
|
529
|
+
# Required. The Feature resource name in the format
|
466
530
|
# `projects/*/locations/*/features/*`
|
467
531
|
#
|
468
532
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -473,6 +537,21 @@ module Google
|
|
473
537
|
#
|
474
538
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
475
539
|
#
|
540
|
+
# @example Basic example
|
541
|
+
# require "google/cloud/gke_hub/v1"
|
542
|
+
#
|
543
|
+
# # Create a client object. The client can be reused for multiple calls.
|
544
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
545
|
+
#
|
546
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
547
|
+
# request = Google::Cloud::GkeHub::V1::GetFeatureRequest.new
|
548
|
+
#
|
549
|
+
# # Call the get_feature method.
|
550
|
+
# result = client.get_feature request
|
551
|
+
#
|
552
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1::Feature.
|
553
|
+
# p result
|
554
|
+
#
|
476
555
|
def get_feature request, options = nil
|
477
556
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
478
557
|
|
@@ -490,9 +569,11 @@ module Google
|
|
490
569
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
491
570
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
492
571
|
|
493
|
-
header_params = {
|
494
|
-
|
495
|
-
|
572
|
+
header_params = {}
|
573
|
+
if request.name
|
574
|
+
header_params["name"] = request.name
|
575
|
+
end
|
576
|
+
|
496
577
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
497
578
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
498
579
|
|
@@ -572,6 +653,28 @@ module Google
|
|
572
653
|
#
|
573
654
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
574
655
|
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/gke_hub/v1"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::GkeHub::V1::CreateMembershipRequest.new
|
664
|
+
#
|
665
|
+
# # Call the create_membership method.
|
666
|
+
# result = client.create_membership request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
669
|
+
# # object to check the status of an operation, cancel it, or wait
|
670
|
+
# # for results. Here is how to block until completion:
|
671
|
+
# result.wait_until_done! timeout: 60
|
672
|
+
# if result.response?
|
673
|
+
# p result.response
|
674
|
+
# else
|
675
|
+
# puts "Error!"
|
676
|
+
# end
|
677
|
+
#
|
575
678
|
def create_membership request, options = nil
|
576
679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
680
|
|
@@ -589,9 +692,11 @@ module Google
|
|
589
692
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
590
693
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
591
694
|
|
592
|
-
header_params = {
|
593
|
-
|
594
|
-
|
695
|
+
header_params = {}
|
696
|
+
if request.parent
|
697
|
+
header_params["parent"] = request.parent
|
698
|
+
end
|
699
|
+
|
595
700
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
596
701
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
597
702
|
|
@@ -631,7 +736,7 @@ module Google
|
|
631
736
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
632
737
|
#
|
633
738
|
# @param parent [::String]
|
634
|
-
# The parent (project and location) where the Feature will be created.
|
739
|
+
# Required. The parent (project and location) where the Feature will be created.
|
635
740
|
# Specified in the format `projects/*/locations/*`.
|
636
741
|
# @param feature_id [::String]
|
637
742
|
# The ID of the feature to create.
|
@@ -660,6 +765,28 @@ module Google
|
|
660
765
|
#
|
661
766
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
662
767
|
#
|
768
|
+
# @example Basic example
|
769
|
+
# require "google/cloud/gke_hub/v1"
|
770
|
+
#
|
771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
772
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
773
|
+
#
|
774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
775
|
+
# request = Google::Cloud::GkeHub::V1::CreateFeatureRequest.new
|
776
|
+
#
|
777
|
+
# # Call the create_feature method.
|
778
|
+
# result = client.create_feature request
|
779
|
+
#
|
780
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
781
|
+
# # object to check the status of an operation, cancel it, or wait
|
782
|
+
# # for results. Here is how to block until completion:
|
783
|
+
# result.wait_until_done! timeout: 60
|
784
|
+
# if result.response?
|
785
|
+
# p result.response
|
786
|
+
# else
|
787
|
+
# puts "Error!"
|
788
|
+
# end
|
789
|
+
#
|
663
790
|
def create_feature request, options = nil
|
664
791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
665
792
|
|
@@ -677,9 +804,11 @@ module Google
|
|
677
804
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
678
805
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
679
806
|
|
680
|
-
header_params = {
|
681
|
-
|
682
|
-
|
807
|
+
header_params = {}
|
808
|
+
if request.parent
|
809
|
+
header_params["parent"] = request.parent
|
810
|
+
end
|
811
|
+
|
683
812
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
684
813
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
685
814
|
|
@@ -748,6 +877,28 @@ module Google
|
|
748
877
|
#
|
749
878
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
750
879
|
#
|
880
|
+
# @example Basic example
|
881
|
+
# require "google/cloud/gke_hub/v1"
|
882
|
+
#
|
883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
884
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
885
|
+
#
|
886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
887
|
+
# request = Google::Cloud::GkeHub::V1::DeleteMembershipRequest.new
|
888
|
+
#
|
889
|
+
# # Call the delete_membership method.
|
890
|
+
# result = client.delete_membership request
|
891
|
+
#
|
892
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
893
|
+
# # object to check the status of an operation, cancel it, or wait
|
894
|
+
# # for results. Here is how to block until completion:
|
895
|
+
# result.wait_until_done! timeout: 60
|
896
|
+
# if result.response?
|
897
|
+
# p result.response
|
898
|
+
# else
|
899
|
+
# puts "Error!"
|
900
|
+
# end
|
901
|
+
#
|
751
902
|
def delete_membership request, options = nil
|
752
903
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
753
904
|
|
@@ -765,9 +916,11 @@ module Google
|
|
765
916
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
766
917
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
767
918
|
|
768
|
-
header_params = {
|
769
|
-
|
770
|
-
|
919
|
+
header_params = {}
|
920
|
+
if request.name
|
921
|
+
header_params["name"] = request.name
|
922
|
+
end
|
923
|
+
|
771
924
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
772
925
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
773
926
|
|
@@ -807,7 +960,7 @@ module Google
|
|
807
960
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
808
961
|
#
|
809
962
|
# @param name [::String]
|
810
|
-
# The Feature resource name in the format
|
963
|
+
# Required. The Feature resource name in the format
|
811
964
|
# `projects/*/locations/*/features/*`.
|
812
965
|
# @param force [::Boolean]
|
813
966
|
# If set to true, the delete will ignore any outstanding resources for
|
@@ -836,6 +989,28 @@ module Google
|
|
836
989
|
#
|
837
990
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
838
991
|
#
|
992
|
+
# @example Basic example
|
993
|
+
# require "google/cloud/gke_hub/v1"
|
994
|
+
#
|
995
|
+
# # Create a client object. The client can be reused for multiple calls.
|
996
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
997
|
+
#
|
998
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
999
|
+
# request = Google::Cloud::GkeHub::V1::DeleteFeatureRequest.new
|
1000
|
+
#
|
1001
|
+
# # Call the delete_feature method.
|
1002
|
+
# result = client.delete_feature request
|
1003
|
+
#
|
1004
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1005
|
+
# # object to check the status of an operation, cancel it, or wait
|
1006
|
+
# # for results. Here is how to block until completion:
|
1007
|
+
# result.wait_until_done! timeout: 60
|
1008
|
+
# if result.response?
|
1009
|
+
# p result.response
|
1010
|
+
# else
|
1011
|
+
# puts "Error!"
|
1012
|
+
# end
|
1013
|
+
#
|
839
1014
|
def delete_feature request, options = nil
|
840
1015
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
841
1016
|
|
@@ -853,9 +1028,11 @@ module Google
|
|
853
1028
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
854
1029
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
855
1030
|
|
856
|
-
header_params = {
|
857
|
-
|
858
|
-
|
1031
|
+
header_params = {}
|
1032
|
+
if request.name
|
1033
|
+
header_params["name"] = request.name
|
1034
|
+
end
|
1035
|
+
|
859
1036
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
860
1037
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
861
1038
|
|
@@ -931,6 +1108,28 @@ module Google
|
|
931
1108
|
#
|
932
1109
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
933
1110
|
#
|
1111
|
+
# @example Basic example
|
1112
|
+
# require "google/cloud/gke_hub/v1"
|
1113
|
+
#
|
1114
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1115
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
1116
|
+
#
|
1117
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1118
|
+
# request = Google::Cloud::GkeHub::V1::UpdateMembershipRequest.new
|
1119
|
+
#
|
1120
|
+
# # Call the update_membership method.
|
1121
|
+
# result = client.update_membership request
|
1122
|
+
#
|
1123
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1124
|
+
# # object to check the status of an operation, cancel it, or wait
|
1125
|
+
# # for results. Here is how to block until completion:
|
1126
|
+
# result.wait_until_done! timeout: 60
|
1127
|
+
# if result.response?
|
1128
|
+
# p result.response
|
1129
|
+
# else
|
1130
|
+
# puts "Error!"
|
1131
|
+
# end
|
1132
|
+
#
|
934
1133
|
def update_membership request, options = nil
|
935
1134
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
936
1135
|
|
@@ -948,9 +1147,11 @@ module Google
|
|
948
1147
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
949
1148
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
950
1149
|
|
951
|
-
header_params = {
|
952
|
-
|
953
|
-
|
1150
|
+
header_params = {}
|
1151
|
+
if request.name
|
1152
|
+
header_params["name"] = request.name
|
1153
|
+
end
|
1154
|
+
|
954
1155
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
955
1156
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
956
1157
|
|
@@ -990,7 +1191,7 @@ module Google
|
|
990
1191
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
1192
|
#
|
992
1193
|
# @param name [::String]
|
993
|
-
# The Feature resource name in the format
|
1194
|
+
# Required. The Feature resource name in the format
|
994
1195
|
# `projects/*/locations/*/features/*`.
|
995
1196
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
996
1197
|
# Mask of fields to update.
|
@@ -1026,6 +1227,28 @@ module Google
|
|
1026
1227
|
#
|
1027
1228
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1028
1229
|
#
|
1230
|
+
# @example Basic example
|
1231
|
+
# require "google/cloud/gke_hub/v1"
|
1232
|
+
#
|
1233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1234
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
1235
|
+
#
|
1236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1237
|
+
# request = Google::Cloud::GkeHub::V1::UpdateFeatureRequest.new
|
1238
|
+
#
|
1239
|
+
# # Call the update_feature method.
|
1240
|
+
# result = client.update_feature request
|
1241
|
+
#
|
1242
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1243
|
+
# # object to check the status of an operation, cancel it, or wait
|
1244
|
+
# # for results. Here is how to block until completion:
|
1245
|
+
# result.wait_until_done! timeout: 60
|
1246
|
+
# if result.response?
|
1247
|
+
# p result.response
|
1248
|
+
# else
|
1249
|
+
# puts "Error!"
|
1250
|
+
# end
|
1251
|
+
#
|
1029
1252
|
def update_feature request, options = nil
|
1030
1253
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1031
1254
|
|
@@ -1043,9 +1266,11 @@ module Google
|
|
1043
1266
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
1044
1267
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1045
1268
|
|
1046
|
-
header_params = {
|
1047
|
-
|
1048
|
-
|
1269
|
+
header_params = {}
|
1270
|
+
if request.name
|
1271
|
+
header_params["name"] = request.name
|
1272
|
+
end
|
1273
|
+
|
1049
1274
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1050
1275
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1051
1276
|
|
@@ -1121,6 +1346,21 @@ module Google
|
|
1121
1346
|
#
|
1122
1347
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1123
1348
|
#
|
1349
|
+
# @example Basic example
|
1350
|
+
# require "google/cloud/gke_hub/v1"
|
1351
|
+
#
|
1352
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1353
|
+
# client = Google::Cloud::GkeHub::V1::GkeHub::Client.new
|
1354
|
+
#
|
1355
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1356
|
+
# request = Google::Cloud::GkeHub::V1::GenerateConnectManifestRequest.new
|
1357
|
+
#
|
1358
|
+
# # Call the generate_connect_manifest method.
|
1359
|
+
# result = client.generate_connect_manifest request
|
1360
|
+
#
|
1361
|
+
# # The returned object is of type Google::Cloud::GkeHub::V1::GenerateConnectManifestResponse.
|
1362
|
+
# p result
|
1363
|
+
#
|
1124
1364
|
def generate_connect_manifest request, options = nil
|
1125
1365
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1126
1366
|
|
@@ -1138,9 +1378,11 @@ module Google
|
|
1138
1378
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
1139
1379
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1140
1380
|
|
1141
|
-
header_params = {
|
1142
|
-
|
1143
|
-
|
1381
|
+
header_params = {}
|
1382
|
+
if request.name
|
1383
|
+
header_params["name"] = request.name
|
1384
|
+
end
|
1385
|
+
|
1144
1386
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1145
1387
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1146
1388
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::GkeHub::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/timestamp_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/gkehub/v1/configmanagement/configmanagement.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.gkehub.configmanagement.v1.MembershipState" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/feature.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/gkehub/v1/configmanagement/configmanagement_pb'
|
9
7
|
require 'google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/gkehub/v1/feature.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.gkehub.v1.Feature" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/membership.proto
|
3
3
|
|
4
|
-
require 'google/
|
5
|
-
|
4
|
+
require 'google/api/annotations_pb'
|
6
5
|
require 'google/api/field_behavior_pb'
|
7
6
|
require 'google/api/resource_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gkehub/v1/membership.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.gkehub.v1.Membership" do
|
@@ -28,6 +28,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
add_message "google.cloud.gkehub.v1.MembershipEndpoint" do
|
29
29
|
optional :gke_cluster, :message, 1, "google.cloud.gkehub.v1.GkeCluster"
|
30
30
|
optional :kubernetes_metadata, :message, 2, "google.cloud.gkehub.v1.KubernetesMetadata"
|
31
|
+
optional :kubernetes_resource, :message, 3, "google.cloud.gkehub.v1.KubernetesResource"
|
32
|
+
end
|
33
|
+
add_message "google.cloud.gkehub.v1.KubernetesResource" do
|
34
|
+
optional :membership_cr_manifest, :string, 1
|
35
|
+
repeated :membership_resources, :message, 2, "google.cloud.gkehub.v1.ResourceManifest"
|
36
|
+
repeated :connect_resources, :message, 3, "google.cloud.gkehub.v1.ResourceManifest"
|
37
|
+
optional :resource_options, :message, 4, "google.cloud.gkehub.v1.ResourceOptions"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.gkehub.v1.ResourceOptions" do
|
40
|
+
optional :connect_version, :string, 1
|
41
|
+
optional :v1beta1_crd, :bool, 2
|
42
|
+
optional :k8s_version, :string, 3
|
43
|
+
end
|
44
|
+
add_message "google.cloud.gkehub.v1.ResourceManifest" do
|
45
|
+
optional :manifest, :string, 1
|
46
|
+
optional :cluster_scoped, :bool, 2
|
31
47
|
end
|
32
48
|
add_message "google.cloud.gkehub.v1.GkeCluster" do
|
33
49
|
optional :resource_link, :string, 1
|
@@ -66,6 +82,9 @@ module Google
|
|
66
82
|
module V1
|
67
83
|
Membership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.Membership").msgclass
|
68
84
|
MembershipEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.MembershipEndpoint").msgclass
|
85
|
+
KubernetesResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.KubernetesResource").msgclass
|
86
|
+
ResourceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.ResourceOptions").msgclass
|
87
|
+
ResourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.ResourceManifest").msgclass
|
69
88
|
GkeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.GkeCluster").msgclass
|
70
89
|
KubernetesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.KubernetesMetadata").msgclass
|
71
90
|
MembershipState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.MembershipState").msgclass
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.gkehub.multiclusteringress.v1.FeatureSpec" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,8 +8,11 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/gkehub/v1/feature_pb'
|
11
9
|
require 'google/cloud/gkehub/v1/membership_pb'
|
12
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
13
12
|
require 'google/protobuf/field_mask_pb'
|
14
13
|
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/gkehub/v1/service.proto", :syntax => :proto3) do
|
17
18
|
add_message "google.cloud.gkehub.v1.ListMembershipsRequest" do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -106,17 +106,105 @@ module Google
|
|
106
106
|
# @!attribute [r] kubernetes_metadata
|
107
107
|
# @return [::Google::Cloud::GkeHub::V1::KubernetesMetadata]
|
108
108
|
# Output only. Useful Kubernetes-specific metadata.
|
109
|
+
# @!attribute [rw] kubernetes_resource
|
110
|
+
# @return [::Google::Cloud::GkeHub::V1::KubernetesResource]
|
111
|
+
# Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
|
112
|
+
# registered cluster, in the steady state. These resources:
|
113
|
+
#
|
114
|
+
# * Ensure that the cluster is exclusively registered to one and only one
|
115
|
+
# Hub Membership.
|
116
|
+
# * Propagate Workload Pool Information available in the Membership
|
117
|
+
# Authority field.
|
118
|
+
# * Ensure proper initial configuration of default Hub Features.
|
109
119
|
class MembershipEndpoint
|
110
120
|
include ::Google::Protobuf::MessageExts
|
111
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
122
|
end
|
113
123
|
|
124
|
+
# KubernetesResource contains the YAML manifests and configuration for
|
125
|
+
# Membership Kubernetes resources in the cluster. After CreateMembership or
|
126
|
+
# UpdateMembership, these resources should be re-applied in the cluster.
|
127
|
+
# @!attribute [rw] membership_cr_manifest
|
128
|
+
# @return [::String]
|
129
|
+
# Input only. The YAML representation of the Membership CR. This field is ignored for GKE
|
130
|
+
# clusters where Hub can read the CR directly.
|
131
|
+
#
|
132
|
+
# Callers should provide the CR that is currently present in the cluster
|
133
|
+
# during CreateMembership or UpdateMembership, or leave this field empty if
|
134
|
+
# none exists. The CR manifest is used to validate the cluster has not been
|
135
|
+
# registered with another Membership.
|
136
|
+
# @!attribute [r] membership_resources
|
137
|
+
# @return [::Array<::Google::Cloud::GkeHub::V1::ResourceManifest>]
|
138
|
+
# Output only. Additional Kubernetes resources that need to be applied to the cluster
|
139
|
+
# after Membership creation, and after every update.
|
140
|
+
#
|
141
|
+
# This field is only populated in the Membership returned from a successful
|
142
|
+
# long-running operation from CreateMembership or UpdateMembership. It is not
|
143
|
+
# populated during normal GetMembership or ListMemberships requests. To get
|
144
|
+
# the resource manifest after the initial registration, the caller should
|
145
|
+
# make a UpdateMembership call with an empty field mask.
|
146
|
+
# @!attribute [r] connect_resources
|
147
|
+
# @return [::Array<::Google::Cloud::GkeHub::V1::ResourceManifest>]
|
148
|
+
# Output only. The Kubernetes resources for installing the GKE Connect agent
|
149
|
+
#
|
150
|
+
# This field is only populated in the Membership returned from a successful
|
151
|
+
# long-running operation from CreateMembership or UpdateMembership. It is not
|
152
|
+
# populated during normal GetMembership or ListMemberships requests. To get
|
153
|
+
# the resource manifest after the initial registration, the caller should
|
154
|
+
# make a UpdateMembership call with an empty field mask.
|
155
|
+
# @!attribute [rw] resource_options
|
156
|
+
# @return [::Google::Cloud::GkeHub::V1::ResourceOptions]
|
157
|
+
# Optional. Options for Kubernetes resource generation.
|
158
|
+
class KubernetesResource
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# ResourceOptions represent options for Kubernetes resource generation.
|
164
|
+
# @!attribute [rw] connect_version
|
165
|
+
# @return [::String]
|
166
|
+
# Optional. The Connect agent version to use for connect_resources. Defaults to the
|
167
|
+
# latest GKE Connect version. The version must be a currently supported
|
168
|
+
# version, obsolete versions will be rejected.
|
169
|
+
# @!attribute [rw] v1beta1_crd
|
170
|
+
# @return [::Boolean]
|
171
|
+
# Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
|
172
|
+
# CustomResourceDefinition resources.
|
173
|
+
# This option should be set for clusters with Kubernetes apiserver versions
|
174
|
+
# <1.16.
|
175
|
+
# @!attribute [rw] k8s_version
|
176
|
+
# @return [::String]
|
177
|
+
# Optional. Major version of the Kubernetes cluster. This is only used to determine
|
178
|
+
# which version to use for the CustomResourceDefinition resources,
|
179
|
+
# `apiextensions/v1beta1` or`apiextensions/v1`.
|
180
|
+
class ResourceOptions
|
181
|
+
include ::Google::Protobuf::MessageExts
|
182
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
183
|
+
end
|
184
|
+
|
185
|
+
# ResourceManifest represents a single Kubernetes resource to be applied to
|
186
|
+
# the cluster.
|
187
|
+
# @!attribute [rw] manifest
|
188
|
+
# @return [::String]
|
189
|
+
# YAML manifest of the resource.
|
190
|
+
# @!attribute [rw] cluster_scoped
|
191
|
+
# @return [::Boolean]
|
192
|
+
# Whether the resource provided in the manifest is `cluster_scoped`.
|
193
|
+
# If unset, the manifest is assumed to be namespace scoped.
|
194
|
+
#
|
195
|
+
# This field is used for REST mapping when applying the resource in a
|
196
|
+
# cluster.
|
197
|
+
class ResourceManifest
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
114
202
|
# GkeCluster contains information specific to GKE clusters.
|
115
203
|
# @!attribute [rw] resource_link
|
116
204
|
# @return [::String]
|
117
205
|
# Immutable. Self-link of the GCP resource for the GKE cluster. For example:
|
118
206
|
#
|
119
|
-
#
|
207
|
+
# //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
|
120
208
|
#
|
121
209
|
# Zonal clusters are also supported.
|
122
210
|
class GkeCluster
|
@@ -276,7 +276,7 @@ module Google
|
|
276
276
|
# Request message for `GkeHub.ListFeatures` method.
|
277
277
|
# @!attribute [rw] parent
|
278
278
|
# @return [::String]
|
279
|
-
# The parent (project and location) where the Features will be listed.
|
279
|
+
# Required. The parent (project and location) where the Features will be listed.
|
280
280
|
# Specified in the format `projects/*/locations/*`.
|
281
281
|
# @!attribute [rw] page_size
|
282
282
|
# @return [::Integer]
|
@@ -332,7 +332,7 @@ module Google
|
|
332
332
|
# Request message for `GkeHub.GetFeature` method.
|
333
333
|
# @!attribute [rw] name
|
334
334
|
# @return [::String]
|
335
|
-
# The Feature resource name in the format
|
335
|
+
# Required. The Feature resource name in the format
|
336
336
|
# `projects/*/locations/*/features/*`
|
337
337
|
class GetFeatureRequest
|
338
338
|
include ::Google::Protobuf::MessageExts
|
@@ -342,7 +342,7 @@ module Google
|
|
342
342
|
# Request message for the `GkeHub.CreateFeature` method.
|
343
343
|
# @!attribute [rw] parent
|
344
344
|
# @return [::String]
|
345
|
-
# The parent (project and location) where the Feature will be created.
|
345
|
+
# Required. The parent (project and location) where the Feature will be created.
|
346
346
|
# Specified in the format `projects/*/locations/*`.
|
347
347
|
# @!attribute [rw] feature_id
|
348
348
|
# @return [::String]
|
@@ -373,7 +373,7 @@ module Google
|
|
373
373
|
# Request message for `GkeHub.DeleteFeature` method.
|
374
374
|
# @!attribute [rw] name
|
375
375
|
# @return [::String]
|
376
|
-
# The Feature resource name in the format
|
376
|
+
# Required. The Feature resource name in the format
|
377
377
|
# `projects/*/locations/*/features/*`.
|
378
378
|
# @!attribute [rw] force
|
379
379
|
# @return [::Boolean]
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
# Request message for `GkeHub.UpdateFeature` method.
|
404
404
|
# @!attribute [rw] name
|
405
405
|
# @return [::String]
|
406
|
-
# The Feature resource name in the format
|
406
|
+
# Required. The Feature resource name in the format
|
407
407
|
# `projects/*/locations/*/features/*`.
|
408
408
|
# @!attribute [rw] update_mask
|
409
409
|
# @return [::Google::Protobuf::FieldMask]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-gke_hub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
221
|
+
rubygems_version: 3.3.5
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: API Client library for the GKE Hub V1 API
|