google-cloud-security-private_ca-v1 0.12.0 → 1.0.0
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/security/private_ca/v1/certificate_authority_service/client.rb +66 -34
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +13 -5
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/client.rb +66 -34
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb +11 -4
- data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
- data/lib/google/cloud/security/privateca/v1/resources_pb.rb +2 -1
- data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/security/privateca/v1/resources.rb +28 -6
- data/proto_docs/google/cloud/security/privateca/v1/service.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 192fe09063da0c0ace283b3ab7f2a60391caa30ce64d1de12e7da97294583e44
|
4
|
+
data.tar.gz: eda3377a1cd8e8415f0bf86bd76122ee27e53c4c80d3630b832edc0917c77989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee63dac69ec81c3bb48248f482c82c9438b162e669da8c8d13b46fad315448cb2148dd3882520b0f3a47a09aa24eda11d29ea620dd3d5b054b9bf49594077eb6
|
7
|
+
data.tar.gz: 6279cf6a1893c46c7ba0ced8e7c373e773f26f0e684f8c3ee44935087cbbc88cb7406055c022967a05bf0c1c54aa0743937bbf7e76d7a700489012b1b641300b
|
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# manages private certificate authorities and issued certificates.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "privateca.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -324,10 +327,11 @@ module Google
|
|
324
327
|
# Customize the options with defaults
|
325
328
|
metadata = @config.rpcs.create_certificate.metadata.to_h
|
326
329
|
|
327
|
-
# Set x-goog-api-client
|
330
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
328
331
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
329
332
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
330
333
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
334
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
331
335
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
332
336
|
|
333
337
|
header_params = {}
|
@@ -411,10 +415,11 @@ module Google
|
|
411
415
|
# Customize the options with defaults
|
412
416
|
metadata = @config.rpcs.get_certificate.metadata.to_h
|
413
417
|
|
414
|
-
# Set x-goog-api-client
|
418
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
415
419
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
416
420
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
417
421
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
422
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
418
423
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
419
424
|
|
420
425
|
header_params = {}
|
@@ -522,10 +527,11 @@ module Google
|
|
522
527
|
# Customize the options with defaults
|
523
528
|
metadata = @config.rpcs.list_certificates.metadata.to_h
|
524
529
|
|
525
|
-
# Set x-goog-api-client
|
530
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
526
531
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
527
532
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
528
533
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
534
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
529
535
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
530
536
|
|
531
537
|
header_params = {}
|
@@ -628,10 +634,11 @@ module Google
|
|
628
634
|
# Customize the options with defaults
|
629
635
|
metadata = @config.rpcs.revoke_certificate.metadata.to_h
|
630
636
|
|
631
|
-
# Set x-goog-api-client
|
637
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
632
638
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
633
639
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
634
640
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
641
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
635
642
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
636
643
|
|
637
644
|
header_params = {}
|
@@ -732,10 +739,11 @@ module Google
|
|
732
739
|
# Customize the options with defaults
|
733
740
|
metadata = @config.rpcs.update_certificate.metadata.to_h
|
734
741
|
|
735
|
-
# Set x-goog-api-client
|
742
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
736
743
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
737
744
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
738
745
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
746
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
739
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
740
748
|
|
741
749
|
header_params = {}
|
@@ -855,10 +863,11 @@ module Google
|
|
855
863
|
# Customize the options with defaults
|
856
864
|
metadata = @config.rpcs.activate_certificate_authority.metadata.to_h
|
857
865
|
|
858
|
-
# Set x-goog-api-client
|
866
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
859
867
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
860
868
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
861
869
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
870
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
862
871
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
863
872
|
|
864
873
|
header_params = {}
|
@@ -974,10 +983,11 @@ module Google
|
|
974
983
|
# Customize the options with defaults
|
975
984
|
metadata = @config.rpcs.create_certificate_authority.metadata.to_h
|
976
985
|
|
977
|
-
# Set x-goog-api-client
|
986
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
978
987
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
979
988
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
980
989
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
990
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
981
991
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
982
992
|
|
983
993
|
header_params = {}
|
@@ -1045,7 +1055,7 @@ module Google
|
|
1045
1055
|
# @param ignore_dependent_resources [::Boolean]
|
1046
1056
|
# Optional. This field allows this CA to be disabled even if it's being
|
1047
1057
|
# depended on by another resource. However, doing so may result in unintended
|
1048
|
-
# and unrecoverable effects on any dependent
|
1058
|
+
# and unrecoverable effects on any dependent resources since the CA will
|
1049
1059
|
# no longer be able to issue certificates.
|
1050
1060
|
#
|
1051
1061
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1089,10 +1099,11 @@ module Google
|
|
1089
1099
|
# Customize the options with defaults
|
1090
1100
|
metadata = @config.rpcs.disable_certificate_authority.metadata.to_h
|
1091
1101
|
|
1092
|
-
# Set x-goog-api-client
|
1102
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1093
1103
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1094
1104
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1095
1105
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1106
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1096
1107
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1097
1108
|
|
1098
1109
|
header_params = {}
|
@@ -1199,10 +1210,11 @@ module Google
|
|
1199
1210
|
# Customize the options with defaults
|
1200
1211
|
metadata = @config.rpcs.enable_certificate_authority.metadata.to_h
|
1201
1212
|
|
1202
|
-
# Set x-goog-api-client
|
1213
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1203
1214
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1204
1215
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1205
1216
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1217
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1206
1218
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1207
1219
|
|
1208
1220
|
header_params = {}
|
@@ -1297,10 +1309,11 @@ module Google
|
|
1297
1309
|
# Customize the options with defaults
|
1298
1310
|
metadata = @config.rpcs.fetch_certificate_authority_csr.metadata.to_h
|
1299
1311
|
|
1300
|
-
# Set x-goog-api-client
|
1312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1301
1313
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1302
1314
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1303
1315
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1316
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1304
1317
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1305
1318
|
|
1306
1319
|
header_params = {}
|
@@ -1386,10 +1399,11 @@ module Google
|
|
1386
1399
|
# Customize the options with defaults
|
1387
1400
|
metadata = @config.rpcs.get_certificate_authority.metadata.to_h
|
1388
1401
|
|
1389
|
-
# Set x-goog-api-client
|
1402
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1390
1403
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1391
1404
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1392
1405
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1406
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1393
1407
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1394
1408
|
|
1395
1409
|
header_params = {}
|
@@ -1495,10 +1509,11 @@ module Google
|
|
1495
1509
|
# Customize the options with defaults
|
1496
1510
|
metadata = @config.rpcs.list_certificate_authorities.metadata.to_h
|
1497
1511
|
|
1498
|
-
# Set x-goog-api-client
|
1512
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1499
1513
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1500
1514
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1501
1515
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1516
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1502
1517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1503
1518
|
|
1504
1519
|
header_params = {}
|
@@ -1606,10 +1621,11 @@ module Google
|
|
1606
1621
|
# Customize the options with defaults
|
1607
1622
|
metadata = @config.rpcs.undelete_certificate_authority.metadata.to_h
|
1608
1623
|
|
1609
|
-
# Set x-goog-api-client
|
1624
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1610
1625
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1611
1626
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1612
1627
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1628
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1613
1629
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1614
1630
|
|
1615
1631
|
header_params = {}
|
@@ -1682,9 +1698,9 @@ module Google
|
|
1682
1698
|
# soon as possible without a 30-day grace period where undeletion would have
|
1683
1699
|
# been allowed. If you proceed, there will be no way to recover this CA.
|
1684
1700
|
# @param ignore_dependent_resources [::Boolean]
|
1685
|
-
# Optional. This field allows this
|
1701
|
+
# Optional. This field allows this CA to be deleted even if it's being
|
1686
1702
|
# depended on by another resource. However, doing so may result in unintended
|
1687
|
-
# and unrecoverable effects on any dependent
|
1703
|
+
# and unrecoverable effects on any dependent resources since the CA will
|
1688
1704
|
# no longer be able to issue certificates.
|
1689
1705
|
#
|
1690
1706
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1728,10 +1744,11 @@ module Google
|
|
1728
1744
|
# Customize the options with defaults
|
1729
1745
|
metadata = @config.rpcs.delete_certificate_authority.metadata.to_h
|
1730
1746
|
|
1731
|
-
# Set x-goog-api-client
|
1747
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1732
1748
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1733
1749
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1734
1750
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1751
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1735
1752
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1736
1753
|
|
1737
1754
|
header_params = {}
|
@@ -1840,10 +1857,11 @@ module Google
|
|
1840
1857
|
# Customize the options with defaults
|
1841
1858
|
metadata = @config.rpcs.update_certificate_authority.metadata.to_h
|
1842
1859
|
|
1843
|
-
# Set x-goog-api-client
|
1860
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1844
1861
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1845
1862
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1846
1863
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1864
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1847
1865
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1848
1866
|
|
1849
1867
|
header_params = {}
|
@@ -1955,10 +1973,11 @@ module Google
|
|
1955
1973
|
# Customize the options with defaults
|
1956
1974
|
metadata = @config.rpcs.create_ca_pool.metadata.to_h
|
1957
1975
|
|
1958
|
-
# Set x-goog-api-client
|
1976
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1959
1977
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1960
1978
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1961
1979
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
1980
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1962
1981
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1963
1982
|
|
1964
1983
|
header_params = {}
|
@@ -2065,10 +2084,11 @@ module Google
|
|
2065
2084
|
# Customize the options with defaults
|
2066
2085
|
metadata = @config.rpcs.update_ca_pool.metadata.to_h
|
2067
2086
|
|
2068
|
-
# Set x-goog-api-client
|
2087
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2069
2088
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2070
2089
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2071
2090
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2091
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2072
2092
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2073
2093
|
|
2074
2094
|
header_params = {}
|
@@ -2152,10 +2172,11 @@ module Google
|
|
2152
2172
|
# Customize the options with defaults
|
2153
2173
|
metadata = @config.rpcs.get_ca_pool.metadata.to_h
|
2154
2174
|
|
2155
|
-
# Set x-goog-api-client
|
2175
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2156
2176
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2157
2177
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2158
2178
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2179
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2159
2180
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2160
2181
|
|
2161
2182
|
header_params = {}
|
@@ -2258,10 +2279,11 @@ module Google
|
|
2258
2279
|
# Customize the options with defaults
|
2259
2280
|
metadata = @config.rpcs.list_ca_pools.metadata.to_h
|
2260
2281
|
|
2261
|
-
# Set x-goog-api-client
|
2282
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2262
2283
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2263
2284
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2264
2285
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2286
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2265
2287
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2266
2288
|
|
2267
2289
|
header_params = {}
|
@@ -2328,7 +2350,7 @@ module Google
|
|
2328
2350
|
# @param ignore_dependent_resources [::Boolean]
|
2329
2351
|
# Optional. This field allows this pool to be deleted even if it's being
|
2330
2352
|
# depended on by another resource. However, doing so may result in unintended
|
2331
|
-
# and unrecoverable effects on any dependent
|
2353
|
+
# and unrecoverable effects on any dependent resources since the pool will
|
2332
2354
|
# no longer be able to issue certificates.
|
2333
2355
|
#
|
2334
2356
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2372,10 +2394,11 @@ module Google
|
|
2372
2394
|
# Customize the options with defaults
|
2373
2395
|
metadata = @config.rpcs.delete_ca_pool.metadata.to_h
|
2374
2396
|
|
2375
|
-
# Set x-goog-api-client
|
2397
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2376
2398
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2377
2399
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2378
2400
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2401
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2379
2402
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2380
2403
|
|
2381
2404
|
header_params = {}
|
@@ -2406,7 +2429,7 @@ module Google
|
|
2406
2429
|
##
|
2407
2430
|
# FetchCaCerts returns the current trust anchor for the
|
2408
2431
|
# {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}. This will include CA
|
2409
|
-
# certificate chains for all
|
2432
|
+
# certificate chains for all certificate authorities in the ENABLED,
|
2410
2433
|
# DISABLED, or STAGED states.
|
2411
2434
|
#
|
2412
2435
|
# @overload fetch_ca_certs(request, options = nil)
|
@@ -2477,10 +2500,11 @@ module Google
|
|
2477
2500
|
# Customize the options with defaults
|
2478
2501
|
metadata = @config.rpcs.fetch_ca_certs.metadata.to_h
|
2479
2502
|
|
2480
|
-
# Set x-goog-api-client
|
2503
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2481
2504
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2482
2505
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2483
2506
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2507
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2484
2508
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2485
2509
|
|
2486
2510
|
header_params = {}
|
@@ -2567,10 +2591,11 @@ module Google
|
|
2567
2591
|
# Customize the options with defaults
|
2568
2592
|
metadata = @config.rpcs.get_certificate_revocation_list.metadata.to_h
|
2569
2593
|
|
2570
|
-
# Set x-goog-api-client
|
2594
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2571
2595
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2572
2596
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2573
2597
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2598
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2574
2599
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2575
2600
|
|
2576
2601
|
header_params = {}
|
@@ -2675,10 +2700,11 @@ module Google
|
|
2675
2700
|
# Customize the options with defaults
|
2676
2701
|
metadata = @config.rpcs.list_certificate_revocation_lists.metadata.to_h
|
2677
2702
|
|
2678
|
-
# Set x-goog-api-client
|
2703
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2679
2704
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2680
2705
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2681
2706
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2707
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2682
2708
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2683
2709
|
|
2684
2710
|
header_params = {}
|
@@ -2787,10 +2813,11 @@ module Google
|
|
2787
2813
|
# Customize the options with defaults
|
2788
2814
|
metadata = @config.rpcs.update_certificate_revocation_list.metadata.to_h
|
2789
2815
|
|
2790
|
-
# Set x-goog-api-client
|
2816
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2791
2817
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2792
2818
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2793
2819
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2820
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2794
2821
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2795
2822
|
|
2796
2823
|
header_params = {}
|
@@ -2905,10 +2932,11 @@ module Google
|
|
2905
2932
|
# Customize the options with defaults
|
2906
2933
|
metadata = @config.rpcs.create_certificate_template.metadata.to_h
|
2907
2934
|
|
2908
|
-
# Set x-goog-api-client
|
2935
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2909
2936
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2910
2937
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2911
2938
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
2939
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2912
2940
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2913
2941
|
|
2914
2942
|
header_params = {}
|
@@ -3015,10 +3043,11 @@ module Google
|
|
3015
3043
|
# Customize the options with defaults
|
3016
3044
|
metadata = @config.rpcs.delete_certificate_template.metadata.to_h
|
3017
3045
|
|
3018
|
-
# Set x-goog-api-client
|
3046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3019
3047
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3020
3048
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3021
3049
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
3050
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3022
3051
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3023
3052
|
|
3024
3053
|
header_params = {}
|
@@ -3105,10 +3134,11 @@ module Google
|
|
3105
3134
|
# Customize the options with defaults
|
3106
3135
|
metadata = @config.rpcs.get_certificate_template.metadata.to_h
|
3107
3136
|
|
3108
|
-
# Set x-goog-api-client
|
3137
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3109
3138
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3110
3139
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3111
3140
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
3141
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3112
3142
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3113
3143
|
|
3114
3144
|
header_params = {}
|
@@ -3213,10 +3243,11 @@ module Google
|
|
3213
3243
|
# Customize the options with defaults
|
3214
3244
|
metadata = @config.rpcs.list_certificate_templates.metadata.to_h
|
3215
3245
|
|
3216
|
-
# Set x-goog-api-client
|
3246
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3217
3247
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3218
3248
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3219
3249
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
3250
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3220
3251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3221
3252
|
|
3222
3253
|
header_params = {}
|
@@ -3325,10 +3356,11 @@ module Google
|
|
3325
3356
|
# Customize the options with defaults
|
3326
3357
|
metadata = @config.rpcs.update_certificate_template.metadata.to_h
|
3327
3358
|
|
3328
|
-
# Set x-goog-api-client
|
3359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3329
3360
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3330
3361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3331
3362
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
3363
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3332
3364
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3333
3365
|
|
3334
3366
|
header_params = {}
|
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
module CertificateAuthorityService
|
28
28
|
# Service that implements Longrunning Operations API.
|
29
29
|
class Operations
|
30
|
+
# @private
|
31
|
+
API_VERSION = ""
|
32
|
+
|
30
33
|
# @private
|
31
34
|
DEFAULT_ENDPOINT_TEMPLATE = "privateca.$UNIVERSE_DOMAIN$"
|
32
35
|
|
@@ -192,10 +195,11 @@ module Google
|
|
192
195
|
# Customize the options with defaults
|
193
196
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
194
197
|
|
195
|
-
# Set x-goog-api-client
|
198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
196
199
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
197
200
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
198
201
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
202
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
199
203
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
200
204
|
|
201
205
|
header_params = {}
|
@@ -288,10 +292,11 @@ module Google
|
|
288
292
|
# Customize the options with defaults
|
289
293
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
290
294
|
|
291
|
-
# Set x-goog-api-client
|
295
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
292
296
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
293
297
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
294
298
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
299
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
295
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
296
301
|
|
297
302
|
header_params = {}
|
@@ -377,10 +382,11 @@ module Google
|
|
377
382
|
# Customize the options with defaults
|
378
383
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
379
384
|
|
380
|
-
# Set x-goog-api-client
|
385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
381
386
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
382
387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
383
388
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
389
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
384
390
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
385
391
|
|
386
392
|
header_params = {}
|
@@ -471,10 +477,11 @@ module Google
|
|
471
477
|
# Customize the options with defaults
|
472
478
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
473
479
|
|
474
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
475
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
476
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
477
483
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
478
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
479
486
|
|
480
487
|
header_params = {}
|
@@ -575,10 +582,11 @@ module Google
|
|
575
582
|
# Customize the options with defaults
|
576
583
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
577
584
|
|
578
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
579
586
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
580
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
581
588
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION
|
589
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
582
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
583
591
|
|
584
592
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|