google-cloud-security-private_ca-v1 0.13.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d5329ffd9f4e292e2a286316ad2dc53b2f0fc0887a295f158c9d98e6c556d6f
4
- data.tar.gz: 37ff3f0311f411ae111817b778d02fb155f5be0169c6584770625e2344280ffd
3
+ metadata.gz: 1aa01aab74362d5b17b4bc06354949799e730e208bb3de518a6758f013dbd9cf
4
+ data.tar.gz: 5c3791abfdceb4aa8bd4e8b8cfeff4692df1b048201f2c42deccbf9fc4565300
5
5
  SHA512:
6
- metadata.gz: f2dd7cf30edd8a1204b3fb37a1ae308c43c9d6a05e3f2b00005bbb95b031be6bf08347e59ae7358c96f0e3f145f6803ba407a4b0f870002c4281258eac78a5e3
7
- data.tar.gz: 64f2a23e36015671b37c26bc834e39fcf9be431060f6117005725f4b5f423e13d6d64dc909c7e05c1b8cdca968ce1fca3e841d96c6902970ea40832093ec71bc
6
+ metadata.gz: fc45892bbbfb98a6a48d8fa2d44dd6e7481616ccfc38995611598f3c92f3eb7179917590bca1b34f2eda48da2ba6a5a5d18860cac2c488359026c6da20110682
7
+ data.tar.gz: 8a9598b9d995c1aac57fc1f26661668228e464994500dd3670002d04ccefb93339977e14a8505f8f5c93e8a738e1b6dbf4dbbe54a19f23daa7b735123dafc711
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 = {}
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 = {}
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 = {}
@@ -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 and x-goog-user-project headers
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 = {}
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1
25
- VERSION = "0.13.0"
25
+ VERSION = "1.0.1"
26
26
  end
27
27
  end
28
28
  end
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.
@@ -290,6 +307,13 @@ module Google
290
307
  # @return [::String]
291
308
  # The fully qualified name of the method, for which the options below apply.
292
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
293
317
  # @!attribute [rw] long_running
294
318
  # @return [::Google::Api::MethodSettings::LongRunning]
295
319
  # Describes settings to use for long-running operations when generating
@@ -298,17 +322,14 @@ module Google
298
322
  #
299
323
  # Example of a YAML configuration::
300
324
  #
301
- # publishing:
302
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
303
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
328
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
307
330
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
312
333
  # @!attribute [rw] auto_populated_fields
313
334
  # @return [::Array<::String>]
314
335
  # List of top-level fields of the request message, that should be
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # Example of a YAML configuration:
319
340
  #
320
- # publishing:
321
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
322
343
  # - selector: google.example.v1.ExampleService.CreateExample
323
344
  # auto_populated_fields:
324
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-private_ca-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-19 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common