google-cloud-gke_multi_cloud-v1 0.3.0 → 0.5.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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +32 -32
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +17 -17
  5. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +42 -44
  6. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +17 -17
  7. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +58 -59
  8. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +17 -17
  9. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  10. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +26 -52
  11. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +26 -49
  12. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +1 -1
  13. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +26 -158
  14. data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +27 -69
  15. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +27 -150
  17. data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +27 -92
  18. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +1 -1
  19. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +25 -50
  20. data/proto_docs/google/api/client.rb +67 -4
  21. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +3 -3
  22. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +6 -6
  23. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +1 -1
  24. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +4 -4
  25. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +26 -5
  26. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +8 -5
  27. data/proto_docs/google/protobuf/any.rb +7 -4
  28. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  29. 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 == Client.configure.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
@@ -286,14 +286,14 @@ module Google
286
286
  # # Call the create_azure_client method.
287
287
  # result = client.create_azure_client request
288
288
  #
289
- # # The returned object is of type Gapic::Operation. You can use this
290
- # # object to check the status of an operation, cancel it, or wait
291
- # # for results. Here is how to block until completion:
289
+ # # The returned object is of type Gapic::Operation. You can use it to
290
+ # # check the status of an operation, cancel it, or wait for results.
291
+ # # Here is how to wait for a response.
292
292
  # result.wait_until_done! timeout: 60
293
293
  # if result.response?
294
294
  # p result.response
295
295
  # else
296
- # puts "Error!"
296
+ # puts "No response received."
297
297
  # end
298
298
  #
299
299
  def create_azure_client request, options = nil
@@ -459,7 +459,7 @@ module Google
459
459
  # Location names are formatted as `projects/<project-id>/locations/<region>`.
460
460
  #
461
461
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
462
- # for more details on GCP resource names.
462
+ # for more details on Google Cloud Platform resource names.
463
463
  # @param page_size [::Integer]
464
464
  # The maximum number of items to return.
465
465
  #
@@ -493,13 +493,11 @@ module Google
493
493
  # # Call the list_azure_clients method.
494
494
  # result = client.list_azure_clients request
495
495
  #
496
- # # The returned object is of type Gapic::PagedEnumerable. You can
497
- # # iterate over all elements by calling #each, and the enumerable
498
- # # will lazily make API calls to fetch subsequent pages. Other
499
- # # methods are also available for managing paging directly.
500
- # result.each do |response|
496
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
497
+ # # over elements, and API calls will be issued to fetch pages as needed.
498
+ # result.each do |item|
501
499
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureClient.
502
- # p response
500
+ # p item
503
501
  # end
504
502
  #
505
503
  def list_azure_clients request, options = nil
@@ -610,14 +608,14 @@ module Google
610
608
  # # Call the delete_azure_client method.
611
609
  # result = client.delete_azure_client request
612
610
  #
613
- # # The returned object is of type Gapic::Operation. You can use this
614
- # # object to check the status of an operation, cancel it, or wait
615
- # # for results. Here is how to block until completion:
611
+ # # The returned object is of type Gapic::Operation. You can use it to
612
+ # # check the status of an operation, cancel it, or wait for results.
613
+ # # Here is how to wait for a response.
616
614
  # result.wait_until_done! timeout: 60
617
615
  # if result.response?
618
616
  # p result.response
619
617
  # else
620
- # puts "Error!"
618
+ # puts "No response received."
621
619
  # end
622
620
  #
623
621
  def delete_azure_client request, options = nil
@@ -664,7 +662,7 @@ module Google
664
662
 
665
663
  ##
666
664
  # Creates a new {::Google::Cloud::GkeMultiCloud::V1::AzureCluster AzureCluster}
667
- # resource on a given GCP project and region.
665
+ # resource on a given Google Cloud Platform project and region.
668
666
  #
669
667
  # If successful, the response contains a newly created
670
668
  # {::Google::Longrunning::Operation Operation} resource that can be
@@ -730,14 +728,14 @@ module Google
730
728
  # # Call the create_azure_cluster method.
731
729
  # result = client.create_azure_cluster request
732
730
  #
733
- # # The returned object is of type Gapic::Operation. You can use this
734
- # # object to check the status of an operation, cancel it, or wait
735
- # # for results. Here is how to block until completion:
731
+ # # The returned object is of type Gapic::Operation. You can use it to
732
+ # # check the status of an operation, cancel it, or wait for results.
733
+ # # Here is how to wait for a response.
736
734
  # result.wait_until_done! timeout: 60
737
735
  # if result.response?
738
736
  # p result.response
739
737
  # else
740
- # puts "Error!"
738
+ # puts "No response received."
741
739
  # end
742
740
  #
743
741
  def create_azure_cluster request, options = nil
@@ -817,6 +815,9 @@ module Google
817
815
  # * `annotations`.
818
816
  # * `authorization.admin_users`.
819
817
  # * `control_plane.root_volume.size_gib`.
818
+ # * `azure_services_authentication`.
819
+ # * `azure_services_authentication.tenant_id`.
820
+ # * `azure_services_authentication.application_id`.
820
821
  # * `control_plane.proxy_config`.
821
822
  # * `control_plane.proxy_config.resource_group_id`.
822
823
  # * `control_plane.proxy_config.secret_id`.
@@ -844,14 +845,14 @@ module Google
844
845
  # # Call the update_azure_cluster method.
845
846
  # result = client.update_azure_cluster request
846
847
  #
847
- # # The returned object is of type Gapic::Operation. You can use this
848
- # # object to check the status of an operation, cancel it, or wait
849
- # # for results. Here is how to block until completion:
848
+ # # The returned object is of type Gapic::Operation. You can use it to
849
+ # # check the status of an operation, cancel it, or wait for results.
850
+ # # Here is how to wait for a response.
850
851
  # result.wait_until_done! timeout: 60
851
852
  # if result.response?
852
853
  # p result.response
853
854
  # else
854
- # puts "Error!"
855
+ # puts "No response received."
855
856
  # end
856
857
  #
857
858
  def update_azure_cluster request, options = nil
@@ -924,7 +925,7 @@ module Google
924
925
  # `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
925
926
  #
926
927
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
927
- # for more details on GCP resource names.
928
+ # for more details on Google Cloud Platform resource names.
928
929
  #
929
930
  # @yield [response, operation] Access the result along with the RPC operation
930
931
  # @yieldparam response [::Google::Cloud::GkeMultiCloud::V1::AzureCluster]
@@ -1016,7 +1017,7 @@ module Google
1016
1017
  # Location names are formatted as `projects/<project-id>/locations/<region>`.
1017
1018
  #
1018
1019
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
1019
- # for more details on GCP resource names.
1020
+ # for more details on Google Cloud Platform resource names.
1020
1021
  # @param page_size [::Integer]
1021
1022
  # The maximum number of items to return.
1022
1023
  #
@@ -1050,13 +1051,11 @@ module Google
1050
1051
  # # Call the list_azure_clusters method.
1051
1052
  # result = client.list_azure_clusters request
1052
1053
  #
1053
- # # The returned object is of type Gapic::PagedEnumerable. You can
1054
- # # iterate over all elements by calling #each, and the enumerable
1055
- # # will lazily make API calls to fetch subsequent pages. Other
1056
- # # methods are also available for managing paging directly.
1057
- # result.each do |response|
1054
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1055
+ # # over elements, and API calls will be issued to fetch pages as needed.
1056
+ # result.each do |item|
1058
1057
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureCluster.
1059
- # p response
1058
+ # p item
1060
1059
  # end
1061
1060
  #
1062
1061
  def list_azure_clusters request, options = nil
@@ -1135,7 +1134,7 @@ module Google
1135
1134
  # `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
1136
1135
  #
1137
1136
  # See [Resource Names](https://cloud.google.com/apis/design/resource_names)
1138
- # for more details on GCP resource names.
1137
+ # for more details on Google Cloud Platform resource names.
1139
1138
  # @param allow_missing [::Boolean]
1140
1139
  # If set to true, and the
1141
1140
  # {::Google::Cloud::GkeMultiCloud::V1::AzureCluster AzureCluster} resource is not
@@ -1174,14 +1173,14 @@ module Google
1174
1173
  # # Call the delete_azure_cluster method.
1175
1174
  # result = client.delete_azure_cluster request
1176
1175
  #
1177
- # # The returned object is of type Gapic::Operation. You can use this
1178
- # # object to check the status of an operation, cancel it, or wait
1179
- # # for results. Here is how to block until completion:
1176
+ # # The returned object is of type Gapic::Operation. You can use it to
1177
+ # # check the status of an operation, cancel it, or wait for results.
1178
+ # # Here is how to wait for a response.
1180
1179
  # result.wait_until_done! timeout: 60
1181
1180
  # if result.response?
1182
1181
  # p result.response
1183
1182
  # else
1184
- # puts "Error!"
1183
+ # puts "No response received."
1185
1184
  # end
1186
1185
  #
1187
1186
  def delete_azure_cluster request, options = nil
@@ -1389,14 +1388,14 @@ module Google
1389
1388
  # # Call the create_azure_node_pool method.
1390
1389
  # result = client.create_azure_node_pool request
1391
1390
  #
1392
- # # The returned object is of type Gapic::Operation. You can use this
1393
- # # object to check the status of an operation, cancel it, or wait
1394
- # # for results. Here is how to block until completion:
1391
+ # # The returned object is of type Gapic::Operation. You can use it to
1392
+ # # check the status of an operation, cancel it, or wait for results.
1393
+ # # Here is how to wait for a response.
1395
1394
  # result.wait_until_done! timeout: 60
1396
1395
  # if result.response?
1397
1396
  # p result.response
1398
1397
  # else
1399
- # puts "Error!"
1398
+ # puts "No response received."
1400
1399
  # end
1401
1400
  #
1402
1401
  def create_azure_node_pool request, options = nil
@@ -1495,14 +1494,14 @@ module Google
1495
1494
  # # Call the update_azure_node_pool method.
1496
1495
  # result = client.update_azure_node_pool request
1497
1496
  #
1498
- # # The returned object is of type Gapic::Operation. You can use this
1499
- # # object to check the status of an operation, cancel it, or wait
1500
- # # for results. Here is how to block until completion:
1497
+ # # The returned object is of type Gapic::Operation. You can use it to
1498
+ # # check the status of an operation, cancel it, or wait for results.
1499
+ # # Here is how to wait for a response.
1501
1500
  # result.wait_until_done! timeout: 60
1502
1501
  # if result.response?
1503
1502
  # p result.response
1504
1503
  # else
1505
- # puts "Error!"
1504
+ # puts "No response received."
1506
1505
  # end
1507
1506
  #
1508
1507
  def update_azure_node_pool request, options = nil
@@ -1703,13 +1702,11 @@ module Google
1703
1702
  # # Call the list_azure_node_pools method.
1704
1703
  # result = client.list_azure_node_pools request
1705
1704
  #
1706
- # # The returned object is of type Gapic::PagedEnumerable. You can
1707
- # # iterate over all elements by calling #each, and the enumerable
1708
- # # will lazily make API calls to fetch subsequent pages. Other
1709
- # # methods are also available for managing paging directly.
1710
- # result.each do |response|
1705
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1706
+ # # over elements, and API calls will be issued to fetch pages as needed.
1707
+ # result.each do |item|
1711
1708
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureNodePool.
1712
- # p response
1709
+ # p item
1713
1710
  # end
1714
1711
  #
1715
1712
  def list_azure_node_pools request, options = nil
@@ -1826,14 +1823,14 @@ module Google
1826
1823
  # # Call the delete_azure_node_pool method.
1827
1824
  # result = client.delete_azure_node_pool request
1828
1825
  #
1829
- # # The returned object is of type Gapic::Operation. You can use this
1830
- # # object to check the status of an operation, cancel it, or wait
1831
- # # for results. Here is how to block until completion:
1826
+ # # The returned object is of type Gapic::Operation. You can use it to
1827
+ # # check the status of an operation, cancel it, or wait for results.
1828
+ # # Here is how to wait for a response.
1832
1829
  # result.wait_until_done! timeout: 60
1833
1830
  # if result.response?
1834
1831
  # p result.response
1835
1832
  # else
1836
- # puts "Error!"
1833
+ # puts "No response received."
1837
1834
  # end
1838
1835
  #
1839
1836
  def delete_azure_node_pool request, options = nil
@@ -2010,9 +2007,9 @@ module Google
2010
2007
  # * (`String`) The path to a service account key file in JSON format
2011
2008
  # * (`Hash`) A service account key as a Hash
2012
2009
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2013
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2010
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2014
2011
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2015
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2012
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2016
2013
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2017
2014
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2018
2015
  # * (`nil`) indicating no credentials
@@ -2054,7 +2051,9 @@ module Google
2054
2051
  class Configuration
2055
2052
  extend ::Gapic::Config
2056
2053
 
2057
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
2054
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
2055
+
2056
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2058
2057
  config_attr :credentials, nil do |value|
2059
2058
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2060
2059
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials
@@ -666,7 +664,9 @@ module Google
666
664
  class Configuration
667
665
  extend ::Gapic::Config
668
666
 
669
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
670
  config_attr :credentials, nil do |value|
671
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GkeMultiCloud
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/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
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/gkemulticloud/v1/attached_resources.proto", :syntax => :proto3) do
13
- add_message "google.cloud.gkemulticloud.v1.AttachedCluster" do
14
- optional :name, :string, 1
15
- optional :description, :string, 2
16
- optional :oidc_config, :message, 3, "google.cloud.gkemulticloud.v1.AttachedOidcConfig"
17
- optional :platform_version, :string, 4
18
- optional :distribution, :string, 16
19
- optional :cluster_region, :string, 22
20
- optional :fleet, :message, 5, "google.cloud.gkemulticloud.v1.Fleet"
21
- optional :state, :enum, 6, "google.cloud.gkemulticloud.v1.AttachedCluster.State"
22
- optional :uid, :string, 7
23
- optional :reconciling, :bool, 8
24
- optional :create_time, :message, 9, "google.protobuf.Timestamp"
25
- optional :update_time, :message, 10, "google.protobuf.Timestamp"
26
- optional :etag, :string, 11
27
- optional :kubernetes_version, :string, 12
28
- map :annotations, :string, :string, 13
29
- optional :workload_identity_config, :message, 14, "google.cloud.gkemulticloud.v1.WorkloadIdentityConfig"
30
- optional :logging_config, :message, 15, "google.cloud.gkemulticloud.v1.LoggingConfig"
31
- repeated :errors, :message, 20, "google.cloud.gkemulticloud.v1.AttachedClusterError"
32
- optional :authorization, :message, 21, "google.cloud.gkemulticloud.v1.AttachedClustersAuthorization"
33
- optional :monitoring_config, :message, 23, "google.cloud.gkemulticloud.v1.MonitoringConfig"
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
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/cloud/gkemulticloud/v1/attached_service.proto", :syntax => :proto3) do
16
- add_message "google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestRequest" do
17
- optional :parent, :string, 1
18
- optional :attached_cluster_id, :string, 2
19
- optional :platform_version, :string, 3
20
- end
21
- add_message "google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse" do
22
- optional :manifest, :string, 1
23
- end
24
- add_message "google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest" do
25
- optional :parent, :string, 1
26
- optional :attached_cluster, :message, 2, "google.cloud.gkemulticloud.v1.AttachedCluster"
27
- optional :attached_cluster_id, :string, 3
28
- optional :validate_only, :bool, 4
29
- end
30
- add_message "google.cloud.gkemulticloud.v1.ImportAttachedClusterRequest" do
31
- optional :parent, :string, 1
32
- optional :validate_only, :bool, 2
33
- optional :fleet_membership, :string, 3
34
- optional :platform_version, :string, 4
35
- optional :distribution, :string, 5
36
- end
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
@@ -37,7 +37,7 @@ module Google
37
37
 
38
38
  # Creates a new
39
39
  # [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
40
- # on a given GCP project and region.
40
+ # on a given Google Cloud Platform project and region.
41
41
  #
42
42
  # If successful, the response contains a newly created
43
43
  # [Operation][google.longrunning.Operation] resource that can be