google-cloud-domains-v1beta1 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 212f914b312a7407423238741c77b525a75f4d414d30cd0a83883b93919af7dc
4
- data.tar.gz: 58c03aef6492e426742d5d64aa472312b694aafa8ddc1700f36d0bb9996b4857
3
+ metadata.gz: dcbb84a03d806904a9e817d507de75549e0ccef40d4d1215e08cc6c4a29dff75
4
+ data.tar.gz: d785be2e1373ecdd6e06516e748bc2cd92b01cf2ede7bb22d829829c793bd75d
5
5
  SHA512:
6
- metadata.gz: 805feee0f3e4fb0384806f77d6f47bd382ffc34a636c771b87e910b3431a0f9eac2397a02534dee505802b88a192cbf48c065e1935b8760fa0fc6b1c91058ceb
7
- data.tar.gz: 574b115746d417348e75722e5b475828517f4f6aae9d907ba0a603f4cb83cfbbbad3550115f769868ed591117bf61606b60bcc3751f4658ff118e74ece6fbe17
6
+ metadata.gz: e96ad6f545c325d42cf9d2fbef3721b0383b02e4c57d1cbb52897b3c5d493da144285100bc4fa30a9208317589ec6782285b19d9643d7218909d3ca23a1e15a1
7
+ data.tar.gz: d28150ddf0d1de59e312fd262ac1276e362c9e8d2a35d33135e5994dcd9500a3648c89d97fa86873c66df86c1daa68c1f75ada811cc91cb48f5a193cebb22b21
@@ -191,6 +191,21 @@ module Google
191
191
  #
192
192
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
193
193
  #
194
+ # @example Basic example
195
+ # require "google/cloud/domains/v1beta1"
196
+ #
197
+ # # Create a client object. The client can be reused for multiple calls.
198
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
199
+ #
200
+ # # Create a request. To set request fields, pass in keyword arguments.
201
+ # request = Google::Cloud::Domains::V1beta1::SearchDomainsRequest.new
202
+ #
203
+ # # Call the search_domains method.
204
+ # result = client.search_domains request
205
+ #
206
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::SearchDomainsResponse.
207
+ # p result
208
+ #
194
209
  def search_domains request, options = nil
195
210
  raise ::ArgumentError, "request must be provided" if request.nil?
196
211
 
@@ -208,9 +223,11 @@ module Google
208
223
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
209
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
210
225
 
211
- header_params = {
212
- "location" => request.location
213
- }
226
+ header_params = {}
227
+ if request.location
228
+ header_params["location"] = request.location
229
+ end
230
+
214
231
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
215
232
  metadata[:"x-goog-request-params"] ||= request_params_header
216
233
 
@@ -262,6 +279,21 @@ module Google
262
279
  #
263
280
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
264
281
  #
282
+ # @example Basic example
283
+ # require "google/cloud/domains/v1beta1"
284
+ #
285
+ # # Create a client object. The client can be reused for multiple calls.
286
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
287
+ #
288
+ # # Create a request. To set request fields, pass in keyword arguments.
289
+ # request = Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersRequest.new
290
+ #
291
+ # # Call the retrieve_register_parameters method.
292
+ # result = client.retrieve_register_parameters request
293
+ #
294
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveRegisterParametersResponse.
295
+ # p result
296
+ #
265
297
  def retrieve_register_parameters request, options = nil
266
298
  raise ::ArgumentError, "request must be provided" if request.nil?
267
299
 
@@ -279,9 +311,11 @@ module Google
279
311
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
280
312
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
313
 
282
- header_params = {
283
- "location" => request.location
284
- }
314
+ header_params = {}
315
+ if request.location
316
+ header_params["location"] = request.location
317
+ end
318
+
285
319
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
286
320
  metadata[:"x-goog-request-params"] ||= request_params_header
287
321
 
@@ -360,6 +394,28 @@ module Google
360
394
  #
361
395
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
362
396
  #
397
+ # @example Basic example
398
+ # require "google/cloud/domains/v1beta1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Cloud::Domains::V1beta1::RegisterDomainRequest.new
405
+ #
406
+ # # Call the register_domain method.
407
+ # result = client.register_domain request
408
+ #
409
+ # # The returned object is of type Gapic::Operation. You can use this
410
+ # # object to check the status of an operation, cancel it, or wait
411
+ # # for results. Here is how to block until completion:
412
+ # result.wait_until_done! timeout: 60
413
+ # if result.response?
414
+ # p result.response
415
+ # else
416
+ # puts "Error!"
417
+ # end
418
+ #
363
419
  def register_domain request, options = nil
364
420
  raise ::ArgumentError, "request must be provided" if request.nil?
365
421
 
@@ -377,9 +433,11 @@ module Google
377
433
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
378
434
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
379
435
 
380
- header_params = {
381
- "parent" => request.parent
382
- }
436
+ header_params = {}
437
+ if request.parent
438
+ header_params["parent"] = request.parent
439
+ end
440
+
383
441
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
384
442
  metadata[:"x-goog-request-params"] ||= request_params_header
385
443
 
@@ -436,6 +494,21 @@ module Google
436
494
  #
437
495
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
438
496
  #
497
+ # @example Basic example
498
+ # require "google/cloud/domains/v1beta1"
499
+ #
500
+ # # Create a client object. The client can be reused for multiple calls.
501
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
502
+ #
503
+ # # Create a request. To set request fields, pass in keyword arguments.
504
+ # request = Google::Cloud::Domains::V1beta1::RetrieveTransferParametersRequest.new
505
+ #
506
+ # # Call the retrieve_transfer_parameters method.
507
+ # result = client.retrieve_transfer_parameters request
508
+ #
509
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::RetrieveTransferParametersResponse.
510
+ # p result
511
+ #
439
512
  def retrieve_transfer_parameters request, options = nil
440
513
  raise ::ArgumentError, "request must be provided" if request.nil?
441
514
 
@@ -453,9 +526,11 @@ module Google
453
526
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
454
527
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
528
 
456
- header_params = {
457
- "location" => request.location
458
- }
529
+ header_params = {}
530
+ if request.location
531
+ header_params["location"] = request.location
532
+ end
533
+
459
534
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
460
535
  metadata[:"x-goog-request-params"] ||= request_params_header
461
536
 
@@ -546,6 +621,28 @@ module Google
546
621
  #
547
622
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
548
623
  #
624
+ # @example Basic example
625
+ # require "google/cloud/domains/v1beta1"
626
+ #
627
+ # # Create a client object. The client can be reused for multiple calls.
628
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
629
+ #
630
+ # # Create a request. To set request fields, pass in keyword arguments.
631
+ # request = Google::Cloud::Domains::V1beta1::TransferDomainRequest.new
632
+ #
633
+ # # Call the transfer_domain method.
634
+ # result = client.transfer_domain request
635
+ #
636
+ # # The returned object is of type Gapic::Operation. You can use this
637
+ # # object to check the status of an operation, cancel it, or wait
638
+ # # for results. Here is how to block until completion:
639
+ # result.wait_until_done! timeout: 60
640
+ # if result.response?
641
+ # p result.response
642
+ # else
643
+ # puts "Error!"
644
+ # end
645
+ #
549
646
  def transfer_domain request, options = nil
550
647
  raise ::ArgumentError, "request must be provided" if request.nil?
551
648
 
@@ -563,9 +660,11 @@ module Google
563
660
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
564
661
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
565
662
 
566
- header_params = {
567
- "parent" => request.parent
568
- }
663
+ header_params = {}
664
+ if request.parent
665
+ header_params["parent"] = request.parent
666
+ end
667
+
569
668
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
570
669
  metadata[:"x-goog-request-params"] ||= request_params_header
571
670
 
@@ -638,6 +737,27 @@ module Google
638
737
  #
639
738
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
640
739
  #
740
+ # @example Basic example
741
+ # require "google/cloud/domains/v1beta1"
742
+ #
743
+ # # Create a client object. The client can be reused for multiple calls.
744
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
745
+ #
746
+ # # Create a request. To set request fields, pass in keyword arguments.
747
+ # request = Google::Cloud::Domains::V1beta1::ListRegistrationsRequest.new
748
+ #
749
+ # # Call the list_registrations method.
750
+ # result = client.list_registrations request
751
+ #
752
+ # # The returned object is of type Gapic::PagedEnumerable. You can
753
+ # # iterate over all elements by calling #each, and the enumerable
754
+ # # will lazily make API calls to fetch subsequent pages. Other
755
+ # # methods are also available for managing paging directly.
756
+ # result.each do |response|
757
+ # # Each element is of type ::Google::Cloud::Domains::V1beta1::Registration.
758
+ # p response
759
+ # end
760
+ #
641
761
  def list_registrations request, options = nil
642
762
  raise ::ArgumentError, "request must be provided" if request.nil?
643
763
 
@@ -655,9 +775,11 @@ module Google
655
775
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
656
776
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
657
777
 
658
- header_params = {
659
- "parent" => request.parent
660
- }
778
+ header_params = {}
779
+ if request.parent
780
+ header_params["parent"] = request.parent
781
+ end
782
+
661
783
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
662
784
  metadata[:"x-goog-request-params"] ||= request_params_header
663
785
 
@@ -708,6 +830,21 @@ module Google
708
830
  #
709
831
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
710
832
  #
833
+ # @example Basic example
834
+ # require "google/cloud/domains/v1beta1"
835
+ #
836
+ # # Create a client object. The client can be reused for multiple calls.
837
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
838
+ #
839
+ # # Create a request. To set request fields, pass in keyword arguments.
840
+ # request = Google::Cloud::Domains::V1beta1::GetRegistrationRequest.new
841
+ #
842
+ # # Call the get_registration method.
843
+ # result = client.get_registration request
844
+ #
845
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::Registration.
846
+ # p result
847
+ #
711
848
  def get_registration request, options = nil
712
849
  raise ::ArgumentError, "request must be provided" if request.nil?
713
850
 
@@ -725,9 +862,11 @@ module Google
725
862
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
726
863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
727
864
 
728
- header_params = {
729
- "name" => request.name
730
- }
865
+ header_params = {}
866
+ if request.name
867
+ header_params["name"] = request.name
868
+ end
869
+
731
870
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
732
871
  metadata[:"x-goog-request-params"] ||= request_params_header
733
872
 
@@ -785,6 +924,28 @@ module Google
785
924
  #
786
925
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
787
926
  #
927
+ # @example Basic example
928
+ # require "google/cloud/domains/v1beta1"
929
+ #
930
+ # # Create a client object. The client can be reused for multiple calls.
931
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
932
+ #
933
+ # # Create a request. To set request fields, pass in keyword arguments.
934
+ # request = Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest.new
935
+ #
936
+ # # Call the update_registration method.
937
+ # result = client.update_registration request
938
+ #
939
+ # # The returned object is of type Gapic::Operation. You can use this
940
+ # # object to check the status of an operation, cancel it, or wait
941
+ # # for results. Here is how to block until completion:
942
+ # result.wait_until_done! timeout: 60
943
+ # if result.response?
944
+ # p result.response
945
+ # else
946
+ # puts "Error!"
947
+ # end
948
+ #
788
949
  def update_registration request, options = nil
789
950
  raise ::ArgumentError, "request must be provided" if request.nil?
790
951
 
@@ -802,9 +963,11 @@ module Google
802
963
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
803
964
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
965
 
805
- header_params = {
806
- "registration.name" => request.registration.name
807
- }
966
+ header_params = {}
967
+ if request.registration&.name
968
+ header_params["registration.name"] = request.registration.name
969
+ end
970
+
808
971
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
809
972
  metadata[:"x-goog-request-params"] ||= request_params_header
810
973
 
@@ -861,6 +1024,28 @@ module Google
861
1024
  #
862
1025
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
863
1026
  #
1027
+ # @example Basic example
1028
+ # require "google/cloud/domains/v1beta1"
1029
+ #
1030
+ # # Create a client object. The client can be reused for multiple calls.
1031
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1032
+ #
1033
+ # # Create a request. To set request fields, pass in keyword arguments.
1034
+ # request = Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest.new
1035
+ #
1036
+ # # Call the configure_management_settings method.
1037
+ # result = client.configure_management_settings request
1038
+ #
1039
+ # # The returned object is of type Gapic::Operation. You can use this
1040
+ # # object to check the status of an operation, cancel it, or wait
1041
+ # # for results. Here is how to block until completion:
1042
+ # result.wait_until_done! timeout: 60
1043
+ # if result.response?
1044
+ # p result.response
1045
+ # else
1046
+ # puts "Error!"
1047
+ # end
1048
+ #
864
1049
  def configure_management_settings request, options = nil
865
1050
  raise ::ArgumentError, "request must be provided" if request.nil?
866
1051
 
@@ -878,9 +1063,11 @@ module Google
878
1063
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
879
1064
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
880
1065
 
881
- header_params = {
882
- "registration" => request.registration
883
- }
1066
+ header_params = {}
1067
+ if request.registration
1068
+ header_params["registration"] = request.registration
1069
+ end
1070
+
884
1071
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
885
1072
  metadata[:"x-goog-request-params"] ||= request_params_header
886
1073
 
@@ -945,6 +1132,28 @@ module Google
945
1132
  #
946
1133
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
947
1134
  #
1135
+ # @example Basic example
1136
+ # require "google/cloud/domains/v1beta1"
1137
+ #
1138
+ # # Create a client object. The client can be reused for multiple calls.
1139
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1140
+ #
1141
+ # # Create a request. To set request fields, pass in keyword arguments.
1142
+ # request = Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest.new
1143
+ #
1144
+ # # Call the configure_dns_settings method.
1145
+ # result = client.configure_dns_settings request
1146
+ #
1147
+ # # The returned object is of type Gapic::Operation. You can use this
1148
+ # # object to check the status of an operation, cancel it, or wait
1149
+ # # for results. Here is how to block until completion:
1150
+ # result.wait_until_done! timeout: 60
1151
+ # if result.response?
1152
+ # p result.response
1153
+ # else
1154
+ # puts "Error!"
1155
+ # end
1156
+ #
948
1157
  def configure_dns_settings request, options = nil
949
1158
  raise ::ArgumentError, "request must be provided" if request.nil?
950
1159
 
@@ -962,9 +1171,11 @@ module Google
962
1171
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
963
1172
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
964
1173
 
965
- header_params = {
966
- "registration" => request.registration
967
- }
1174
+ header_params = {}
1175
+ if request.registration
1176
+ header_params["registration"] = request.registration
1177
+ end
1178
+
968
1179
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
969
1180
  metadata[:"x-goog-request-params"] ||= request_params_header
970
1181
 
@@ -1027,6 +1238,28 @@ module Google
1027
1238
  #
1028
1239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1029
1240
  #
1241
+ # @example Basic example
1242
+ # require "google/cloud/domains/v1beta1"
1243
+ #
1244
+ # # Create a client object. The client can be reused for multiple calls.
1245
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1246
+ #
1247
+ # # Create a request. To set request fields, pass in keyword arguments.
1248
+ # request = Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest.new
1249
+ #
1250
+ # # Call the configure_contact_settings method.
1251
+ # result = client.configure_contact_settings request
1252
+ #
1253
+ # # The returned object is of type Gapic::Operation. You can use this
1254
+ # # object to check the status of an operation, cancel it, or wait
1255
+ # # for results. Here is how to block until completion:
1256
+ # result.wait_until_done! timeout: 60
1257
+ # if result.response?
1258
+ # p result.response
1259
+ # else
1260
+ # puts "Error!"
1261
+ # end
1262
+ #
1030
1263
  def configure_contact_settings request, options = nil
1031
1264
  raise ::ArgumentError, "request must be provided" if request.nil?
1032
1265
 
@@ -1044,9 +1277,11 @@ module Google
1044
1277
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1045
1278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1046
1279
 
1047
- header_params = {
1048
- "registration" => request.registration
1049
- }
1280
+ header_params = {}
1281
+ if request.registration
1282
+ header_params["registration"] = request.registration
1283
+ end
1284
+
1050
1285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1051
1286
  metadata[:"x-goog-request-params"] ||= request_params_header
1052
1287
 
@@ -1105,6 +1340,28 @@ module Google
1105
1340
  #
1106
1341
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1107
1342
  #
1343
+ # @example Basic example
1344
+ # require "google/cloud/domains/v1beta1"
1345
+ #
1346
+ # # Create a client object. The client can be reused for multiple calls.
1347
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1348
+ #
1349
+ # # Create a request. To set request fields, pass in keyword arguments.
1350
+ # request = Google::Cloud::Domains::V1beta1::ExportRegistrationRequest.new
1351
+ #
1352
+ # # Call the export_registration method.
1353
+ # result = client.export_registration request
1354
+ #
1355
+ # # The returned object is of type Gapic::Operation. You can use this
1356
+ # # object to check the status of an operation, cancel it, or wait
1357
+ # # for results. Here is how to block until completion:
1358
+ # result.wait_until_done! timeout: 60
1359
+ # if result.response?
1360
+ # p result.response
1361
+ # else
1362
+ # puts "Error!"
1363
+ # end
1364
+ #
1108
1365
  def export_registration request, options = nil
1109
1366
  raise ::ArgumentError, "request must be provided" if request.nil?
1110
1367
 
@@ -1122,9 +1379,11 @@ module Google
1122
1379
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1123
1380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1124
1381
 
1125
- header_params = {
1126
- "name" => request.name
1127
- }
1382
+ header_params = {}
1383
+ if request.name
1384
+ header_params["name"] = request.name
1385
+ end
1386
+
1128
1387
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1129
1388
  metadata[:"x-goog-request-params"] ||= request_params_header
1130
1389
 
@@ -1193,6 +1452,28 @@ module Google
1193
1452
  #
1194
1453
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1195
1454
  #
1455
+ # @example Basic example
1456
+ # require "google/cloud/domains/v1beta1"
1457
+ #
1458
+ # # Create a client object. The client can be reused for multiple calls.
1459
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1460
+ #
1461
+ # # Create a request. To set request fields, pass in keyword arguments.
1462
+ # request = Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest.new
1463
+ #
1464
+ # # Call the delete_registration method.
1465
+ # result = client.delete_registration request
1466
+ #
1467
+ # # The returned object is of type Gapic::Operation. You can use this
1468
+ # # object to check the status of an operation, cancel it, or wait
1469
+ # # for results. Here is how to block until completion:
1470
+ # result.wait_until_done! timeout: 60
1471
+ # if result.response?
1472
+ # p result.response
1473
+ # else
1474
+ # puts "Error!"
1475
+ # end
1476
+ #
1196
1477
  def delete_registration request, options = nil
1197
1478
  raise ::ArgumentError, "request must be provided" if request.nil?
1198
1479
 
@@ -1210,9 +1491,11 @@ module Google
1210
1491
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1211
1492
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1212
1493
 
1213
- header_params = {
1214
- "name" => request.name
1215
- }
1494
+ header_params = {}
1495
+ if request.name
1496
+ header_params["name"] = request.name
1497
+ end
1498
+
1216
1499
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1217
1500
  metadata[:"x-goog-request-params"] ||= request_params_header
1218
1501
 
@@ -1267,6 +1550,21 @@ module Google
1267
1550
  #
1268
1551
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1269
1552
  #
1553
+ # @example Basic example
1554
+ # require "google/cloud/domains/v1beta1"
1555
+ #
1556
+ # # Create a client object. The client can be reused for multiple calls.
1557
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1558
+ #
1559
+ # # Create a request. To set request fields, pass in keyword arguments.
1560
+ # request = Google::Cloud::Domains::V1beta1::RetrieveAuthorizationCodeRequest.new
1561
+ #
1562
+ # # Call the retrieve_authorization_code method.
1563
+ # result = client.retrieve_authorization_code request
1564
+ #
1565
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode.
1566
+ # p result
1567
+ #
1270
1568
  def retrieve_authorization_code request, options = nil
1271
1569
  raise ::ArgumentError, "request must be provided" if request.nil?
1272
1570
 
@@ -1284,9 +1582,11 @@ module Google
1284
1582
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1285
1583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1286
1584
 
1287
- header_params = {
1288
- "registration" => request.registration
1289
- }
1585
+ header_params = {}
1586
+ if request.registration
1587
+ header_params["registration"] = request.registration
1588
+ end
1589
+
1290
1590
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1291
1591
  metadata[:"x-goog-request-params"] ||= request_params_header
1292
1592
 
@@ -1339,6 +1639,21 @@ module Google
1339
1639
  #
1340
1640
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1341
1641
  #
1642
+ # @example Basic example
1643
+ # require "google/cloud/domains/v1beta1"
1644
+ #
1645
+ # # Create a client object. The client can be reused for multiple calls.
1646
+ # client = Google::Cloud::Domains::V1beta1::Domains::Client.new
1647
+ #
1648
+ # # Create a request. To set request fields, pass in keyword arguments.
1649
+ # request = Google::Cloud::Domains::V1beta1::ResetAuthorizationCodeRequest.new
1650
+ #
1651
+ # # Call the reset_authorization_code method.
1652
+ # result = client.reset_authorization_code request
1653
+ #
1654
+ # # The returned object is of type Google::Cloud::Domains::V1beta1::AuthorizationCode.
1655
+ # p result
1656
+ #
1342
1657
  def reset_authorization_code request, options = nil
1343
1658
  raise ::ArgumentError, "request must be provided" if request.nil?
1344
1659
 
@@ -1356,9 +1671,11 @@ module Google
1356
1671
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
1357
1672
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
1673
 
1359
- header_params = {
1360
- "registration" => request.registration
1361
- }
1674
+ header_params = {}
1675
+ if request.registration
1676
+ header_params["registration"] = request.registration
1677
+ end
1678
+
1362
1679
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1363
1680
  metadata[:"x-goog-request-params"] ||= request_params_header
1364
1681
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Domains::V1beta1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Domains
23
23
  module V1beta1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.3.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-domains-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common