google-cloud-gke_multi_cloud-v1 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +36 -27
- data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +27 -18
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +48 -41
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +27 -18
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +60 -55
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +27 -18
- data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
- data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +26 -52
- data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +26 -49
- data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +26 -158
- data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +27 -69
- data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +26 -157
- data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +27 -92
- data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +25 -50
- data/proto_docs/google/api/client.rb +67 -4
- 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 +14 -8
@@ -180,7 +180,7 @@ module Google
|
|
180
180
|
credentials = @config.credentials
|
181
181
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
182
182
|
# but only if the default endpoint does not have a region prefix.
|
183
|
-
enable_self_signed_jwt = @config.endpoint ==
|
183
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
184
184
|
!@config.endpoint.split(".").first.include?("-")
|
185
185
|
credentials ||= Credentials.default scope: @config.scope,
|
186
186
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -201,7 +201,8 @@ module Google
|
|
201
201
|
credentials: credentials,
|
202
202
|
endpoint: @config.endpoint,
|
203
203
|
channel_args: @config.channel_args,
|
204
|
-
interceptors: @config.interceptors
|
204
|
+
interceptors: @config.interceptors,
|
205
|
+
channel_pool_config: @config.channel_pool
|
205
206
|
)
|
206
207
|
end
|
207
208
|
|
@@ -286,14 +287,14 @@ module Google
|
|
286
287
|
# # Call the create_azure_client method.
|
287
288
|
# result = client.create_azure_client request
|
288
289
|
#
|
289
|
-
# # The returned object is of type Gapic::Operation. You can use
|
290
|
-
# #
|
291
|
-
# #
|
290
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
291
|
+
# # check the status of an operation, cancel it, or wait for results.
|
292
|
+
# # Here is how to wait for a response.
|
292
293
|
# result.wait_until_done! timeout: 60
|
293
294
|
# if result.response?
|
294
295
|
# p result.response
|
295
296
|
# else
|
296
|
-
# puts "
|
297
|
+
# puts "No response received."
|
297
298
|
# end
|
298
299
|
#
|
299
300
|
def create_azure_client request, options = nil
|
@@ -493,13 +494,11 @@ module Google
|
|
493
494
|
# # Call the list_azure_clients method.
|
494
495
|
# result = client.list_azure_clients request
|
495
496
|
#
|
496
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
497
|
-
# #
|
498
|
-
#
|
499
|
-
# # methods are also available for managing paging directly.
|
500
|
-
# result.each do |response|
|
497
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
498
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
499
|
+
# result.each do |item|
|
501
500
|
# # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureClient.
|
502
|
-
# p
|
501
|
+
# p item
|
503
502
|
# end
|
504
503
|
#
|
505
504
|
def list_azure_clients request, options = nil
|
@@ -610,14 +609,14 @@ module Google
|
|
610
609
|
# # Call the delete_azure_client method.
|
611
610
|
# result = client.delete_azure_client request
|
612
611
|
#
|
613
|
-
# # The returned object is of type Gapic::Operation. You can use
|
614
|
-
# #
|
615
|
-
# #
|
612
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
613
|
+
# # check the status of an operation, cancel it, or wait for results.
|
614
|
+
# # Here is how to wait for a response.
|
616
615
|
# result.wait_until_done! timeout: 60
|
617
616
|
# if result.response?
|
618
617
|
# p result.response
|
619
618
|
# else
|
620
|
-
# puts "
|
619
|
+
# puts "No response received."
|
621
620
|
# end
|
622
621
|
#
|
623
622
|
def delete_azure_client request, options = nil
|
@@ -730,14 +729,14 @@ module Google
|
|
730
729
|
# # Call the create_azure_cluster method.
|
731
730
|
# result = client.create_azure_cluster request
|
732
731
|
#
|
733
|
-
# # The returned object is of type Gapic::Operation. You can use
|
734
|
-
# #
|
735
|
-
# #
|
732
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
733
|
+
# # check the status of an operation, cancel it, or wait for results.
|
734
|
+
# # Here is how to wait for a response.
|
736
735
|
# result.wait_until_done! timeout: 60
|
737
736
|
# if result.response?
|
738
737
|
# p result.response
|
739
738
|
# else
|
740
|
-
# puts "
|
739
|
+
# puts "No response received."
|
741
740
|
# end
|
742
741
|
#
|
743
742
|
def create_azure_cluster request, options = nil
|
@@ -847,14 +846,14 @@ module Google
|
|
847
846
|
# # Call the update_azure_cluster method.
|
848
847
|
# result = client.update_azure_cluster request
|
849
848
|
#
|
850
|
-
# # The returned object is of type Gapic::Operation. You can use
|
851
|
-
# #
|
852
|
-
# #
|
849
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
850
|
+
# # check the status of an operation, cancel it, or wait for results.
|
851
|
+
# # Here is how to wait for a response.
|
853
852
|
# result.wait_until_done! timeout: 60
|
854
853
|
# if result.response?
|
855
854
|
# p result.response
|
856
855
|
# else
|
857
|
-
# puts "
|
856
|
+
# puts "No response received."
|
858
857
|
# end
|
859
858
|
#
|
860
859
|
def update_azure_cluster request, options = nil
|
@@ -1053,13 +1052,11 @@ module Google
|
|
1053
1052
|
# # Call the list_azure_clusters method.
|
1054
1053
|
# result = client.list_azure_clusters request
|
1055
1054
|
#
|
1056
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1057
|
-
# #
|
1058
|
-
#
|
1059
|
-
# # methods are also available for managing paging directly.
|
1060
|
-
# result.each do |response|
|
1055
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1056
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1057
|
+
# result.each do |item|
|
1061
1058
|
# # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureCluster.
|
1062
|
-
# p
|
1059
|
+
# p item
|
1063
1060
|
# end
|
1064
1061
|
#
|
1065
1062
|
def list_azure_clusters request, options = nil
|
@@ -1177,14 +1174,14 @@ module Google
|
|
1177
1174
|
# # Call the delete_azure_cluster method.
|
1178
1175
|
# result = client.delete_azure_cluster request
|
1179
1176
|
#
|
1180
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1181
|
-
# #
|
1182
|
-
# #
|
1177
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1178
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1179
|
+
# # Here is how to wait for a response.
|
1183
1180
|
# result.wait_until_done! timeout: 60
|
1184
1181
|
# if result.response?
|
1185
1182
|
# p result.response
|
1186
1183
|
# else
|
1187
|
-
# puts "
|
1184
|
+
# puts "No response received."
|
1188
1185
|
# end
|
1189
1186
|
#
|
1190
1187
|
def delete_azure_cluster request, options = nil
|
@@ -1392,14 +1389,14 @@ module Google
|
|
1392
1389
|
# # Call the create_azure_node_pool method.
|
1393
1390
|
# result = client.create_azure_node_pool request
|
1394
1391
|
#
|
1395
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1396
|
-
# #
|
1397
|
-
# #
|
1392
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1393
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1394
|
+
# # Here is how to wait for a response.
|
1398
1395
|
# result.wait_until_done! timeout: 60
|
1399
1396
|
# if result.response?
|
1400
1397
|
# p result.response
|
1401
1398
|
# else
|
1402
|
-
# puts "
|
1399
|
+
# puts "No response received."
|
1403
1400
|
# end
|
1404
1401
|
#
|
1405
1402
|
def create_azure_node_pool request, options = nil
|
@@ -1498,14 +1495,14 @@ module Google
|
|
1498
1495
|
# # Call the update_azure_node_pool method.
|
1499
1496
|
# result = client.update_azure_node_pool request
|
1500
1497
|
#
|
1501
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1502
|
-
# #
|
1503
|
-
# #
|
1498
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1499
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1500
|
+
# # Here is how to wait for a response.
|
1504
1501
|
# result.wait_until_done! timeout: 60
|
1505
1502
|
# if result.response?
|
1506
1503
|
# p result.response
|
1507
1504
|
# else
|
1508
|
-
# puts "
|
1505
|
+
# puts "No response received."
|
1509
1506
|
# end
|
1510
1507
|
#
|
1511
1508
|
def update_azure_node_pool request, options = nil
|
@@ -1706,13 +1703,11 @@ module Google
|
|
1706
1703
|
# # Call the list_azure_node_pools method.
|
1707
1704
|
# result = client.list_azure_node_pools request
|
1708
1705
|
#
|
1709
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1710
|
-
# #
|
1711
|
-
#
|
1712
|
-
# # methods are also available for managing paging directly.
|
1713
|
-
# result.each do |response|
|
1706
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1707
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1708
|
+
# result.each do |item|
|
1714
1709
|
# # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureNodePool.
|
1715
|
-
# p
|
1710
|
+
# p item
|
1716
1711
|
# end
|
1717
1712
|
#
|
1718
1713
|
def list_azure_node_pools request, options = nil
|
@@ -1829,14 +1824,14 @@ module Google
|
|
1829
1824
|
# # Call the delete_azure_node_pool method.
|
1830
1825
|
# result = client.delete_azure_node_pool request
|
1831
1826
|
#
|
1832
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1833
|
-
# #
|
1834
|
-
# #
|
1827
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1828
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1829
|
+
# # Here is how to wait for a response.
|
1835
1830
|
# result.wait_until_done! timeout: 60
|
1836
1831
|
# if result.response?
|
1837
1832
|
# p result.response
|
1838
1833
|
# else
|
1839
|
-
# puts "
|
1834
|
+
# puts "No response received."
|
1840
1835
|
# end
|
1841
1836
|
#
|
1842
1837
|
def delete_azure_node_pool request, options = nil
|
@@ -2013,9 +2008,9 @@ module Google
|
|
2013
2008
|
# * (`String`) The path to a service account key file in JSON format
|
2014
2009
|
# * (`Hash`) A service account key as a Hash
|
2015
2010
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2016
|
-
# (see the [googleauth docs](https://
|
2011
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2017
2012
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2018
|
-
# (see the [signet docs](https://
|
2013
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2019
2014
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2020
2015
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2021
2016
|
# * (`nil`) indicating no credentials
|
@@ -2057,7 +2052,9 @@ module Google
|
|
2057
2052
|
class Configuration
|
2058
2053
|
extend ::Gapic::Config
|
2059
2054
|
|
2060
|
-
|
2055
|
+
DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
|
2056
|
+
|
2057
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2061
2058
|
config_attr :credentials, nil do |value|
|
2062
2059
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2063
2060
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -2092,6 +2089,14 @@ module Google
|
|
2092
2089
|
end
|
2093
2090
|
end
|
2094
2091
|
|
2092
|
+
##
|
2093
|
+
# Configuration for the channel pool
|
2094
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2095
|
+
#
|
2096
|
+
def channel_pool
|
2097
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2098
|
+
end
|
2099
|
+
|
2095
2100
|
##
|
2096
2101
|
# Configuration RPC class for the AzureClusters API.
|
2097
2102
|
#
|
@@ -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
|
@@ -158,13 +159,11 @@ module Google
|
|
158
159
|
# # Call the list_operations method.
|
159
160
|
# result = client.list_operations request
|
160
161
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
166
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
166
|
+
# p item
|
168
167
|
# end
|
169
168
|
#
|
170
169
|
def list_operations request, options = nil
|
@@ -253,14 +252,14 @@ module Google
|
|
253
252
|
# # Call the get_operation method.
|
254
253
|
# result = client.get_operation request
|
255
254
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
259
258
|
# result.wait_until_done! timeout: 60
|
260
259
|
# if result.response?
|
261
260
|
# p result.response
|
262
261
|
# else
|
263
|
-
# puts "
|
262
|
+
# puts "No response received."
|
264
263
|
# end
|
265
264
|
#
|
266
265
|
def get_operation request, options = nil
|
@@ -540,14 +539,14 @@ module Google
|
|
540
539
|
# # Call the wait_operation method.
|
541
540
|
# result = client.wait_operation request
|
542
541
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
546
545
|
# result.wait_until_done! timeout: 60
|
547
546
|
# if result.response?
|
548
547
|
# p result.response
|
549
548
|
# else
|
550
|
-
# puts "
|
549
|
+
# puts "No response received."
|
551
550
|
# end
|
552
551
|
#
|
553
552
|
def wait_operation request, options = nil
|
@@ -622,9 +621,9 @@ module Google
|
|
622
621
|
# * (`String`) The path to a service account key file in JSON format
|
623
622
|
# * (`Hash`) A service account key as a Hash
|
624
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
629
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +665,9 @@ module Google
|
|
666
665
|
class Configuration
|
667
666
|
extend ::Gapic::Config
|
668
667
|
|
669
|
-
|
668
|
+
DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
671
|
config_attr :credentials, nil do |value|
|
671
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -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
|
#
|
@@ -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/gkemulticloud/v1/attached_resources.proto
|
3
4
|
|
@@ -8,60 +9,33 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/cloud/gkemulticloud/v1/common_resources_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
35
|
-
add_enum "google.cloud.gkemulticloud.v1.AttachedCluster.State" do
|
36
|
-
value :STATE_UNSPECIFIED, 0
|
37
|
-
value :PROVISIONING, 1
|
38
|
-
value :RUNNING, 2
|
39
|
-
value :RECONCILING, 3
|
40
|
-
value :STOPPING, 4
|
41
|
-
value :ERROR, 5
|
42
|
-
value :DEGRADED, 6
|
43
|
-
end
|
44
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedClustersAuthorization" do
|
45
|
-
repeated :admin_users, :message, 1, "google.cloud.gkemulticloud.v1.AttachedClusterUser"
|
46
|
-
end
|
47
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedClusterUser" do
|
48
|
-
optional :username, :string, 1
|
49
|
-
end
|
50
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedOidcConfig" do
|
51
|
-
optional :issuer_url, :string, 1
|
52
|
-
optional :jwks, :bytes, 2
|
53
|
-
end
|
54
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedServerConfig" do
|
55
|
-
optional :name, :string, 1
|
56
|
-
repeated :valid_versions, :message, 2, "google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo"
|
57
|
-
end
|
58
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo" do
|
59
|
-
optional :version, :string, 1
|
60
|
-
end
|
61
|
-
add_message "google.cloud.gkemulticloud.v1.AttachedClusterError" do
|
62
|
-
optional :message, :string, 1
|
12
|
+
|
13
|
+
descriptor_data = "\n6google/cloud/gkemulticloud/v1/attached_resources.proto\x12\x1dgoogle.cloud.gkemulticloud.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/gkemulticloud/v1/common_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcc\n\n\x0f\x41ttachedCluster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\x0boidc_config\x18\x03 \x01(\x0b\x32\x31.google.cloud.gkemulticloud.v1.AttachedOidcConfigB\x03\xe0\x41\x02\x12\x1d\n\x10platform_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64istribution\x18\x10 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63luster_region\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x38\n\x05\x66leet\x18\x05 \x01(\x0b\x32$.google.cloud.gkemulticloud.v1.FleetB\x03\xe0\x41\x02\x12H\n\x05state\x18\x06 \x01(\x0e\x32\x34.google.cloud.gkemulticloud.v1.AttachedCluster.StateB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12\x1f\n\x12kubernetes_version\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12Y\n\x0b\x61nnotations\x18\r \x03(\x0b\x32?.google.cloud.gkemulticloud.v1.AttachedCluster.AnnotationsEntryB\x03\xe0\x41\x01\x12\\\n\x18workload_identity_config\x18\x0e \x01(\x0b\x32\x35.google.cloud.gkemulticloud.v1.WorkloadIdentityConfigB\x03\xe0\x41\x03\x12I\n\x0elogging_config\x18\x0f \x01(\x0b\x32,.google.cloud.gkemulticloud.v1.LoggingConfigB\x03\xe0\x41\x01\x12H\n\x06\x65rrors\x18\x14 \x03(\x0b\x32\x33.google.cloud.gkemulticloud.v1.AttachedClusterErrorB\x03\xe0\x41\x03\x12X\n\rauthorization\x18\x15 \x01(\x0b\x32<.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationB\x03\xe0\x41\x01\x12O\n\x11monitoring_config\x18\x17 \x01(\x0b\x32/.google.cloud.gkemulticloud.v1.MonitoringConfigB\x03\xe0\x41\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0f\n\x0bRECONCILING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\x0c\n\x08\x44\x45GRADED\x10\x06:~\xea\x41{\n,gkemulticloud.googleapis.com/AttachedCluster\x12Kprojects/{project}/locations/{location}/attachedClusters/{attached_cluster}\"m\n\x1d\x41ttachedClustersAuthorization\x12L\n\x0b\x61\x64min_users\x18\x01 \x03(\x0b\x32\x32.google.cloud.gkemulticloud.v1.AttachedClusterUserB\x03\xe0\x41\x02\",\n\x13\x41ttachedClusterUser\x12\x15\n\x08username\x18\x01 \x01(\tB\x03\xe0\x41\x02\";\n\x12\x41ttachedOidcConfig\x12\x12\n\nissuer_url\x18\x01 \x01(\t\x12\x11\n\x04jwks\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01\"\xee\x01\n\x14\x41ttachedServerConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0evalid_versions\x18\x02 \x03(\x0b\x32:.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo:t\xea\x41q\n1gkemulticloud.googleapis.com/AttachedServerConfig\x12<projects/{project}/locations/{location}/attachedServerConfig\".\n\x1b\x41ttachedPlatformVersionInfo\x12\x0f\n\x07version\x18\x01 \x01(\t\"\'\n\x14\x41ttachedClusterError\x12\x0f\n\x07message\x18\x01 \x01(\tB\xe9\x01\n!com.google.cloud.gkemulticloud.v1B\x16\x41ttachedResourcesProtoP\x01ZGcloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb\xaa\x02\x1dGoogle.Cloud.GkeMultiCloud.V1\xca\x02\x1dGoogle\\Cloud\\GkeMultiCloud\\V1\xea\x02 Google::Cloud::GkeMultiCloud::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.cloud.gkemulticloud.v1.Fleet", "google/cloud/gkemulticloud/v1/common_resources.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
63
35
|
end
|
64
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
65
39
|
end
|
66
40
|
|
67
41
|
module Google
|
@@ -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/gkemulticloud/v1/attached_service.proto
|
3
4
|
|
@@ -11,57 +12,33 @@ require 'google/cloud/gkemulticloud/v1/attached_resources_pb'
|
|
11
12
|
require 'google/longrunning/operations_pb'
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
add_message "google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest" do
|
38
|
-
optional :attached_cluster, :message, 1, "google.cloud.gkemulticloud.v1.AttachedCluster"
|
39
|
-
optional :validate_only, :bool, 2
|
40
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
41
|
-
end
|
42
|
-
add_message "google.cloud.gkemulticloud.v1.GetAttachedClusterRequest" do
|
43
|
-
optional :name, :string, 1
|
44
|
-
end
|
45
|
-
add_message "google.cloud.gkemulticloud.v1.ListAttachedClustersRequest" do
|
46
|
-
optional :parent, :string, 1
|
47
|
-
optional :page_size, :int32, 2
|
48
|
-
optional :page_token, :string, 3
|
49
|
-
end
|
50
|
-
add_message "google.cloud.gkemulticloud.v1.ListAttachedClustersResponse" do
|
51
|
-
repeated :attached_clusters, :message, 1, "google.cloud.gkemulticloud.v1.AttachedCluster"
|
52
|
-
optional :next_page_token, :string, 2
|
53
|
-
end
|
54
|
-
add_message "google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest" do
|
55
|
-
optional :name, :string, 1
|
56
|
-
optional :validate_only, :bool, 2
|
57
|
-
optional :allow_missing, :bool, 3
|
58
|
-
optional :ignore_errors, :bool, 5
|
59
|
-
optional :etag, :string, 4
|
60
|
-
end
|
61
|
-
add_message "google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest" do
|
62
|
-
optional :name, :string, 1
|
15
|
+
|
16
|
+
descriptor_data = "\n4google/cloud/gkemulticloud/v1/attached_service.proto\x12\x1dgoogle.cloud.gkemulticloud.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/cloud/gkemulticloud/v1/attached_resources.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\"\xb6\x01\n-GenerateAttachedClusterInstallManifestRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gkemulticloud.googleapis.com/AttachedCluster\x12 \n\x13\x61ttached_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10platform_version\x18\x03 \x01(\tB\x03\xe0\x41\x02\"B\n.GenerateAttachedClusterInstallManifestResponse\x12\x10\n\x08manifest\x18\x01 \x01(\t\"\xec\x01\n\x1c\x43reateAttachedClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gkemulticloud.googleapis.com/AttachedCluster\x12M\n\x10\x61ttached_cluster\x18\x02 \x01(\x0b\x32..google.cloud.gkemulticloud.v1.AttachedClusterB\x03\xe0\x41\x02\x12 \n\x13\x61ttached_cluster_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd4\x01\n\x1cImportAttachedClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gkemulticloud.googleapis.com/AttachedCluster\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x1d\n\x10\x66leet_membership\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10platform_version\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64istribution\x18\x05 \x01(\tB\x03\xe0\x41\x02\"\xba\x01\n\x1cUpdateAttachedClusterRequest\x12M\n\x10\x61ttached_cluster\x18\x01 \x01(\x0b\x32..google.cloud.gkemulticloud.v1.AttachedClusterB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x19GetAttachedClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,gkemulticloud.googleapis.com/AttachedCluster\"\x8a\x01\n\x1bListAttachedClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,gkemulticloud.googleapis.com/AttachedCluster\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1cListAttachedClustersResponse\x12I\n\x11\x61ttached_clusters\x18\x01 \x03(\x0b\x32..google.cloud.gkemulticloud.v1.AttachedCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb5\x01\n\x1c\x44\x65leteAttachedClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,gkemulticloud.googleapis.com/AttachedCluster\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\x12\x15\n\rignore_errors\x18\x05 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"i\n\x1eGetAttachedServerConfigRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1gkemulticloud.googleapis.com/AttachedServerConfig2\xb5\x10\n\x10\x41ttachedClusters\x12\x99\x02\n\x15\x43reateAttachedCluster\x12;.google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/attachedClusters:\x10\x61ttached_cluster\xda\x41+parent,attached_cluster,attached_cluster_id\xca\x41$\n\x0f\x41ttachedCluster\x12\x11OperationMetadata\x12\x9b\x02\n\x15UpdateAttachedCluster\x12;.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\x82\xd3\xe4\x93\x02Y2E/v1/{attached_cluster.name=projects/*/locations/*/attachedClusters/*}:\x10\x61ttached_cluster\xda\x41\x1c\x61ttached_cluster,update_mask\xca\x41$\n\x0f\x41ttachedCluster\x12\x11OperationMetadata\x12\xfd\x01\n\x15ImportAttachedCluster\x12;.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02@\";/v1/{parent=projects/*/locations/*}/attachedClusters:import:\x01*\xda\x41\x17parent,fleet_membership\xca\x41$\n\x0f\x41ttachedCluster\x12\x11OperationMetadata\x12\xc3\x01\n\x12GetAttachedCluster\x12\x38.google.cloud.gkemulticloud.v1.GetAttachedClusterRequest\x1a..google.cloud.gkemulticloud.v1.AttachedCluster\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/attachedClusters/*}\xda\x41\x04name\x12\xd6\x01\n\x14ListAttachedClusters\x12:.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest\x1a;.google.cloud.gkemulticloud.v1.ListAttachedClustersResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*}/attachedClusters\xda\x41\x06parent\x12\xe5\x01\n\x15\x44\x65leteAttachedCluster\x12;.google.cloud.gkemulticloud.v1.DeleteAttachedClusterRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/attachedClusters/*}\xda\x41\x04name\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x12\xd4\x01\n\x17GetAttachedServerConfig\x12=.google.cloud.gkemulticloud.v1.GetAttachedServerConfigRequest\x1a\x33.google.cloud.gkemulticloud.v1.AttachedServerConfig\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/attachedServerConfig}\xda\x41\x04name\x12\xb6\x02\n&GenerateAttachedClusterInstallManifest\x12L.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest\x1aM.google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse\"o\x82\xd3\xe4\x93\x02L\x12J/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest\xda\x41\x1aparent,attached_cluster_id\x1aP\xca\x41\x1cgkemulticloud.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe7\x01\n!com.google.cloud.gkemulticloud.v1B\x14\x41ttachedServiceProtoP\x01ZGcloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb\xaa\x02\x1dGoogle.Cloud.GkeMultiCloud.V1\xca\x02\x1dGoogle\\Cloud\\GkeMultiCloud\\V1\xea\x02 Google::Cloud::GkeMultiCloud::V1b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.cloud.gkemulticloud.v1.AttachedCluster", "google/cloud/gkemulticloud/v1/attached_resources.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
63
38
|
end
|
64
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
65
42
|
end
|
66
43
|
|
67
44
|
module Google
|