google-cloud-asset-v1 0.32.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/asset/v1/asset_service/client.rb +49 -23
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +13 -5
- data/lib/google/cloud/asset/v1/asset_service/rest/client.rb +49 -23
- data/lib/google/cloud/asset/v1/asset_service/rest/operations.rb +11 -4
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4c9fc140675a4235b748e08a52d4442d0f9feca961dbe29a40f63c879f6d198
|
4
|
+
data.tar.gz: e11b1eaa5f703d10dbc12b1a75d9b554839ce6e1a1205d51368d8334f70e5170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33b5d7a114974550f1b20445503d7166eeca5afa3eb6ca468d1cbd3e84ab27e058748bf27490c66e9cb4170dbc32108c01b35c5037ac4bb7c2075d46eefe75f9
|
7
|
+
data.tar.gz: 52f66519c30854d182ef6203af69415ff5c8021455ef2dee34018b5574e10b3bc46c9eed2ebc11ceec513a1eb0fa2de2d5966edf9f4b01a143fa65d7ab5f3f4b
|
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# Asset service definition.
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
# @private
|
34
|
+
API_VERSION = ""
|
35
|
+
|
33
36
|
# @private
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.$UNIVERSE_DOMAIN$"
|
35
38
|
|
@@ -388,10 +391,11 @@ module Google
|
|
388
391
|
# Customize the options with defaults
|
389
392
|
metadata = @config.rpcs.export_assets.metadata.to_h
|
390
393
|
|
391
|
-
# Set x-goog-api-client
|
394
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
392
395
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
393
396
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
394
397
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
398
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
395
399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
396
400
|
|
397
401
|
header_params = {}
|
@@ -534,10 +538,11 @@ module Google
|
|
534
538
|
# Customize the options with defaults
|
535
539
|
metadata = @config.rpcs.list_assets.metadata.to_h
|
536
540
|
|
537
|
-
# Set x-goog-api-client
|
541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
538
542
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
539
543
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
540
544
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
545
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
541
546
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
542
547
|
|
543
548
|
header_params = {}
|
@@ -663,10 +668,11 @@ module Google
|
|
663
668
|
# Customize the options with defaults
|
664
669
|
metadata = @config.rpcs.batch_get_assets_history.metadata.to_h
|
665
670
|
|
666
|
-
# Set x-goog-api-client
|
671
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
667
672
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
668
673
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
669
674
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
675
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
670
676
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
671
677
|
|
672
678
|
header_params = {}
|
@@ -761,10 +767,11 @@ module Google
|
|
761
767
|
# Customize the options with defaults
|
762
768
|
metadata = @config.rpcs.create_feed.metadata.to_h
|
763
769
|
|
764
|
-
# Set x-goog-api-client
|
770
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
765
771
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
766
772
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
767
773
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
774
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
768
775
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
769
776
|
|
770
777
|
header_params = {}
|
@@ -849,10 +856,11 @@ module Google
|
|
849
856
|
# Customize the options with defaults
|
850
857
|
metadata = @config.rpcs.get_feed.metadata.to_h
|
851
858
|
|
852
|
-
# Set x-goog-api-client
|
859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
853
860
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
854
861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
855
862
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
863
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
856
864
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
857
865
|
|
858
866
|
header_params = {}
|
@@ -936,10 +944,11 @@ module Google
|
|
936
944
|
# Customize the options with defaults
|
937
945
|
metadata = @config.rpcs.list_feeds.metadata.to_h
|
938
946
|
|
939
|
-
# Set x-goog-api-client
|
947
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
940
948
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
941
949
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
942
950
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
951
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
943
952
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
944
953
|
|
945
954
|
header_params = {}
|
@@ -1029,10 +1038,11 @@ module Google
|
|
1029
1038
|
# Customize the options with defaults
|
1030
1039
|
metadata = @config.rpcs.update_feed.metadata.to_h
|
1031
1040
|
|
1032
|
-
# Set x-goog-api-client
|
1041
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1033
1042
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1034
1043
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1035
1044
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1045
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1036
1046
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1037
1047
|
|
1038
1048
|
header_params = {}
|
@@ -1117,10 +1127,11 @@ module Google
|
|
1117
1127
|
# Customize the options with defaults
|
1118
1128
|
metadata = @config.rpcs.delete_feed.metadata.to_h
|
1119
1129
|
|
1120
|
-
# Set x-goog-api-client
|
1130
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1121
1131
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1122
1132
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1123
1133
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1134
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1124
1135
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1125
1136
|
|
1126
1137
|
header_params = {}
|
@@ -1377,10 +1388,11 @@ module Google
|
|
1377
1388
|
# Customize the options with defaults
|
1378
1389
|
metadata = @config.rpcs.search_all_resources.metadata.to_h
|
1379
1390
|
|
1380
|
-
# Set x-goog-api-client
|
1391
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1381
1392
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1382
1393
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1383
1394
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1395
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1384
1396
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1385
1397
|
|
1386
1398
|
header_params = {}
|
@@ -1564,10 +1576,11 @@ module Google
|
|
1564
1576
|
# Customize the options with defaults
|
1565
1577
|
metadata = @config.rpcs.search_all_iam_policies.metadata.to_h
|
1566
1578
|
|
1567
|
-
# Set x-goog-api-client
|
1579
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1568
1580
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1569
1581
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1570
1582
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1583
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1571
1584
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1572
1585
|
|
1573
1586
|
header_params = {}
|
@@ -1680,10 +1693,11 @@ module Google
|
|
1680
1693
|
# Customize the options with defaults
|
1681
1694
|
metadata = @config.rpcs.analyze_iam_policy.metadata.to_h
|
1682
1695
|
|
1683
|
-
# Set x-goog-api-client
|
1696
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1684
1697
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1685
1698
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1686
1699
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1700
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1687
1701
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1688
1702
|
|
1689
1703
|
header_params = {}
|
@@ -1801,10 +1815,11 @@ module Google
|
|
1801
1815
|
# Customize the options with defaults
|
1802
1816
|
metadata = @config.rpcs.analyze_iam_policy_longrunning.metadata.to_h
|
1803
1817
|
|
1804
|
-
# Set x-goog-api-client
|
1818
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1805
1819
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1806
1820
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1807
1821
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1822
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1808
1823
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1809
1824
|
|
1810
1825
|
header_params = {}
|
@@ -1903,10 +1918,11 @@ module Google
|
|
1903
1918
|
# Customize the options with defaults
|
1904
1919
|
metadata = @config.rpcs.analyze_move.metadata.to_h
|
1905
1920
|
|
1906
|
-
# Set x-goog-api-client
|
1921
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1907
1922
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1908
1923
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1909
1924
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
1925
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1910
1926
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1911
1927
|
|
1912
1928
|
header_params = {}
|
@@ -2053,10 +2069,11 @@ module Google
|
|
2053
2069
|
# Customize the options with defaults
|
2054
2070
|
metadata = @config.rpcs.query_assets.metadata.to_h
|
2055
2071
|
|
2056
|
-
# Set x-goog-api-client
|
2072
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2057
2073
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2058
2074
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2059
2075
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2076
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2060
2077
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2061
2078
|
|
2062
2079
|
header_params = {}
|
@@ -2155,10 +2172,11 @@ module Google
|
|
2155
2172
|
# Customize the options with defaults
|
2156
2173
|
metadata = @config.rpcs.create_saved_query.metadata.to_h
|
2157
2174
|
|
2158
|
-
# Set x-goog-api-client
|
2175
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2159
2176
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2160
2177
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2161
2178
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2179
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2162
2180
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2163
2181
|
|
2164
2182
|
header_params = {}
|
@@ -2244,10 +2262,11 @@ module Google
|
|
2244
2262
|
# Customize the options with defaults
|
2245
2263
|
metadata = @config.rpcs.get_saved_query.metadata.to_h
|
2246
2264
|
|
2247
|
-
# Set x-goog-api-client
|
2265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2248
2266
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2249
2267
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2250
2268
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2269
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2251
2270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2252
2271
|
|
2253
2272
|
header_params = {}
|
@@ -2354,10 +2373,11 @@ module Google
|
|
2354
2373
|
# Customize the options with defaults
|
2355
2374
|
metadata = @config.rpcs.list_saved_queries.metadata.to_h
|
2356
2375
|
|
2357
|
-
# Set x-goog-api-client
|
2376
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2358
2377
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2359
2378
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2360
2379
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2380
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2361
2381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2362
2382
|
|
2363
2383
|
header_params = {}
|
@@ -2449,10 +2469,11 @@ module Google
|
|
2449
2469
|
# Customize the options with defaults
|
2450
2470
|
metadata = @config.rpcs.update_saved_query.metadata.to_h
|
2451
2471
|
|
2452
|
-
# Set x-goog-api-client
|
2472
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2453
2473
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2454
2474
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2455
2475
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2476
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2456
2477
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2457
2478
|
|
2458
2479
|
header_params = {}
|
@@ -2539,10 +2560,11 @@ module Google
|
|
2539
2560
|
# Customize the options with defaults
|
2540
2561
|
metadata = @config.rpcs.delete_saved_query.metadata.to_h
|
2541
2562
|
|
2542
|
-
# Set x-goog-api-client
|
2563
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2543
2564
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2544
2565
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2545
2566
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2567
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2546
2568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2547
2569
|
|
2548
2570
|
header_params = {}
|
@@ -2640,10 +2662,11 @@ module Google
|
|
2640
2662
|
# Customize the options with defaults
|
2641
2663
|
metadata = @config.rpcs.batch_get_effective_iam_policies.metadata.to_h
|
2642
2664
|
|
2643
|
-
# Set x-goog-api-client
|
2665
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2644
2666
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2645
2667
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2646
2668
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2669
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2647
2670
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2648
2671
|
|
2649
2672
|
header_params = {}
|
@@ -2754,10 +2777,11 @@ module Google
|
|
2754
2777
|
# Customize the options with defaults
|
2755
2778
|
metadata = @config.rpcs.analyze_org_policies.metadata.to_h
|
2756
2779
|
|
2757
|
-
# Set x-goog-api-client
|
2780
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2758
2781
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2759
2782
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2760
2783
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2784
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2761
2785
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2762
2786
|
|
2763
2787
|
header_params = {}
|
@@ -2872,10 +2896,11 @@ module Google
|
|
2872
2896
|
# Customize the options with defaults
|
2873
2897
|
metadata = @config.rpcs.analyze_org_policy_governed_containers.metadata.to_h
|
2874
2898
|
|
2875
|
-
# Set x-goog-api-client
|
2899
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2876
2900
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2877
2901
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2878
2902
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
2903
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2879
2904
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2880
2905
|
|
2881
2906
|
header_params = {}
|
@@ -3053,10 +3078,11 @@ module Google
|
|
3053
3078
|
# Customize the options with defaults
|
3054
3079
|
metadata = @config.rpcs.analyze_org_policy_governed_assets.metadata.to_h
|
3055
3080
|
|
3056
|
-
# Set x-goog-api-client
|
3081
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3057
3082
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3058
3083
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3059
3084
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION
|
3085
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3060
3086
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3061
3087
|
|
3062
3088
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module AssetService
|
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 = "cloudasset.$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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
# Asset service definition.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -380,12 +383,13 @@ module Google
|
|
380
383
|
# Customize the options with defaults
|
381
384
|
call_metadata = @config.rpcs.export_assets.metadata.to_h
|
382
385
|
|
383
|
-
# Set x-goog-api-client
|
386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
384
387
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
385
388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
386
389
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
387
390
|
transports_version_send: [:rest]
|
388
391
|
|
392
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
389
393
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
390
394
|
|
391
395
|
options.apply_defaults timeout: @config.rpcs.export_assets.timeout,
|
@@ -519,12 +523,13 @@ module Google
|
|
519
523
|
# Customize the options with defaults
|
520
524
|
call_metadata = @config.rpcs.list_assets.metadata.to_h
|
521
525
|
|
522
|
-
# Set x-goog-api-client
|
526
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
523
527
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
524
528
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
525
529
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
526
530
|
transports_version_send: [:rest]
|
527
531
|
|
532
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
528
533
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
529
534
|
|
530
535
|
options.apply_defaults timeout: @config.rpcs.list_assets.timeout,
|
@@ -641,12 +646,13 @@ module Google
|
|
641
646
|
# Customize the options with defaults
|
642
647
|
call_metadata = @config.rpcs.batch_get_assets_history.metadata.to_h
|
643
648
|
|
644
|
-
# Set x-goog-api-client
|
649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
645
650
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
646
651
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
647
652
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
648
653
|
transports_version_send: [:rest]
|
649
654
|
|
655
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
650
656
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
651
657
|
|
652
658
|
options.apply_defaults timeout: @config.rpcs.batch_get_assets_history.timeout,
|
@@ -732,12 +738,13 @@ module Google
|
|
732
738
|
# Customize the options with defaults
|
733
739
|
call_metadata = @config.rpcs.create_feed.metadata.to_h
|
734
740
|
|
735
|
-
# Set x-goog-api-client
|
741
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
736
742
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
737
743
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
738
744
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
739
745
|
transports_version_send: [:rest]
|
740
746
|
|
747
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
741
748
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
742
749
|
|
743
750
|
options.apply_defaults timeout: @config.rpcs.create_feed.timeout,
|
@@ -813,12 +820,13 @@ module Google
|
|
813
820
|
# Customize the options with defaults
|
814
821
|
call_metadata = @config.rpcs.get_feed.metadata.to_h
|
815
822
|
|
816
|
-
# Set x-goog-api-client
|
823
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
817
824
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
825
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
826
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
820
827
|
transports_version_send: [:rest]
|
821
828
|
|
829
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
822
830
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
823
831
|
|
824
832
|
options.apply_defaults timeout: @config.rpcs.get_feed.timeout,
|
@@ -893,12 +901,13 @@ module Google
|
|
893
901
|
# Customize the options with defaults
|
894
902
|
call_metadata = @config.rpcs.list_feeds.metadata.to_h
|
895
903
|
|
896
|
-
# Set x-goog-api-client
|
904
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
897
905
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
898
906
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
899
907
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
900
908
|
transports_version_send: [:rest]
|
901
909
|
|
910
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
902
911
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
903
912
|
|
904
913
|
options.apply_defaults timeout: @config.rpcs.list_feeds.timeout,
|
@@ -979,12 +988,13 @@ module Google
|
|
979
988
|
# Customize the options with defaults
|
980
989
|
call_metadata = @config.rpcs.update_feed.metadata.to_h
|
981
990
|
|
982
|
-
# Set x-goog-api-client
|
991
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
983
992
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
984
993
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
985
994
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
986
995
|
transports_version_send: [:rest]
|
987
996
|
|
997
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
988
998
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
989
999
|
|
990
1000
|
options.apply_defaults timeout: @config.rpcs.update_feed.timeout,
|
@@ -1060,12 +1070,13 @@ module Google
|
|
1060
1070
|
# Customize the options with defaults
|
1061
1071
|
call_metadata = @config.rpcs.delete_feed.metadata.to_h
|
1062
1072
|
|
1063
|
-
# Set x-goog-api-client
|
1073
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1064
1074
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1065
1075
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1066
1076
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1067
1077
|
transports_version_send: [:rest]
|
1068
1078
|
|
1079
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1069
1080
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1070
1081
|
|
1071
1082
|
options.apply_defaults timeout: @config.rpcs.delete_feed.timeout,
|
@@ -1313,12 +1324,13 @@ module Google
|
|
1313
1324
|
# Customize the options with defaults
|
1314
1325
|
call_metadata = @config.rpcs.search_all_resources.metadata.to_h
|
1315
1326
|
|
1316
|
-
# Set x-goog-api-client
|
1327
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1317
1328
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1318
1329
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1319
1330
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1320
1331
|
transports_version_send: [:rest]
|
1321
1332
|
|
1333
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1322
1334
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1323
1335
|
|
1324
1336
|
options.apply_defaults timeout: @config.rpcs.search_all_resources.timeout,
|
@@ -1493,12 +1505,13 @@ module Google
|
|
1493
1505
|
# Customize the options with defaults
|
1494
1506
|
call_metadata = @config.rpcs.search_all_iam_policies.metadata.to_h
|
1495
1507
|
|
1496
|
-
# Set x-goog-api-client
|
1508
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1497
1509
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1498
1510
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1499
1511
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1500
1512
|
transports_version_send: [:rest]
|
1501
1513
|
|
1514
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1502
1515
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1503
1516
|
|
1504
1517
|
options.apply_defaults timeout: @config.rpcs.search_all_iam_policies.timeout,
|
@@ -1602,12 +1615,13 @@ module Google
|
|
1602
1615
|
# Customize the options with defaults
|
1603
1616
|
call_metadata = @config.rpcs.analyze_iam_policy.metadata.to_h
|
1604
1617
|
|
1605
|
-
# Set x-goog-api-client
|
1618
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1606
1619
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1607
1620
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1608
1621
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1609
1622
|
transports_version_send: [:rest]
|
1610
1623
|
|
1624
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1611
1625
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1612
1626
|
|
1613
1627
|
options.apply_defaults timeout: @config.rpcs.analyze_iam_policy.timeout,
|
@@ -1716,12 +1730,13 @@ module Google
|
|
1716
1730
|
# Customize the options with defaults
|
1717
1731
|
call_metadata = @config.rpcs.analyze_iam_policy_longrunning.metadata.to_h
|
1718
1732
|
|
1719
|
-
# Set x-goog-api-client
|
1733
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1720
1734
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1721
1735
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1722
1736
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1723
1737
|
transports_version_send: [:rest]
|
1724
1738
|
|
1739
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1725
1740
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1726
1741
|
|
1727
1742
|
options.apply_defaults timeout: @config.rpcs.analyze_iam_policy_longrunning.timeout,
|
@@ -1811,12 +1826,13 @@ module Google
|
|
1811
1826
|
# Customize the options with defaults
|
1812
1827
|
call_metadata = @config.rpcs.analyze_move.metadata.to_h
|
1813
1828
|
|
1814
|
-
# Set x-goog-api-client
|
1829
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1815
1830
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1816
1831
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1817
1832
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1818
1833
|
transports_version_send: [:rest]
|
1819
1834
|
|
1835
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1820
1836
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1821
1837
|
|
1822
1838
|
options.apply_defaults timeout: @config.rpcs.analyze_move.timeout,
|
@@ -1954,12 +1970,13 @@ module Google
|
|
1954
1970
|
# Customize the options with defaults
|
1955
1971
|
call_metadata = @config.rpcs.query_assets.metadata.to_h
|
1956
1972
|
|
1957
|
-
# Set x-goog-api-client
|
1973
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1958
1974
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1959
1975
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1960
1976
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
1961
1977
|
transports_version_send: [:rest]
|
1962
1978
|
|
1979
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1963
1980
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1964
1981
|
|
1965
1982
|
options.apply_defaults timeout: @config.rpcs.query_assets.timeout,
|
@@ -2049,12 +2066,13 @@ module Google
|
|
2049
2066
|
# Customize the options with defaults
|
2050
2067
|
call_metadata = @config.rpcs.create_saved_query.metadata.to_h
|
2051
2068
|
|
2052
|
-
# Set x-goog-api-client
|
2069
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2053
2070
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2054
2071
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2055
2072
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2056
2073
|
transports_version_send: [:rest]
|
2057
2074
|
|
2075
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2058
2076
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2059
2077
|
|
2060
2078
|
options.apply_defaults timeout: @config.rpcs.create_saved_query.timeout,
|
@@ -2131,12 +2149,13 @@ module Google
|
|
2131
2149
|
# Customize the options with defaults
|
2132
2150
|
call_metadata = @config.rpcs.get_saved_query.metadata.to_h
|
2133
2151
|
|
2134
|
-
# Set x-goog-api-client
|
2152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2135
2153
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2136
2154
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2137
2155
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2138
2156
|
transports_version_send: [:rest]
|
2139
2157
|
|
2158
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2140
2159
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2141
2160
|
|
2142
2161
|
options.apply_defaults timeout: @config.rpcs.get_saved_query.timeout,
|
@@ -2234,12 +2253,13 @@ module Google
|
|
2234
2253
|
# Customize the options with defaults
|
2235
2254
|
call_metadata = @config.rpcs.list_saved_queries.metadata.to_h
|
2236
2255
|
|
2237
|
-
# Set x-goog-api-client
|
2256
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2238
2257
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2239
2258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2240
2259
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2241
2260
|
transports_version_send: [:rest]
|
2242
2261
|
|
2262
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2243
2263
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2244
2264
|
|
2245
2265
|
options.apply_defaults timeout: @config.rpcs.list_saved_queries.timeout,
|
@@ -2322,12 +2342,13 @@ module Google
|
|
2322
2342
|
# Customize the options with defaults
|
2323
2343
|
call_metadata = @config.rpcs.update_saved_query.metadata.to_h
|
2324
2344
|
|
2325
|
-
# Set x-goog-api-client
|
2345
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2326
2346
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2327
2347
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2328
2348
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2329
2349
|
transports_version_send: [:rest]
|
2330
2350
|
|
2351
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2331
2352
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2332
2353
|
|
2333
2354
|
options.apply_defaults timeout: @config.rpcs.update_saved_query.timeout,
|
@@ -2405,12 +2426,13 @@ module Google
|
|
2405
2426
|
# Customize the options with defaults
|
2406
2427
|
call_metadata = @config.rpcs.delete_saved_query.metadata.to_h
|
2407
2428
|
|
2408
|
-
# Set x-goog-api-client
|
2429
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2409
2430
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2410
2431
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2411
2432
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2412
2433
|
transports_version_send: [:rest]
|
2413
2434
|
|
2435
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2414
2436
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2415
2437
|
|
2416
2438
|
options.apply_defaults timeout: @config.rpcs.delete_saved_query.timeout,
|
@@ -2499,12 +2521,13 @@ module Google
|
|
2499
2521
|
# Customize the options with defaults
|
2500
2522
|
call_metadata = @config.rpcs.batch_get_effective_iam_policies.metadata.to_h
|
2501
2523
|
|
2502
|
-
# Set x-goog-api-client
|
2524
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2503
2525
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2504
2526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2505
2527
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2506
2528
|
transports_version_send: [:rest]
|
2507
2529
|
|
2530
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2508
2531
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2509
2532
|
|
2510
2533
|
options.apply_defaults timeout: @config.rpcs.batch_get_effective_iam_policies.timeout,
|
@@ -2606,12 +2629,13 @@ module Google
|
|
2606
2629
|
# Customize the options with defaults
|
2607
2630
|
call_metadata = @config.rpcs.analyze_org_policies.metadata.to_h
|
2608
2631
|
|
2609
|
-
# Set x-goog-api-client
|
2632
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2610
2633
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2611
2634
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2612
2635
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2613
2636
|
transports_version_send: [:rest]
|
2614
2637
|
|
2638
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2615
2639
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2616
2640
|
|
2617
2641
|
options.apply_defaults timeout: @config.rpcs.analyze_org_policies.timeout,
|
@@ -2717,12 +2741,13 @@ module Google
|
|
2717
2741
|
# Customize the options with defaults
|
2718
2742
|
call_metadata = @config.rpcs.analyze_org_policy_governed_containers.metadata.to_h
|
2719
2743
|
|
2720
|
-
# Set x-goog-api-client
|
2744
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2721
2745
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2722
2746
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2723
2747
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2724
2748
|
transports_version_send: [:rest]
|
2725
2749
|
|
2750
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2726
2751
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2727
2752
|
|
2728
2753
|
options.apply_defaults timeout: @config.rpcs.analyze_org_policy_governed_containers.timeout,
|
@@ -2891,12 +2916,13 @@ module Google
|
|
2891
2916
|
# Customize the options with defaults
|
2892
2917
|
call_metadata = @config.rpcs.analyze_org_policy_governed_assets.metadata.to_h
|
2893
2918
|
|
2894
|
-
# Set x-goog-api-client
|
2919
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2895
2920
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2896
2921
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2897
2922
|
gapic_version: ::Google::Cloud::Asset::V1::VERSION,
|
2898
2923
|
transports_version_send: [:rest]
|
2899
2924
|
|
2925
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2900
2926
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2901
2927
|
|
2902
2928
|
options.apply_defaults timeout: @config.rpcs.analyze_org_policy_governed_assets.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 = "cloudasset.$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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
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::Asset::V1::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
|
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::Asset::V1::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,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
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-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|