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.
- checksums.yaml +4 -4
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/client.rb +579 -29
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/operations.rb +13 -5
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb +19 -0
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/client.rb +543 -29
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/operations.rb +11 -4
- data/lib/google/cloud/certificate_manager/v1/certificate_manager/rest/service_stub.rb +297 -0
- data/lib/google/cloud/certificate_manager/v1/version.rb +1 -1
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_pb.rb +3 -1
- data/lib/google/cloud/certificatemanager/v1/certificate_manager_services_pb.rb +10 -0
- data/lib/google/cloud/certificatemanager/v1/trust_config_pb.rb +58 -0
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/certificatemanager/v1/certificate_issuance_config.rb +1 -1
- data/proto_docs/google/cloud/certificatemanager/v1/certificate_manager.rb +31 -7
- data/proto_docs/google/cloud/certificatemanager/v1/trust_config.rb +210 -0
- metadata +4 -2
@@ -56,6 +56,9 @@ module Google
|
|
56
56
|
# Provides methods to manage Cloud Certificate Manager entities.
|
57
57
|
#
|
58
58
|
class Client
|
59
|
+
# @private
|
60
|
+
API_VERSION = ""
|
61
|
+
|
59
62
|
# @private
|
60
63
|
DEFAULT_ENDPOINT_TEMPLATE = "certificatemanager.$UNIVERSE_DOMAIN$"
|
61
64
|
|
@@ -366,7 +369,7 @@ module Google
|
|
366
369
|
# @param order_by [::String]
|
367
370
|
# A list of Certificate field names used to specify the order of the returned
|
368
371
|
# results. The default sorting order is ascending. To specify descending
|
369
|
-
# order for a field, add a suffix " desc"
|
372
|
+
# order for a field, add a suffix `" desc"`.
|
370
373
|
#
|
371
374
|
# @yield [response, operation] Access the result along with the RPC operation
|
372
375
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::Certificate>]
|
@@ -406,10 +409,11 @@ module Google
|
|
406
409
|
# Customize the options with defaults
|
407
410
|
metadata = @config.rpcs.list_certificates.metadata.to_h
|
408
411
|
|
409
|
-
# Set x-goog-api-client
|
412
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
410
413
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
411
414
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
412
415
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
416
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
413
417
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
414
418
|
|
415
419
|
header_params = {}
|
@@ -493,10 +497,11 @@ module Google
|
|
493
497
|
# Customize the options with defaults
|
494
498
|
metadata = @config.rpcs.get_certificate.metadata.to_h
|
495
499
|
|
496
|
-
# Set x-goog-api-client
|
500
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
497
501
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
498
502
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
499
503
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
504
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
500
505
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
501
506
|
|
502
507
|
header_params = {}
|
@@ -590,10 +595,11 @@ module Google
|
|
590
595
|
# Customize the options with defaults
|
591
596
|
metadata = @config.rpcs.create_certificate.metadata.to_h
|
592
597
|
|
593
|
-
# Set x-goog-api-client
|
598
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
594
599
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
595
600
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
596
601
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
602
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
597
603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
598
604
|
|
599
605
|
header_params = {}
|
@@ -687,10 +693,11 @@ module Google
|
|
687
693
|
# Customize the options with defaults
|
688
694
|
metadata = @config.rpcs.update_certificate.metadata.to_h
|
689
695
|
|
690
|
-
# Set x-goog-api-client
|
696
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
691
697
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
692
698
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
693
699
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
700
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
694
701
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
695
702
|
|
696
703
|
header_params = {}
|
@@ -781,10 +788,11 @@ module Google
|
|
781
788
|
# Customize the options with defaults
|
782
789
|
metadata = @config.rpcs.delete_certificate.metadata.to_h
|
783
790
|
|
784
|
-
# Set x-goog-api-client
|
791
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
785
792
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
786
793
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
787
794
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
795
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
788
796
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
789
797
|
|
790
798
|
header_params = {}
|
@@ -844,7 +852,7 @@ module Google
|
|
844
852
|
# @param order_by [::String]
|
845
853
|
# A list of Certificate Map field names used to specify the order of the
|
846
854
|
# returned results. The default sorting order is ascending. To specify
|
847
|
-
# descending order for a field, add a suffix " desc"
|
855
|
+
# descending order for a field, add a suffix `" desc"`.
|
848
856
|
#
|
849
857
|
# @yield [response, operation] Access the result along with the RPC operation
|
850
858
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMap>]
|
@@ -884,10 +892,11 @@ module Google
|
|
884
892
|
# Customize the options with defaults
|
885
893
|
metadata = @config.rpcs.list_certificate_maps.metadata.to_h
|
886
894
|
|
887
|
-
# Set x-goog-api-client
|
895
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
888
896
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
889
897
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
890
898
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
899
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
891
900
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
892
901
|
|
893
902
|
header_params = {}
|
@@ -971,10 +980,11 @@ module Google
|
|
971
980
|
# Customize the options with defaults
|
972
981
|
metadata = @config.rpcs.get_certificate_map.metadata.to_h
|
973
982
|
|
974
|
-
# Set x-goog-api-client
|
983
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
975
984
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
976
985
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
977
986
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
987
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
978
988
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
979
989
|
|
980
990
|
header_params = {}
|
@@ -1068,10 +1078,11 @@ module Google
|
|
1068
1078
|
# Customize the options with defaults
|
1069
1079
|
metadata = @config.rpcs.create_certificate_map.metadata.to_h
|
1070
1080
|
|
1071
|
-
# Set x-goog-api-client
|
1081
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1072
1082
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1073
1083
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1074
1084
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1085
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1075
1086
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1076
1087
|
|
1077
1088
|
header_params = {}
|
@@ -1165,10 +1176,11 @@ module Google
|
|
1165
1176
|
# Customize the options with defaults
|
1166
1177
|
metadata = @config.rpcs.update_certificate_map.metadata.to_h
|
1167
1178
|
|
1168
|
-
# Set x-goog-api-client
|
1179
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1169
1180
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1170
1181
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1171
1182
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1183
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1172
1184
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1173
1185
|
|
1174
1186
|
header_params = {}
|
@@ -1261,10 +1273,11 @@ module Google
|
|
1261
1273
|
# Customize the options with defaults
|
1262
1274
|
metadata = @config.rpcs.delete_certificate_map.metadata.to_h
|
1263
1275
|
|
1264
|
-
# Set x-goog-api-client
|
1276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1265
1277
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1266
1278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1267
1279
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1280
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1268
1281
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1269
1282
|
|
1270
1283
|
header_params = {}
|
@@ -1329,7 +1342,7 @@ module Google
|
|
1329
1342
|
# @param order_by [::String]
|
1330
1343
|
# A list of Certificate Map Entry field names used to specify
|
1331
1344
|
# the order of the returned results. The default sorting order is ascending.
|
1332
|
-
# To specify descending order for a field, add a suffix " desc"
|
1345
|
+
# To specify descending order for a field, add a suffix `" desc"`.
|
1333
1346
|
#
|
1334
1347
|
# @yield [response, operation] Access the result along with the RPC operation
|
1335
1348
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateMapEntry>]
|
@@ -1369,10 +1382,11 @@ module Google
|
|
1369
1382
|
# Customize the options with defaults
|
1370
1383
|
metadata = @config.rpcs.list_certificate_map_entries.metadata.to_h
|
1371
1384
|
|
1372
|
-
# Set x-goog-api-client
|
1385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1373
1386
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1374
1387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1375
1388
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1389
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1376
1390
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1377
1391
|
|
1378
1392
|
header_params = {}
|
@@ -1456,10 +1470,11 @@ module Google
|
|
1456
1470
|
# Customize the options with defaults
|
1457
1471
|
metadata = @config.rpcs.get_certificate_map_entry.metadata.to_h
|
1458
1472
|
|
1459
|
-
# Set x-goog-api-client
|
1473
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1460
1474
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1461
1475
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1462
1476
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1477
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1463
1478
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1464
1479
|
|
1465
1480
|
header_params = {}
|
@@ -1553,10 +1568,11 @@ module Google
|
|
1553
1568
|
# Customize the options with defaults
|
1554
1569
|
metadata = @config.rpcs.create_certificate_map_entry.metadata.to_h
|
1555
1570
|
|
1556
|
-
# Set x-goog-api-client
|
1571
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1557
1572
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1558
1573
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1559
1574
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1575
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1560
1576
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1561
1577
|
|
1562
1578
|
header_params = {}
|
@@ -1650,10 +1666,11 @@ module Google
|
|
1650
1666
|
# Customize the options with defaults
|
1651
1667
|
metadata = @config.rpcs.update_certificate_map_entry.metadata.to_h
|
1652
1668
|
|
1653
|
-
# Set x-goog-api-client
|
1669
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1654
1670
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1655
1671
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1656
1672
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1673
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1657
1674
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1658
1675
|
|
1659
1676
|
header_params = {}
|
@@ -1744,10 +1761,11 @@ module Google
|
|
1744
1761
|
# Customize the options with defaults
|
1745
1762
|
metadata = @config.rpcs.delete_certificate_map_entry.metadata.to_h
|
1746
1763
|
|
1747
|
-
# Set x-goog-api-client
|
1764
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1748
1765
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1749
1766
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1750
1767
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1768
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1751
1769
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1752
1770
|
|
1753
1771
|
header_params = {}
|
@@ -1807,7 +1825,7 @@ module Google
|
|
1807
1825
|
# @param order_by [::String]
|
1808
1826
|
# A list of Dns Authorization field names used to specify the order of the
|
1809
1827
|
# returned results. The default sorting order is ascending. To specify
|
1810
|
-
# descending order for a field, add a suffix " desc"
|
1828
|
+
# descending order for a field, add a suffix `" desc"`.
|
1811
1829
|
#
|
1812
1830
|
# @yield [response, operation] Access the result along with the RPC operation
|
1813
1831
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::DnsAuthorization>]
|
@@ -1847,10 +1865,11 @@ module Google
|
|
1847
1865
|
# Customize the options with defaults
|
1848
1866
|
metadata = @config.rpcs.list_dns_authorizations.metadata.to_h
|
1849
1867
|
|
1850
|
-
# Set x-goog-api-client
|
1868
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1851
1869
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1852
1870
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1853
1871
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1872
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1854
1873
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1855
1874
|
|
1856
1875
|
header_params = {}
|
@@ -1934,10 +1953,11 @@ module Google
|
|
1934
1953
|
# Customize the options with defaults
|
1935
1954
|
metadata = @config.rpcs.get_dns_authorization.metadata.to_h
|
1936
1955
|
|
1937
|
-
# Set x-goog-api-client
|
1956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1938
1957
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1939
1958
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1940
1959
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
1960
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1941
1961
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1942
1962
|
|
1943
1963
|
header_params = {}
|
@@ -2031,10 +2051,11 @@ module Google
|
|
2031
2051
|
# Customize the options with defaults
|
2032
2052
|
metadata = @config.rpcs.create_dns_authorization.metadata.to_h
|
2033
2053
|
|
2034
|
-
# Set x-goog-api-client
|
2054
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2035
2055
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2036
2056
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2037
2057
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2058
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2038
2059
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2039
2060
|
|
2040
2061
|
header_params = {}
|
@@ -2128,10 +2149,11 @@ module Google
|
|
2128
2149
|
# Customize the options with defaults
|
2129
2150
|
metadata = @config.rpcs.update_dns_authorization.metadata.to_h
|
2130
2151
|
|
2131
|
-
# Set x-goog-api-client
|
2152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2132
2153
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2133
2154
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2134
2155
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2156
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2135
2157
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2136
2158
|
|
2137
2159
|
header_params = {}
|
@@ -2222,10 +2244,11 @@ module Google
|
|
2222
2244
|
# Customize the options with defaults
|
2223
2245
|
metadata = @config.rpcs.delete_dns_authorization.metadata.to_h
|
2224
2246
|
|
2225
|
-
# Set x-goog-api-client
|
2247
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2226
2248
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2227
2249
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2228
2250
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2251
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2229
2252
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2230
2253
|
|
2231
2254
|
header_params = {}
|
@@ -2286,7 +2309,7 @@ module Google
|
|
2286
2309
|
# @param order_by [::String]
|
2287
2310
|
# A list of Certificate Config field names used to specify the order of the
|
2288
2311
|
# returned results. The default sorting order is ascending. To specify
|
2289
|
-
# descending order for a field, add a suffix " desc"
|
2312
|
+
# descending order for a field, add a suffix `" desc"`.
|
2290
2313
|
#
|
2291
2314
|
# @yield [response, operation] Access the result along with the RPC operation
|
2292
2315
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::CertificateIssuanceConfig>]
|
@@ -2326,10 +2349,11 @@ module Google
|
|
2326
2349
|
# Customize the options with defaults
|
2327
2350
|
metadata = @config.rpcs.list_certificate_issuance_configs.metadata.to_h
|
2328
2351
|
|
2329
|
-
# Set x-goog-api-client
|
2352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2330
2353
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2331
2354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2332
2355
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2356
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2333
2357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2334
2358
|
|
2335
2359
|
header_params = {}
|
@@ -2413,10 +2437,11 @@ module Google
|
|
2413
2437
|
# Customize the options with defaults
|
2414
2438
|
metadata = @config.rpcs.get_certificate_issuance_config.metadata.to_h
|
2415
2439
|
|
2416
|
-
# Set x-goog-api-client
|
2440
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2417
2441
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2418
2442
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2419
2443
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2444
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2420
2445
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2421
2446
|
|
2422
2447
|
header_params = {}
|
@@ -2510,10 +2535,11 @@ module Google
|
|
2510
2535
|
# Customize the options with defaults
|
2511
2536
|
metadata = @config.rpcs.create_certificate_issuance_config.metadata.to_h
|
2512
2537
|
|
2513
|
-
# Set x-goog-api-client
|
2538
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2514
2539
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2515
2540
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2516
2541
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2542
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2517
2543
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2518
2544
|
|
2519
2545
|
header_params = {}
|
@@ -2604,10 +2630,11 @@ module Google
|
|
2604
2630
|
# Customize the options with defaults
|
2605
2631
|
metadata = @config.rpcs.delete_certificate_issuance_config.metadata.to_h
|
2606
2632
|
|
2607
|
-
# Set x-goog-api-client
|
2633
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2608
2634
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2609
2635
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2610
2636
|
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2637
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2611
2638
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2612
2639
|
|
2613
2640
|
header_params = {}
|
@@ -2635,6 +2662,494 @@ module Google
|
|
2635
2662
|
raise ::Google::Cloud::Error.from_error(e)
|
2636
2663
|
end
|
2637
2664
|
|
2665
|
+
##
|
2666
|
+
# Lists TrustConfigs in a given project and location.
|
2667
|
+
#
|
2668
|
+
# @overload list_trust_configs(request, options = nil)
|
2669
|
+
# Pass arguments to `list_trust_configs` via a request object, either of type
|
2670
|
+
# {::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest} or an equivalent Hash.
|
2671
|
+
#
|
2672
|
+
# @param request [::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest, ::Hash]
|
2673
|
+
# A request object representing the call parameters. Required. To specify no
|
2674
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2675
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2676
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2677
|
+
#
|
2678
|
+
# @overload list_trust_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
2679
|
+
# Pass arguments to `list_trust_configs` via keyword arguments. Note that at
|
2680
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2681
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2682
|
+
#
|
2683
|
+
# @param parent [::String]
|
2684
|
+
# Required. The project and location from which the TrustConfigs should be
|
2685
|
+
# listed, specified in the format `projects/*/locations/*`.
|
2686
|
+
# @param page_size [::Integer]
|
2687
|
+
# Maximum number of TrustConfigs to return per call.
|
2688
|
+
# @param page_token [::String]
|
2689
|
+
# The value returned by the last `ListTrustConfigsResponse`. Indicates
|
2690
|
+
# that this is a continuation of a prior `ListTrustConfigs` call, and that
|
2691
|
+
# the system should return the next page of data.
|
2692
|
+
# @param filter [::String]
|
2693
|
+
# Filter expression to restrict the TrustConfigs returned.
|
2694
|
+
# @param order_by [::String]
|
2695
|
+
# A list of TrustConfig field names used to specify the order of the
|
2696
|
+
# returned results. The default sorting order is ascending. To specify
|
2697
|
+
# descending order for a field, add a suffix `" desc"`.
|
2698
|
+
#
|
2699
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2700
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::TrustConfig>]
|
2701
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2702
|
+
#
|
2703
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::CertificateManager::V1::TrustConfig>]
|
2704
|
+
#
|
2705
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2706
|
+
#
|
2707
|
+
# @example Basic example
|
2708
|
+
# require "google/cloud/certificate_manager/v1"
|
2709
|
+
#
|
2710
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2711
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2712
|
+
#
|
2713
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2714
|
+
# request = Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest.new
|
2715
|
+
#
|
2716
|
+
# # Call the list_trust_configs method.
|
2717
|
+
# result = client.list_trust_configs request
|
2718
|
+
#
|
2719
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2720
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2721
|
+
# result.each do |item|
|
2722
|
+
# # Each element is of type ::Google::Cloud::CertificateManager::V1::TrustConfig.
|
2723
|
+
# p item
|
2724
|
+
# end
|
2725
|
+
#
|
2726
|
+
def list_trust_configs request, options = nil
|
2727
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2728
|
+
|
2729
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::ListTrustConfigsRequest
|
2730
|
+
|
2731
|
+
# Converts hash and nil to an options object
|
2732
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2733
|
+
|
2734
|
+
# Customize the options with defaults
|
2735
|
+
metadata = @config.rpcs.list_trust_configs.metadata.to_h
|
2736
|
+
|
2737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2738
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2739
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2740
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2741
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2742
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2743
|
+
|
2744
|
+
header_params = {}
|
2745
|
+
if request.parent
|
2746
|
+
header_params["parent"] = request.parent
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2750
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2751
|
+
|
2752
|
+
options.apply_defaults timeout: @config.rpcs.list_trust_configs.timeout,
|
2753
|
+
metadata: metadata,
|
2754
|
+
retry_policy: @config.rpcs.list_trust_configs.retry_policy
|
2755
|
+
|
2756
|
+
options.apply_defaults timeout: @config.timeout,
|
2757
|
+
metadata: @config.metadata,
|
2758
|
+
retry_policy: @config.retry_policy
|
2759
|
+
|
2760
|
+
@certificate_manager_stub.call_rpc :list_trust_configs, request, options: options do |response, operation|
|
2761
|
+
response = ::Gapic::PagedEnumerable.new @certificate_manager_stub, :list_trust_configs, request, response, operation, options
|
2762
|
+
yield response, operation if block_given?
|
2763
|
+
return response
|
2764
|
+
end
|
2765
|
+
rescue ::GRPC::BadStatus => e
|
2766
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2767
|
+
end
|
2768
|
+
|
2769
|
+
##
|
2770
|
+
# Gets details of a single TrustConfig.
|
2771
|
+
#
|
2772
|
+
# @overload get_trust_config(request, options = nil)
|
2773
|
+
# Pass arguments to `get_trust_config` via a request object, either of type
|
2774
|
+
# {::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest} or an equivalent Hash.
|
2775
|
+
#
|
2776
|
+
# @param request [::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest, ::Hash]
|
2777
|
+
# A request object representing the call parameters. Required. To specify no
|
2778
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2779
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2780
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2781
|
+
#
|
2782
|
+
# @overload get_trust_config(name: nil)
|
2783
|
+
# Pass arguments to `get_trust_config` via keyword arguments. Note that at
|
2784
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2785
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2786
|
+
#
|
2787
|
+
# @param name [::String]
|
2788
|
+
# Required. A name of the TrustConfig to describe. Must be in the format
|
2789
|
+
# `projects/*/locations/*/trustConfigs/*`.
|
2790
|
+
#
|
2791
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2792
|
+
# @yieldparam response [::Google::Cloud::CertificateManager::V1::TrustConfig]
|
2793
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2794
|
+
#
|
2795
|
+
# @return [::Google::Cloud::CertificateManager::V1::TrustConfig]
|
2796
|
+
#
|
2797
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2798
|
+
#
|
2799
|
+
# @example Basic example
|
2800
|
+
# require "google/cloud/certificate_manager/v1"
|
2801
|
+
#
|
2802
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2803
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2804
|
+
#
|
2805
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2806
|
+
# request = Google::Cloud::CertificateManager::V1::GetTrustConfigRequest.new
|
2807
|
+
#
|
2808
|
+
# # Call the get_trust_config method.
|
2809
|
+
# result = client.get_trust_config request
|
2810
|
+
#
|
2811
|
+
# # The returned object is of type Google::Cloud::CertificateManager::V1::TrustConfig.
|
2812
|
+
# p result
|
2813
|
+
#
|
2814
|
+
def get_trust_config request, options = nil
|
2815
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2816
|
+
|
2817
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::GetTrustConfigRequest
|
2818
|
+
|
2819
|
+
# Converts hash and nil to an options object
|
2820
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2821
|
+
|
2822
|
+
# Customize the options with defaults
|
2823
|
+
metadata = @config.rpcs.get_trust_config.metadata.to_h
|
2824
|
+
|
2825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2826
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2827
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2828
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2829
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2830
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2831
|
+
|
2832
|
+
header_params = {}
|
2833
|
+
if request.name
|
2834
|
+
header_params["name"] = request.name
|
2835
|
+
end
|
2836
|
+
|
2837
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2838
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2839
|
+
|
2840
|
+
options.apply_defaults timeout: @config.rpcs.get_trust_config.timeout,
|
2841
|
+
metadata: metadata,
|
2842
|
+
retry_policy: @config.rpcs.get_trust_config.retry_policy
|
2843
|
+
|
2844
|
+
options.apply_defaults timeout: @config.timeout,
|
2845
|
+
metadata: @config.metadata,
|
2846
|
+
retry_policy: @config.retry_policy
|
2847
|
+
|
2848
|
+
@certificate_manager_stub.call_rpc :get_trust_config, request, options: options do |response, operation|
|
2849
|
+
yield response, operation if block_given?
|
2850
|
+
return response
|
2851
|
+
end
|
2852
|
+
rescue ::GRPC::BadStatus => e
|
2853
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2854
|
+
end
|
2855
|
+
|
2856
|
+
##
|
2857
|
+
# Creates a new TrustConfig in a given project and location.
|
2858
|
+
#
|
2859
|
+
# @overload create_trust_config(request, options = nil)
|
2860
|
+
# Pass arguments to `create_trust_config` via a request object, either of type
|
2861
|
+
# {::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest} or an equivalent Hash.
|
2862
|
+
#
|
2863
|
+
# @param request [::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest, ::Hash]
|
2864
|
+
# A request object representing the call parameters. Required. To specify no
|
2865
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2866
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2867
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2868
|
+
#
|
2869
|
+
# @overload create_trust_config(parent: nil, trust_config_id: nil, trust_config: nil)
|
2870
|
+
# Pass arguments to `create_trust_config` via keyword arguments. Note that at
|
2871
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2872
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2873
|
+
#
|
2874
|
+
# @param parent [::String]
|
2875
|
+
# Required. The parent resource of the TrustConfig. Must be in the format
|
2876
|
+
# `projects/*/locations/*`.
|
2877
|
+
# @param trust_config_id [::String]
|
2878
|
+
# Required. A user-provided name of the TrustConfig. Must match the regexp
|
2879
|
+
# `[a-z0-9-]{1,63}`.
|
2880
|
+
# @param trust_config [::Google::Cloud::CertificateManager::V1::TrustConfig, ::Hash]
|
2881
|
+
# Required. A definition of the TrustConfig to create.
|
2882
|
+
#
|
2883
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2884
|
+
# @yieldparam response [::Gapic::Operation]
|
2885
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2886
|
+
#
|
2887
|
+
# @return [::Gapic::Operation]
|
2888
|
+
#
|
2889
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2890
|
+
#
|
2891
|
+
# @example Basic example
|
2892
|
+
# require "google/cloud/certificate_manager/v1"
|
2893
|
+
#
|
2894
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2895
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2896
|
+
#
|
2897
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2898
|
+
# request = Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest.new
|
2899
|
+
#
|
2900
|
+
# # Call the create_trust_config method.
|
2901
|
+
# result = client.create_trust_config request
|
2902
|
+
#
|
2903
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2904
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2905
|
+
# # Here is how to wait for a response.
|
2906
|
+
# result.wait_until_done! timeout: 60
|
2907
|
+
# if result.response?
|
2908
|
+
# p result.response
|
2909
|
+
# else
|
2910
|
+
# puts "No response received."
|
2911
|
+
# end
|
2912
|
+
#
|
2913
|
+
def create_trust_config request, options = nil
|
2914
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2915
|
+
|
2916
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::CreateTrustConfigRequest
|
2917
|
+
|
2918
|
+
# Converts hash and nil to an options object
|
2919
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2920
|
+
|
2921
|
+
# Customize the options with defaults
|
2922
|
+
metadata = @config.rpcs.create_trust_config.metadata.to_h
|
2923
|
+
|
2924
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2925
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2926
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2927
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
2928
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2929
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2930
|
+
|
2931
|
+
header_params = {}
|
2932
|
+
if request.parent
|
2933
|
+
header_params["parent"] = request.parent
|
2934
|
+
end
|
2935
|
+
|
2936
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2937
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2938
|
+
|
2939
|
+
options.apply_defaults timeout: @config.rpcs.create_trust_config.timeout,
|
2940
|
+
metadata: metadata,
|
2941
|
+
retry_policy: @config.rpcs.create_trust_config.retry_policy
|
2942
|
+
|
2943
|
+
options.apply_defaults timeout: @config.timeout,
|
2944
|
+
metadata: @config.metadata,
|
2945
|
+
retry_policy: @config.retry_policy
|
2946
|
+
|
2947
|
+
@certificate_manager_stub.call_rpc :create_trust_config, request, options: options do |response, operation|
|
2948
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2949
|
+
yield response, operation if block_given?
|
2950
|
+
return response
|
2951
|
+
end
|
2952
|
+
rescue ::GRPC::BadStatus => e
|
2953
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2954
|
+
end
|
2955
|
+
|
2956
|
+
##
|
2957
|
+
# Updates a TrustConfig.
|
2958
|
+
#
|
2959
|
+
# @overload update_trust_config(request, options = nil)
|
2960
|
+
# Pass arguments to `update_trust_config` via a request object, either of type
|
2961
|
+
# {::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest} or an equivalent Hash.
|
2962
|
+
#
|
2963
|
+
# @param request [::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest, ::Hash]
|
2964
|
+
# A request object representing the call parameters. Required. To specify no
|
2965
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2966
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2967
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2968
|
+
#
|
2969
|
+
# @overload update_trust_config(trust_config: nil, update_mask: nil)
|
2970
|
+
# Pass arguments to `update_trust_config` via keyword arguments. Note that at
|
2971
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2972
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2973
|
+
#
|
2974
|
+
# @param trust_config [::Google::Cloud::CertificateManager::V1::TrustConfig, ::Hash]
|
2975
|
+
# Required. A definition of the TrustConfig to update.
|
2976
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2977
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
2978
|
+
# definition, see
|
2979
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
|
2980
|
+
#
|
2981
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2982
|
+
# @yieldparam response [::Gapic::Operation]
|
2983
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2984
|
+
#
|
2985
|
+
# @return [::Gapic::Operation]
|
2986
|
+
#
|
2987
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2988
|
+
#
|
2989
|
+
# @example Basic example
|
2990
|
+
# require "google/cloud/certificate_manager/v1"
|
2991
|
+
#
|
2992
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2993
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
2994
|
+
#
|
2995
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2996
|
+
# request = Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest.new
|
2997
|
+
#
|
2998
|
+
# # Call the update_trust_config method.
|
2999
|
+
# result = client.update_trust_config request
|
3000
|
+
#
|
3001
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3002
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3003
|
+
# # Here is how to wait for a response.
|
3004
|
+
# result.wait_until_done! timeout: 60
|
3005
|
+
# if result.response?
|
3006
|
+
# p result.response
|
3007
|
+
# else
|
3008
|
+
# puts "No response received."
|
3009
|
+
# end
|
3010
|
+
#
|
3011
|
+
def update_trust_config request, options = nil
|
3012
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3013
|
+
|
3014
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::UpdateTrustConfigRequest
|
3015
|
+
|
3016
|
+
# Converts hash and nil to an options object
|
3017
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3018
|
+
|
3019
|
+
# Customize the options with defaults
|
3020
|
+
metadata = @config.rpcs.update_trust_config.metadata.to_h
|
3021
|
+
|
3022
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3023
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3024
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3025
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
3026
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3027
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3028
|
+
|
3029
|
+
header_params = {}
|
3030
|
+
if request.trust_config&.name
|
3031
|
+
header_params["trust_config.name"] = request.trust_config.name
|
3032
|
+
end
|
3033
|
+
|
3034
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3035
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3036
|
+
|
3037
|
+
options.apply_defaults timeout: @config.rpcs.update_trust_config.timeout,
|
3038
|
+
metadata: metadata,
|
3039
|
+
retry_policy: @config.rpcs.update_trust_config.retry_policy
|
3040
|
+
|
3041
|
+
options.apply_defaults timeout: @config.timeout,
|
3042
|
+
metadata: @config.metadata,
|
3043
|
+
retry_policy: @config.retry_policy
|
3044
|
+
|
3045
|
+
@certificate_manager_stub.call_rpc :update_trust_config, request, options: options do |response, operation|
|
3046
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3047
|
+
yield response, operation if block_given?
|
3048
|
+
return response
|
3049
|
+
end
|
3050
|
+
rescue ::GRPC::BadStatus => e
|
3051
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3052
|
+
end
|
3053
|
+
|
3054
|
+
##
|
3055
|
+
# Deletes a single TrustConfig.
|
3056
|
+
#
|
3057
|
+
# @overload delete_trust_config(request, options = nil)
|
3058
|
+
# Pass arguments to `delete_trust_config` via a request object, either of type
|
3059
|
+
# {::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest} or an equivalent Hash.
|
3060
|
+
#
|
3061
|
+
# @param request [::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest, ::Hash]
|
3062
|
+
# A request object representing the call parameters. Required. To specify no
|
3063
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3064
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3065
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3066
|
+
#
|
3067
|
+
# @overload delete_trust_config(name: nil, etag: nil)
|
3068
|
+
# Pass arguments to `delete_trust_config` via keyword arguments. Note that at
|
3069
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3070
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3071
|
+
#
|
3072
|
+
# @param name [::String]
|
3073
|
+
# Required. A name of the TrustConfig to delete. Must be in the format
|
3074
|
+
# `projects/*/locations/*/trustConfigs/*`.
|
3075
|
+
# @param etag [::String]
|
3076
|
+
# The current etag of the TrustConfig.
|
3077
|
+
# If an etag is provided and does not match the current etag of the resource,
|
3078
|
+
# deletion will be blocked and an ABORTED error will be returned.
|
3079
|
+
#
|
3080
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3081
|
+
# @yieldparam response [::Gapic::Operation]
|
3082
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3083
|
+
#
|
3084
|
+
# @return [::Gapic::Operation]
|
3085
|
+
#
|
3086
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3087
|
+
#
|
3088
|
+
# @example Basic example
|
3089
|
+
# require "google/cloud/certificate_manager/v1"
|
3090
|
+
#
|
3091
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3092
|
+
# client = Google::Cloud::CertificateManager::V1::CertificateManager::Client.new
|
3093
|
+
#
|
3094
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3095
|
+
# request = Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest.new
|
3096
|
+
#
|
3097
|
+
# # Call the delete_trust_config method.
|
3098
|
+
# result = client.delete_trust_config request
|
3099
|
+
#
|
3100
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3101
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3102
|
+
# # Here is how to wait for a response.
|
3103
|
+
# result.wait_until_done! timeout: 60
|
3104
|
+
# if result.response?
|
3105
|
+
# p result.response
|
3106
|
+
# else
|
3107
|
+
# puts "No response received."
|
3108
|
+
# end
|
3109
|
+
#
|
3110
|
+
def delete_trust_config request, options = nil
|
3111
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3112
|
+
|
3113
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CertificateManager::V1::DeleteTrustConfigRequest
|
3114
|
+
|
3115
|
+
# Converts hash and nil to an options object
|
3116
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3117
|
+
|
3118
|
+
# Customize the options with defaults
|
3119
|
+
metadata = @config.rpcs.delete_trust_config.metadata.to_h
|
3120
|
+
|
3121
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3122
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3123
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3124
|
+
gapic_version: ::Google::Cloud::CertificateManager::V1::VERSION
|
3125
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3126
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3127
|
+
|
3128
|
+
header_params = {}
|
3129
|
+
if request.name
|
3130
|
+
header_params["name"] = request.name
|
3131
|
+
end
|
3132
|
+
|
3133
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3134
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3135
|
+
|
3136
|
+
options.apply_defaults timeout: @config.rpcs.delete_trust_config.timeout,
|
3137
|
+
metadata: metadata,
|
3138
|
+
retry_policy: @config.rpcs.delete_trust_config.retry_policy
|
3139
|
+
|
3140
|
+
options.apply_defaults timeout: @config.timeout,
|
3141
|
+
metadata: @config.metadata,
|
3142
|
+
retry_policy: @config.retry_policy
|
3143
|
+
|
3144
|
+
@certificate_manager_stub.call_rpc :delete_trust_config, request, options: options do |response, operation|
|
3145
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3146
|
+
yield response, operation if block_given?
|
3147
|
+
return response
|
3148
|
+
end
|
3149
|
+
rescue ::GRPC::BadStatus => e
|
3150
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3151
|
+
end
|
3152
|
+
|
2638
3153
|
##
|
2639
3154
|
# Configuration class for the CertificateManager API.
|
2640
3155
|
#
|
@@ -2908,6 +3423,31 @@ module Google
|
|
2908
3423
|
# @return [::Gapic::Config::Method]
|
2909
3424
|
#
|
2910
3425
|
attr_reader :delete_certificate_issuance_config
|
3426
|
+
##
|
3427
|
+
# RPC-specific configuration for `list_trust_configs`
|
3428
|
+
# @return [::Gapic::Config::Method]
|
3429
|
+
#
|
3430
|
+
attr_reader :list_trust_configs
|
3431
|
+
##
|
3432
|
+
# RPC-specific configuration for `get_trust_config`
|
3433
|
+
# @return [::Gapic::Config::Method]
|
3434
|
+
#
|
3435
|
+
attr_reader :get_trust_config
|
3436
|
+
##
|
3437
|
+
# RPC-specific configuration for `create_trust_config`
|
3438
|
+
# @return [::Gapic::Config::Method]
|
3439
|
+
#
|
3440
|
+
attr_reader :create_trust_config
|
3441
|
+
##
|
3442
|
+
# RPC-specific configuration for `update_trust_config`
|
3443
|
+
# @return [::Gapic::Config::Method]
|
3444
|
+
#
|
3445
|
+
attr_reader :update_trust_config
|
3446
|
+
##
|
3447
|
+
# RPC-specific configuration for `delete_trust_config`
|
3448
|
+
# @return [::Gapic::Config::Method]
|
3449
|
+
#
|
3450
|
+
attr_reader :delete_trust_config
|
2911
3451
|
|
2912
3452
|
# @private
|
2913
3453
|
def initialize parent_rpcs = nil
|
@@ -2959,6 +3499,16 @@ module Google
|
|
2959
3499
|
@create_certificate_issuance_config = ::Gapic::Config::Method.new create_certificate_issuance_config_config
|
2960
3500
|
delete_certificate_issuance_config_config = parent_rpcs.delete_certificate_issuance_config if parent_rpcs.respond_to? :delete_certificate_issuance_config
|
2961
3501
|
@delete_certificate_issuance_config = ::Gapic::Config::Method.new delete_certificate_issuance_config_config
|
3502
|
+
list_trust_configs_config = parent_rpcs.list_trust_configs if parent_rpcs.respond_to? :list_trust_configs
|
3503
|
+
@list_trust_configs = ::Gapic::Config::Method.new list_trust_configs_config
|
3504
|
+
get_trust_config_config = parent_rpcs.get_trust_config if parent_rpcs.respond_to? :get_trust_config
|
3505
|
+
@get_trust_config = ::Gapic::Config::Method.new get_trust_config_config
|
3506
|
+
create_trust_config_config = parent_rpcs.create_trust_config if parent_rpcs.respond_to? :create_trust_config
|
3507
|
+
@create_trust_config = ::Gapic::Config::Method.new create_trust_config_config
|
3508
|
+
update_trust_config_config = parent_rpcs.update_trust_config if parent_rpcs.respond_to? :update_trust_config
|
3509
|
+
@update_trust_config = ::Gapic::Config::Method.new update_trust_config_config
|
3510
|
+
delete_trust_config_config = parent_rpcs.delete_trust_config if parent_rpcs.respond_to? :delete_trust_config
|
3511
|
+
@delete_trust_config = ::Gapic::Config::Method.new delete_trust_config_config
|
2962
3512
|
|
2963
3513
|
yield self if block_given?
|
2964
3514
|
end
|