google-cloud-domains-v1 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac3ed844678b156b804680784b3b480e40d6d02e0acdb82df42bece29dd0a029
4
- data.tar.gz: 4df20258fe81f9e4d275a01b0c41146ec50960b36e7984e6e59bd58d5e10be90
3
+ metadata.gz: 206cf5fa001e4dfc7772f4bb1801609c1a7fef1aca3dc723fd77a5c9c44a7981
4
+ data.tar.gz: ebc61eab00e3e33a5f6c6973d6b2ab5ae6f01a060e106b65c747d6b6da3320df
5
5
  SHA512:
6
- metadata.gz: b9c677b228efba73900d5afec20e787db590e94138c24a1448efee2801ff93dba19b37ae3ad62ff4438e95668a6e2e294acf3516eef33dab9b9250d094d3f0c8
7
- data.tar.gz: 8175545873a3dd28f0e26cad5378dc8d51dd9ccf6e87dbef422f006e4dee26124e5ccf329333900b16bd1ca5c79f07b2e379f42e8573cb3df8b99de8271df70c
6
+ metadata.gz: 6ea8382770f3c9e8ae85367a06d8c8a0f48db2097b4502079f1ad6b92829984e409a3d54b379d8668f40d1377bb4d4e473fdd8f6ad298641c1239c0ef8acd943
7
+ data.tar.gz: f329ce02023cb7a1682b9048d6b89768e467a0f87b18a02e27abab54dbb8cefdd28b9bcc4d5b4917843d087d9381b5ffaca260c91875f66a35adf319797f694d
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -123,7 +123,7 @@ module Google
123
123
  credentials = @config.credentials
124
124
  # Use self-signed JWT if the endpoint is unchanged from default,
125
125
  # but only if the default endpoint does not have a region prefix.
126
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
127
127
  !@config.endpoint.split(".").first.include?("-")
128
128
  credentials ||= Credentials.default scope: @config.scope,
129
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -144,7 +144,8 @@ module Google
144
144
  credentials: credentials,
145
145
  endpoint: @config.endpoint,
146
146
  channel_args: @config.channel_args,
147
- interceptors: @config.interceptors
147
+ interceptors: @config.interceptors,
148
+ channel_pool_config: @config.channel_pool
148
149
  )
149
150
  end
150
151
 
@@ -1732,9 +1733,9 @@ module Google
1732
1733
  # * (`String`) The path to a service account key file in JSON format
1733
1734
  # * (`Hash`) A service account key as a Hash
1734
1735
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1735
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1736
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1736
1737
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1737
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1738
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1738
1739
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1739
1740
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1740
1741
  # * (`nil`) indicating no credentials
@@ -1776,7 +1777,9 @@ module Google
1776
1777
  class Configuration
1777
1778
  extend ::Gapic::Config
1778
1779
 
1779
- config_attr :endpoint, "domains.googleapis.com", ::String
1780
+ DEFAULT_ENDPOINT = "domains.googleapis.com"
1781
+
1782
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1780
1783
  config_attr :credentials, nil do |value|
1781
1784
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1782
1785
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1811,6 +1814,14 @@ module Google
1811
1814
  end
1812
1815
  end
1813
1816
 
1817
+ ##
1818
+ # Configuration for the channel pool
1819
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1820
+ #
1821
+ def channel_pool
1822
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1823
+ end
1824
+
1814
1825
  ##
1815
1826
  # Configuration RPC class for the Domains API.
1816
1827
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -620,9 +621,9 @@ module Google
620
621
  # * (`String`) The path to a service account key file in JSON format
621
622
  # * (`Hash`) A service account key as a Hash
622
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
629
  # * (`nil`) indicating no credentials
@@ -664,7 +665,9 @@ module Google
664
665
  class Configuration
665
666
  extend ::Gapic::Config
666
667
 
667
- config_attr :endpoint, "domains.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "domains.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
671
  config_attr :credentials, nil do |value|
669
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -699,6 +702,14 @@ module Google
699
702
  end
700
703
  end
701
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
702
713
  ##
703
714
  # Configuration RPC class for the Operations API.
704
715
  #
@@ -119,7 +119,7 @@ module Google
119
119
  credentials = @config.credentials
120
120
  # Use self-signed JWT if the endpoint is unchanged from default,
121
121
  # but only if the default endpoint does not have a region prefix.
122
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
122
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
123
123
  !@config.endpoint.split(".").first.include?("-")
124
124
  credentials ||= Credentials.default scope: @config.scope,
125
125
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -181,6 +181,22 @@ module Google
181
181
  # @return [::Google::Cloud::Domains::V1::SearchDomainsResponse]
182
182
  #
183
183
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
184
+ #
185
+ # @example Basic example
186
+ # require "google/cloud/domains/v1"
187
+ #
188
+ # # Create a client object. The client can be reused for multiple calls.
189
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
190
+ #
191
+ # # Create a request. To set request fields, pass in keyword arguments.
192
+ # request = Google::Cloud::Domains::V1::SearchDomainsRequest.new
193
+ #
194
+ # # Call the search_domains method.
195
+ # result = client.search_domains request
196
+ #
197
+ # # The returned object is of type Google::Cloud::Domains::V1::SearchDomainsResponse.
198
+ # p result
199
+ #
184
200
  def search_domains request, options = nil
185
201
  raise ::ArgumentError, "request must be provided" if request.nil?
186
202
 
@@ -246,6 +262,22 @@ module Google
246
262
  # @return [::Google::Cloud::Domains::V1::RetrieveRegisterParametersResponse]
247
263
  #
248
264
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
265
+ #
266
+ # @example Basic example
267
+ # require "google/cloud/domains/v1"
268
+ #
269
+ # # Create a client object. The client can be reused for multiple calls.
270
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
271
+ #
272
+ # # Create a request. To set request fields, pass in keyword arguments.
273
+ # request = Google::Cloud::Domains::V1::RetrieveRegisterParametersRequest.new
274
+ #
275
+ # # Call the retrieve_register_parameters method.
276
+ # result = client.retrieve_register_parameters request
277
+ #
278
+ # # The returned object is of type Google::Cloud::Domains::V1::RetrieveRegisterParametersResponse.
279
+ # p result
280
+ #
249
281
  def retrieve_register_parameters request, options = nil
250
282
  raise ::ArgumentError, "request must be provided" if request.nil?
251
283
 
@@ -338,6 +370,29 @@ module Google
338
370
  # @return [::Gapic::Operation]
339
371
  #
340
372
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
373
+ #
374
+ # @example Basic example
375
+ # require "google/cloud/domains/v1"
376
+ #
377
+ # # Create a client object. The client can be reused for multiple calls.
378
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
379
+ #
380
+ # # Create a request. To set request fields, pass in keyword arguments.
381
+ # request = Google::Cloud::Domains::V1::RegisterDomainRequest.new
382
+ #
383
+ # # Call the register_domain method.
384
+ # result = client.register_domain request
385
+ #
386
+ # # The returned object is of type Gapic::Operation. You can use it to
387
+ # # check the status of an operation, cancel it, or wait for results.
388
+ # # Here is how to wait for a response.
389
+ # result.wait_until_done! timeout: 60
390
+ # if result.response?
391
+ # p result.response
392
+ # else
393
+ # puts "No response received."
394
+ # end
395
+ #
341
396
  def register_domain request, options = nil
342
397
  raise ::ArgumentError, "request must be provided" if request.nil?
343
398
 
@@ -408,6 +463,22 @@ module Google
408
463
  # @return [::Google::Cloud::Domains::V1::RetrieveTransferParametersResponse]
409
464
  #
410
465
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
466
+ #
467
+ # @example Basic example
468
+ # require "google/cloud/domains/v1"
469
+ #
470
+ # # Create a client object. The client can be reused for multiple calls.
471
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
472
+ #
473
+ # # Create a request. To set request fields, pass in keyword arguments.
474
+ # request = Google::Cloud::Domains::V1::RetrieveTransferParametersRequest.new
475
+ #
476
+ # # Call the retrieve_transfer_parameters method.
477
+ # result = client.retrieve_transfer_parameters request
478
+ #
479
+ # # The returned object is of type Google::Cloud::Domains::V1::RetrieveTransferParametersResponse.
480
+ # p result
481
+ #
411
482
  def retrieve_transfer_parameters request, options = nil
412
483
  raise ::ArgumentError, "request must be provided" if request.nil?
413
484
 
@@ -512,6 +583,29 @@ module Google
512
583
  # @return [::Gapic::Operation]
513
584
  #
514
585
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
586
+ #
587
+ # @example Basic example
588
+ # require "google/cloud/domains/v1"
589
+ #
590
+ # # Create a client object. The client can be reused for multiple calls.
591
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
592
+ #
593
+ # # Create a request. To set request fields, pass in keyword arguments.
594
+ # request = Google::Cloud::Domains::V1::TransferDomainRequest.new
595
+ #
596
+ # # Call the transfer_domain method.
597
+ # result = client.transfer_domain request
598
+ #
599
+ # # The returned object is of type Gapic::Operation. You can use it to
600
+ # # check the status of an operation, cancel it, or wait for results.
601
+ # # Here is how to wait for a response.
602
+ # result.wait_until_done! timeout: 60
603
+ # if result.response?
604
+ # p result.response
605
+ # else
606
+ # puts "No response received."
607
+ # end
608
+ #
515
609
  def transfer_domain request, options = nil
516
610
  raise ::ArgumentError, "request must be provided" if request.nil?
517
611
 
@@ -598,6 +692,26 @@ module Google
598
692
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Domains::V1::Registration>]
599
693
  #
600
694
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
695
+ #
696
+ # @example Basic example
697
+ # require "google/cloud/domains/v1"
698
+ #
699
+ # # Create a client object. The client can be reused for multiple calls.
700
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
701
+ #
702
+ # # Create a request. To set request fields, pass in keyword arguments.
703
+ # request = Google::Cloud::Domains::V1::ListRegistrationsRequest.new
704
+ #
705
+ # # Call the list_registrations method.
706
+ # result = client.list_registrations request
707
+ #
708
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
709
+ # # over elements, and API calls will be issued to fetch pages as needed.
710
+ # result.each do |item|
711
+ # # Each element is of type ::Google::Cloud::Domains::V1::Registration.
712
+ # p item
713
+ # end
714
+ #
601
715
  def list_registrations request, options = nil
602
716
  raise ::ArgumentError, "request must be provided" if request.nil?
603
717
 
@@ -662,6 +776,22 @@ module Google
662
776
  # @return [::Google::Cloud::Domains::V1::Registration]
663
777
  #
664
778
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
779
+ #
780
+ # @example Basic example
781
+ # require "google/cloud/domains/v1"
782
+ #
783
+ # # Create a client object. The client can be reused for multiple calls.
784
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
785
+ #
786
+ # # Create a request. To set request fields, pass in keyword arguments.
787
+ # request = Google::Cloud::Domains::V1::GetRegistrationRequest.new
788
+ #
789
+ # # Call the get_registration method.
790
+ # result = client.get_registration request
791
+ #
792
+ # # The returned object is of type Google::Cloud::Domains::V1::Registration.
793
+ # p result
794
+ #
665
795
  def get_registration request, options = nil
666
796
  raise ::ArgumentError, "request must be provided" if request.nil?
667
797
 
@@ -733,6 +863,29 @@ module Google
733
863
  # @return [::Gapic::Operation]
734
864
  #
735
865
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
866
+ #
867
+ # @example Basic example
868
+ # require "google/cloud/domains/v1"
869
+ #
870
+ # # Create a client object. The client can be reused for multiple calls.
871
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
872
+ #
873
+ # # Create a request. To set request fields, pass in keyword arguments.
874
+ # request = Google::Cloud::Domains::V1::UpdateRegistrationRequest.new
875
+ #
876
+ # # Call the update_registration method.
877
+ # result = client.update_registration request
878
+ #
879
+ # # The returned object is of type Gapic::Operation. You can use it to
880
+ # # check the status of an operation, cancel it, or wait for results.
881
+ # # Here is how to wait for a response.
882
+ # result.wait_until_done! timeout: 60
883
+ # if result.response?
884
+ # p result.response
885
+ # else
886
+ # puts "No response received."
887
+ # end
888
+ #
736
889
  def update_registration request, options = nil
737
890
  raise ::ArgumentError, "request must be provided" if request.nil?
738
891
 
@@ -803,6 +956,29 @@ module Google
803
956
  # @return [::Gapic::Operation]
804
957
  #
805
958
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
959
+ #
960
+ # @example Basic example
961
+ # require "google/cloud/domains/v1"
962
+ #
963
+ # # Create a client object. The client can be reused for multiple calls.
964
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
965
+ #
966
+ # # Create a request. To set request fields, pass in keyword arguments.
967
+ # request = Google::Cloud::Domains::V1::ConfigureManagementSettingsRequest.new
968
+ #
969
+ # # Call the configure_management_settings method.
970
+ # result = client.configure_management_settings request
971
+ #
972
+ # # The returned object is of type Gapic::Operation. You can use it to
973
+ # # check the status of an operation, cancel it, or wait for results.
974
+ # # Here is how to wait for a response.
975
+ # result.wait_until_done! timeout: 60
976
+ # if result.response?
977
+ # p result.response
978
+ # else
979
+ # puts "No response received."
980
+ # end
981
+ #
806
982
  def configure_management_settings request, options = nil
807
983
  raise ::ArgumentError, "request must be provided" if request.nil?
808
984
 
@@ -881,6 +1057,29 @@ module Google
881
1057
  # @return [::Gapic::Operation]
882
1058
  #
883
1059
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1060
+ #
1061
+ # @example Basic example
1062
+ # require "google/cloud/domains/v1"
1063
+ #
1064
+ # # Create a client object. The client can be reused for multiple calls.
1065
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1066
+ #
1067
+ # # Create a request. To set request fields, pass in keyword arguments.
1068
+ # request = Google::Cloud::Domains::V1::ConfigureDnsSettingsRequest.new
1069
+ #
1070
+ # # Call the configure_dns_settings method.
1071
+ # result = client.configure_dns_settings request
1072
+ #
1073
+ # # The returned object is of type Gapic::Operation. You can use it to
1074
+ # # check the status of an operation, cancel it, or wait for results.
1075
+ # # Here is how to wait for a response.
1076
+ # result.wait_until_done! timeout: 60
1077
+ # if result.response?
1078
+ # p result.response
1079
+ # else
1080
+ # puts "No response received."
1081
+ # end
1082
+ #
884
1083
  def configure_dns_settings request, options = nil
885
1084
  raise ::ArgumentError, "request must be provided" if request.nil?
886
1085
 
@@ -957,6 +1156,29 @@ module Google
957
1156
  # @return [::Gapic::Operation]
958
1157
  #
959
1158
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1159
+ #
1160
+ # @example Basic example
1161
+ # require "google/cloud/domains/v1"
1162
+ #
1163
+ # # Create a client object. The client can be reused for multiple calls.
1164
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1165
+ #
1166
+ # # Create a request. To set request fields, pass in keyword arguments.
1167
+ # request = Google::Cloud::Domains::V1::ConfigureContactSettingsRequest.new
1168
+ #
1169
+ # # Call the configure_contact_settings method.
1170
+ # result = client.configure_contact_settings request
1171
+ #
1172
+ # # The returned object is of type Gapic::Operation. You can use it to
1173
+ # # check the status of an operation, cancel it, or wait for results.
1174
+ # # Here is how to wait for a response.
1175
+ # result.wait_until_done! timeout: 60
1176
+ # if result.response?
1177
+ # p result.response
1178
+ # else
1179
+ # puts "No response received."
1180
+ # end
1181
+ #
960
1182
  def configure_contact_settings request, options = nil
961
1183
  raise ::ArgumentError, "request must be provided" if request.nil?
962
1184
 
@@ -1029,6 +1251,29 @@ module Google
1029
1251
  # @return [::Gapic::Operation]
1030
1252
  #
1031
1253
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1254
+ #
1255
+ # @example Basic example
1256
+ # require "google/cloud/domains/v1"
1257
+ #
1258
+ # # Create a client object. The client can be reused for multiple calls.
1259
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1260
+ #
1261
+ # # Create a request. To set request fields, pass in keyword arguments.
1262
+ # request = Google::Cloud::Domains::V1::ExportRegistrationRequest.new
1263
+ #
1264
+ # # Call the export_registration method.
1265
+ # result = client.export_registration request
1266
+ #
1267
+ # # The returned object is of type Gapic::Operation. You can use it to
1268
+ # # check the status of an operation, cancel it, or wait for results.
1269
+ # # Here is how to wait for a response.
1270
+ # result.wait_until_done! timeout: 60
1271
+ # if result.response?
1272
+ # p result.response
1273
+ # else
1274
+ # puts "No response received."
1275
+ # end
1276
+ #
1032
1277
  def export_registration request, options = nil
1033
1278
  raise ::ArgumentError, "request must be provided" if request.nil?
1034
1279
 
@@ -1111,6 +1356,29 @@ module Google
1111
1356
  # @return [::Gapic::Operation]
1112
1357
  #
1113
1358
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1359
+ #
1360
+ # @example Basic example
1361
+ # require "google/cloud/domains/v1"
1362
+ #
1363
+ # # Create a client object. The client can be reused for multiple calls.
1364
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1365
+ #
1366
+ # # Create a request. To set request fields, pass in keyword arguments.
1367
+ # request = Google::Cloud::Domains::V1::DeleteRegistrationRequest.new
1368
+ #
1369
+ # # Call the delete_registration method.
1370
+ # result = client.delete_registration request
1371
+ #
1372
+ # # The returned object is of type Gapic::Operation. You can use it to
1373
+ # # check the status of an operation, cancel it, or wait for results.
1374
+ # # Here is how to wait for a response.
1375
+ # result.wait_until_done! timeout: 60
1376
+ # if result.response?
1377
+ # p result.response
1378
+ # else
1379
+ # puts "No response received."
1380
+ # end
1381
+ #
1114
1382
  def delete_registration request, options = nil
1115
1383
  raise ::ArgumentError, "request must be provided" if request.nil?
1116
1384
 
@@ -1179,6 +1447,22 @@ module Google
1179
1447
  # @return [::Google::Cloud::Domains::V1::AuthorizationCode]
1180
1448
  #
1181
1449
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1450
+ #
1451
+ # @example Basic example
1452
+ # require "google/cloud/domains/v1"
1453
+ #
1454
+ # # Create a client object. The client can be reused for multiple calls.
1455
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1456
+ #
1457
+ # # Create a request. To set request fields, pass in keyword arguments.
1458
+ # request = Google::Cloud::Domains::V1::RetrieveAuthorizationCodeRequest.new
1459
+ #
1460
+ # # Call the retrieve_authorization_code method.
1461
+ # result = client.retrieve_authorization_code request
1462
+ #
1463
+ # # The returned object is of type Google::Cloud::Domains::V1::AuthorizationCode.
1464
+ # p result
1465
+ #
1182
1466
  def retrieve_authorization_code request, options = nil
1183
1467
  raise ::ArgumentError, "request must be provided" if request.nil?
1184
1468
 
@@ -1245,6 +1529,22 @@ module Google
1245
1529
  # @return [::Google::Cloud::Domains::V1::AuthorizationCode]
1246
1530
  #
1247
1531
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1532
+ #
1533
+ # @example Basic example
1534
+ # require "google/cloud/domains/v1"
1535
+ #
1536
+ # # Create a client object. The client can be reused for multiple calls.
1537
+ # client = Google::Cloud::Domains::V1::Domains::Rest::Client.new
1538
+ #
1539
+ # # Create a request. To set request fields, pass in keyword arguments.
1540
+ # request = Google::Cloud::Domains::V1::ResetAuthorizationCodeRequest.new
1541
+ #
1542
+ # # Call the reset_authorization_code method.
1543
+ # result = client.reset_authorization_code request
1544
+ #
1545
+ # # The returned object is of type Google::Cloud::Domains::V1::AuthorizationCode.
1546
+ # p result
1547
+ #
1248
1548
  def reset_authorization_code request, options = nil
1249
1549
  raise ::ArgumentError, "request must be provided" if request.nil?
1250
1550
 
@@ -1318,9 +1618,9 @@ module Google
1318
1618
  # * (`String`) The path to a service account key file in JSON format
1319
1619
  # * (`Hash`) A service account key as a Hash
1320
1620
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1321
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1621
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1322
1622
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1323
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1623
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1324
1624
  # * (`nil`) indicating no credentials
1325
1625
  # @return [::Object]
1326
1626
  # @!attribute [rw] scope
@@ -1353,7 +1653,9 @@ module Google
1353
1653
  class Configuration
1354
1654
  extend ::Gapic::Config
1355
1655
 
1356
- config_attr :endpoint, "domains.googleapis.com", ::String
1656
+ DEFAULT_ENDPOINT = "domains.googleapis.com"
1657
+
1658
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1357
1659
  config_attr :credentials, nil do |value|
1358
1660
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1359
1661
  allowed.any? { |klass| klass === value }