google-cloud-certificate_manager-v1 0.9.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ API_VERSION = ""
63
+
61
64
  # @private
62
65
  DEFAULT_ENDPOINT_TEMPLATE = "certificatemanager.$UNIVERSE_DOMAIN$"
63
66
 
@@ -360,7 +363,7 @@ module Google
360
363
  # @param order_by [::String]
361
364
  # A list of Certificate field names used to specify the order of the returned
362
365
  # results. The default sorting order is ascending. To specify descending
363
- # order for a field, add a suffix " desc".
366
+ # order for a field, add a suffix `" desc"`.
364
367
  # @yield [result, operation] Access the result along with the TransportOperation object
365
368
  # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListCertificatesResponse]
366
369
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -399,12 +402,13 @@ module Google
399
402
  # Customize the options with defaults
400
403
  call_metadata = @config.rpcs.list_certificates.metadata.to_h
401
404
 
402
- # Set x-goog-api-client and x-goog-user-project headers
405
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
403
406
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
407
  lib_name: @config.lib_name, lib_version: @config.lib_version,
405
408
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
406
409
  transports_version_send: [:rest]
407
410
 
411
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
408
412
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
409
413
 
410
414
  options.apply_defaults timeout: @config.rpcs.list_certificates.timeout,
@@ -478,12 +482,13 @@ module Google
478
482
  # Customize the options with defaults
479
483
  call_metadata = @config.rpcs.get_certificate.metadata.to_h
480
484
 
481
- # Set x-goog-api-client and x-goog-user-project headers
485
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
486
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
487
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
488
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
485
489
  transports_version_send: [:rest]
486
490
 
491
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
487
492
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
488
493
 
489
494
  options.apply_defaults timeout: @config.rpcs.get_certificate.timeout,
@@ -568,12 +573,13 @@ module Google
568
573
  # Customize the options with defaults
569
574
  call_metadata = @config.rpcs.create_certificate.metadata.to_h
570
575
 
571
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
572
577
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
573
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
574
579
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
575
580
  transports_version_send: [:rest]
576
581
 
582
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
577
583
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
584
 
579
585
  options.apply_defaults timeout: @config.rpcs.create_certificate.timeout,
@@ -658,12 +664,13 @@ module Google
658
664
  # Customize the options with defaults
659
665
  call_metadata = @config.rpcs.update_certificate.metadata.to_h
660
666
 
661
- # Set x-goog-api-client and x-goog-user-project headers
667
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
662
668
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
663
669
  lib_name: @config.lib_name, lib_version: @config.lib_version,
664
670
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
665
671
  transports_version_send: [:rest]
666
672
 
673
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
667
674
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
668
675
 
669
676
  options.apply_defaults timeout: @config.rpcs.update_certificate.timeout,
@@ -745,12 +752,13 @@ module Google
745
752
  # Customize the options with defaults
746
753
  call_metadata = @config.rpcs.delete_certificate.metadata.to_h
747
754
 
748
- # Set x-goog-api-client and x-goog-user-project headers
755
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
749
756
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
750
757
  lib_name: @config.lib_name, lib_version: @config.lib_version,
751
758
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
752
759
  transports_version_send: [:rest]
753
760
 
761
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
754
762
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
755
763
 
756
764
  options.apply_defaults timeout: @config.rpcs.delete_certificate.timeout,
@@ -802,7 +810,7 @@ module Google
802
810
  # @param order_by [::String]
803
811
  # A list of Certificate Map field names used to specify the order of the
804
812
  # returned results. The default sorting order is ascending. To specify
805
- # descending order for a field, add a suffix " desc".
813
+ # descending order for a field, add a suffix `" desc"`.
806
814
  # @yield [result, operation] Access the result along with the TransportOperation object
807
815
  # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListCertificateMapsResponse]
808
816
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -841,12 +849,13 @@ module Google
841
849
  # Customize the options with defaults
842
850
  call_metadata = @config.rpcs.list_certificate_maps.metadata.to_h
843
851
 
844
- # Set x-goog-api-client and x-goog-user-project headers
852
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
845
853
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
846
854
  lib_name: @config.lib_name, lib_version: @config.lib_version,
847
855
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
848
856
  transports_version_send: [:rest]
849
857
 
858
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
850
859
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
851
860
 
852
861
  options.apply_defaults timeout: @config.rpcs.list_certificate_maps.timeout,
@@ -920,12 +929,13 @@ module Google
920
929
  # Customize the options with defaults
921
930
  call_metadata = @config.rpcs.get_certificate_map.metadata.to_h
922
931
 
923
- # Set x-goog-api-client and x-goog-user-project headers
932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
924
933
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
925
934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
926
935
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
927
936
  transports_version_send: [:rest]
928
937
 
938
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
929
939
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
930
940
 
931
941
  options.apply_defaults timeout: @config.rpcs.get_certificate_map.timeout,
@@ -1010,12 +1020,13 @@ module Google
1010
1020
  # Customize the options with defaults
1011
1021
  call_metadata = @config.rpcs.create_certificate_map.metadata.to_h
1012
1022
 
1013
- # Set x-goog-api-client and x-goog-user-project headers
1023
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1014
1024
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1015
1025
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1016
1026
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1017
1027
  transports_version_send: [:rest]
1018
1028
 
1029
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1019
1030
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1020
1031
 
1021
1032
  options.apply_defaults timeout: @config.rpcs.create_certificate_map.timeout,
@@ -1100,12 +1111,13 @@ module Google
1100
1111
  # Customize the options with defaults
1101
1112
  call_metadata = @config.rpcs.update_certificate_map.metadata.to_h
1102
1113
 
1103
- # Set x-goog-api-client and x-goog-user-project headers
1114
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1104
1115
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1105
1116
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1106
1117
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1107
1118
  transports_version_send: [:rest]
1108
1119
 
1120
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1109
1121
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1110
1122
 
1111
1123
  options.apply_defaults timeout: @config.rpcs.update_certificate_map.timeout,
@@ -1189,12 +1201,13 @@ module Google
1189
1201
  # Customize the options with defaults
1190
1202
  call_metadata = @config.rpcs.delete_certificate_map.metadata.to_h
1191
1203
 
1192
- # Set x-goog-api-client and x-goog-user-project headers
1204
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1193
1205
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1194
1206
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1195
1207
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1196
1208
  transports_version_send: [:rest]
1197
1209
 
1210
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1198
1211
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1212
 
1200
1213
  options.apply_defaults timeout: @config.rpcs.delete_certificate_map.timeout,
@@ -1251,7 +1264,7 @@ module Google
1251
1264
  # @param order_by [::String]
1252
1265
  # A list of Certificate Map Entry field names used to specify
1253
1266
  # the order of the returned results. The default sorting order is ascending.
1254
- # To specify descending order for a field, add a suffix " desc".
1267
+ # To specify descending order for a field, add a suffix `" desc"`.
1255
1268
  # @yield [result, operation] Access the result along with the TransportOperation object
1256
1269
  # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListCertificateMapEntriesResponse]
1257
1270
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1290,12 +1303,13 @@ module Google
1290
1303
  # Customize the options with defaults
1291
1304
  call_metadata = @config.rpcs.list_certificate_map_entries.metadata.to_h
1292
1305
 
1293
- # Set x-goog-api-client and x-goog-user-project headers
1306
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1294
1307
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1295
1308
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1296
1309
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1297
1310
  transports_version_send: [:rest]
1298
1311
 
1312
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1299
1313
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1300
1314
 
1301
1315
  options.apply_defaults timeout: @config.rpcs.list_certificate_map_entries.timeout,
@@ -1369,12 +1383,13 @@ module Google
1369
1383
  # Customize the options with defaults
1370
1384
  call_metadata = @config.rpcs.get_certificate_map_entry.metadata.to_h
1371
1385
 
1372
- # Set x-goog-api-client and x-goog-user-project headers
1386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1373
1387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1374
1388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1375
1389
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1376
1390
  transports_version_send: [:rest]
1377
1391
 
1392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1378
1393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1379
1394
 
1380
1395
  options.apply_defaults timeout: @config.rpcs.get_certificate_map_entry.timeout,
@@ -1459,12 +1474,13 @@ module Google
1459
1474
  # Customize the options with defaults
1460
1475
  call_metadata = @config.rpcs.create_certificate_map_entry.metadata.to_h
1461
1476
 
1462
- # Set x-goog-api-client and x-goog-user-project headers
1477
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1463
1478
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1464
1479
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1465
1480
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1466
1481
  transports_version_send: [:rest]
1467
1482
 
1483
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1468
1484
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1469
1485
 
1470
1486
  options.apply_defaults timeout: @config.rpcs.create_certificate_map_entry.timeout,
@@ -1549,12 +1565,13 @@ module Google
1549
1565
  # Customize the options with defaults
1550
1566
  call_metadata = @config.rpcs.update_certificate_map_entry.metadata.to_h
1551
1567
 
1552
- # Set x-goog-api-client and x-goog-user-project headers
1568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1553
1569
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1554
1570
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1555
1571
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1556
1572
  transports_version_send: [:rest]
1557
1573
 
1574
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1558
1575
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1559
1576
 
1560
1577
  options.apply_defaults timeout: @config.rpcs.update_certificate_map_entry.timeout,
@@ -1636,12 +1653,13 @@ module Google
1636
1653
  # Customize the options with defaults
1637
1654
  call_metadata = @config.rpcs.delete_certificate_map_entry.metadata.to_h
1638
1655
 
1639
- # Set x-goog-api-client and x-goog-user-project headers
1656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1640
1657
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1641
1658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1642
1659
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1643
1660
  transports_version_send: [:rest]
1644
1661
 
1662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1645
1663
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1646
1664
 
1647
1665
  options.apply_defaults timeout: @config.rpcs.delete_certificate_map_entry.timeout,
@@ -1693,7 +1711,7 @@ module Google
1693
1711
  # @param order_by [::String]
1694
1712
  # A list of Dns Authorization field names used to specify the order of the
1695
1713
  # returned results. The default sorting order is ascending. To specify
1696
- # descending order for a field, add a suffix " desc".
1714
+ # descending order for a field, add a suffix `" desc"`.
1697
1715
  # @yield [result, operation] Access the result along with the TransportOperation object
1698
1716
  # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListDnsAuthorizationsResponse]
1699
1717
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1732,12 +1750,13 @@ module Google
1732
1750
  # Customize the options with defaults
1733
1751
  call_metadata = @config.rpcs.list_dns_authorizations.metadata.to_h
1734
1752
 
1735
- # Set x-goog-api-client and x-goog-user-project headers
1753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1736
1754
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1737
1755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1738
1756
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1739
1757
  transports_version_send: [:rest]
1740
1758
 
1759
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1741
1760
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1742
1761
 
1743
1762
  options.apply_defaults timeout: @config.rpcs.list_dns_authorizations.timeout,
@@ -1811,12 +1830,13 @@ module Google
1811
1830
  # Customize the options with defaults
1812
1831
  call_metadata = @config.rpcs.get_dns_authorization.metadata.to_h
1813
1832
 
1814
- # Set x-goog-api-client and x-goog-user-project headers
1833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1815
1834
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1816
1835
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1817
1836
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1818
1837
  transports_version_send: [:rest]
1819
1838
 
1839
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1820
1840
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1821
1841
 
1822
1842
  options.apply_defaults timeout: @config.rpcs.get_dns_authorization.timeout,
@@ -1901,12 +1921,13 @@ module Google
1901
1921
  # Customize the options with defaults
1902
1922
  call_metadata = @config.rpcs.create_dns_authorization.metadata.to_h
1903
1923
 
1904
- # Set x-goog-api-client and x-goog-user-project headers
1924
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1905
1925
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1906
1926
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1907
1927
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1908
1928
  transports_version_send: [:rest]
1909
1929
 
1930
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1910
1931
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1911
1932
 
1912
1933
  options.apply_defaults timeout: @config.rpcs.create_dns_authorization.timeout,
@@ -1991,12 +2012,13 @@ module Google
1991
2012
  # Customize the options with defaults
1992
2013
  call_metadata = @config.rpcs.update_dns_authorization.metadata.to_h
1993
2014
 
1994
- # Set x-goog-api-client and x-goog-user-project headers
2015
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1995
2016
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1996
2017
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1997
2018
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
1998
2019
  transports_version_send: [:rest]
1999
2020
 
2021
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2000
2022
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2001
2023
 
2002
2024
  options.apply_defaults timeout: @config.rpcs.update_dns_authorization.timeout,
@@ -2078,12 +2100,13 @@ module Google
2078
2100
  # Customize the options with defaults
2079
2101
  call_metadata = @config.rpcs.delete_dns_authorization.metadata.to_h
2080
2102
 
2081
- # Set x-goog-api-client and x-goog-user-project headers
2103
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2082
2104
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2083
2105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2084
2106
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2085
2107
  transports_version_send: [:rest]
2086
2108
 
2109
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2087
2110
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2088
2111
 
2089
2112
  options.apply_defaults timeout: @config.rpcs.delete_dns_authorization.timeout,
@@ -2136,7 +2159,7 @@ module Google
2136
2159
  # @param order_by [::String]
2137
2160
  # A list of Certificate Config field names used to specify the order of the
2138
2161
  # returned results. The default sorting order is ascending. To specify
2139
- # descending order for a field, add a suffix " desc".
2162
+ # descending order for a field, add a suffix `" desc"`.
2140
2163
  # @yield [result, operation] Access the result along with the TransportOperation object
2141
2164
  # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListCertificateIssuanceConfigsResponse]
2142
2165
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2175,12 +2198,13 @@ module Google
2175
2198
  # Customize the options with defaults
2176
2199
  call_metadata = @config.rpcs.list_certificate_issuance_configs.metadata.to_h
2177
2200
 
2178
- # Set x-goog-api-client and x-goog-user-project headers
2201
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2179
2202
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2180
2203
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2181
2204
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2182
2205
  transports_version_send: [:rest]
2183
2206
 
2207
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2184
2208
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2185
2209
 
2186
2210
  options.apply_defaults timeout: @config.rpcs.list_certificate_issuance_configs.timeout,
@@ -2254,12 +2278,13 @@ module Google
2254
2278
  # Customize the options with defaults
2255
2279
  call_metadata = @config.rpcs.get_certificate_issuance_config.metadata.to_h
2256
2280
 
2257
- # Set x-goog-api-client and x-goog-user-project headers
2281
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2258
2282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2259
2283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2260
2284
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2261
2285
  transports_version_send: [:rest]
2262
2286
 
2287
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2263
2288
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2264
2289
 
2265
2290
  options.apply_defaults timeout: @config.rpcs.get_certificate_issuance_config.timeout,
@@ -2344,12 +2369,13 @@ module Google
2344
2369
  # Customize the options with defaults
2345
2370
  call_metadata = @config.rpcs.create_certificate_issuance_config.metadata.to_h
2346
2371
 
2347
- # Set x-goog-api-client and x-goog-user-project headers
2372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2348
2373
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2349
2374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2350
2375
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2351
2376
  transports_version_send: [:rest]
2352
2377
 
2378
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2353
2379
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2354
2380
 
2355
2381
  options.apply_defaults timeout: @config.rpcs.create_certificate_issuance_config.timeout,
@@ -2431,12 +2457,13 @@ module Google
2431
2457
  # Customize the options with defaults
2432
2458
  call_metadata = @config.rpcs.delete_certificate_issuance_config.metadata.to_h
2433
2459
 
2434
- # Set x-goog-api-client and x-goog-user-project headers
2460
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2435
2461
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2436
2462
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2437
2463
  gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2438
2464
  transports_version_send: [:rest]
2439
2465
 
2466
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2440
2467
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2441
2468
 
2442
2469
  options.apply_defaults timeout: @config.rpcs.delete_certificate_issuance_config.timeout,
@@ -2456,6 +2483,458 @@ module Google
2456
2483
  raise ::Google::Cloud::Error.from_error(e)
2457
2484
  end
2458
2485
 
2486
+ ##
2487
+ # Lists TrustConfigs in a given project and location.
2488
+ #
2489
+ # @overload list_trust_configs(request, options = nil)
2490
+ # Pass arguments to `list_trust_configs` via a request object, either of type
2491
+ # {::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest} or an equivalent Hash.
2492
+ #
2493
+ # @param request [::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest, ::Hash]
2494
+ # A request object representing the call parameters. Required. To specify no
2495
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2496
+ # @param options [::Gapic::CallOptions, ::Hash]
2497
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2498
+ #
2499
+ # @overload list_trust_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
2500
+ # Pass arguments to `list_trust_configs` via keyword arguments. Note that at
2501
+ # least one keyword argument is required. To specify no parameters, or to keep all
2502
+ # the default parameter values, pass an empty Hash as a request object (see above).
2503
+ #
2504
+ # @param parent [::String]
2505
+ # Required. The project and location from which the TrustConfigs should be
2506
+ # listed, specified in the format `projects/*/locations/*`.
2507
+ # @param page_size [::Integer]
2508
+ # Maximum number of TrustConfigs to return per call.
2509
+ # @param page_token [::String]
2510
+ # The value returned by the last `ListTrustConfigsResponse`. Indicates
2511
+ # that this is a continuation of a prior `ListTrustConfigs` call, and that
2512
+ # the system should return the next page of data.
2513
+ # @param filter [::String]
2514
+ # Filter expression to restrict the TrustConfigs returned.
2515
+ # @param order_by [::String]
2516
+ # A list of TrustConfig field names used to specify the order of the
2517
+ # returned results. The default sorting order is ascending. To specify
2518
+ # descending order for a field, add a suffix `" desc"`.
2519
+ # @yield [result, operation] Access the result along with the TransportOperation object
2520
+ # @yieldparam result [::Google::Cloud::CertificateManager::V1::ListTrustConfigsResponse]
2521
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2522
+ #
2523
+ # @return [::Google::Cloud::CertificateManager::V1::ListTrustConfigsResponse]
2524
+ #
2525
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2526
+ #
2527
+ # @example Basic example
2528
+ # require "google/cloud/certificate_manager/v1"
2529
+ #
2530
+ # # Create a client object. The client can be reused for multiple calls.
2531
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2532
+ #
2533
+ # # Create a request. To set request fields, pass in keyword arguments.
2534
+ # request = Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest.new
2535
+ #
2536
+ # # Call the list_trust_configs method.
2537
+ # result = client.list_trust_configs request
2538
+ #
2539
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2540
+ # # over elements, and API calls will be issued to fetch pages as needed.
2541
+ # result.each do |item|
2542
+ # # Each element is of type ::Google::Cloud::CertificateManager::V1::TrustConfig.
2543
+ # p item
2544
+ # end
2545
+ #
2546
+ def list_trust_configs request, options = nil
2547
+ raise ::ArgumentError, "request must be provided" if request.nil?
2548
+
2549
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest
2550
+
2551
+ # Converts hash and nil to an options object
2552
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2553
+
2554
+ # Customize the options with defaults
2555
+ call_metadata = @config.rpcs.list_trust_configs.metadata.to_h
2556
+
2557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2558
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2559
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2560
+ gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2561
+ transports_version_send: [:rest]
2562
+
2563
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2564
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2565
+
2566
+ options.apply_defaults timeout: @config.rpcs.list_trust_configs.timeout,
2567
+ metadata: call_metadata,
2568
+ retry_policy: @config.rpcs.list_trust_configs.retry_policy
2569
+
2570
+ options.apply_defaults timeout: @config.timeout,
2571
+ metadata: @config.metadata,
2572
+ retry_policy: @config.retry_policy
2573
+
2574
+ @certificate_manager_stub.list_trust_configs request, options do |result, operation|
2575
+ yield result, operation if block_given?
2576
+ return result
2577
+ end
2578
+ rescue ::Gapic::Rest::Error => e
2579
+ raise ::Google::Cloud::Error.from_error(e)
2580
+ end
2581
+
2582
+ ##
2583
+ # Gets details of a single TrustConfig.
2584
+ #
2585
+ # @overload get_trust_config(request, options = nil)
2586
+ # Pass arguments to `get_trust_config` via a request object, either of type
2587
+ # {::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest} or an equivalent Hash.
2588
+ #
2589
+ # @param request [::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest, ::Hash]
2590
+ # A request object representing the call parameters. Required. To specify no
2591
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2592
+ # @param options [::Gapic::CallOptions, ::Hash]
2593
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2594
+ #
2595
+ # @overload get_trust_config(name: nil)
2596
+ # Pass arguments to `get_trust_config` via keyword arguments. Note that at
2597
+ # least one keyword argument is required. To specify no parameters, or to keep all
2598
+ # the default parameter values, pass an empty Hash as a request object (see above).
2599
+ #
2600
+ # @param name [::String]
2601
+ # Required. A name of the TrustConfig to describe. Must be in the format
2602
+ # `projects/*/locations/*/trustConfigs/*`.
2603
+ # @yield [result, operation] Access the result along with the TransportOperation object
2604
+ # @yieldparam result [::Google::Cloud::CertificateManager::V1::TrustConfig]
2605
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2606
+ #
2607
+ # @return [::Google::Cloud::CertificateManager::V1::TrustConfig]
2608
+ #
2609
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2610
+ #
2611
+ # @example Basic example
2612
+ # require "google/cloud/certificate_manager/v1"
2613
+ #
2614
+ # # Create a client object. The client can be reused for multiple calls.
2615
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2616
+ #
2617
+ # # Create a request. To set request fields, pass in keyword arguments.
2618
+ # request = Google::Cloud::CertificateManager::V1::GetTrustConfigRequest.new
2619
+ #
2620
+ # # Call the get_trust_config method.
2621
+ # result = client.get_trust_config request
2622
+ #
2623
+ # # The returned object is of type Google::Cloud::CertificateManager::V1::TrustConfig.
2624
+ # p result
2625
+ #
2626
+ def get_trust_config request, options = nil
2627
+ raise ::ArgumentError, "request must be provided" if request.nil?
2628
+
2629
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest
2630
+
2631
+ # Converts hash and nil to an options object
2632
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2633
+
2634
+ # Customize the options with defaults
2635
+ call_metadata = @config.rpcs.get_trust_config.metadata.to_h
2636
+
2637
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2638
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2639
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2640
+ gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2641
+ transports_version_send: [:rest]
2642
+
2643
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2644
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2645
+
2646
+ options.apply_defaults timeout: @config.rpcs.get_trust_config.timeout,
2647
+ metadata: call_metadata,
2648
+ retry_policy: @config.rpcs.get_trust_config.retry_policy
2649
+
2650
+ options.apply_defaults timeout: @config.timeout,
2651
+ metadata: @config.metadata,
2652
+ retry_policy: @config.retry_policy
2653
+
2654
+ @certificate_manager_stub.get_trust_config request, options do |result, operation|
2655
+ yield result, operation if block_given?
2656
+ return result
2657
+ end
2658
+ rescue ::Gapic::Rest::Error => e
2659
+ raise ::Google::Cloud::Error.from_error(e)
2660
+ end
2661
+
2662
+ ##
2663
+ # Creates a new TrustConfig in a given project and location.
2664
+ #
2665
+ # @overload create_trust_config(request, options = nil)
2666
+ # Pass arguments to `create_trust_config` via a request object, either of type
2667
+ # {::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest} or an equivalent Hash.
2668
+ #
2669
+ # @param request [::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest, ::Hash]
2670
+ # A request object representing the call parameters. Required. To specify no
2671
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2672
+ # @param options [::Gapic::CallOptions, ::Hash]
2673
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2674
+ #
2675
+ # @overload create_trust_config(parent: nil, trust_config_id: nil, trust_config: nil)
2676
+ # Pass arguments to `create_trust_config` via keyword arguments. Note that at
2677
+ # least one keyword argument is required. To specify no parameters, or to keep all
2678
+ # the default parameter values, pass an empty Hash as a request object (see above).
2679
+ #
2680
+ # @param parent [::String]
2681
+ # Required. The parent resource of the TrustConfig. Must be in the format
2682
+ # `projects/*/locations/*`.
2683
+ # @param trust_config_id [::String]
2684
+ # Required. A user-provided name of the TrustConfig. Must match the regexp
2685
+ # `[a-z0-9-]{1,63}`.
2686
+ # @param trust_config [::Google::Cloud::CertificateManager::V1::TrustConfig, ::Hash]
2687
+ # Required. A definition of the TrustConfig to create.
2688
+ # @yield [result, operation] Access the result along with the TransportOperation object
2689
+ # @yieldparam result [::Gapic::Operation]
2690
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2691
+ #
2692
+ # @return [::Gapic::Operation]
2693
+ #
2694
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2695
+ #
2696
+ # @example Basic example
2697
+ # require "google/cloud/certificate_manager/v1"
2698
+ #
2699
+ # # Create a client object. The client can be reused for multiple calls.
2700
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2701
+ #
2702
+ # # Create a request. To set request fields, pass in keyword arguments.
2703
+ # request = Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest.new
2704
+ #
2705
+ # # Call the create_trust_config method.
2706
+ # result = client.create_trust_config request
2707
+ #
2708
+ # # The returned object is of type Gapic::Operation. You can use it to
2709
+ # # check the status of an operation, cancel it, or wait for results.
2710
+ # # Here is how to wait for a response.
2711
+ # result.wait_until_done! timeout: 60
2712
+ # if result.response?
2713
+ # p result.response
2714
+ # else
2715
+ # puts "No response received."
2716
+ # end
2717
+ #
2718
+ def create_trust_config request, options = nil
2719
+ raise ::ArgumentError, "request must be provided" if request.nil?
2720
+
2721
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest
2722
+
2723
+ # Converts hash and nil to an options object
2724
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2725
+
2726
+ # Customize the options with defaults
2727
+ call_metadata = @config.rpcs.create_trust_config.metadata.to_h
2728
+
2729
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2730
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2731
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2732
+ gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2733
+ transports_version_send: [:rest]
2734
+
2735
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2736
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2737
+
2738
+ options.apply_defaults timeout: @config.rpcs.create_trust_config.timeout,
2739
+ metadata: call_metadata,
2740
+ retry_policy: @config.rpcs.create_trust_config.retry_policy
2741
+
2742
+ options.apply_defaults timeout: @config.timeout,
2743
+ metadata: @config.metadata,
2744
+ retry_policy: @config.retry_policy
2745
+
2746
+ @certificate_manager_stub.create_trust_config request, options do |result, operation|
2747
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2748
+ yield result, operation if block_given?
2749
+ return result
2750
+ end
2751
+ rescue ::Gapic::Rest::Error => e
2752
+ raise ::Google::Cloud::Error.from_error(e)
2753
+ end
2754
+
2755
+ ##
2756
+ # Updates a TrustConfig.
2757
+ #
2758
+ # @overload update_trust_config(request, options = nil)
2759
+ # Pass arguments to `update_trust_config` via a request object, either of type
2760
+ # {::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest} or an equivalent Hash.
2761
+ #
2762
+ # @param request [::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest, ::Hash]
2763
+ # A request object representing the call parameters. Required. To specify no
2764
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2765
+ # @param options [::Gapic::CallOptions, ::Hash]
2766
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2767
+ #
2768
+ # @overload update_trust_config(trust_config: nil, update_mask: nil)
2769
+ # Pass arguments to `update_trust_config` via keyword arguments. Note that at
2770
+ # least one keyword argument is required. To specify no parameters, or to keep all
2771
+ # the default parameter values, pass an empty Hash as a request object (see above).
2772
+ #
2773
+ # @param trust_config [::Google::Cloud::CertificateManager::V1::TrustConfig, ::Hash]
2774
+ # Required. A definition of the TrustConfig to update.
2775
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2776
+ # Required. The update mask applies to the resource. For the `FieldMask`
2777
+ # definition, see
2778
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
2779
+ # @yield [result, operation] Access the result along with the TransportOperation object
2780
+ # @yieldparam result [::Gapic::Operation]
2781
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2782
+ #
2783
+ # @return [::Gapic::Operation]
2784
+ #
2785
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2786
+ #
2787
+ # @example Basic example
2788
+ # require "google/cloud/certificate_manager/v1"
2789
+ #
2790
+ # # Create a client object. The client can be reused for multiple calls.
2791
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2792
+ #
2793
+ # # Create a request. To set request fields, pass in keyword arguments.
2794
+ # request = Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest.new
2795
+ #
2796
+ # # Call the update_trust_config method.
2797
+ # result = client.update_trust_config request
2798
+ #
2799
+ # # The returned object is of type Gapic::Operation. You can use it to
2800
+ # # check the status of an operation, cancel it, or wait for results.
2801
+ # # Here is how to wait for a response.
2802
+ # result.wait_until_done! timeout: 60
2803
+ # if result.response?
2804
+ # p result.response
2805
+ # else
2806
+ # puts "No response received."
2807
+ # end
2808
+ #
2809
+ def update_trust_config request, options = nil
2810
+ raise ::ArgumentError, "request must be provided" if request.nil?
2811
+
2812
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest
2813
+
2814
+ # Converts hash and nil to an options object
2815
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2816
+
2817
+ # Customize the options with defaults
2818
+ call_metadata = @config.rpcs.update_trust_config.metadata.to_h
2819
+
2820
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2821
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2822
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2823
+ gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2824
+ transports_version_send: [:rest]
2825
+
2826
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2827
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2828
+
2829
+ options.apply_defaults timeout: @config.rpcs.update_trust_config.timeout,
2830
+ metadata: call_metadata,
2831
+ retry_policy: @config.rpcs.update_trust_config.retry_policy
2832
+
2833
+ options.apply_defaults timeout: @config.timeout,
2834
+ metadata: @config.metadata,
2835
+ retry_policy: @config.retry_policy
2836
+
2837
+ @certificate_manager_stub.update_trust_config request, options do |result, operation|
2838
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2839
+ yield result, operation if block_given?
2840
+ return result
2841
+ end
2842
+ rescue ::Gapic::Rest::Error => e
2843
+ raise ::Google::Cloud::Error.from_error(e)
2844
+ end
2845
+
2846
+ ##
2847
+ # Deletes a single TrustConfig.
2848
+ #
2849
+ # @overload delete_trust_config(request, options = nil)
2850
+ # Pass arguments to `delete_trust_config` via a request object, either of type
2851
+ # {::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest} or an equivalent Hash.
2852
+ #
2853
+ # @param request [::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest, ::Hash]
2854
+ # A request object representing the call parameters. Required. To specify no
2855
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2856
+ # @param options [::Gapic::CallOptions, ::Hash]
2857
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2858
+ #
2859
+ # @overload delete_trust_config(name: nil, etag: nil)
2860
+ # Pass arguments to `delete_trust_config` via keyword arguments. Note that at
2861
+ # least one keyword argument is required. To specify no parameters, or to keep all
2862
+ # the default parameter values, pass an empty Hash as a request object (see above).
2863
+ #
2864
+ # @param name [::String]
2865
+ # Required. A name of the TrustConfig to delete. Must be in the format
2866
+ # `projects/*/locations/*/trustConfigs/*`.
2867
+ # @param etag [::String]
2868
+ # The current etag of the TrustConfig.
2869
+ # If an etag is provided and does not match the current etag of the resource,
2870
+ # deletion will be blocked and an ABORTED error will be returned.
2871
+ # @yield [result, operation] Access the result along with the TransportOperation object
2872
+ # @yieldparam result [::Gapic::Operation]
2873
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2874
+ #
2875
+ # @return [::Gapic::Operation]
2876
+ #
2877
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2878
+ #
2879
+ # @example Basic example
2880
+ # require "google/cloud/certificate_manager/v1"
2881
+ #
2882
+ # # Create a client object. The client can be reused for multiple calls.
2883
+ # client = Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
2884
+ #
2885
+ # # Create a request. To set request fields, pass in keyword arguments.
2886
+ # request = Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest.new
2887
+ #
2888
+ # # Call the delete_trust_config method.
2889
+ # result = client.delete_trust_config request
2890
+ #
2891
+ # # The returned object is of type Gapic::Operation. You can use it to
2892
+ # # check the status of an operation, cancel it, or wait for results.
2893
+ # # Here is how to wait for a response.
2894
+ # result.wait_until_done! timeout: 60
2895
+ # if result.response?
2896
+ # p result.response
2897
+ # else
2898
+ # puts "No response received."
2899
+ # end
2900
+ #
2901
+ def delete_trust_config request, options = nil
2902
+ raise ::ArgumentError, "request must be provided" if request.nil?
2903
+
2904
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest
2905
+
2906
+ # Converts hash and nil to an options object
2907
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2908
+
2909
+ # Customize the options with defaults
2910
+ call_metadata = @config.rpcs.delete_trust_config.metadata.to_h
2911
+
2912
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2913
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2914
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2915
+ gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION,
2916
+ transports_version_send: [:rest]
2917
+
2918
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2919
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2920
+
2921
+ options.apply_defaults timeout: @config.rpcs.delete_trust_config.timeout,
2922
+ metadata: call_metadata,
2923
+ retry_policy: @config.rpcs.delete_trust_config.retry_policy
2924
+
2925
+ options.apply_defaults timeout: @config.timeout,
2926
+ metadata: @config.metadata,
2927
+ retry_policy: @config.retry_policy
2928
+
2929
+ @certificate_manager_stub.delete_trust_config request, options do |result, operation|
2930
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2931
+ yield result, operation if block_given?
2932
+ return result
2933
+ end
2934
+ rescue ::Gapic::Rest::Error => e
2935
+ raise ::Google::Cloud::Error.from_error(e)
2936
+ end
2937
+
2459
2938
  ##
2460
2939
  # Configuration class for the CertificateManager REST API.
2461
2940
  #
@@ -2716,6 +3195,31 @@ module Google
2716
3195
  # @return [::Gapic::Config::Method]
2717
3196
  #
2718
3197
  attr_reader :delete_certificate_issuance_config
3198
+ ##
3199
+ # RPC-specific configuration for `list_trust_configs`
3200
+ # @return [::Gapic::Config::Method]
3201
+ #
3202
+ attr_reader :list_trust_configs
3203
+ ##
3204
+ # RPC-specific configuration for `get_trust_config`
3205
+ # @return [::Gapic::Config::Method]
3206
+ #
3207
+ attr_reader :get_trust_config
3208
+ ##
3209
+ # RPC-specific configuration for `create_trust_config`
3210
+ # @return [::Gapic::Config::Method]
3211
+ #
3212
+ attr_reader :create_trust_config
3213
+ ##
3214
+ # RPC-specific configuration for `update_trust_config`
3215
+ # @return [::Gapic::Config::Method]
3216
+ #
3217
+ attr_reader :update_trust_config
3218
+ ##
3219
+ # RPC-specific configuration for `delete_trust_config`
3220
+ # @return [::Gapic::Config::Method]
3221
+ #
3222
+ attr_reader :delete_trust_config
2719
3223
 
2720
3224
  # @private
2721
3225
  def initialize parent_rpcs = nil
@@ -2767,6 +3271,16 @@ module Google
2767
3271
  @create_certificate_issuance_config = ::Gapic::Config::Method.new create_certificate_issuance_config_config
2768
3272
  delete_certificate_issuance_config_config = parent_rpcs.delete_certificate_issuance_config if parent_rpcs.respond_to? :delete_certificate_issuance_config
2769
3273
  @delete_certificate_issuance_config = ::Gapic::Config::Method.new delete_certificate_issuance_config_config
3274
+ list_trust_configs_config = parent_rpcs.list_trust_configs if parent_rpcs.respond_to? :list_trust_configs
3275
+ @list_trust_configs = ::Gapic::Config::Method.new list_trust_configs_config
3276
+ get_trust_config_config = parent_rpcs.get_trust_config if parent_rpcs.respond_to? :get_trust_config
3277
+ @get_trust_config = ::Gapic::Config::Method.new get_trust_config_config
3278
+ create_trust_config_config = parent_rpcs.create_trust_config if parent_rpcs.respond_to? :create_trust_config
3279
+ @create_trust_config = ::Gapic::Config::Method.new create_trust_config_config
3280
+ update_trust_config_config = parent_rpcs.update_trust_config if parent_rpcs.respond_to? :update_trust_config
3281
+ @update_trust_config = ::Gapic::Config::Method.new update_trust_config_config
3282
+ delete_trust_config_config = parent_rpcs.delete_trust_config if parent_rpcs.respond_to? :delete_trust_config
3283
+ @delete_trust_config = ::Gapic::Config::Method.new delete_trust_config_config
2770
3284
 
2771
3285
  yield self if block_given?
2772
3286
  end