google-cloud-network_security-v1beta1 0.5.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,9 @@ module Google
36
36
  # information.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
41
+
39
42
  include Paths
40
43
 
41
44
  # @private
@@ -98,6 +101,15 @@ module Google
98
101
  @config
99
102
  end
100
103
 
104
+ ##
105
+ # The effective universe domain
106
+ #
107
+ # @return [String]
108
+ #
109
+ def universe_domain
110
+ @network_security_stub.universe_domain
111
+ end
112
+
101
113
  ##
102
114
  # Create a new NetworkSecurity REST client object.
103
115
  #
@@ -125,8 +137,9 @@ module Google
125
137
  credentials = @config.credentials
126
138
  # Use self-signed JWT if the endpoint is unchanged from default,
127
139
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
- !@config.endpoint.split(".").first.include?("-")
140
+ enable_self_signed_jwt = @config.endpoint.nil? ||
141
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
+ !@config.endpoint.split(".").first.include?("-"))
130
143
  credentials ||= Credentials.default scope: @config.scope,
131
144
  enable_self_signed_jwt: enable_self_signed_jwt
132
145
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -140,12 +153,14 @@ module Google
140
153
  config.credentials = credentials
141
154
  config.quota_project = @quota_project_id
142
155
  config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
143
157
  end
144
158
 
145
159
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
146
160
  config.credentials = credentials
147
161
  config.quota_project = @quota_project_id
148
162
  config.endpoint = @config.endpoint
163
+ config.universe_domain = @config.universe_domain
149
164
  config.bindings_override = @config.bindings_override
150
165
  end
151
166
 
@@ -153,10 +168,16 @@ module Google
153
168
  config.credentials = credentials
154
169
  config.quota_project = @quota_project_id
155
170
  config.endpoint = @config.endpoint
171
+ config.universe_domain = @config.universe_domain
156
172
  config.bindings_override = @config.bindings_override
157
173
  end
158
174
 
159
- @network_security_stub = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
175
+ @network_security_stub = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::ServiceStub.new(
176
+ endpoint: @config.endpoint,
177
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
178
+ universe_domain: @config.universe_domain,
179
+ credentials: credentials
180
+ )
160
181
  end
161
182
 
162
183
  ##
@@ -218,6 +239,26 @@ module Google
218
239
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy>]
219
240
  #
220
241
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
242
+ #
243
+ # @example Basic example
244
+ # require "google/cloud/network_security/v1beta1"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesRequest.new
251
+ #
252
+ # # Call the list_authorization_policies method.
253
+ # result = client.list_authorization_policies request
254
+ #
255
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
256
+ # # over elements, and API calls will be issued to fetch pages as needed.
257
+ # result.each do |item|
258
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
259
+ # p item
260
+ # end
261
+ #
221
262
  def list_authorization_policies request, options = nil
222
263
  raise ::ArgumentError, "request must be provided" if request.nil?
223
264
 
@@ -282,6 +323,22 @@ module Google
282
323
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy]
283
324
  #
284
325
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
326
+ #
327
+ # @example Basic example
328
+ # require "google/cloud/network_security/v1beta1"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetAuthorizationPolicyRequest.new
335
+ #
336
+ # # Call the get_authorization_policy method.
337
+ # result = client.get_authorization_policy request
338
+ #
339
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.
340
+ # p result
341
+ #
285
342
  def get_authorization_policy request, options = nil
286
343
  raise ::ArgumentError, "request must be provided" if request.nil?
287
344
 
@@ -352,6 +409,29 @@ module Google
352
409
  # @return [::Gapic::Operation]
353
410
  #
354
411
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
412
+ #
413
+ # @example Basic example
414
+ # require "google/cloud/network_security/v1beta1"
415
+ #
416
+ # # Create a client object. The client can be reused for multiple calls.
417
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
418
+ #
419
+ # # Create a request. To set request fields, pass in keyword arguments.
420
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateAuthorizationPolicyRequest.new
421
+ #
422
+ # # Call the create_authorization_policy method.
423
+ # result = client.create_authorization_policy request
424
+ #
425
+ # # The returned object is of type Gapic::Operation. You can use it to
426
+ # # check the status of an operation, cancel it, or wait for results.
427
+ # # Here is how to wait for a response.
428
+ # result.wait_until_done! timeout: 60
429
+ # if result.response?
430
+ # p result.response
431
+ # else
432
+ # puts "No response received."
433
+ # end
434
+ #
355
435
  def create_authorization_policy request, options = nil
356
436
  raise ::ArgumentError, "request must be provided" if request.nil?
357
437
 
@@ -421,6 +501,29 @@ module Google
421
501
  # @return [::Gapic::Operation]
422
502
  #
423
503
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
504
+ #
505
+ # @example Basic example
506
+ # require "google/cloud/network_security/v1beta1"
507
+ #
508
+ # # Create a client object. The client can be reused for multiple calls.
509
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
510
+ #
511
+ # # Create a request. To set request fields, pass in keyword arguments.
512
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateAuthorizationPolicyRequest.new
513
+ #
514
+ # # Call the update_authorization_policy method.
515
+ # result = client.update_authorization_policy request
516
+ #
517
+ # # The returned object is of type Gapic::Operation. You can use it to
518
+ # # check the status of an operation, cancel it, or wait for results.
519
+ # # Here is how to wait for a response.
520
+ # result.wait_until_done! timeout: 60
521
+ # if result.response?
522
+ # p result.response
523
+ # else
524
+ # puts "No response received."
525
+ # end
526
+ #
424
527
  def update_authorization_policy request, options = nil
425
528
  raise ::ArgumentError, "request must be provided" if request.nil?
426
529
 
@@ -485,6 +588,29 @@ module Google
485
588
  # @return [::Gapic::Operation]
486
589
  #
487
590
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
591
+ #
592
+ # @example Basic example
593
+ # require "google/cloud/network_security/v1beta1"
594
+ #
595
+ # # Create a client object. The client can be reused for multiple calls.
596
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
597
+ #
598
+ # # Create a request. To set request fields, pass in keyword arguments.
599
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteAuthorizationPolicyRequest.new
600
+ #
601
+ # # Call the delete_authorization_policy method.
602
+ # result = client.delete_authorization_policy request
603
+ #
604
+ # # The returned object is of type Gapic::Operation. You can use it to
605
+ # # check the status of an operation, cancel it, or wait for results.
606
+ # # Here is how to wait for a response.
607
+ # result.wait_until_done! timeout: 60
608
+ # if result.response?
609
+ # p result.response
610
+ # else
611
+ # puts "No response received."
612
+ # end
613
+ #
488
614
  def delete_authorization_policy request, options = nil
489
615
  raise ::ArgumentError, "request must be provided" if request.nil?
490
616
 
@@ -556,6 +682,26 @@ module Google
556
682
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy>]
557
683
  #
558
684
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
685
+ #
686
+ # @example Basic example
687
+ # require "google/cloud/network_security/v1beta1"
688
+ #
689
+ # # Create a client object. The client can be reused for multiple calls.
690
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
691
+ #
692
+ # # Create a request. To set request fields, pass in keyword arguments.
693
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesRequest.new
694
+ #
695
+ # # Call the list_server_tls_policies method.
696
+ # result = client.list_server_tls_policies request
697
+ #
698
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
699
+ # # over elements, and API calls will be issued to fetch pages as needed.
700
+ # result.each do |item|
701
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
702
+ # p item
703
+ # end
704
+ #
559
705
  def list_server_tls_policies request, options = nil
560
706
  raise ::ArgumentError, "request must be provided" if request.nil?
561
707
 
@@ -620,6 +766,22 @@ module Google
620
766
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy]
621
767
  #
622
768
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
769
+ #
770
+ # @example Basic example
771
+ # require "google/cloud/network_security/v1beta1"
772
+ #
773
+ # # Create a client object. The client can be reused for multiple calls.
774
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
775
+ #
776
+ # # Create a request. To set request fields, pass in keyword arguments.
777
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetServerTlsPolicyRequest.new
778
+ #
779
+ # # Call the get_server_tls_policy method.
780
+ # result = client.get_server_tls_policy request
781
+ #
782
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy.
783
+ # p result
784
+ #
623
785
  def get_server_tls_policy request, options = nil
624
786
  raise ::ArgumentError, "request must be provided" if request.nil?
625
787
 
@@ -690,6 +852,29 @@ module Google
690
852
  # @return [::Gapic::Operation]
691
853
  #
692
854
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
855
+ #
856
+ # @example Basic example
857
+ # require "google/cloud/network_security/v1beta1"
858
+ #
859
+ # # Create a client object. The client can be reused for multiple calls.
860
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
861
+ #
862
+ # # Create a request. To set request fields, pass in keyword arguments.
863
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateServerTlsPolicyRequest.new
864
+ #
865
+ # # Call the create_server_tls_policy method.
866
+ # result = client.create_server_tls_policy request
867
+ #
868
+ # # The returned object is of type Gapic::Operation. You can use it to
869
+ # # check the status of an operation, cancel it, or wait for results.
870
+ # # Here is how to wait for a response.
871
+ # result.wait_until_done! timeout: 60
872
+ # if result.response?
873
+ # p result.response
874
+ # else
875
+ # puts "No response received."
876
+ # end
877
+ #
693
878
  def create_server_tls_policy request, options = nil
694
879
  raise ::ArgumentError, "request must be provided" if request.nil?
695
880
 
@@ -760,6 +945,29 @@ module Google
760
945
  # @return [::Gapic::Operation]
761
946
  #
762
947
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
948
+ #
949
+ # @example Basic example
950
+ # require "google/cloud/network_security/v1beta1"
951
+ #
952
+ # # Create a client object. The client can be reused for multiple calls.
953
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
954
+ #
955
+ # # Create a request. To set request fields, pass in keyword arguments.
956
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateServerTlsPolicyRequest.new
957
+ #
958
+ # # Call the update_server_tls_policy method.
959
+ # result = client.update_server_tls_policy request
960
+ #
961
+ # # The returned object is of type Gapic::Operation. You can use it to
962
+ # # check the status of an operation, cancel it, or wait for results.
963
+ # # Here is how to wait for a response.
964
+ # result.wait_until_done! timeout: 60
965
+ # if result.response?
966
+ # p result.response
967
+ # else
968
+ # puts "No response received."
969
+ # end
970
+ #
763
971
  def update_server_tls_policy request, options = nil
764
972
  raise ::ArgumentError, "request must be provided" if request.nil?
765
973
 
@@ -824,6 +1032,29 @@ module Google
824
1032
  # @return [::Gapic::Operation]
825
1033
  #
826
1034
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1035
+ #
1036
+ # @example Basic example
1037
+ # require "google/cloud/network_security/v1beta1"
1038
+ #
1039
+ # # Create a client object. The client can be reused for multiple calls.
1040
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1041
+ #
1042
+ # # Create a request. To set request fields, pass in keyword arguments.
1043
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteServerTlsPolicyRequest.new
1044
+ #
1045
+ # # Call the delete_server_tls_policy method.
1046
+ # result = client.delete_server_tls_policy request
1047
+ #
1048
+ # # The returned object is of type Gapic::Operation. You can use it to
1049
+ # # check the status of an operation, cancel it, or wait for results.
1050
+ # # Here is how to wait for a response.
1051
+ # result.wait_until_done! timeout: 60
1052
+ # if result.response?
1053
+ # p result.response
1054
+ # else
1055
+ # puts "No response received."
1056
+ # end
1057
+ #
827
1058
  def delete_server_tls_policy request, options = nil
828
1059
  raise ::ArgumentError, "request must be provided" if request.nil?
829
1060
 
@@ -895,6 +1126,26 @@ module Google
895
1126
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy>]
896
1127
  #
897
1128
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1129
+ #
1130
+ # @example Basic example
1131
+ # require "google/cloud/network_security/v1beta1"
1132
+ #
1133
+ # # Create a client object. The client can be reused for multiple calls.
1134
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1135
+ #
1136
+ # # Create a request. To set request fields, pass in keyword arguments.
1137
+ # request = Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesRequest.new
1138
+ #
1139
+ # # Call the list_client_tls_policies method.
1140
+ # result = client.list_client_tls_policies request
1141
+ #
1142
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1143
+ # # over elements, and API calls will be issued to fetch pages as needed.
1144
+ # result.each do |item|
1145
+ # # Each element is of type ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1146
+ # p item
1147
+ # end
1148
+ #
898
1149
  def list_client_tls_policies request, options = nil
899
1150
  raise ::ArgumentError, "request must be provided" if request.nil?
900
1151
 
@@ -959,6 +1210,22 @@ module Google
959
1210
  # @return [::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy]
960
1211
  #
961
1212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1213
+ #
1214
+ # @example Basic example
1215
+ # require "google/cloud/network_security/v1beta1"
1216
+ #
1217
+ # # Create a client object. The client can be reused for multiple calls.
1218
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1219
+ #
1220
+ # # Create a request. To set request fields, pass in keyword arguments.
1221
+ # request = Google::Cloud::NetworkSecurity::V1beta1::GetClientTlsPolicyRequest.new
1222
+ #
1223
+ # # Call the get_client_tls_policy method.
1224
+ # result = client.get_client_tls_policy request
1225
+ #
1226
+ # # The returned object is of type Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy.
1227
+ # p result
1228
+ #
962
1229
  def get_client_tls_policy request, options = nil
963
1230
  raise ::ArgumentError, "request must be provided" if request.nil?
964
1231
 
@@ -1029,6 +1296,29 @@ module Google
1029
1296
  # @return [::Gapic::Operation]
1030
1297
  #
1031
1298
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1299
+ #
1300
+ # @example Basic example
1301
+ # require "google/cloud/network_security/v1beta1"
1302
+ #
1303
+ # # Create a client object. The client can be reused for multiple calls.
1304
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1305
+ #
1306
+ # # Create a request. To set request fields, pass in keyword arguments.
1307
+ # request = Google::Cloud::NetworkSecurity::V1beta1::CreateClientTlsPolicyRequest.new
1308
+ #
1309
+ # # Call the create_client_tls_policy method.
1310
+ # result = client.create_client_tls_policy request
1311
+ #
1312
+ # # The returned object is of type Gapic::Operation. You can use it to
1313
+ # # check the status of an operation, cancel it, or wait for results.
1314
+ # # Here is how to wait for a response.
1315
+ # result.wait_until_done! timeout: 60
1316
+ # if result.response?
1317
+ # p result.response
1318
+ # else
1319
+ # puts "No response received."
1320
+ # end
1321
+ #
1032
1322
  def create_client_tls_policy request, options = nil
1033
1323
  raise ::ArgumentError, "request must be provided" if request.nil?
1034
1324
 
@@ -1099,6 +1389,29 @@ module Google
1099
1389
  # @return [::Gapic::Operation]
1100
1390
  #
1101
1391
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1392
+ #
1393
+ # @example Basic example
1394
+ # require "google/cloud/network_security/v1beta1"
1395
+ #
1396
+ # # Create a client object. The client can be reused for multiple calls.
1397
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1398
+ #
1399
+ # # Create a request. To set request fields, pass in keyword arguments.
1400
+ # request = Google::Cloud::NetworkSecurity::V1beta1::UpdateClientTlsPolicyRequest.new
1401
+ #
1402
+ # # Call the update_client_tls_policy method.
1403
+ # result = client.update_client_tls_policy request
1404
+ #
1405
+ # # The returned object is of type Gapic::Operation. You can use it to
1406
+ # # check the status of an operation, cancel it, or wait for results.
1407
+ # # Here is how to wait for a response.
1408
+ # result.wait_until_done! timeout: 60
1409
+ # if result.response?
1410
+ # p result.response
1411
+ # else
1412
+ # puts "No response received."
1413
+ # end
1414
+ #
1102
1415
  def update_client_tls_policy request, options = nil
1103
1416
  raise ::ArgumentError, "request must be provided" if request.nil?
1104
1417
 
@@ -1163,6 +1476,29 @@ module Google
1163
1476
  # @return [::Gapic::Operation]
1164
1477
  #
1165
1478
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1479
+ #
1480
+ # @example Basic example
1481
+ # require "google/cloud/network_security/v1beta1"
1482
+ #
1483
+ # # Create a client object. The client can be reused for multiple calls.
1484
+ # client = Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
1485
+ #
1486
+ # # Create a request. To set request fields, pass in keyword arguments.
1487
+ # request = Google::Cloud::NetworkSecurity::V1beta1::DeleteClientTlsPolicyRequest.new
1488
+ #
1489
+ # # Call the delete_client_tls_policy method.
1490
+ # result = client.delete_client_tls_policy request
1491
+ #
1492
+ # # The returned object is of type Gapic::Operation. You can use it to
1493
+ # # check the status of an operation, cancel it, or wait for results.
1494
+ # # Here is how to wait for a response.
1495
+ # result.wait_until_done! timeout: 60
1496
+ # if result.response?
1497
+ # p result.response
1498
+ # else
1499
+ # puts "No response received."
1500
+ # end
1501
+ #
1166
1502
  def delete_client_tls_policy request, options = nil
1167
1503
  raise ::ArgumentError, "request must be provided" if request.nil?
1168
1504
 
@@ -1229,9 +1565,9 @@ module Google
1229
1565
  # end
1230
1566
  #
1231
1567
  # @!attribute [rw] endpoint
1232
- # The hostname or hostname:port of the service endpoint.
1233
- # Defaults to `"networksecurity.googleapis.com"`.
1234
- # @return [::String]
1568
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1569
+ # nil, indicating to use the default endpoint in the current universe domain.
1570
+ # @return [::String,nil]
1235
1571
  # @!attribute [rw] credentials
1236
1572
  # Credentials to send with calls. You may provide any of the following types:
1237
1573
  # * (`String`) The path to a service account key file in JSON format
@@ -1268,13 +1604,20 @@ module Google
1268
1604
  # @!attribute [rw] quota_project
1269
1605
  # A separate project against which to charge quota.
1270
1606
  # @return [::String]
1607
+ # @!attribute [rw] universe_domain
1608
+ # The universe domain within which to make requests. This determines the
1609
+ # default endpoint URL. The default value of nil uses the environment
1610
+ # universe (usually the default "googleapis.com" universe).
1611
+ # @return [::String,nil]
1271
1612
  #
1272
1613
  class Configuration
1273
1614
  extend ::Gapic::Config
1274
1615
 
1616
+ # @private
1617
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1275
1618
  DEFAULT_ENDPOINT = "networksecurity.googleapis.com"
1276
1619
 
1277
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1620
+ config_attr :endpoint, nil, ::String, nil
1278
1621
  config_attr :credentials, nil do |value|
1279
1622
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1280
1623
  allowed.any? { |klass| klass === value }
@@ -1286,6 +1629,7 @@ module Google
1286
1629
  config_attr :metadata, nil, ::Hash, nil
1287
1630
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1288
1631
  config_attr :quota_project, nil, ::String, nil
1632
+ config_attr :universe_domain, nil, ::String, nil
1289
1633
 
1290
1634
  # @private
1291
1635
  # Overrides for http bindings for the RPCs of this service