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
@@ -37,6 +37,9 @@ module Google
|
|
37
37
|
# manages private certificate authorities and issued certificates.
|
38
38
|
#
|
39
39
|
class Client
|
40
|
+
# @private
|
41
|
+
API_VERSION = ""
|
42
|
+
|
40
43
|
# @private
|
41
44
|
DEFAULT_ENDPOINT_TEMPLATE = "privateca.$UNIVERSE_DOMAIN$"
|
42
45
|
|
@@ -318,12 +321,13 @@ module Google
|
|
318
321
|
# Customize the options with defaults
|
319
322
|
call_metadata = @config.rpcs.create_certificate.metadata.to_h
|
320
323
|
|
321
|
-
# Set x-goog-api-client
|
324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
322
325
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
323
326
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
324
327
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
325
328
|
transports_version_send: [:rest]
|
326
329
|
|
330
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
327
331
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
328
332
|
|
329
333
|
options.apply_defaults timeout: @config.rpcs.create_certificate.timeout,
|
@@ -398,12 +402,13 @@ module Google
|
|
398
402
|
# Customize the options with defaults
|
399
403
|
call_metadata = @config.rpcs.get_certificate.metadata.to_h
|
400
404
|
|
401
|
-
# Set x-goog-api-client
|
405
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
402
406
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
403
407
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
404
408
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
405
409
|
transports_version_send: [:rest]
|
406
410
|
|
411
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
407
412
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
408
413
|
|
409
414
|
options.apply_defaults timeout: @config.rpcs.get_certificate.timeout,
|
@@ -502,12 +507,13 @@ module Google
|
|
502
507
|
# Customize the options with defaults
|
503
508
|
call_metadata = @config.rpcs.list_certificates.metadata.to_h
|
504
509
|
|
505
|
-
# Set x-goog-api-client
|
510
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
506
511
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
507
512
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
508
513
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
509
514
|
transports_version_send: [:rest]
|
510
515
|
|
516
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
511
517
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
512
518
|
|
513
519
|
options.apply_defaults timeout: @config.rpcs.list_certificates.timeout,
|
@@ -600,12 +606,13 @@ module Google
|
|
600
606
|
# Customize the options with defaults
|
601
607
|
call_metadata = @config.rpcs.revoke_certificate.metadata.to_h
|
602
608
|
|
603
|
-
# Set x-goog-api-client
|
609
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
604
610
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
605
611
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
606
612
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
607
613
|
transports_version_send: [:rest]
|
608
614
|
|
615
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
609
616
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
610
617
|
|
611
618
|
options.apply_defaults timeout: @config.rpcs.revoke_certificate.timeout,
|
@@ -697,12 +704,13 @@ module Google
|
|
697
704
|
# Customize the options with defaults
|
698
705
|
call_metadata = @config.rpcs.update_certificate.metadata.to_h
|
699
706
|
|
700
|
-
# Set x-goog-api-client
|
707
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
701
708
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
702
709
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
703
710
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
704
711
|
transports_version_send: [:rest]
|
705
712
|
|
713
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
706
714
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
707
715
|
|
708
716
|
options.apply_defaults timeout: @config.rpcs.update_certificate.timeout,
|
@@ -813,12 +821,13 @@ module Google
|
|
813
821
|
# Customize the options with defaults
|
814
822
|
call_metadata = @config.rpcs.activate_certificate_authority.metadata.to_h
|
815
823
|
|
816
|
-
# Set x-goog-api-client
|
824
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
817
825
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
826
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
827
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
820
828
|
transports_version_send: [:rest]
|
821
829
|
|
830
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
822
831
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
823
832
|
|
824
833
|
options.apply_defaults timeout: @config.rpcs.activate_certificate_authority.timeout,
|
@@ -925,12 +934,13 @@ module Google
|
|
925
934
|
# Customize the options with defaults
|
926
935
|
call_metadata = @config.rpcs.create_certificate_authority.metadata.to_h
|
927
936
|
|
928
|
-
# Set x-goog-api-client
|
937
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
929
938
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
930
939
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
931
940
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
932
941
|
transports_version_send: [:rest]
|
933
942
|
|
943
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
934
944
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
935
945
|
|
936
946
|
options.apply_defaults timeout: @config.rpcs.create_certificate_authority.timeout,
|
@@ -990,7 +1000,7 @@ module Google
|
|
990
1000
|
# @param ignore_dependent_resources [::Boolean]
|
991
1001
|
# Optional. This field allows this CA to be disabled even if it's being
|
992
1002
|
# depended on by another resource. However, doing so may result in unintended
|
993
|
-
# and unrecoverable effects on any dependent
|
1003
|
+
# and unrecoverable effects on any dependent resources since the CA will
|
994
1004
|
# no longer be able to issue certificates.
|
995
1005
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
996
1006
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1033,12 +1043,13 @@ module Google
|
|
1033
1043
|
# Customize the options with defaults
|
1034
1044
|
call_metadata = @config.rpcs.disable_certificate_authority.metadata.to_h
|
1035
1045
|
|
1036
|
-
# Set x-goog-api-client
|
1046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1037
1047
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1038
1048
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1039
1049
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1040
1050
|
transports_version_send: [:rest]
|
1041
1051
|
|
1052
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1042
1053
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1043
1054
|
|
1044
1055
|
options.apply_defaults timeout: @config.rpcs.disable_certificate_authority.timeout,
|
@@ -1136,12 +1147,13 @@ module Google
|
|
1136
1147
|
# Customize the options with defaults
|
1137
1148
|
call_metadata = @config.rpcs.enable_certificate_authority.metadata.to_h
|
1138
1149
|
|
1139
|
-
# Set x-goog-api-client
|
1150
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1140
1151
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1141
1152
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1142
1153
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1143
1154
|
transports_version_send: [:rest]
|
1144
1155
|
|
1156
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1145
1157
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1146
1158
|
|
1147
1159
|
options.apply_defaults timeout: @config.rpcs.enable_certificate_authority.timeout,
|
@@ -1227,12 +1239,13 @@ module Google
|
|
1227
1239
|
# Customize the options with defaults
|
1228
1240
|
call_metadata = @config.rpcs.fetch_certificate_authority_csr.metadata.to_h
|
1229
1241
|
|
1230
|
-
# Set x-goog-api-client
|
1242
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1231
1243
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1232
1244
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1233
1245
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1234
1246
|
transports_version_send: [:rest]
|
1235
1247
|
|
1248
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1236
1249
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1237
1250
|
|
1238
1251
|
options.apply_defaults timeout: @config.rpcs.fetch_certificate_authority_csr.timeout,
|
@@ -1309,12 +1322,13 @@ module Google
|
|
1309
1322
|
# Customize the options with defaults
|
1310
1323
|
call_metadata = @config.rpcs.get_certificate_authority.metadata.to_h
|
1311
1324
|
|
1312
|
-
# Set x-goog-api-client
|
1325
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1313
1326
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1314
1327
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1315
1328
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1316
1329
|
transports_version_send: [:rest]
|
1317
1330
|
|
1331
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1318
1332
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1319
1333
|
|
1320
1334
|
options.apply_defaults timeout: @config.rpcs.get_certificate_authority.timeout,
|
@@ -1411,12 +1425,13 @@ module Google
|
|
1411
1425
|
# Customize the options with defaults
|
1412
1426
|
call_metadata = @config.rpcs.list_certificate_authorities.metadata.to_h
|
1413
1427
|
|
1414
|
-
# Set x-goog-api-client
|
1428
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1415
1429
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1416
1430
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1417
1431
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1418
1432
|
transports_version_send: [:rest]
|
1419
1433
|
|
1434
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1420
1435
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1421
1436
|
|
1422
1437
|
options.apply_defaults timeout: @config.rpcs.list_certificate_authorities.timeout,
|
@@ -1514,12 +1529,13 @@ module Google
|
|
1514
1529
|
# Customize the options with defaults
|
1515
1530
|
call_metadata = @config.rpcs.undelete_certificate_authority.metadata.to_h
|
1516
1531
|
|
1517
|
-
# Set x-goog-api-client
|
1532
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1518
1533
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1519
1534
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1520
1535
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1521
1536
|
transports_version_send: [:rest]
|
1522
1537
|
|
1538
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1523
1539
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1524
1540
|
|
1525
1541
|
options.apply_defaults timeout: @config.rpcs.undelete_certificate_authority.timeout,
|
@@ -1584,9 +1600,9 @@ module Google
|
|
1584
1600
|
# soon as possible without a 30-day grace period where undeletion would have
|
1585
1601
|
# been allowed. If you proceed, there will be no way to recover this CA.
|
1586
1602
|
# @param ignore_dependent_resources [::Boolean]
|
1587
|
-
# Optional. This field allows this
|
1603
|
+
# Optional. This field allows this CA to be deleted even if it's being
|
1588
1604
|
# depended on by another resource. However, doing so may result in unintended
|
1589
|
-
# and unrecoverable effects on any dependent
|
1605
|
+
# and unrecoverable effects on any dependent resources since the CA will
|
1590
1606
|
# no longer be able to issue certificates.
|
1591
1607
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1592
1608
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1629,12 +1645,13 @@ module Google
|
|
1629
1645
|
# Customize the options with defaults
|
1630
1646
|
call_metadata = @config.rpcs.delete_certificate_authority.metadata.to_h
|
1631
1647
|
|
1632
|
-
# Set x-goog-api-client
|
1648
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1633
1649
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1634
1650
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1635
1651
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1636
1652
|
transports_version_send: [:rest]
|
1637
1653
|
|
1654
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1638
1655
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1639
1656
|
|
1640
1657
|
options.apply_defaults timeout: @config.rpcs.delete_certificate_authority.timeout,
|
@@ -1734,12 +1751,13 @@ module Google
|
|
1734
1751
|
# Customize the options with defaults
|
1735
1752
|
call_metadata = @config.rpcs.update_certificate_authority.metadata.to_h
|
1736
1753
|
|
1737
|
-
# Set x-goog-api-client
|
1754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1738
1755
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1739
1756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1740
1757
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1741
1758
|
transports_version_send: [:rest]
|
1742
1759
|
|
1760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1743
1761
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1744
1762
|
|
1745
1763
|
options.apply_defaults timeout: @config.rpcs.update_certificate_authority.timeout,
|
@@ -1842,12 +1860,13 @@ module Google
|
|
1842
1860
|
# Customize the options with defaults
|
1843
1861
|
call_metadata = @config.rpcs.create_ca_pool.metadata.to_h
|
1844
1862
|
|
1845
|
-
# Set x-goog-api-client
|
1863
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1846
1864
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1847
1865
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1848
1866
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1849
1867
|
transports_version_send: [:rest]
|
1850
1868
|
|
1869
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1851
1870
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1852
1871
|
|
1853
1872
|
options.apply_defaults timeout: @config.rpcs.create_ca_pool.timeout,
|
@@ -1945,12 +1964,13 @@ module Google
|
|
1945
1964
|
# Customize the options with defaults
|
1946
1965
|
call_metadata = @config.rpcs.update_ca_pool.metadata.to_h
|
1947
1966
|
|
1948
|
-
# Set x-goog-api-client
|
1967
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1949
1968
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1950
1969
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1951
1970
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
1952
1971
|
transports_version_send: [:rest]
|
1953
1972
|
|
1973
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1954
1974
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1955
1975
|
|
1956
1976
|
options.apply_defaults timeout: @config.rpcs.update_ca_pool.timeout,
|
@@ -2025,12 +2045,13 @@ module Google
|
|
2025
2045
|
# Customize the options with defaults
|
2026
2046
|
call_metadata = @config.rpcs.get_ca_pool.metadata.to_h
|
2027
2047
|
|
2028
|
-
# Set x-goog-api-client
|
2048
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2029
2049
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2030
2050
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2031
2051
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2032
2052
|
transports_version_send: [:rest]
|
2033
2053
|
|
2054
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2034
2055
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2035
2056
|
|
2036
2057
|
options.apply_defaults timeout: @config.rpcs.get_ca_pool.timeout,
|
@@ -2124,12 +2145,13 @@ module Google
|
|
2124
2145
|
# Customize the options with defaults
|
2125
2146
|
call_metadata = @config.rpcs.list_ca_pools.metadata.to_h
|
2126
2147
|
|
2127
|
-
# Set x-goog-api-client
|
2148
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2128
2149
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2129
2150
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2130
2151
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2131
2152
|
transports_version_send: [:rest]
|
2132
2153
|
|
2154
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2133
2155
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2134
2156
|
|
2135
2157
|
options.apply_defaults timeout: @config.rpcs.list_ca_pools.timeout,
|
@@ -2187,7 +2209,7 @@ module Google
|
|
2187
2209
|
# @param ignore_dependent_resources [::Boolean]
|
2188
2210
|
# Optional. This field allows this pool to be deleted even if it's being
|
2189
2211
|
# depended on by another resource. However, doing so may result in unintended
|
2190
|
-
# and unrecoverable effects on any dependent
|
2212
|
+
# and unrecoverable effects on any dependent resources since the pool will
|
2191
2213
|
# no longer be able to issue certificates.
|
2192
2214
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2193
2215
|
# @yieldparam result [::Gapic::Operation]
|
@@ -2230,12 +2252,13 @@ module Google
|
|
2230
2252
|
# Customize the options with defaults
|
2231
2253
|
call_metadata = @config.rpcs.delete_ca_pool.metadata.to_h
|
2232
2254
|
|
2233
|
-
# Set x-goog-api-client
|
2255
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2234
2256
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2235
2257
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2236
2258
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2237
2259
|
transports_version_send: [:rest]
|
2238
2260
|
|
2261
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2239
2262
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2240
2263
|
|
2241
2264
|
options.apply_defaults timeout: @config.rpcs.delete_ca_pool.timeout,
|
@@ -2258,7 +2281,7 @@ module Google
|
|
2258
2281
|
##
|
2259
2282
|
# FetchCaCerts returns the current trust anchor for the
|
2260
2283
|
# {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}. This will include CA
|
2261
|
-
# certificate chains for all
|
2284
|
+
# certificate chains for all certificate authorities in the ENABLED,
|
2262
2285
|
# DISABLED, or STAGED states.
|
2263
2286
|
#
|
2264
2287
|
# @overload fetch_ca_certs(request, options = nil)
|
@@ -2328,12 +2351,13 @@ module Google
|
|
2328
2351
|
# Customize the options with defaults
|
2329
2352
|
call_metadata = @config.rpcs.fetch_ca_certs.metadata.to_h
|
2330
2353
|
|
2331
|
-
# Set x-goog-api-client
|
2354
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2332
2355
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2333
2356
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2334
2357
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2335
2358
|
transports_version_send: [:rest]
|
2336
2359
|
|
2360
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2337
2361
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2338
2362
|
|
2339
2363
|
options.apply_defaults timeout: @config.rpcs.fetch_ca_certs.timeout,
|
@@ -2411,12 +2435,13 @@ module Google
|
|
2411
2435
|
# Customize the options with defaults
|
2412
2436
|
call_metadata = @config.rpcs.get_certificate_revocation_list.metadata.to_h
|
2413
2437
|
|
2414
|
-
# Set x-goog-api-client
|
2438
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2415
2439
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2416
2440
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2417
2441
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2418
2442
|
transports_version_send: [:rest]
|
2419
2443
|
|
2444
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2420
2445
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2421
2446
|
|
2422
2447
|
options.apply_defaults timeout: @config.rpcs.get_certificate_revocation_list.timeout,
|
@@ -2512,12 +2537,13 @@ module Google
|
|
2512
2537
|
# Customize the options with defaults
|
2513
2538
|
call_metadata = @config.rpcs.list_certificate_revocation_lists.metadata.to_h
|
2514
2539
|
|
2515
|
-
# Set x-goog-api-client
|
2540
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2516
2541
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2517
2542
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2518
2543
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2519
2544
|
transports_version_send: [:rest]
|
2520
2545
|
|
2546
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2521
2547
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2522
2548
|
|
2523
2549
|
options.apply_defaults timeout: @config.rpcs.list_certificate_revocation_lists.timeout,
|
@@ -2616,12 +2642,13 @@ module Google
|
|
2616
2642
|
# Customize the options with defaults
|
2617
2643
|
call_metadata = @config.rpcs.update_certificate_revocation_list.metadata.to_h
|
2618
2644
|
|
2619
|
-
# Set x-goog-api-client
|
2645
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2620
2646
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2621
2647
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2622
2648
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2623
2649
|
transports_version_send: [:rest]
|
2624
2650
|
|
2651
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2625
2652
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2626
2653
|
|
2627
2654
|
options.apply_defaults timeout: @config.rpcs.update_certificate_revocation_list.timeout,
|
@@ -2727,12 +2754,13 @@ module Google
|
|
2727
2754
|
# Customize the options with defaults
|
2728
2755
|
call_metadata = @config.rpcs.create_certificate_template.metadata.to_h
|
2729
2756
|
|
2730
|
-
# Set x-goog-api-client
|
2757
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2731
2758
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2732
2759
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2733
2760
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2734
2761
|
transports_version_send: [:rest]
|
2735
2762
|
|
2763
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2736
2764
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2737
2765
|
|
2738
2766
|
options.apply_defaults timeout: @config.rpcs.create_certificate_template.timeout,
|
@@ -2830,12 +2858,13 @@ module Google
|
|
2830
2858
|
# Customize the options with defaults
|
2831
2859
|
call_metadata = @config.rpcs.delete_certificate_template.metadata.to_h
|
2832
2860
|
|
2833
|
-
# Set x-goog-api-client
|
2861
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2834
2862
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2835
2863
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2836
2864
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2837
2865
|
transports_version_send: [:rest]
|
2838
2866
|
|
2867
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2839
2868
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2840
2869
|
|
2841
2870
|
options.apply_defaults timeout: @config.rpcs.delete_certificate_template.timeout,
|
@@ -2913,12 +2942,13 @@ module Google
|
|
2913
2942
|
# Customize the options with defaults
|
2914
2943
|
call_metadata = @config.rpcs.get_certificate_template.metadata.to_h
|
2915
2944
|
|
2916
|
-
# Set x-goog-api-client
|
2945
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2917
2946
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2918
2947
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2919
2948
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
2920
2949
|
transports_version_send: [:rest]
|
2921
2950
|
|
2951
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2922
2952
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2923
2953
|
|
2924
2954
|
options.apply_defaults timeout: @config.rpcs.get_certificate_template.timeout,
|
@@ -3014,12 +3044,13 @@ module Google
|
|
3014
3044
|
# Customize the options with defaults
|
3015
3045
|
call_metadata = @config.rpcs.list_certificate_templates.metadata.to_h
|
3016
3046
|
|
3017
|
-
# Set x-goog-api-client
|
3047
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3018
3048
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3019
3049
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3020
3050
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
3021
3051
|
transports_version_send: [:rest]
|
3022
3052
|
|
3053
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3023
3054
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3024
3055
|
|
3025
3056
|
options.apply_defaults timeout: @config.rpcs.list_certificate_templates.timeout,
|
@@ -3118,12 +3149,13 @@ module Google
|
|
3118
3149
|
# Customize the options with defaults
|
3119
3150
|
call_metadata = @config.rpcs.update_certificate_template.metadata.to_h
|
3120
3151
|
|
3121
|
-
# Set x-goog-api-client
|
3152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3122
3153
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3123
3154
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3124
3155
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
3125
3156
|
transports_version_send: [:rest]
|
3126
3157
|
|
3158
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3127
3159
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3128
3160
|
|
3129
3161
|
options.apply_defaults timeout: @config.rpcs.update_certificate_template.timeout,
|
data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb
CHANGED
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
module Rest
|
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
|
|
@@ -182,12 +185,13 @@ module Google
|
|
182
185
|
# Customize the options with defaults
|
183
186
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
184
187
|
|
185
|
-
# Set x-goog-api-client
|
188
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
186
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
187
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
188
191
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
189
192
|
transports_version_send: [:rest]
|
190
193
|
|
194
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
191
195
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
192
196
|
|
193
197
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -270,12 +274,13 @@ module Google
|
|
270
274
|
# Customize the options with defaults
|
271
275
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
272
276
|
|
273
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
274
278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
275
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
276
280
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
277
281
|
transports_version_send: [:rest]
|
278
282
|
|
283
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
279
284
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
280
285
|
|
281
286
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -352,12 +357,13 @@ module Google
|
|
352
357
|
# Customize the options with defaults
|
353
358
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
354
359
|
|
355
|
-
# Set x-goog-api-client
|
360
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
361
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
362
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
363
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
359
364
|
transports_version_send: [:rest]
|
360
365
|
|
366
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
361
367
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
368
|
|
363
369
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -439,12 +445,13 @@ module Google
|
|
439
445
|
# Customize the options with defaults
|
440
446
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
441
447
|
|
442
|
-
# Set x-goog-api-client
|
448
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
443
449
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
444
450
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
445
451
|
gapic_version: ::Google::Cloud::Security::PrivateCA::V1::VERSION,
|
446
452
|
transports_version_send: [:rest]
|
447
453
|
|
454
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
448
455
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
449
456
|
|
450
457
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|