google-cloud-gke_multi_cloud-v1 0.4.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.
@@ -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
@@ -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
@@ -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
@@ -847,14 +845,14 @@ module Google
847
845
  # # Call the update_azure_cluster method.
848
846
  # result = client.update_azure_cluster request
849
847
  #
850
- # # The returned object is of type Gapic::Operation. You can use this
851
- # # object to check the status of an operation, cancel it, or wait
852
- # # 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.
853
851
  # result.wait_until_done! timeout: 60
854
852
  # if result.response?
855
853
  # p result.response
856
854
  # else
857
- # puts "Error!"
855
+ # puts "No response received."
858
856
  # end
859
857
  #
860
858
  def update_azure_cluster request, options = nil
@@ -1053,13 +1051,11 @@ module Google
1053
1051
  # # Call the list_azure_clusters method.
1054
1052
  # result = client.list_azure_clusters request
1055
1053
  #
1056
- # # The returned object is of type Gapic::PagedEnumerable. You can
1057
- # # iterate over all elements by calling #each, and the enumerable
1058
- # # will lazily make API calls to fetch subsequent pages. Other
1059
- # # methods are also available for managing paging directly.
1060
- # 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|
1061
1057
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureCluster.
1062
- # p response
1058
+ # p item
1063
1059
  # end
1064
1060
  #
1065
1061
  def list_azure_clusters request, options = nil
@@ -1177,14 +1173,14 @@ module Google
1177
1173
  # # Call the delete_azure_cluster method.
1178
1174
  # result = client.delete_azure_cluster request
1179
1175
  #
1180
- # # The returned object is of type Gapic::Operation. You can use this
1181
- # # object to check the status of an operation, cancel it, or wait
1182
- # # 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.
1183
1179
  # result.wait_until_done! timeout: 60
1184
1180
  # if result.response?
1185
1181
  # p result.response
1186
1182
  # else
1187
- # puts "Error!"
1183
+ # puts "No response received."
1188
1184
  # end
1189
1185
  #
1190
1186
  def delete_azure_cluster request, options = nil
@@ -1392,14 +1388,14 @@ module Google
1392
1388
  # # Call the create_azure_node_pool method.
1393
1389
  # result = client.create_azure_node_pool request
1394
1390
  #
1395
- # # The returned object is of type Gapic::Operation. You can use this
1396
- # # object to check the status of an operation, cancel it, or wait
1397
- # # 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.
1398
1394
  # result.wait_until_done! timeout: 60
1399
1395
  # if result.response?
1400
1396
  # p result.response
1401
1397
  # else
1402
- # puts "Error!"
1398
+ # puts "No response received."
1403
1399
  # end
1404
1400
  #
1405
1401
  def create_azure_node_pool request, options = nil
@@ -1498,14 +1494,14 @@ module Google
1498
1494
  # # Call the update_azure_node_pool method.
1499
1495
  # result = client.update_azure_node_pool request
1500
1496
  #
1501
- # # The returned object is of type Gapic::Operation. You can use this
1502
- # # object to check the status of an operation, cancel it, or wait
1503
- # # 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.
1504
1500
  # result.wait_until_done! timeout: 60
1505
1501
  # if result.response?
1506
1502
  # p result.response
1507
1503
  # else
1508
- # puts "Error!"
1504
+ # puts "No response received."
1509
1505
  # end
1510
1506
  #
1511
1507
  def update_azure_node_pool request, options = nil
@@ -1706,13 +1702,11 @@ module Google
1706
1702
  # # Call the list_azure_node_pools method.
1707
1703
  # result = client.list_azure_node_pools request
1708
1704
  #
1709
- # # The returned object is of type Gapic::PagedEnumerable. You can
1710
- # # iterate over all elements by calling #each, and the enumerable
1711
- # # will lazily make API calls to fetch subsequent pages. Other
1712
- # # methods are also available for managing paging directly.
1713
- # 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|
1714
1708
  # # Each element is of type ::Google::Cloud::GkeMultiCloud::V1::AzureNodePool.
1715
- # p response
1709
+ # p item
1716
1710
  # end
1717
1711
  #
1718
1712
  def list_azure_node_pools request, options = nil
@@ -1829,14 +1823,14 @@ module Google
1829
1823
  # # Call the delete_azure_node_pool method.
1830
1824
  # result = client.delete_azure_node_pool request
1831
1825
  #
1832
- # # The returned object is of type Gapic::Operation. You can use this
1833
- # # object to check the status of an operation, cancel it, or wait
1834
- # # 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.
1835
1829
  # result.wait_until_done! timeout: 60
1836
1830
  # if result.response?
1837
1831
  # p result.response
1838
1832
  # else
1839
- # puts "Error!"
1833
+ # puts "No response received."
1840
1834
  # end
1841
1835
  #
1842
1836
  def delete_azure_node_pool request, options = nil
@@ -2013,9 +2007,9 @@ module Google
2013
2007
  # * (`String`) The path to a service account key file in JSON format
2014
2008
  # * (`Hash`) A service account key as a Hash
2015
2009
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2016
- # (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))
2017
2011
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2018
- # (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))
2019
2013
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2020
2014
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2021
2015
  # * (`nil`) indicating no credentials
@@ -2057,7 +2051,9 @@ module Google
2057
2051
  class Configuration
2058
2052
  extend ::Gapic::Config
2059
2053
 
2060
- config_attr :endpoint, "gkemulticloud.googleapis.com", ::String
2054
+ DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
2055
+
2056
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2061
2057
  config_attr :credentials, nil do |value|
2062
2058
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2063
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.4.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