google-cloud-gke_multi_cloud-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,9 @@ module Google
31
31
  # to create and manage Anthos clusters that run on AWS infrastructure.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
36
+
34
37
  include Paths
35
38
 
36
39
  # @private
@@ -150,6 +153,15 @@ module Google
150
153
  @config
151
154
  end
152
155
 
156
+ ##
157
+ # The effective universe domain
158
+ #
159
+ # @return [String]
160
+ #
161
+ def universe_domain
162
+ @aws_clusters_stub.universe_domain
163
+ end
164
+
153
165
  ##
154
166
  # Create a new AwsClusters client object.
155
167
  #
@@ -183,8 +195,9 @@ module Google
183
195
  credentials = @config.credentials
184
196
  # Use self-signed JWT if the endpoint is unchanged from default,
185
197
  # but only if the default endpoint does not have a region prefix.
186
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
187
- !@config.endpoint.split(".").first.include?("-")
198
+ enable_self_signed_jwt = @config.endpoint.nil? ||
199
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
200
+ !@config.endpoint.split(".").first.include?("-"))
188
201
  credentials ||= Credentials.default scope: @config.scope,
189
202
  enable_self_signed_jwt: enable_self_signed_jwt
190
203
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -197,12 +210,15 @@ module Google
197
210
  config.credentials = credentials
198
211
  config.quota_project = @quota_project_id
199
212
  config.endpoint = @config.endpoint
213
+ config.universe_domain = @config.universe_domain
200
214
  end
201
215
 
202
216
  @aws_clusters_stub = ::Gapic::ServiceStub.new(
203
217
  ::Google::Cloud::GkeMultiCloud::V1::AwsClusters::Stub,
204
- credentials: credentials,
205
- endpoint: @config.endpoint,
218
+ credentials: credentials,
219
+ endpoint: @config.endpoint,
220
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
221
+ universe_domain: @config.universe_domain,
206
222
  channel_args: @config.channel_args,
207
223
  interceptors: @config.interceptors,
208
224
  channel_pool_config: @config.channel_pool
@@ -1993,9 +2009,9 @@ module Google
1993
2009
  # end
1994
2010
  #
1995
2011
  # @!attribute [rw] endpoint
1996
- # The hostname or hostname:port of the service endpoint.
1997
- # Defaults to `"gkemulticloud.googleapis.com"`.
1998
- # @return [::String]
2012
+ # A custom service endpoint, as a hostname or hostname:port. The default is
2013
+ # nil, indicating to use the default endpoint in the current universe domain.
2014
+ # @return [::String,nil]
1999
2015
  # @!attribute [rw] credentials
2000
2016
  # Credentials to send with calls. You may provide any of the following types:
2001
2017
  # * (`String`) The path to a service account key file in JSON format
@@ -2041,13 +2057,20 @@ module Google
2041
2057
  # @!attribute [rw] quota_project
2042
2058
  # A separate project against which to charge quota.
2043
2059
  # @return [::String]
2060
+ # @!attribute [rw] universe_domain
2061
+ # The universe domain within which to make requests. This determines the
2062
+ # default endpoint URL. The default value of nil uses the environment
2063
+ # universe (usually the default "googleapis.com" universe).
2064
+ # @return [::String,nil]
2044
2065
  #
2045
2066
  class Configuration
2046
2067
  extend ::Gapic::Config
2047
2068
 
2069
+ # @private
2070
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2048
2071
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
2049
2072
 
2050
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2073
+ config_attr :endpoint, nil, ::String, nil
2051
2074
  config_attr :credentials, nil do |value|
2052
2075
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2053
2076
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -2062,6 +2085,7 @@ module Google
2062
2085
  config_attr :metadata, nil, ::Hash, nil
2063
2086
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2064
2087
  config_attr :quota_project, nil, ::String, nil
2088
+ config_attr :universe_domain, nil, ::String, nil
2065
2089
 
2066
2090
  # @private
2067
2091
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module AwsClusters
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,8 +102,10 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
110
  interceptors: @config.interceptors,
97
111
  channel_pool_config: @config.channel_pool
@@ -613,9 +627,9 @@ module Google
613
627
  # end
614
628
  #
615
629
  # @!attribute [rw] endpoint
616
- # The hostname or hostname:port of the service endpoint.
617
- # Defaults to `"gkemulticloud.googleapis.com"`.
618
- # @return [::String]
630
+ # A custom service endpoint, as a hostname or hostname:port. The default is
631
+ # nil, indicating to use the default endpoint in the current universe domain.
632
+ # @return [::String,nil]
619
633
  # @!attribute [rw] credentials
620
634
  # Credentials to send with calls. You may provide any of the following types:
621
635
  # * (`String`) The path to a service account key file in JSON format
@@ -661,13 +675,20 @@ module Google
661
675
  # @!attribute [rw] quota_project
662
676
  # A separate project against which to charge quota.
663
677
  # @return [::String]
678
+ # @!attribute [rw] universe_domain
679
+ # The universe domain within which to make requests. This determines the
680
+ # default endpoint URL. The default value of nil uses the environment
681
+ # universe (usually the default "googleapis.com" universe).
682
+ # @return [::String,nil]
664
683
  #
665
684
  class Configuration
666
685
  extend ::Gapic::Config
667
686
 
687
+ # @private
688
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
668
689
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
669
690
 
670
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
691
+ config_attr :endpoint, nil, ::String, nil
671
692
  config_attr :credentials, nil do |value|
672
693
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
673
694
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -682,6 +703,7 @@ module Google
682
703
  config_attr :metadata, nil, ::Hash, nil
683
704
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
684
705
  config_attr :quota_project, nil, ::String, nil
706
+ config_attr :universe_domain, nil, ::String, nil
685
707
 
686
708
  # @private
687
709
  def initialize parent_config = nil
@@ -33,6 +33,9 @@ module Google
33
33
  # to create and manage Anthos clusters that run on AWS infrastructure.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -152,6 +155,15 @@ module Google
152
155
  @config
153
156
  end
154
157
 
158
+ ##
159
+ # The effective universe domain
160
+ #
161
+ # @return [String]
162
+ #
163
+ def universe_domain
164
+ @aws_clusters_stub.universe_domain
165
+ end
166
+
155
167
  ##
156
168
  # Create a new AwsClusters REST client object.
157
169
  #
@@ -179,8 +191,9 @@ module Google
179
191
  credentials = @config.credentials
180
192
  # Use self-signed JWT if the endpoint is unchanged from default,
181
193
  # but only if the default endpoint does not have a region prefix.
182
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
183
- !@config.endpoint.split(".").first.include?("-")
194
+ enable_self_signed_jwt = @config.endpoint.nil? ||
195
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
196
+ !@config.endpoint.split(".").first.include?("-"))
184
197
  credentials ||= Credentials.default scope: @config.scope,
185
198
  enable_self_signed_jwt: enable_self_signed_jwt
186
199
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -194,9 +207,15 @@ module Google
194
207
  config.credentials = credentials
195
208
  config.quota_project = @quota_project_id
196
209
  config.endpoint = @config.endpoint
210
+ config.universe_domain = @config.universe_domain
197
211
  end
198
212
 
199
- @aws_clusters_stub = ::Google::Cloud::GkeMultiCloud::V1::AwsClusters::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
213
+ @aws_clusters_stub = ::Google::Cloud::GkeMultiCloud::V1::AwsClusters::Rest::ServiceStub.new(
214
+ endpoint: @config.endpoint,
215
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
216
+ universe_domain: @config.universe_domain,
217
+ credentials: credentials
218
+ )
200
219
  end
201
220
 
202
221
  ##
@@ -1871,9 +1890,9 @@ module Google
1871
1890
  # end
1872
1891
  #
1873
1892
  # @!attribute [rw] endpoint
1874
- # The hostname or hostname:port of the service endpoint.
1875
- # Defaults to `"gkemulticloud.googleapis.com"`.
1876
- # @return [::String]
1893
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1894
+ # nil, indicating to use the default endpoint in the current universe domain.
1895
+ # @return [::String,nil]
1877
1896
  # @!attribute [rw] credentials
1878
1897
  # Credentials to send with calls. You may provide any of the following types:
1879
1898
  # * (`String`) The path to a service account key file in JSON format
@@ -1910,13 +1929,20 @@ module Google
1910
1929
  # @!attribute [rw] quota_project
1911
1930
  # A separate project against which to charge quota.
1912
1931
  # @return [::String]
1932
+ # @!attribute [rw] universe_domain
1933
+ # The universe domain within which to make requests. This determines the
1934
+ # default endpoint URL. The default value of nil uses the environment
1935
+ # universe (usually the default "googleapis.com" universe).
1936
+ # @return [::String,nil]
1913
1937
  #
1914
1938
  class Configuration
1915
1939
  extend ::Gapic::Config
1916
1940
 
1941
+ # @private
1942
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1917
1943
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
1918
1944
 
1919
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1945
+ config_attr :endpoint, nil, ::String, nil
1920
1946
  config_attr :credentials, nil do |value|
1921
1947
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1922
1948
  allowed.any? { |klass| klass === value }
@@ -1928,6 +1954,7 @@ module Google
1928
1954
  config_attr :metadata, nil, ::Hash, nil
1929
1955
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1930
1956
  config_attr :quota_project, nil, ::String, nil
1957
+ config_attr :universe_domain, nil, ::String, nil
1931
1958
 
1932
1959
  # @private
1933
1960
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -84,8 +96,10 @@ module Google
84
96
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
85
97
 
86
98
  @operations_stub = OperationsServiceStub.new(
87
- endpoint: @config.endpoint,
88
- credentials: credentials
99
+ endpoint: @config.endpoint,
100
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
101
+ universe_domain: @config.universe_domain,
102
+ credentials: credentials
89
103
  )
90
104
 
91
105
  # Used by an LRO wrapper for some methods of this service
@@ -478,9 +492,9 @@ module Google
478
492
  # end
479
493
  #
480
494
  # @!attribute [rw] endpoint
481
- # The hostname or hostname:port of the service endpoint.
482
- # Defaults to `"gkemulticloud.googleapis.com"`.
483
- # @return [::String]
495
+ # A custom service endpoint, as a hostname or hostname:port. The default is
496
+ # nil, indicating to use the default endpoint in the current universe domain.
497
+ # @return [::String,nil]
484
498
  # @!attribute [rw] credentials
485
499
  # Credentials to send with calls. You may provide any of the following types:
486
500
  # * (`String`) The path to a service account key file in JSON format
@@ -517,13 +531,20 @@ module Google
517
531
  # @!attribute [rw] quota_project
518
532
  # A separate project against which to charge quota.
519
533
  # @return [::String]
534
+ # @!attribute [rw] universe_domain
535
+ # The universe domain within which to make requests. This determines the
536
+ # default endpoint URL. The default value of nil uses the environment
537
+ # universe (usually the default "googleapis.com" universe).
538
+ # @return [::String,nil]
520
539
  #
521
540
  class Configuration
522
541
  extend ::Gapic::Config
523
542
 
543
+ # @private
544
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
524
545
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
525
546
 
526
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
547
+ config_attr :endpoint, nil, ::String, nil
527
548
  config_attr :credentials, nil do |value|
528
549
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
529
550
  allowed.any? { |klass| klass === value }
@@ -535,6 +556,7 @@ module Google
535
556
  config_attr :metadata, nil, ::Hash, nil
536
557
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
537
558
  config_attr :quota_project, nil, ::String, nil
559
+ config_attr :universe_domain, nil, ::String, nil
538
560
 
539
561
  # @private
540
562
  def initialize parent_config = nil
@@ -617,12 +639,15 @@ module Google
617
639
  # Service stub contains baseline method implementations
618
640
  # including transcoding, making the REST call, and deserialing the response.
619
641
  class OperationsServiceStub
620
- def initialize endpoint:, credentials:
642
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
621
643
  # These require statements are intentionally placed here to initialize
622
644
  # the REST modules only when it's required.
623
645
  require "gapic/rest"
624
646
 
625
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
647
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
648
+ endpoint_template: endpoint_template,
649
+ universe_domain: universe_domain,
650
+ credentials: credentials
626
651
  end
627
652
 
628
653
  ##
@@ -30,16 +30,28 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, credentials:
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
34
  # These require statements are intentionally placed here to initialize
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
39
42
  numeric_enums: false,
40
43
  raise_faraday_errors: false
41
44
  end
42
45
 
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
43
55
  ##
44
56
  # Baseline implementation for the create_aws_cluster REST call
45
57
  #
@@ -31,6 +31,9 @@ module Google
31
31
  # to create and manage Anthos clusters that run on Azure infrastructure.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
36
+
34
37
  include Paths
35
38
 
36
39
  # @private
@@ -162,6 +165,15 @@ module Google
162
165
  @config
163
166
  end
164
167
 
168
+ ##
169
+ # The effective universe domain
170
+ #
171
+ # @return [String]
172
+ #
173
+ def universe_domain
174
+ @azure_clusters_stub.universe_domain
175
+ end
176
+
165
177
  ##
166
178
  # Create a new AzureClusters client object.
167
179
  #
@@ -195,8 +207,9 @@ module Google
195
207
  credentials = @config.credentials
196
208
  # Use self-signed JWT if the endpoint is unchanged from default,
197
209
  # but only if the default endpoint does not have a region prefix.
198
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
199
- !@config.endpoint.split(".").first.include?("-")
210
+ enable_self_signed_jwt = @config.endpoint.nil? ||
211
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
212
+ !@config.endpoint.split(".").first.include?("-"))
200
213
  credentials ||= Credentials.default scope: @config.scope,
201
214
  enable_self_signed_jwt: enable_self_signed_jwt
202
215
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -209,12 +222,15 @@ module Google
209
222
  config.credentials = credentials
210
223
  config.quota_project = @quota_project_id
211
224
  config.endpoint = @config.endpoint
225
+ config.universe_domain = @config.universe_domain
212
226
  end
213
227
 
214
228
  @azure_clusters_stub = ::Gapic::ServiceStub.new(
215
229
  ::Google::Cloud::GkeMultiCloud::V1::AzureClusters::Stub,
216
- credentials: credentials,
217
- endpoint: @config.endpoint,
230
+ credentials: credentials,
231
+ endpoint: @config.endpoint,
232
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
233
+ universe_domain: @config.universe_domain,
218
234
  channel_args: @config.channel_args,
219
235
  interceptors: @config.interceptors,
220
236
  channel_pool_config: @config.channel_pool
@@ -2301,9 +2317,9 @@ module Google
2301
2317
  # end
2302
2318
  #
2303
2319
  # @!attribute [rw] endpoint
2304
- # The hostname or hostname:port of the service endpoint.
2305
- # Defaults to `"gkemulticloud.googleapis.com"`.
2306
- # @return [::String]
2320
+ # A custom service endpoint, as a hostname or hostname:port. The default is
2321
+ # nil, indicating to use the default endpoint in the current universe domain.
2322
+ # @return [::String,nil]
2307
2323
  # @!attribute [rw] credentials
2308
2324
  # Credentials to send with calls. You may provide any of the following types:
2309
2325
  # * (`String`) The path to a service account key file in JSON format
@@ -2349,13 +2365,20 @@ module Google
2349
2365
  # @!attribute [rw] quota_project
2350
2366
  # A separate project against which to charge quota.
2351
2367
  # @return [::String]
2368
+ # @!attribute [rw] universe_domain
2369
+ # The universe domain within which to make requests. This determines the
2370
+ # default endpoint URL. The default value of nil uses the environment
2371
+ # universe (usually the default "googleapis.com" universe).
2372
+ # @return [::String,nil]
2352
2373
  #
2353
2374
  class Configuration
2354
2375
  extend ::Gapic::Config
2355
2376
 
2377
+ # @private
2378
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2356
2379
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
2357
2380
 
2358
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2381
+ config_attr :endpoint, nil, ::String, nil
2359
2382
  config_attr :credentials, nil do |value|
2360
2383
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2361
2384
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -2370,6 +2393,7 @@ module Google
2370
2393
  config_attr :metadata, nil, ::Hash, nil
2371
2394
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2372
2395
  config_attr :quota_project, nil, ::String, nil
2396
+ config_attr :universe_domain, nil, ::String, nil
2373
2397
 
2374
2398
  # @private
2375
2399
  def initialize parent_config = nil
@@ -26,6 +26,9 @@ module Google
26
26
  module AzureClusters
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "gkemulticloud.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,8 +102,10 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
110
  interceptors: @config.interceptors,
97
111
  channel_pool_config: @config.channel_pool
@@ -613,9 +627,9 @@ module Google
613
627
  # end
614
628
  #
615
629
  # @!attribute [rw] endpoint
616
- # The hostname or hostname:port of the service endpoint.
617
- # Defaults to `"gkemulticloud.googleapis.com"`.
618
- # @return [::String]
630
+ # A custom service endpoint, as a hostname or hostname:port. The default is
631
+ # nil, indicating to use the default endpoint in the current universe domain.
632
+ # @return [::String,nil]
619
633
  # @!attribute [rw] credentials
620
634
  # Credentials to send with calls. You may provide any of the following types:
621
635
  # * (`String`) The path to a service account key file in JSON format
@@ -661,13 +675,20 @@ module Google
661
675
  # @!attribute [rw] quota_project
662
676
  # A separate project against which to charge quota.
663
677
  # @return [::String]
678
+ # @!attribute [rw] universe_domain
679
+ # The universe domain within which to make requests. This determines the
680
+ # default endpoint URL. The default value of nil uses the environment
681
+ # universe (usually the default "googleapis.com" universe).
682
+ # @return [::String,nil]
664
683
  #
665
684
  class Configuration
666
685
  extend ::Gapic::Config
667
686
 
687
+ # @private
688
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
668
689
  DEFAULT_ENDPOINT = "gkemulticloud.googleapis.com"
669
690
 
670
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
691
+ config_attr :endpoint, nil, ::String, nil
671
692
  config_attr :credentials, nil do |value|
672
693
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
673
694
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -682,6 +703,7 @@ module Google
682
703
  config_attr :metadata, nil, ::Hash, nil
683
704
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
684
705
  config_attr :quota_project, nil, ::String, nil
706
+ config_attr :universe_domain, nil, ::String, nil
685
707
 
686
708
  # @private
687
709
  def initialize parent_config = nil