google-cloud-certificate_manager-v1 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,9 @@ module Google
58
58
  # Provides methods to manage Cloud Certificate Manager entities.
59
59
  #
60
60
  class Client
61
+ # @private
62
+ DEFAULT_ENDPOINT_TEMPLATE = "certificatemanager.$UNIVERSE_DOMAIN$"
63
+
61
64
  include Paths
62
65
 
63
66
  # @private
@@ -238,6 +241,15 @@ module Google
238
241
  @config
239
242
  end
240
243
 
244
+ ##
245
+ # The effective universe domain
246
+ #
247
+ # @return [String]
248
+ #
249
+ def universe_domain
250
+ @certificate_manager_stub.universe_domain
251
+ end
252
+
241
253
  ##
242
254
  # Create a new CertificateManager REST client object.
243
255
  #
@@ -265,8 +277,9 @@ module Google
265
277
  credentials = @config.credentials
266
278
  # Use self-signed JWT if the endpoint is unchanged from default,
267
279
  # but only if the default endpoint does not have a region prefix.
268
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
269
- !@config.endpoint.split(".").first.include?("-")
280
+ enable_self_signed_jwt = @config.endpoint.nil? ||
281
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
282
+ !@config.endpoint.split(".").first.include?("-"))
270
283
  credentials ||= Credentials.default scope: @config.scope,
271
284
  enable_self_signed_jwt: enable_self_signed_jwt
272
285
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -280,16 +293,23 @@ module Google
280
293
  config.credentials = credentials
281
294
  config.quota_project = @quota_project_id
282
295
  config.endpoint = @config.endpoint
296
+ config.universe_domain = @config.universe_domain
283
297
  end
284
298
 
285
299
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
286
300
  config.credentials = credentials
287
301
  config.quota_project = @quota_project_id
288
302
  config.endpoint = @config.endpoint
303
+ config.universe_domain = @config.universe_domain
289
304
  config.bindings_override = @config.bindings_override
290
305
  end
291
306
 
292
- @certificate_manager_stub = ::Google::Cloud::CertificateManager::V1::CertificateManager::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
307
+ @certificate_manager_stub = ::Google::Cloud::CertificateManager::V1::CertificateManager::Rest::ServiceStub.new(
308
+ endpoint: @config.endpoint,
309
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
310
+ universe_domain: @config.universe_domain,
311
+ credentials: credentials
312
+ )
293
313
  end
294
314
 
295
315
  ##
@@ -348,6 +368,26 @@ module Google
348
368
  # @return [::Google::Cloud::CertificateManager::V1::ListCertificatesResponse]
349
369
  #
350
370
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
371
+ #
372
+ # @example Basic example
373
+ # require "google/cloud/certificate_manager/v1"
374
+ #
375
+ # # Create a client object. The client can be reused for multiple calls.
376
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
377
+ #
378
+ # # Create a request. To set request fields, pass in keyword arguments.
379
+ # request = Google::Cloud::CertificateManager::V1::ListCertificatesRequest.new
380
+ #
381
+ # # Call the list_certificates method.
382
+ # result = client.list_certificates request
383
+ #
384
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
385
+ # # over elements, and API calls will be issued to fetch pages as needed.
386
+ # result.each do |item|
387
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::Certificate.
388
+ # p item
389
+ # end
390
+ #
351
391
  def list_certificates request, options = nil
352
392
  raise ::ArgumentError, "request must be provided" if request.nil?
353
393
 
@@ -411,6 +451,22 @@ module Google
411
451
  # @return [::Google::Cloud::CertificateManager::V1::Certificate]
412
452
  #
413
453
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
454
+ #
455
+ # @example Basic example
456
+ # require "google/cloud/certificate_manager/v1"
457
+ #
458
+ # # Create a client object. The client can be reused for multiple calls.
459
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
460
+ #
461
+ # # Create a request. To set request fields, pass in keyword arguments.
462
+ # request = Google::Cloud::CertificateManager::V1::GetCertificateRequest.new
463
+ #
464
+ # # Call the get_certificate method.
465
+ # result = client.get_certificate request
466
+ #
467
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::Certificate.
468
+ # p result
469
+ #
414
470
  def get_certificate request, options = nil
415
471
  raise ::ArgumentError, "request must be provided" if request.nil?
416
472
 
@@ -478,6 +534,29 @@ module Google
478
534
  # @return [::Gapic::Operation]
479
535
  #
480
536
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
537
+ #
538
+ # @example Basic example
539
+ # require "google/cloud/certificate_manager/v1"
540
+ #
541
+ # # Create a client object. The client can be reused for multiple calls.
542
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
543
+ #
544
+ # # Create a request. To set request fields, pass in keyword arguments.
545
+ # request = Google::Cloud::CertificateManager::V1::CreateCertificateRequest.new
546
+ #
547
+ # # Call the create_certificate method.
548
+ # result = client.create_certificate request
549
+ #
550
+ # # The returned object is of type Gapic::Operation. You can use it to
551
+ # # check the status of an operation, cancel it, or wait for results.
552
+ # # Here is how to wait for a response.
553
+ # result.wait_until_done! timeout: 60
554
+ # if result.response?
555
+ # p result.response
556
+ # else
557
+ # puts "No response received."
558
+ # end
559
+ #
481
560
  def create_certificate request, options = nil
482
561
  raise ::ArgumentError, "request must be provided" if request.nil?
483
562
 
@@ -545,6 +624,29 @@ module Google
545
624
  # @return [::Gapic::Operation]
546
625
  #
547
626
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
627
+ #
628
+ # @example Basic example
629
+ # require "google/cloud/certificate_manager/v1"
630
+ #
631
+ # # Create a client object. The client can be reused for multiple calls.
632
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
633
+ #
634
+ # # Create a request. To set request fields, pass in keyword arguments.
635
+ # request = Google::Cloud::CertificateManager::V1::UpdateCertificateRequest.new
636
+ #
637
+ # # Call the update_certificate method.
638
+ # result = client.update_certificate request
639
+ #
640
+ # # The returned object is of type Gapic::Operation. You can use it to
641
+ # # check the status of an operation, cancel it, or wait for results.
642
+ # # Here is how to wait for a response.
643
+ # result.wait_until_done! timeout: 60
644
+ # if result.response?
645
+ # p result.response
646
+ # else
647
+ # puts "No response received."
648
+ # end
649
+ #
548
650
  def update_certificate request, options = nil
549
651
  raise ::ArgumentError, "request must be provided" if request.nil?
550
652
 
@@ -609,6 +711,29 @@ module Google
609
711
  # @return [::Gapic::Operation]
610
712
  #
611
713
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
714
+ #
715
+ # @example Basic example
716
+ # require "google/cloud/certificate_manager/v1"
717
+ #
718
+ # # Create a client object. The client can be reused for multiple calls.
719
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
720
+ #
721
+ # # Create a request. To set request fields, pass in keyword arguments.
722
+ # request = Google::Cloud::CertificateManager::V1::DeleteCertificateRequest.new
723
+ #
724
+ # # Call the delete_certificate method.
725
+ # result = client.delete_certificate request
726
+ #
727
+ # # The returned object is of type Gapic::Operation. You can use it to
728
+ # # check the status of an operation, cancel it, or wait for results.
729
+ # # Here is how to wait for a response.
730
+ # result.wait_until_done! timeout: 60
731
+ # if result.response?
732
+ # p result.response
733
+ # else
734
+ # puts "No response received."
735
+ # end
736
+ #
612
737
  def delete_certificate request, options = nil
613
738
  raise ::ArgumentError, "request must be provided" if request.nil?
614
739
 
@@ -685,6 +810,26 @@ module Google
685
810
  # @return [::Google::Cloud::CertificateManager::V1::ListCertificateMapsResponse]
686
811
  #
687
812
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
813
+ #
814
+ # @example Basic example
815
+ # require "google/cloud/certificate_manager/v1"
816
+ #
817
+ # # Create a client object. The client can be reused for multiple calls.
818
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
819
+ #
820
+ # # Create a request. To set request fields, pass in keyword arguments.
821
+ # request = Google::Cloud::CertificateManager::V1::ListCertificateMapsRequest.new
822
+ #
823
+ # # Call the list_certificate_maps method.
824
+ # result = client.list_certificate_maps request
825
+ #
826
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
827
+ # # over elements, and API calls will be issued to fetch pages as needed.
828
+ # result.each do |item|
829
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMap.
830
+ # p item
831
+ # end
832
+ #
688
833
  def list_certificate_maps request, options = nil
689
834
  raise ::ArgumentError, "request must be provided" if request.nil?
690
835
 
@@ -748,6 +893,22 @@ module Google
748
893
  # @return [::Google::Cloud::CertificateManager::V1::CertificateMap]
749
894
  #
750
895
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
896
+ #
897
+ # @example Basic example
898
+ # require "google/cloud/certificate_manager/v1"
899
+ #
900
+ # # Create a client object. The client can be reused for multiple calls.
901
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
902
+ #
903
+ # # Create a request. To set request fields, pass in keyword arguments.
904
+ # request = Google::Cloud::CertificateManager::V1::GetCertificateMapRequest.new
905
+ #
906
+ # # Call the get_certificate_map method.
907
+ # result = client.get_certificate_map request
908
+ #
909
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::CertificateMap.
910
+ # p result
911
+ #
751
912
  def get_certificate_map request, options = nil
752
913
  raise ::ArgumentError, "request must be provided" if request.nil?
753
914
 
@@ -815,6 +976,29 @@ module Google
815
976
  # @return [::Gapic::Operation]
816
977
  #
817
978
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
979
+ #
980
+ # @example Basic example
981
+ # require "google/cloud/certificate_manager/v1"
982
+ #
983
+ # # Create a client object. The client can be reused for multiple calls.
984
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
985
+ #
986
+ # # Create a request. To set request fields, pass in keyword arguments.
987
+ # request = Google::Cloud::CertificateManager::V1::CreateCertificateMapRequest.new
988
+ #
989
+ # # Call the create_certificate_map method.
990
+ # result = client.create_certificate_map request
991
+ #
992
+ # # The returned object is of type Gapic::Operation. You can use it to
993
+ # # check the status of an operation, cancel it, or wait for results.
994
+ # # Here is how to wait for a response.
995
+ # result.wait_until_done! timeout: 60
996
+ # if result.response?
997
+ # p result.response
998
+ # else
999
+ # puts "No response received."
1000
+ # end
1001
+ #
818
1002
  def create_certificate_map request, options = nil
819
1003
  raise ::ArgumentError, "request must be provided" if request.nil?
820
1004
 
@@ -882,6 +1066,29 @@ module Google
882
1066
  # @return [::Gapic::Operation]
883
1067
  #
884
1068
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1069
+ #
1070
+ # @example Basic example
1071
+ # require "google/cloud/certificate_manager/v1"
1072
+ #
1073
+ # # Create a client object. The client can be reused for multiple calls.
1074
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1075
+ #
1076
+ # # Create a request. To set request fields, pass in keyword arguments.
1077
+ # request = Google::Cloud::CertificateManager::V1::UpdateCertificateMapRequest.new
1078
+ #
1079
+ # # Call the update_certificate_map method.
1080
+ # result = client.update_certificate_map request
1081
+ #
1082
+ # # The returned object is of type Gapic::Operation. You can use it to
1083
+ # # check the status of an operation, cancel it, or wait for results.
1084
+ # # Here is how to wait for a response.
1085
+ # result.wait_until_done! timeout: 60
1086
+ # if result.response?
1087
+ # p result.response
1088
+ # else
1089
+ # puts "No response received."
1090
+ # end
1091
+ #
885
1092
  def update_certificate_map request, options = nil
886
1093
  raise ::ArgumentError, "request must be provided" if request.nil?
887
1094
 
@@ -948,6 +1155,29 @@ module Google
948
1155
  # @return [::Gapic::Operation]
949
1156
  #
950
1157
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1158
+ #
1159
+ # @example Basic example
1160
+ # require "google/cloud/certificate_manager/v1"
1161
+ #
1162
+ # # Create a client object. The client can be reused for multiple calls.
1163
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1164
+ #
1165
+ # # Create a request. To set request fields, pass in keyword arguments.
1166
+ # request = Google::Cloud::CertificateManager::V1::DeleteCertificateMapRequest.new
1167
+ #
1168
+ # # Call the delete_certificate_map method.
1169
+ # result = client.delete_certificate_map request
1170
+ #
1171
+ # # The returned object is of type Gapic::Operation. You can use it to
1172
+ # # check the status of an operation, cancel it, or wait for results.
1173
+ # # Here is how to wait for a response.
1174
+ # result.wait_until_done! timeout: 60
1175
+ # if result.response?
1176
+ # p result.response
1177
+ # else
1178
+ # puts "No response received."
1179
+ # end
1180
+ #
951
1181
  def delete_certificate_map request, options = nil
952
1182
  raise ::ArgumentError, "request must be provided" if request.nil?
953
1183
 
@@ -1029,6 +1259,26 @@ module Google
1029
1259
  # @return [::Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesResponse]
1030
1260
  #
1031
1261
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1262
+ #
1263
+ # @example Basic example
1264
+ # require "google/cloud/certificate_manager/v1"
1265
+ #
1266
+ # # Create a client object. The client can be reused for multiple calls.
1267
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1268
+ #
1269
+ # # Create a request. To set request fields, pass in keyword arguments.
1270
+ # request = Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesRequest.new
1271
+ #
1272
+ # # Call the list_certificate_map_entries method.
1273
+ # result = client.list_certificate_map_entries request
1274
+ #
1275
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1276
+ # # over elements, and API calls will be issued to fetch pages as needed.
1277
+ # result.each do |item|
1278
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMapEntry.
1279
+ # p item
1280
+ # end
1281
+ #
1032
1282
  def list_certificate_map_entries request, options = nil
1033
1283
  raise ::ArgumentError, "request must be provided" if request.nil?
1034
1284
 
@@ -1092,6 +1342,22 @@ module Google
1092
1342
  # @return [::Google::Cloud::CertificateManager::V1::CertificateMapEntry]
1093
1343
  #
1094
1344
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1345
+ #
1346
+ # @example Basic example
1347
+ # require "google/cloud/certificate_manager/v1"
1348
+ #
1349
+ # # Create a client object. The client can be reused for multiple calls.
1350
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1351
+ #
1352
+ # # Create a request. To set request fields, pass in keyword arguments.
1353
+ # request = Google::Cloud::CertificateManager::V1::GetCertificateMapEntryRequest.new
1354
+ #
1355
+ # # Call the get_certificate_map_entry method.
1356
+ # result = client.get_certificate_map_entry request
1357
+ #
1358
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::CertificateMapEntry.
1359
+ # p result
1360
+ #
1095
1361
  def get_certificate_map_entry request, options = nil
1096
1362
  raise ::ArgumentError, "request must be provided" if request.nil?
1097
1363
 
@@ -1159,6 +1425,29 @@ module Google
1159
1425
  # @return [::Gapic::Operation]
1160
1426
  #
1161
1427
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1428
+ #
1429
+ # @example Basic example
1430
+ # require "google/cloud/certificate_manager/v1"
1431
+ #
1432
+ # # Create a client object. The client can be reused for multiple calls.
1433
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1434
+ #
1435
+ # # Create a request. To set request fields, pass in keyword arguments.
1436
+ # request = Google::Cloud::CertificateManager::V1::CreateCertificateMapEntryRequest.new
1437
+ #
1438
+ # # Call the create_certificate_map_entry method.
1439
+ # result = client.create_certificate_map_entry request
1440
+ #
1441
+ # # The returned object is of type Gapic::Operation. You can use it to
1442
+ # # check the status of an operation, cancel it, or wait for results.
1443
+ # # Here is how to wait for a response.
1444
+ # result.wait_until_done! timeout: 60
1445
+ # if result.response?
1446
+ # p result.response
1447
+ # else
1448
+ # puts "No response received."
1449
+ # end
1450
+ #
1162
1451
  def create_certificate_map_entry request, options = nil
1163
1452
  raise ::ArgumentError, "request must be provided" if request.nil?
1164
1453
 
@@ -1226,6 +1515,29 @@ module Google
1226
1515
  # @return [::Gapic::Operation]
1227
1516
  #
1228
1517
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1518
+ #
1519
+ # @example Basic example
1520
+ # require "google/cloud/certificate_manager/v1"
1521
+ #
1522
+ # # Create a client object. The client can be reused for multiple calls.
1523
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1524
+ #
1525
+ # # Create a request. To set request fields, pass in keyword arguments.
1526
+ # request = Google::Cloud::CertificateManager::V1::UpdateCertificateMapEntryRequest.new
1527
+ #
1528
+ # # Call the update_certificate_map_entry method.
1529
+ # result = client.update_certificate_map_entry request
1530
+ #
1531
+ # # The returned object is of type Gapic::Operation. You can use it to
1532
+ # # check the status of an operation, cancel it, or wait for results.
1533
+ # # Here is how to wait for a response.
1534
+ # result.wait_until_done! timeout: 60
1535
+ # if result.response?
1536
+ # p result.response
1537
+ # else
1538
+ # puts "No response received."
1539
+ # end
1540
+ #
1229
1541
  def update_certificate_map_entry request, options = nil
1230
1542
  raise ::ArgumentError, "request must be provided" if request.nil?
1231
1543
 
@@ -1290,6 +1602,29 @@ module Google
1290
1602
  # @return [::Gapic::Operation]
1291
1603
  #
1292
1604
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1605
+ #
1606
+ # @example Basic example
1607
+ # require "google/cloud/certificate_manager/v1"
1608
+ #
1609
+ # # Create a client object. The client can be reused for multiple calls.
1610
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1611
+ #
1612
+ # # Create a request. To set request fields, pass in keyword arguments.
1613
+ # request = Google::Cloud::CertificateManager::V1::DeleteCertificateMapEntryRequest.new
1614
+ #
1615
+ # # Call the delete_certificate_map_entry method.
1616
+ # result = client.delete_certificate_map_entry request
1617
+ #
1618
+ # # The returned object is of type Gapic::Operation. You can use it to
1619
+ # # check the status of an operation, cancel it, or wait for results.
1620
+ # # Here is how to wait for a response.
1621
+ # result.wait_until_done! timeout: 60
1622
+ # if result.response?
1623
+ # p result.response
1624
+ # else
1625
+ # puts "No response received."
1626
+ # end
1627
+ #
1293
1628
  def delete_certificate_map_entry request, options = nil
1294
1629
  raise ::ArgumentError, "request must be provided" if request.nil?
1295
1630
 
@@ -1366,6 +1701,26 @@ module Google
1366
1701
  # @return [::Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsResponse]
1367
1702
  #
1368
1703
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1704
+ #
1705
+ # @example Basic example
1706
+ # require "google/cloud/certificate_manager/v1"
1707
+ #
1708
+ # # Create a client object. The client can be reused for multiple calls.
1709
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1710
+ #
1711
+ # # Create a request. To set request fields, pass in keyword arguments.
1712
+ # request = Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsRequest.new
1713
+ #
1714
+ # # Call the list_dns_authorizations method.
1715
+ # result = client.list_dns_authorizations request
1716
+ #
1717
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1718
+ # # over elements, and API calls will be issued to fetch pages as needed.
1719
+ # result.each do |item|
1720
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::DnsAuthorization.
1721
+ # p item
1722
+ # end
1723
+ #
1369
1724
  def list_dns_authorizations request, options = nil
1370
1725
  raise ::ArgumentError, "request must be provided" if request.nil?
1371
1726
 
@@ -1429,6 +1784,22 @@ module Google
1429
1784
  # @return [::Google::Cloud::CertificateManager::V1::DnsAuthorization]
1430
1785
  #
1431
1786
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1787
+ #
1788
+ # @example Basic example
1789
+ # require "google/cloud/certificate_manager/v1"
1790
+ #
1791
+ # # Create a client object. The client can be reused for multiple calls.
1792
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1793
+ #
1794
+ # # Create a request. To set request fields, pass in keyword arguments.
1795
+ # request = Google::Cloud::CertificateManager::V1::GetDnsAuthorizationRequest.new
1796
+ #
1797
+ # # Call the get_dns_authorization method.
1798
+ # result = client.get_dns_authorization request
1799
+ #
1800
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::DnsAuthorization.
1801
+ # p result
1802
+ #
1432
1803
  def get_dns_authorization request, options = nil
1433
1804
  raise ::ArgumentError, "request must be provided" if request.nil?
1434
1805
 
@@ -1496,6 +1867,29 @@ module Google
1496
1867
  # @return [::Gapic::Operation]
1497
1868
  #
1498
1869
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1870
+ #
1871
+ # @example Basic example
1872
+ # require "google/cloud/certificate_manager/v1"
1873
+ #
1874
+ # # Create a client object. The client can be reused for multiple calls.
1875
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1876
+ #
1877
+ # # Create a request. To set request fields, pass in keyword arguments.
1878
+ # request = Google::Cloud::CertificateManager::V1::CreateDnsAuthorizationRequest.new
1879
+ #
1880
+ # # Call the create_dns_authorization method.
1881
+ # result = client.create_dns_authorization request
1882
+ #
1883
+ # # The returned object is of type Gapic::Operation. You can use it to
1884
+ # # check the status of an operation, cancel it, or wait for results.
1885
+ # # Here is how to wait for a response.
1886
+ # result.wait_until_done! timeout: 60
1887
+ # if result.response?
1888
+ # p result.response
1889
+ # else
1890
+ # puts "No response received."
1891
+ # end
1892
+ #
1499
1893
  def create_dns_authorization request, options = nil
1500
1894
  raise ::ArgumentError, "request must be provided" if request.nil?
1501
1895
 
@@ -1563,6 +1957,29 @@ module Google
1563
1957
  # @return [::Gapic::Operation]
1564
1958
  #
1565
1959
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1960
+ #
1961
+ # @example Basic example
1962
+ # require "google/cloud/certificate_manager/v1"
1963
+ #
1964
+ # # Create a client object. The client can be reused for multiple calls.
1965
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
1966
+ #
1967
+ # # Create a request. To set request fields, pass in keyword arguments.
1968
+ # request = Google::Cloud::CertificateManager::V1::UpdateDnsAuthorizationRequest.new
1969
+ #
1970
+ # # Call the update_dns_authorization method.
1971
+ # result = client.update_dns_authorization request
1972
+ #
1973
+ # # The returned object is of type Gapic::Operation. You can use it to
1974
+ # # check the status of an operation, cancel it, or wait for results.
1975
+ # # Here is how to wait for a response.
1976
+ # result.wait_until_done! timeout: 60
1977
+ # if result.response?
1978
+ # p result.response
1979
+ # else
1980
+ # puts "No response received."
1981
+ # end
1982
+ #
1566
1983
  def update_dns_authorization request, options = nil
1567
1984
  raise ::ArgumentError, "request must be provided" if request.nil?
1568
1985
 
@@ -1627,6 +2044,29 @@ module Google
1627
2044
  # @return [::Gapic::Operation]
1628
2045
  #
1629
2046
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2047
+ #
2048
+ # @example Basic example
2049
+ # require "google/cloud/certificate_manager/v1"
2050
+ #
2051
+ # # Create a client object. The client can be reused for multiple calls.
2052
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2053
+ #
2054
+ # # Create a request. To set request fields, pass in keyword arguments.
2055
+ # request = Google::Cloud::CertificateManager::V1::DeleteDnsAuthorizationRequest.new
2056
+ #
2057
+ # # Call the delete_dns_authorization method.
2058
+ # result = client.delete_dns_authorization request
2059
+ #
2060
+ # # The returned object is of type Gapic::Operation. You can use it to
2061
+ # # check the status of an operation, cancel it, or wait for results.
2062
+ # # Here is how to wait for a response.
2063
+ # result.wait_until_done! timeout: 60
2064
+ # if result.response?
2065
+ # p result.response
2066
+ # else
2067
+ # puts "No response received."
2068
+ # end
2069
+ #
1630
2070
  def delete_dns_authorization request, options = nil
1631
2071
  raise ::ArgumentError, "request must be provided" if request.nil?
1632
2072
 
@@ -1704,6 +2144,26 @@ module Google
1704
2144
  # @return [::Google::Cloud::CertificateManager::V1::ListCertificateIssuanceConfigsResponse]
1705
2145
  #
1706
2146
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2147
+ #
2148
+ # @example Basic example
2149
+ # require "google/cloud/certificate_manager/v1"
2150
+ #
2151
+ # # Create a client object. The client can be reused for multiple calls.
2152
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2153
+ #
2154
+ # # Create a request. To set request fields, pass in keyword arguments.
2155
+ # request = Google::Cloud::CertificateManager::V1::ListCertificateIssuanceConfigsRequest.new
2156
+ #
2157
+ # # Call the list_certificate_issuance_configs method.
2158
+ # result = client.list_certificate_issuance_configs request
2159
+ #
2160
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2161
+ # # over elements, and API calls will be issued to fetch pages as needed.
2162
+ # result.each do |item|
2163
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateIssuanceConfig.
2164
+ # p item
2165
+ # end
2166
+ #
1707
2167
  def list_certificate_issuance_configs request, options = nil
1708
2168
  raise ::ArgumentError, "request must be provided" if request.nil?
1709
2169
 
@@ -1767,6 +2227,22 @@ module Google
1767
2227
  # @return [::Google::Cloud::CertificateManager::V1::CertificateIssuanceConfig]
1768
2228
  #
1769
2229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2230
+ #
2231
+ # @example Basic example
2232
+ # require "google/cloud/certificate_manager/v1"
2233
+ #
2234
+ # # Create a client object. The client can be reused for multiple calls.
2235
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2236
+ #
2237
+ # # Create a request. To set request fields, pass in keyword arguments.
2238
+ # request = Google::Cloud::CertificateManager::V1::GetCertificateIssuanceConfigRequest.new
2239
+ #
2240
+ # # Call the get_certificate_issuance_config method.
2241
+ # result = client.get_certificate_issuance_config request
2242
+ #
2243
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::CertificateIssuanceConfig.
2244
+ # p result
2245
+ #
1770
2246
  def get_certificate_issuance_config request, options = nil
1771
2247
  raise ::ArgumentError, "request must be provided" if request.nil?
1772
2248
 
@@ -1834,6 +2310,29 @@ module Google
1834
2310
  # @return [::Gapic::Operation]
1835
2311
  #
1836
2312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2313
+ #
2314
+ # @example Basic example
2315
+ # require "google/cloud/certificate_manager/v1"
2316
+ #
2317
+ # # Create a client object. The client can be reused for multiple calls.
2318
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2319
+ #
2320
+ # # Create a request. To set request fields, pass in keyword arguments.
2321
+ # request = Google::Cloud::CertificateManager::V1::CreateCertificateIssuanceConfigRequest.new
2322
+ #
2323
+ # # Call the create_certificate_issuance_config method.
2324
+ # result = client.create_certificate_issuance_config request
2325
+ #
2326
+ # # The returned object is of type Gapic::Operation. You can use it to
2327
+ # # check the status of an operation, cancel it, or wait for results.
2328
+ # # Here is how to wait for a response.
2329
+ # result.wait_until_done! timeout: 60
2330
+ # if result.response?
2331
+ # p result.response
2332
+ # else
2333
+ # puts "No response received."
2334
+ # end
2335
+ #
1837
2336
  def create_certificate_issuance_config request, options = nil
1838
2337
  raise ::ArgumentError, "request must be provided" if request.nil?
1839
2338
 
@@ -1898,6 +2397,29 @@ module Google
1898
2397
  # @return [::Gapic::Operation]
1899
2398
  #
1900
2399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2400
+ #
2401
+ # @example Basic example
2402
+ # require "google/cloud/certificate_manager/v1"
2403
+ #
2404
+ # # Create a client object. The client can be reused for multiple calls.
2405
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2406
+ #
2407
+ # # Create a request. To set request fields, pass in keyword arguments.
2408
+ # request = Google::Cloud::CertificateManager::V1::DeleteCertificateIssuanceConfigRequest.new
2409
+ #
2410
+ # # Call the delete_certificate_issuance_config method.
2411
+ # result = client.delete_certificate_issuance_config request
2412
+ #
2413
+ # # The returned object is of type Gapic::Operation. You can use it to
2414
+ # # check the status of an operation, cancel it, or wait for results.
2415
+ # # Here is how to wait for a response.
2416
+ # result.wait_until_done! timeout: 60
2417
+ # if result.response?
2418
+ # p result.response
2419
+ # else
2420
+ # puts "No response received."
2421
+ # end
2422
+ #
1901
2423
  def delete_certificate_issuance_config request, options = nil
1902
2424
  raise ::ArgumentError, "request must be provided" if request.nil?
1903
2425
 
@@ -1964,9 +2486,9 @@ module Google
1964
2486
  # end
1965
2487
  #
1966
2488
  # @!attribute [rw] endpoint
1967
- # The hostname or hostname:port of the service endpoint.
1968
- # Defaults to `"certificatemanager.googleapis.com"`.
1969
- # @return [::String]
2489
+ # A custom service endpoint, as a hostname or hostname:port. The default is
2490
+ # nil, indicating to use the default endpoint in the current universe domain.
2491
+ # @return [::String,nil]
1970
2492
  # @!attribute [rw] credentials
1971
2493
  # Credentials to send with calls. You may provide any of the following types:
1972
2494
  # * (`String`) The path to a service account key file in JSON format
@@ -2003,13 +2525,20 @@ module Google
2003
2525
  # @!attribute [rw] quota_project
2004
2526
  # A separate project against which to charge quota.
2005
2527
  # @return [::String]
2528
+ # @!attribute [rw] universe_domain
2529
+ # The universe domain within which to make requests. This determines the
2530
+ # default endpoint URL. The default value of nil uses the environment
2531
+ # universe (usually the default "googleapis.com" universe).
2532
+ # @return [::String,nil]
2006
2533
  #
2007
2534
  class Configuration
2008
2535
  extend ::Gapic::Config
2009
2536
 
2537
+ # @private
2538
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2010
2539
  DEFAULT_ENDPOINT = "certificatemanager.googleapis.com"
2011
2540
 
2012
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
2541
+ config_attr :endpoint, nil, ::String, nil
2013
2542
  config_attr :credentials, nil do |value|
2014
2543
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2015
2544
  allowed.any? { |klass| klass === value }
@@ -2021,6 +2550,7 @@ module Google
2021
2550
  config_attr :metadata, nil, ::Hash, nil
2022
2551
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2023
2552
  config_attr :quota_project, nil, ::String, nil
2553
+ config_attr :universe_domain, nil, ::String, nil
2024
2554
 
2025
2555
  # @private
2026
2556
  # Overrides for http bindings for the RPCs of this service