google-cloud-security_center-v1p1beta1 0.14.0 → 0.14.2

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: adced98ce2d6a65d1ca9af2648852eba43a963682907651cf46c527a5634af92
4
- data.tar.gz: 7c1f05d83bbe5f91d1f2fbec25753a7c8237e6a81905b507c7884a3e50fc2362
3
+ metadata.gz: 7b90c422f1b6fd2c572793c12d9918c8e207565d5ccd011109e03782a03824bb
4
+ data.tar.gz: 7992f03d071a7d3ae8d405331fe74aeb8311d0f0109c0e818cfe5c8f84b498bf
5
5
  SHA512:
6
- metadata.gz: dbc025ab32d6ebde170ae68dd79f09e660df0b1f1b41e87cd7c33b3ab896645156237d88e76ee713f58cb2faea76a4800ce9d5ca2afafb70100ce87f7b00a95b
7
- data.tar.gz: 1ec5eaf0a4823bf5e484b2838234450da3b17e2ac4de65abae5c6f4e6c88354e6ed5cb02df731532dc8292802074cfe6dec59d12d365b672591141051f8118a0
6
+ metadata.gz: ccd6f862954483290b59d779c4cc53bcb29464dad0ed3eb264b71aa314e136db022283797d203a1a2e8b9bde6c58859c8e6d15073f358186e290806879a6741b
7
+ data.tar.gz: 2d0384dd82e2010e85b866a7b52569c2697dac0a888f6a80011276ce6fd160fc95f450b635414e3d6e9f8e0bad19d4eaa4eaee8b8fe44c0565648268153a12b5
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Security Command Center API provides access to temporal views of assets and findings within an organization.
4
4
 
5
- Security Command Center API provides access to temporal views of assets and findings within an organization.
6
5
 
7
6
  https://github.com/googleapis/google-cloud-ruby
8
7
 
@@ -30,6 +30,9 @@ module Google
30
30
  # V1p1Beta1 APIs for Security Center service.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
35
38
 
@@ -312,10 +315,11 @@ module Google
312
315
  # Customize the options with defaults
313
316
  metadata = @config.rpcs.create_source.metadata.to_h
314
317
 
315
- # Set x-goog-api-client and x-goog-user-project headers
318
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
316
319
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
317
320
  lib_name: @config.lib_name, lib_version: @config.lib_version,
318
321
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
322
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
319
323
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
324
 
321
325
  header_params = {}
@@ -404,10 +408,11 @@ module Google
404
408
  # Customize the options with defaults
405
409
  metadata = @config.rpcs.create_finding.metadata.to_h
406
410
 
407
- # Set x-goog-api-client and x-goog-user-project headers
411
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
408
412
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
409
413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
410
414
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
415
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
411
416
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
412
417
 
413
418
  header_params = {}
@@ -497,10 +502,11 @@ module Google
497
502
  # Customize the options with defaults
498
503
  metadata = @config.rpcs.create_notification_config.metadata.to_h
499
504
 
500
- # Set x-goog-api-client and x-goog-user-project headers
505
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
501
506
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
502
507
  lib_name: @config.lib_name, lib_version: @config.lib_version,
503
508
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
509
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
504
510
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
505
511
 
506
512
  header_params = {}
@@ -583,10 +589,11 @@ module Google
583
589
  # Customize the options with defaults
584
590
  metadata = @config.rpcs.delete_notification_config.metadata.to_h
585
591
 
586
- # Set x-goog-api-client and x-goog-user-project headers
592
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
587
593
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
588
594
  lib_name: @config.lib_name, lib_version: @config.lib_version,
589
595
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
596
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
590
597
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
591
598
 
592
599
  header_params = {}
@@ -672,10 +679,11 @@ module Google
672
679
  # Customize the options with defaults
673
680
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
674
681
 
675
- # Set x-goog-api-client and x-goog-user-project headers
682
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
676
683
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
677
684
  lib_name: @config.lib_name, lib_version: @config.lib_version,
678
685
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
686
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
679
687
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
680
688
 
681
689
  header_params = {}
@@ -758,10 +766,11 @@ module Google
758
766
  # Customize the options with defaults
759
767
  metadata = @config.rpcs.get_notification_config.metadata.to_h
760
768
 
761
- # Set x-goog-api-client and x-goog-user-project headers
769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
762
770
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
763
771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
764
772
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
773
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
774
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
775
 
767
776
  header_params = {}
@@ -844,10 +853,11 @@ module Google
844
853
  # Customize the options with defaults
845
854
  metadata = @config.rpcs.get_organization_settings.metadata.to_h
846
855
 
847
- # Set x-goog-api-client and x-goog-user-project headers
856
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
848
857
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
849
858
  lib_name: @config.lib_name, lib_version: @config.lib_version,
850
859
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
860
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
861
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
862
 
853
863
  header_params = {}
@@ -930,10 +940,11 @@ module Google
930
940
  # Customize the options with defaults
931
941
  metadata = @config.rpcs.get_source.metadata.to_h
932
942
 
933
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
934
944
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
935
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
936
946
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
947
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
937
948
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
938
949
 
939
950
  header_params = {}
@@ -1144,10 +1155,11 @@ module Google
1144
1155
  # Customize the options with defaults
1145
1156
  metadata = @config.rpcs.group_assets.metadata.to_h
1146
1157
 
1147
- # Set x-goog-api-client and x-goog-user-project headers
1158
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1148
1159
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1149
1160
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1150
1161
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1162
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1151
1163
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1152
1164
 
1153
1165
  header_params = {}
@@ -1358,10 +1370,11 @@ module Google
1358
1370
  # Customize the options with defaults
1359
1371
  metadata = @config.rpcs.group_findings.metadata.to_h
1360
1372
 
1361
- # Set x-goog-api-client and x-goog-user-project headers
1373
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1362
1374
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1363
1375
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1364
1376
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1377
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1365
1378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1366
1379
 
1367
1380
  header_params = {}
@@ -1576,10 +1589,11 @@ module Google
1576
1589
  # Customize the options with defaults
1577
1590
  metadata = @config.rpcs.list_assets.metadata.to_h
1578
1591
 
1579
- # Set x-goog-api-client and x-goog-user-project headers
1592
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1580
1593
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1581
1594
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1582
1595
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1596
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1583
1597
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1584
1598
 
1585
1599
  header_params = {}
@@ -1791,10 +1805,11 @@ module Google
1791
1805
  # Customize the options with defaults
1792
1806
  metadata = @config.rpcs.list_findings.metadata.to_h
1793
1807
 
1794
- # Set x-goog-api-client and x-goog-user-project headers
1808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1795
1809
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1796
1810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1797
1811
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1812
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1798
1813
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1799
1814
 
1800
1815
  header_params = {}
@@ -1889,10 +1904,11 @@ module Google
1889
1904
  # Customize the options with defaults
1890
1905
  metadata = @config.rpcs.list_notification_configs.metadata.to_h
1891
1906
 
1892
- # Set x-goog-api-client and x-goog-user-project headers
1907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1893
1908
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1894
1909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1895
1910
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1911
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1896
1912
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1897
1913
 
1898
1914
  header_params = {}
@@ -1988,10 +2004,11 @@ module Google
1988
2004
  # Customize the options with defaults
1989
2005
  metadata = @config.rpcs.list_sources.metadata.to_h
1990
2006
 
1991
- # Set x-goog-api-client and x-goog-user-project headers
2007
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1992
2008
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1993
2009
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1994
2010
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2011
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1995
2012
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1996
2013
 
1997
2014
  header_params = {}
@@ -2087,10 +2104,11 @@ module Google
2087
2104
  # Customize the options with defaults
2088
2105
  metadata = @config.rpcs.run_asset_discovery.metadata.to_h
2089
2106
 
2090
- # Set x-goog-api-client and x-goog-user-project headers
2107
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2091
2108
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2092
2109
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2093
2110
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2111
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2094
2112
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2095
2113
 
2096
2114
  header_params = {}
@@ -2180,10 +2198,11 @@ module Google
2180
2198
  # Customize the options with defaults
2181
2199
  metadata = @config.rpcs.set_finding_state.metadata.to_h
2182
2200
 
2183
- # Set x-goog-api-client and x-goog-user-project headers
2201
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2184
2202
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2185
2203
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2186
2204
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2205
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2187
2206
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2188
2207
 
2189
2208
  header_params = {}
@@ -2277,10 +2296,11 @@ module Google
2277
2296
  # Customize the options with defaults
2278
2297
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
2279
2298
 
2280
- # Set x-goog-api-client and x-goog-user-project headers
2299
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2281
2300
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2282
2301
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2283
2302
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2303
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2284
2304
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2285
2305
 
2286
2306
  header_params = {}
@@ -2368,10 +2388,11 @@ module Google
2368
2388
  # Customize the options with defaults
2369
2389
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
2370
2390
 
2371
- # Set x-goog-api-client and x-goog-user-project headers
2391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2372
2392
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2373
2393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2374
2394
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2395
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2375
2396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2376
2397
 
2377
2398
  header_params = {}
@@ -2467,10 +2488,11 @@ module Google
2467
2488
  # Customize the options with defaults
2468
2489
  metadata = @config.rpcs.update_finding.metadata.to_h
2469
2490
 
2470
- # Set x-goog-api-client and x-goog-user-project headers
2491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2471
2492
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2472
2493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2473
2494
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2495
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2474
2496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2475
2497
 
2476
2498
  header_params = {}
@@ -2557,10 +2579,11 @@ module Google
2557
2579
  # Customize the options with defaults
2558
2580
  metadata = @config.rpcs.update_notification_config.metadata.to_h
2559
2581
 
2560
- # Set x-goog-api-client and x-goog-user-project headers
2582
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2561
2583
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2562
2584
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2563
2585
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2586
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2564
2587
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2565
2588
 
2566
2589
  header_params = {}
@@ -2646,10 +2669,11 @@ module Google
2646
2669
  # Customize the options with defaults
2647
2670
  metadata = @config.rpcs.update_organization_settings.metadata.to_h
2648
2671
 
2649
- # Set x-goog-api-client and x-goog-user-project headers
2672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2650
2673
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2651
2674
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2652
2675
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2676
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2653
2677
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2654
2678
 
2655
2679
  header_params = {}
@@ -2735,10 +2759,11 @@ module Google
2735
2759
  # Customize the options with defaults
2736
2760
  metadata = @config.rpcs.update_source.metadata.to_h
2737
2761
 
2738
- # Set x-goog-api-client and x-goog-user-project headers
2762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2739
2763
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2740
2764
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2741
2765
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2766
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2742
2767
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2743
2768
 
2744
2769
  header_params = {}
@@ -2830,10 +2855,11 @@ module Google
2830
2855
  # Customize the options with defaults
2831
2856
  metadata = @config.rpcs.update_security_marks.metadata.to_h
2832
2857
 
2833
- # Set x-goog-api-client and x-goog-user-project headers
2858
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2834
2859
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2835
2860
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2836
2861
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2862
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2837
2863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2838
2864
 
2839
2865
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module SecurityCenter
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # V1p1Beta1 APIs for Security Center service.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
37
40
 
@@ -304,12 +307,13 @@ module Google
304
307
  # Customize the options with defaults
305
308
  call_metadata = @config.rpcs.create_source.metadata.to_h
306
309
 
307
- # Set x-goog-api-client and x-goog-user-project headers
310
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
308
311
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
309
312
  lib_name: @config.lib_name, lib_version: @config.lib_version,
310
313
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
311
314
  transports_version_send: [:rest]
312
315
 
316
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
313
317
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
314
318
 
315
319
  options.apply_defaults timeout: @config.rpcs.create_source.timeout,
@@ -389,12 +393,13 @@ module Google
389
393
  # Customize the options with defaults
390
394
  call_metadata = @config.rpcs.create_finding.metadata.to_h
391
395
 
392
- # Set x-goog-api-client and x-goog-user-project headers
396
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
393
397
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
394
398
  lib_name: @config.lib_name, lib_version: @config.lib_version,
395
399
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
396
400
  transports_version_send: [:rest]
397
401
 
402
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
398
403
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
399
404
 
400
405
  options.apply_defaults timeout: @config.rpcs.create_finding.timeout,
@@ -475,12 +480,13 @@ module Google
475
480
  # Customize the options with defaults
476
481
  call_metadata = @config.rpcs.create_notification_config.metadata.to_h
477
482
 
478
- # Set x-goog-api-client and x-goog-user-project headers
483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
479
484
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
481
486
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
482
487
  transports_version_send: [:rest]
483
488
 
489
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
484
490
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
485
491
 
486
492
  options.apply_defaults timeout: @config.rpcs.create_notification_config.timeout,
@@ -554,12 +560,13 @@ module Google
554
560
  # Customize the options with defaults
555
561
  call_metadata = @config.rpcs.delete_notification_config.metadata.to_h
556
562
 
557
- # Set x-goog-api-client and x-goog-user-project headers
563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
558
564
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
559
565
  lib_name: @config.lib_name, lib_version: @config.lib_version,
560
566
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
561
567
  transports_version_send: [:rest]
562
568
 
569
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
563
570
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
564
571
 
565
572
  options.apply_defaults timeout: @config.rpcs.delete_notification_config.timeout,
@@ -636,12 +643,13 @@ module Google
636
643
  # Customize the options with defaults
637
644
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
638
645
 
639
- # Set x-goog-api-client and x-goog-user-project headers
646
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
647
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
648
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
649
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
643
650
  transports_version_send: [:rest]
644
651
 
652
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
645
653
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
654
 
647
655
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -715,12 +723,13 @@ module Google
715
723
  # Customize the options with defaults
716
724
  call_metadata = @config.rpcs.get_notification_config.metadata.to_h
717
725
 
718
- # Set x-goog-api-client and x-goog-user-project headers
726
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
719
727
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
720
728
  lib_name: @config.lib_name, lib_version: @config.lib_version,
721
729
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
722
730
  transports_version_send: [:rest]
723
731
 
732
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
724
733
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
725
734
 
726
735
  options.apply_defaults timeout: @config.rpcs.get_notification_config.timeout,
@@ -794,12 +803,13 @@ module Google
794
803
  # Customize the options with defaults
795
804
  call_metadata = @config.rpcs.get_organization_settings.metadata.to_h
796
805
 
797
- # Set x-goog-api-client and x-goog-user-project headers
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
807
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
809
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
801
810
  transports_version_send: [:rest]
802
811
 
812
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
803
813
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
804
814
 
805
815
  options.apply_defaults timeout: @config.rpcs.get_organization_settings.timeout,
@@ -873,12 +883,13 @@ module Google
873
883
  # Customize the options with defaults
874
884
  call_metadata = @config.rpcs.get_source.metadata.to_h
875
885
 
876
- # Set x-goog-api-client and x-goog-user-project headers
886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
877
887
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
878
888
  lib_name: @config.lib_name, lib_version: @config.lib_version,
879
889
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
880
890
  transports_version_send: [:rest]
881
891
 
892
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
882
893
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
883
894
 
884
895
  options.apply_defaults timeout: @config.rpcs.get_source.timeout,
@@ -1080,12 +1091,13 @@ module Google
1080
1091
  # Customize the options with defaults
1081
1092
  call_metadata = @config.rpcs.group_assets.metadata.to_h
1082
1093
 
1083
- # Set x-goog-api-client and x-goog-user-project headers
1094
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
1095
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
1096
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
1097
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1087
1098
  transports_version_send: [:rest]
1088
1099
 
1100
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
1101
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
1102
 
1091
1103
  options.apply_defaults timeout: @config.rpcs.group_assets.timeout,
@@ -1287,12 +1299,13 @@ module Google
1287
1299
  # Customize the options with defaults
1288
1300
  call_metadata = @config.rpcs.group_findings.metadata.to_h
1289
1301
 
1290
- # Set x-goog-api-client and x-goog-user-project headers
1302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1291
1303
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1292
1304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1293
1305
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1294
1306
  transports_version_send: [:rest]
1295
1307
 
1308
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1296
1309
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1297
1310
 
1298
1311
  options.apply_defaults timeout: @config.rpcs.group_findings.timeout,
@@ -1498,12 +1511,13 @@ module Google
1498
1511
  # Customize the options with defaults
1499
1512
  call_metadata = @config.rpcs.list_assets.metadata.to_h
1500
1513
 
1501
- # Set x-goog-api-client and x-goog-user-project headers
1514
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1502
1515
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1503
1516
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1504
1517
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1505
1518
  transports_version_send: [:rest]
1506
1519
 
1520
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1507
1521
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1508
1522
 
1509
1523
  options.apply_defaults timeout: @config.rpcs.list_assets.timeout,
@@ -1706,12 +1720,13 @@ module Google
1706
1720
  # Customize the options with defaults
1707
1721
  call_metadata = @config.rpcs.list_findings.metadata.to_h
1708
1722
 
1709
- # Set x-goog-api-client and x-goog-user-project headers
1723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1710
1724
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1711
1725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1712
1726
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1713
1727
  transports_version_send: [:rest]
1714
1728
 
1729
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1715
1730
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1716
1731
 
1717
1732
  options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
@@ -1797,12 +1812,13 @@ module Google
1797
1812
  # Customize the options with defaults
1798
1813
  call_metadata = @config.rpcs.list_notification_configs.metadata.to_h
1799
1814
 
1800
- # Set x-goog-api-client and x-goog-user-project headers
1815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1801
1816
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1802
1817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1803
1818
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1804
1819
  transports_version_send: [:rest]
1805
1820
 
1821
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1806
1822
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1807
1823
 
1808
1824
  options.apply_defaults timeout: @config.rpcs.list_notification_configs.timeout,
@@ -1889,12 +1905,13 @@ module Google
1889
1905
  # Customize the options with defaults
1890
1906
  call_metadata = @config.rpcs.list_sources.metadata.to_h
1891
1907
 
1892
- # Set x-goog-api-client and x-goog-user-project headers
1908
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1893
1909
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1894
1910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1895
1911
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1896
1912
  transports_version_send: [:rest]
1897
1913
 
1914
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1898
1915
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1899
1916
 
1900
1917
  options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
@@ -1981,12 +1998,13 @@ module Google
1981
1998
  # Customize the options with defaults
1982
1999
  call_metadata = @config.rpcs.run_asset_discovery.metadata.to_h
1983
2000
 
1984
- # Set x-goog-api-client and x-goog-user-project headers
2001
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1985
2002
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1986
2003
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1987
2004
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
1988
2005
  transports_version_send: [:rest]
1989
2006
 
2007
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1990
2008
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1991
2009
 
1992
2010
  options.apply_defaults timeout: @config.rpcs.run_asset_discovery.timeout,
@@ -2067,12 +2085,13 @@ module Google
2067
2085
  # Customize the options with defaults
2068
2086
  call_metadata = @config.rpcs.set_finding_state.metadata.to_h
2069
2087
 
2070
- # Set x-goog-api-client and x-goog-user-project headers
2088
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2071
2089
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2072
2090
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2073
2091
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2074
2092
  transports_version_send: [:rest]
2075
2093
 
2094
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2076
2095
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2077
2096
 
2078
2097
  options.apply_defaults timeout: @config.rpcs.set_finding_state.timeout,
@@ -2157,12 +2176,13 @@ module Google
2157
2176
  # Customize the options with defaults
2158
2177
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
2159
2178
 
2160
- # Set x-goog-api-client and x-goog-user-project headers
2179
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2161
2180
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2162
2181
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2163
2182
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2164
2183
  transports_version_send: [:rest]
2165
2184
 
2185
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2166
2186
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2167
2187
 
2168
2188
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -2241,12 +2261,13 @@ module Google
2241
2261
  # Customize the options with defaults
2242
2262
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
2243
2263
 
2244
- # Set x-goog-api-client and x-goog-user-project headers
2264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2245
2265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2246
2266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2247
2267
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2248
2268
  transports_version_send: [:rest]
2249
2269
 
2270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2250
2271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2251
2272
 
2252
2273
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -2333,12 +2354,13 @@ module Google
2333
2354
  # Customize the options with defaults
2334
2355
  call_metadata = @config.rpcs.update_finding.metadata.to_h
2335
2356
 
2336
- # Set x-goog-api-client and x-goog-user-project headers
2357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2337
2358
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2338
2359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2339
2360
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2340
2361
  transports_version_send: [:rest]
2341
2362
 
2363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2342
2364
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2343
2365
 
2344
2366
  options.apply_defaults timeout: @config.rpcs.update_finding.timeout,
@@ -2416,12 +2438,13 @@ module Google
2416
2438
  # Customize the options with defaults
2417
2439
  call_metadata = @config.rpcs.update_notification_config.metadata.to_h
2418
2440
 
2419
- # Set x-goog-api-client and x-goog-user-project headers
2441
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2420
2442
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2421
2443
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2422
2444
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2423
2445
  transports_version_send: [:rest]
2424
2446
 
2447
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2425
2448
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2426
2449
 
2427
2450
  options.apply_defaults timeout: @config.rpcs.update_notification_config.timeout,
@@ -2498,12 +2521,13 @@ module Google
2498
2521
  # Customize the options with defaults
2499
2522
  call_metadata = @config.rpcs.update_organization_settings.metadata.to_h
2500
2523
 
2501
- # Set x-goog-api-client and x-goog-user-project headers
2524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2502
2525
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2503
2526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2504
2527
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2505
2528
  transports_version_send: [:rest]
2506
2529
 
2530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2507
2531
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2508
2532
 
2509
2533
  options.apply_defaults timeout: @config.rpcs.update_organization_settings.timeout,
@@ -2580,12 +2604,13 @@ module Google
2580
2604
  # Customize the options with defaults
2581
2605
  call_metadata = @config.rpcs.update_source.metadata.to_h
2582
2606
 
2583
- # Set x-goog-api-client and x-goog-user-project headers
2607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2584
2608
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2585
2609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2586
2610
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2587
2611
  transports_version_send: [:rest]
2588
2612
 
2613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2589
2614
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2590
2615
 
2591
2616
  options.apply_defaults timeout: @config.rpcs.update_source.timeout,
@@ -2668,12 +2693,13 @@ module Google
2668
2693
  # Customize the options with defaults
2669
2694
  call_metadata = @config.rpcs.update_security_marks.metadata.to_h
2670
2695
 
2671
- # Set x-goog-api-client and x-goog-user-project headers
2696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2672
2697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2673
2698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2674
2699
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
2675
2700
  transports_version_send: [:rest]
2676
2701
 
2702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2677
2703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2678
2704
 
2679
2705
  options.apply_defaults timeout: @config.rpcs.update_security_marks.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.14.2"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
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
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
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...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
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_center-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.2
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-02-26 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