google-cloud-asset-v1 0.31.0 → 1.0.0

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: ae6b709bc668cb3a42df8cec4e8c347a685fac5e013e4f473e033be4615a228c
4
- data.tar.gz: 96b61ac57b738429d191ea4e3becd9f10f03c412473a99bb9816adc417ffbf18
3
+ metadata.gz: c4c9fc140675a4235b748e08a52d4442d0f9feca961dbe29a40f63c879f6d198
4
+ data.tar.gz: e11b1eaa5f703d10dbc12b1a75d9b554839ce6e1a1205d51368d8334f70e5170
5
5
  SHA512:
6
- metadata.gz: a4f09a6f7481dc29c6f7826fc9a653bf00c07ba3d4fd5a237e6359bcd6bccf7a77524076c168a319c2eafe7218e6c52c4cbfeff38c3b9852b737b99f3db833cb
7
- data.tar.gz: 630023d43ed8eff62e38c250b41bdbf959d5275c3257fdf1c4040edcf3d94740fc39c23063b8eae06ac64d314982d29267aeacd0d27645f3b8e48fefb7181064
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 = {}
@@ -2594,10 +2616,10 @@ module Google
2594
2616
  # folder number (such as "folders/123"), a project ID (such as
2595
2617
  # "projects/my-project-id"), or a project number (such as "projects/12345").
2596
2618
  #
2597
- # To know how to get organization id, visit [here
2619
+ # To know how to get organization ID, visit [here
2598
2620
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
2599
2621
  #
2600
- # To know how to get folder or project id, visit [here
2622
+ # To know how to get folder or project ID, visit [here
2601
2623
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
2602
2624
  # @param names [::Array<::String>]
2603
2625
  # Required. The names refer to the [full_resource_names]
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 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::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 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::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 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::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 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::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 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::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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -2454,10 +2476,10 @@ module Google
2454
2476
  # folder number (such as "folders/123"), a project ID (such as
2455
2477
  # "projects/my-project-id"), or a project number (such as "projects/12345").
2456
2478
  #
2457
- # To know how to get organization id, visit [here
2479
+ # To know how to get organization ID, visit [here
2458
2480
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
2459
2481
  #
2460
- # To know how to get folder or project id, visit [here
2482
+ # To know how to get folder or project ID, visit [here
2461
2483
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
2462
2484
  # @param names [::Array<::String>]
2463
2485
  # Required. The names refer to the [full_resource_names]
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 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::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 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::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 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::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 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::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,
@@ -16,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
16
16
  require 'google/rpc/code_pb'
17
17
 
18
18
 
19
- descriptor_data = "\n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\x19google/api/resource.proto\x1a)google/cloud/orgpolicy/v1/orgpolicy.proto\x1a(google/cloud/osconfig/v1/inventory.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a:google/identity/accesscontextmanager/v1/access_level.proto\x1a;google/identity/accesscontextmanager/v1/access_policy.proto\x1a?google/identity/accesscontextmanager/v1/service_perimeter.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xf5\x02\n\rTemporalAsset\x12\x31\n\x06window\x18\x01 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindow\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x12+\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\x12O\n\x11prior_asset_state\x18\x04 \x01(\x0e\x32\x34.google.cloud.asset.v1.TemporalAsset.PriorAssetState\x12\x31\n\x0bprior_asset\x18\x05 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\"o\n\x0fPriorAssetState\x12!\n\x1dPRIOR_ASSET_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRESENT\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x12\n\x0e\x44OES_NOT_EXIST\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04\"j\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf3\x05\n\x05\x41sset\x12/\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x31\n\x08resource\x18\x03 \x01(\x0b\x32\x1f.google.cloud.asset.v1.Resource\x12)\n\niam_policy\x18\x04 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12\x35\n\norg_policy\x18\x06 \x03(\x0b\x32!.google.cloud.orgpolicy.v1.Policy\x12N\n\raccess_policy\x18\x07 \x01(\x0b\x32\x35.google.identity.accesscontextmanager.v1.AccessPolicyH\x00\x12L\n\x0c\x61\x63\x63\x65ss_level\x18\x08 \x01(\x0b\x32\x34.google.identity.accesscontextmanager.v1.AccessLevelH\x00\x12V\n\x11service_perimeter\x18\t \x01(\x0b\x32\x39.google.identity.accesscontextmanager.v1.ServicePerimeterH\x00\x12\x39\n\x0cos_inventory\x18\x0c \x01(\x0b\x32#.google.cloud.osconfig.v1.Inventory\x12@\n\x0erelated_assets\x18\r \x01(\x0b\x32$.google.cloud.asset.v1.RelatedAssetsB\x02\x18\x01\x12:\n\rrelated_asset\x18\x0f \x01(\x0b\x32#.google.cloud.asset.v1.RelatedAsset\x12\x11\n\tancestors\x18\n \x03(\t:\'\xea\x41$\n\x1f\x63loudasset.googleapis.com/Asset\x12\x01*B\x17\n\x15\x61\x63\x63\x65ss_context_policy\"\xb2\x01\n\x08Resource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1e\n\x16\x64iscovery_document_uri\x18\x02 \x01(\t\x12\x16\n\x0e\x64iscovery_name\x18\x03 \x01(\t\x12\x14\n\x0cresource_url\x18\x04 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12%\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08location\x18\x08 \x01(\t\"\x98\x01\n\rRelatedAssets\x12N\n\x17relationship_attributes\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.RelationshipAttributes\x12\x33\n\x06\x61ssets\x18\x02 \x03(\x0b\x32#.google.cloud.asset.v1.RelatedAsset:\x02\x18\x01\"v\n\x16RelationshipAttributes\x12\x0c\n\x04type\x18\x04 \x01(\t\x12\x1c\n\x14source_resource_type\x18\x01 \x01(\t\x12\x1c\n\x14target_resource_type\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t:\x02\x18\x01\"\x85\x01\n\x0cRelatedAsset\x12\x33\n\x05\x61sset\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x63loudasset.googleapis.com/Asset\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x11\n\tancestors\x18\x03 \x03(\t\x12\x19\n\x11relationship_type\x18\x04 \x01(\t\"y\n\x03Tag\x12\x14\n\x07tag_key\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\ttag_value\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x19\n\x0ctag_value_id\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\n\n\x08_tag_keyB\x0c\n\n_tag_valueB\x0f\n\r_tag_value_id\"\x7f\n\x13\x45\x66\x66\x65\x63tiveTagDetails\x12\x1e\n\x11\x61ttached_resource\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x02 \x03(\x0b\x32\x1a.google.cloud.asset.v1.TagB\x14\n\x12_attached_resource\"\xda\t\n\x14ResourceSearchResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x03 \x01(\t\x12\x0f\n\x07\x66olders\x18\x11 \x03(\t\x12\x14\n\x0corganization\x18\x12 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x10\n\x08location\x18\x06 \x01(\t\x12G\n\x06labels\x18\x07 \x03(\x0b\x32\x37.google.cloud.asset.v1.ResourceSearchResult.LabelsEntry\x12\x14\n\x0cnetwork_tags\x18\x08 \x03(\t\x12\x13\n\x07kms_key\x18\n \x01(\tB\x02\x18\x01\x12\x10\n\x08kms_keys\x18\x1c \x03(\t\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05state\x18\r \x01(\t\x12\x36\n\x15\x61\x64\x64itional_attributes\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x19parent_full_resource_name\x18\x13 \x01(\t\x12\x45\n\x13versioned_resources\x18\x10 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\x12\x43\n\x12\x61ttached_resources\x18\x14 \x03(\x0b\x32\'.google.cloud.asset.v1.AttachedResource\x12U\n\rrelationships\x18\x15 \x03(\x0b\x32>.google.cloud.asset.v1.ResourceSearchResult.RelationshipsEntry\x12\x14\n\x08tag_keys\x18\x17 \x03(\tB\x02\x18\x01\x12\x16\n\ntag_values\x18\x19 \x03(\tB\x02\x18\x01\x12\x19\n\rtag_value_ids\x18\x1a \x03(\tB\x02\x18\x01\x12(\n\x04tags\x18\x1d \x03(\x0b\x32\x1a.google.cloud.asset.v1.Tag\x12\x42\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x1e \x03(\x0b\x32*.google.cloud.asset.v1.EffectiveTagDetails\x12\x19\n\x11parent_asset_type\x18g \x01(\t\x12]\n\x12scc_security_marks\x18 \x03(\x0b\x32\x41.google.cloud.asset.v1.ResourceSearchResult.SccSecurityMarksEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a]\n\x12RelationshipsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.asset.v1.RelatedResources:\x02\x38\x01\x1a\x37\n\x15SccSecurityMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"O\n\x11VersionedResource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12)\n\x08resource\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"m\n\x10\x41ttachedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x45\n\x13versioned_resources\x18\x03 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\"U\n\x10RelatedResources\x12\x41\n\x11related_resources\x18\x01 \x03(\x0b\x32&.google.cloud.asset.v1.RelatedResource\"A\n\x0fRelatedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x1a\n\x12\x66ull_resource_name\x18\x02 \x01(\t\"\x8f\x04\n\x15IamPolicySearchResult\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x05 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x12%\n\x06policy\x18\x03 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12M\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32\x38.google.cloud.asset.v1.IamPolicySearchResult.Explanation\x1a\xa1\x02\n\x0b\x45xplanation\x12m\n\x13matched_permissions\x18\x01 \x03(\x0b\x32P.google.cloud.asset.v1.IamPolicySearchResult.Explanation.MatchedPermissionsEntry\x1a\"\n\x0bPermissions\x12\x13\n\x0bpermissions\x18\x01 \x03(\t\x1a\x7f\n\x17MatchedPermissionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12S\n\x05value\x18\x02 \x01(\x0b\x32\x44.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions:\x02\x38\x01\"G\n\x16IamPolicyAnalysisState\x12\x1e\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t\"\xc6\x01\n\x13\x43onditionEvaluation\x12T\n\x10\x65valuation_value\x18\x01 \x01(\x0e\x32:.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue\"Y\n\x0f\x45valuationValue\x12 \n\x1c\x45VALUATION_VALUE_UNSPECIFIED\x10\x00\x12\x08\n\x04TRUE\x10\x01\x12\t\n\x05\x46\x41LSE\x10\x02\x12\x0f\n\x0b\x43ONDITIONAL\x10\x03\"\xab\t\n\x17IamPolicyAnalysisResult\x12#\n\x1b\x61ttached_resource_full_name\x18\x01 \x01(\t\x12+\n\x0biam_binding\x18\x02 \x01(\x0b\x32\x16.google.iam.v1.Binding\x12^\n\x14\x61\x63\x63\x65ss_control_lists\x18\x03 \x03(\x0b\x32@.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList\x12R\n\ridentity_list\x18\x04 \x01(\x0b\x32;.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList\x12\x16\n\x0e\x66ully_explored\x18\x05 \x01(\x08\x1am\n\x08Resource\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x85\x01\n\x06\x41\x63\x63\x65ss\x12\x0e\n\x04role\x18\x01 \x01(\tH\x00\x12\x14\n\npermission\x18\x02 \x01(\tH\x00\x12\x45\n\x0e\x61nalysis_state\x18\x03 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisStateB\x0e\n\x0coneof_access\x1a_\n\x08Identity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x30\n\x04\x45\x64ge\x12\x13\n\x0bsource_node\x18\x01 \x01(\t\x12\x13\n\x0btarget_node\x18\x02 \x01(\t\x1a\xbf\x02\n\x11\x41\x63\x63\x65ssControlList\x12J\n\tresources\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource\x12G\n\x08\x61\x63\x63\x65sses\x18\x02 \x03(\x0b\x32\x35.google.cloud.asset.v1.IamPolicyAnalysisResult.Access\x12K\n\x0eresource_edges\x18\x03 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge\x12H\n\x14\x63ondition_evaluation\x18\x04 \x01(\x0b\x32*.google.cloud.asset.v1.ConditionEvaluation\x1a\xa5\x01\n\x0cIdentityList\x12K\n\nidentities\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity\x12H\n\x0bgroup_edges\x18\x02 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeB\x8d\x01\n\x19\x63om.google.cloud.asset.v1B\nAssetProtoP\x01Z/cloud.google.com/go/asset/apiv1/assetpb;assetpb\xf8\x01\x01\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1b\x06proto3"
19
+ descriptor_data = "\n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\x19google/api/resource.proto\x1a)google/cloud/orgpolicy/v1/orgpolicy.proto\x1a(google/cloud/osconfig/v1/inventory.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a:google/identity/accesscontextmanager/v1/access_level.proto\x1a;google/identity/accesscontextmanager/v1/access_policy.proto\x1a?google/identity/accesscontextmanager/v1/service_perimeter.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xf5\x02\n\rTemporalAsset\x12\x31\n\x06window\x18\x01 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindow\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\x12+\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\x12O\n\x11prior_asset_state\x18\x04 \x01(\x0e\x32\x34.google.cloud.asset.v1.TemporalAsset.PriorAssetState\x12\x31\n\x0bprior_asset\x18\x05 \x01(\x0b\x32\x1c.google.cloud.asset.v1.Asset\"o\n\x0fPriorAssetState\x12!\n\x1dPRIOR_ASSET_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRESENT\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\x12\n\x0e\x44OES_NOT_EXIST\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04\"j\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf3\x05\n\x05\x41sset\x12/\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x31\n\x08resource\x18\x03 \x01(\x0b\x32\x1f.google.cloud.asset.v1.Resource\x12)\n\niam_policy\x18\x04 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12\x35\n\norg_policy\x18\x06 \x03(\x0b\x32!.google.cloud.orgpolicy.v1.Policy\x12N\n\raccess_policy\x18\x07 \x01(\x0b\x32\x35.google.identity.accesscontextmanager.v1.AccessPolicyH\x00\x12L\n\x0c\x61\x63\x63\x65ss_level\x18\x08 \x01(\x0b\x32\x34.google.identity.accesscontextmanager.v1.AccessLevelH\x00\x12V\n\x11service_perimeter\x18\t \x01(\x0b\x32\x39.google.identity.accesscontextmanager.v1.ServicePerimeterH\x00\x12\x39\n\x0cos_inventory\x18\x0c \x01(\x0b\x32#.google.cloud.osconfig.v1.Inventory\x12@\n\x0erelated_assets\x18\r \x01(\x0b\x32$.google.cloud.asset.v1.RelatedAssetsB\x02\x18\x01\x12:\n\rrelated_asset\x18\x0f \x01(\x0b\x32#.google.cloud.asset.v1.RelatedAsset\x12\x11\n\tancestors\x18\n \x03(\t:\'\xea\x41$\n\x1f\x63loudasset.googleapis.com/Asset\x12\x01*B\x17\n\x15\x61\x63\x63\x65ss_context_policy\"\xb2\x01\n\x08Resource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1e\n\x16\x64iscovery_document_uri\x18\x02 \x01(\t\x12\x16\n\x0e\x64iscovery_name\x18\x03 \x01(\t\x12\x14\n\x0cresource_url\x18\x04 \x01(\t\x12\x0e\n\x06parent\x18\x05 \x01(\t\x12%\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08location\x18\x08 \x01(\t\"\x98\x01\n\rRelatedAssets\x12N\n\x17relationship_attributes\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.RelationshipAttributes\x12\x33\n\x06\x61ssets\x18\x02 \x03(\x0b\x32#.google.cloud.asset.v1.RelatedAsset:\x02\x18\x01\"v\n\x16RelationshipAttributes\x12\x0c\n\x04type\x18\x04 \x01(\t\x12\x1c\n\x14source_resource_type\x18\x01 \x01(\t\x12\x1c\n\x14target_resource_type\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t:\x02\x18\x01\"\x85\x01\n\x0cRelatedAsset\x12\x33\n\x05\x61sset\x18\x01 \x01(\tB$\xfa\x41!\n\x1f\x63loudasset.googleapis.com/Asset\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x11\n\tancestors\x18\x03 \x03(\t\x12\x19\n\x11relationship_type\x18\x04 \x01(\t\"\xa1\x01\n\x03Tag\x12\x14\n\x07tag_key\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ntag_key_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x16\n\ttag_value\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0ctag_value_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\n\n\x08_tag_keyB\r\n\x0b_tag_key_idB\x0c\n\n_tag_valueB\x0f\n\r_tag_value_id\"\x7f\n\x13\x45\x66\x66\x65\x63tiveTagDetails\x12\x1e\n\x11\x61ttached_resource\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x02 \x03(\x0b\x32\x1a.google.cloud.asset.v1.TagB\x14\n\x12_attached_resource\"\xda\t\n\x14ResourceSearchResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x03 \x01(\t\x12\x0f\n\x07\x66olders\x18\x11 \x03(\t\x12\x14\n\x0corganization\x18\x12 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x10\n\x08location\x18\x06 \x01(\t\x12G\n\x06labels\x18\x07 \x03(\x0b\x32\x37.google.cloud.asset.v1.ResourceSearchResult.LabelsEntry\x12\x14\n\x0cnetwork_tags\x18\x08 \x03(\t\x12\x13\n\x07kms_key\x18\n \x01(\tB\x02\x18\x01\x12\x10\n\x08kms_keys\x18\x1c \x03(\t\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05state\x18\r \x01(\t\x12\x36\n\x15\x61\x64\x64itional_attributes\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x19parent_full_resource_name\x18\x13 \x01(\t\x12\x45\n\x13versioned_resources\x18\x10 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\x12\x43\n\x12\x61ttached_resources\x18\x14 \x03(\x0b\x32\'.google.cloud.asset.v1.AttachedResource\x12U\n\rrelationships\x18\x15 \x03(\x0b\x32>.google.cloud.asset.v1.ResourceSearchResult.RelationshipsEntry\x12\x14\n\x08tag_keys\x18\x17 \x03(\tB\x02\x18\x01\x12\x16\n\ntag_values\x18\x19 \x03(\tB\x02\x18\x01\x12\x19\n\rtag_value_ids\x18\x1a \x03(\tB\x02\x18\x01\x12(\n\x04tags\x18\x1d \x03(\x0b\x32\x1a.google.cloud.asset.v1.Tag\x12\x42\n\x0e\x65\x66\x66\x65\x63tive_tags\x18\x1e \x03(\x0b\x32*.google.cloud.asset.v1.EffectiveTagDetails\x12\x19\n\x11parent_asset_type\x18g \x01(\t\x12]\n\x12scc_security_marks\x18 \x03(\x0b\x32\x41.google.cloud.asset.v1.ResourceSearchResult.SccSecurityMarksEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a]\n\x12RelationshipsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.asset.v1.RelatedResources:\x02\x38\x01\x1a\x37\n\x15SccSecurityMarksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"O\n\x11VersionedResource\x12\x0f\n\x07version\x18\x01 \x01(\t\x12)\n\x08resource\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"m\n\x10\x41ttachedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x45\n\x13versioned_resources\x18\x03 \x03(\x0b\x32(.google.cloud.asset.v1.VersionedResource\"U\n\x10RelatedResources\x12\x41\n\x11related_resources\x18\x01 \x03(\x0b\x32&.google.cloud.asset.v1.RelatedResource\"A\n\x0fRelatedResource\x12\x12\n\nasset_type\x18\x01 \x01(\t\x12\x1a\n\x12\x66ull_resource_name\x18\x02 \x01(\t\"\x8f\x04\n\x15IamPolicySearchResult\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\nasset_type\x18\x05 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x12%\n\x06policy\x18\x03 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12M\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32\x38.google.cloud.asset.v1.IamPolicySearchResult.Explanation\x1a\xa1\x02\n\x0b\x45xplanation\x12m\n\x13matched_permissions\x18\x01 \x03(\x0b\x32P.google.cloud.asset.v1.IamPolicySearchResult.Explanation.MatchedPermissionsEntry\x1a\"\n\x0bPermissions\x12\x13\n\x0bpermissions\x18\x01 \x03(\t\x1a\x7f\n\x17MatchedPermissionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12S\n\x05value\x18\x02 \x01(\x0b\x32\x44.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions:\x02\x38\x01\"G\n\x16IamPolicyAnalysisState\x12\x1e\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x10.google.rpc.Code\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t\"\xc6\x01\n\x13\x43onditionEvaluation\x12T\n\x10\x65valuation_value\x18\x01 \x01(\x0e\x32:.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue\"Y\n\x0f\x45valuationValue\x12 \n\x1c\x45VALUATION_VALUE_UNSPECIFIED\x10\x00\x12\x08\n\x04TRUE\x10\x01\x12\t\n\x05\x46\x41LSE\x10\x02\x12\x0f\n\x0b\x43ONDITIONAL\x10\x03\"\xab\t\n\x17IamPolicyAnalysisResult\x12#\n\x1b\x61ttached_resource_full_name\x18\x01 \x01(\t\x12+\n\x0biam_binding\x18\x02 \x01(\x0b\x32\x16.google.iam.v1.Binding\x12^\n\x14\x61\x63\x63\x65ss_control_lists\x18\x03 \x03(\x0b\x32@.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList\x12R\n\ridentity_list\x18\x04 \x01(\x0b\x32;.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList\x12\x16\n\x0e\x66ully_explored\x18\x05 \x01(\x08\x1am\n\x08Resource\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x85\x01\n\x06\x41\x63\x63\x65ss\x12\x0e\n\x04role\x18\x01 \x01(\tH\x00\x12\x14\n\npermission\x18\x02 \x01(\tH\x00\x12\x45\n\x0e\x61nalysis_state\x18\x03 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisStateB\x0e\n\x0coneof_access\x1a_\n\x08Identity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0e\x61nalysis_state\x18\x02 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\x1a\x30\n\x04\x45\x64ge\x12\x13\n\x0bsource_node\x18\x01 \x01(\t\x12\x13\n\x0btarget_node\x18\x02 \x01(\t\x1a\xbf\x02\n\x11\x41\x63\x63\x65ssControlList\x12J\n\tresources\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource\x12G\n\x08\x61\x63\x63\x65sses\x18\x02 \x03(\x0b\x32\x35.google.cloud.asset.v1.IamPolicyAnalysisResult.Access\x12K\n\x0eresource_edges\x18\x03 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge\x12H\n\x14\x63ondition_evaluation\x18\x04 \x01(\x0b\x32*.google.cloud.asset.v1.ConditionEvaluation\x1a\xa5\x01\n\x0cIdentityList\x12K\n\nidentities\x18\x01 \x03(\x0b\x32\x37.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity\x12H\n\x0bgroup_edges\x18\x02 \x03(\x0b\x32\x33.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeB\x8d\x01\n\x19\x63om.google.cloud.asset.v1B\nAssetProtoP\x01Z/cloud.google.com/go/asset/apiv1/assetpb;assetpb\xf8\x01\x01\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1b\x06proto3"
20
20
 
21
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
22
22
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.31.0"
24
+ VERSION = "1.0.0"
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
@@ -941,10 +941,10 @@ module Google
941
941
  # folder number (such as "folders/123"), a project ID (such as
942
942
  # "projects/my-project-id"), or a project number (such as "projects/12345").
943
943
  #
944
- # To know how to get organization id, visit [here
944
+ # To know how to get organization ID, visit [here
945
945
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
946
946
  #
947
- # To know how to get folder or project id, visit [here
947
+ # To know how to get folder or project ID, visit [here
948
948
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
949
949
  # @!attribute [rw] resource_selector
950
950
  # @return [::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery::ResourceSelector]
@@ -1824,10 +1824,10 @@ module Google
1824
1824
  # folder number (such as "folders/123"), a project ID (such as
1825
1825
  # "projects/my-project-id"), or a project number (such as "projects/12345").
1826
1826
  #
1827
- # To know how to get organization id, visit [here
1827
+ # To know how to get organization ID, visit [here
1828
1828
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
1829
1829
  #
1830
- # To know how to get folder or project id, visit [here
1830
+ # To know how to get folder or project ID, visit [here
1831
1831
  # ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
1832
1832
  # @!attribute [rw] names
1833
1833
  # @return [::Array<::String>]
@@ -1957,8 +1957,8 @@ module Google
1957
1957
  # specific circumstances to support analysis results.
1958
1958
  # @!attribute [rw] values
1959
1959
  # @return [::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues]
1960
- # List of values to be used for this PolicyRule. This field can be set
1961
- # only in Policies for list constraints.
1960
+ # List of values to be used for this policy rule. This field can be set
1961
+ # only in policies for list constraints.
1962
1962
  # @!attribute [rw] allow_all
1963
1963
  # @return [::Boolean]
1964
1964
  # Setting this to true means that all values are allowed. This field can
@@ -1979,14 +1979,18 @@ module Google
1979
1979
  # @return [::Google::Cloud::Asset::V1::ConditionEvaluation]
1980
1980
  # The condition evaluation result for this rule.
1981
1981
  # Only populated if it meets all the following criteria:
1982
- # * there is a
1982
+ #
1983
+ # * There is a
1983
1984
  # {::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule#condition condition}
1984
- # defined for this rule
1985
- # * this rule is within a consolidated_policy
1986
- # * the consolidated_policy is within
1987
- # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer}
1985
+ # defined for this rule.
1986
+ # * This rule is within
1987
+ # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse::GovernedContainer#consolidated_policy AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy},
1988
1988
  # or
1989
- # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedResource AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource}
1989
+ # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset#consolidated_policy AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy}
1990
+ # when the
1991
+ # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset}
1992
+ # has
1993
+ # {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedAsset#governed_resource AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource}.
1990
1994
  class Rule
1991
1995
  include ::Google::Protobuf::MessageExts
1992
1996
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -298,10 +298,13 @@ module Google
298
298
  end
299
299
 
300
300
  # The key and value for a
301
- # [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview),
301
+ # [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview).
302
302
  # @!attribute [rw] tag_key
303
303
  # @return [::String]
304
304
  # TagKey namespaced name, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
305
+ # @!attribute [rw] tag_key_id
306
+ # @return [::String]
307
+ # TagKey ID, in the format of tagKeys/\\{TAG_KEY_ID}.
305
308
  # @!attribute [rw] tag_value
306
309
  # @return [::String]
307
310
  # TagValue namespaced name, in the format of
@@ -644,6 +647,7 @@ module Google
644
647
  # - `tagKeys:"123456789/env*"`
645
648
  # - `tagKeys="123456789/env"`
646
649
  # - `tagKeys:"env"`
650
+ # - `tagKeyIds="tagKeys/123"`
647
651
  # - `tagValues:"env"`
648
652
  # - `tagValues:"env/prod"`
649
653
  # - `tagValues:"123456789/env/prod*"`
@@ -665,6 +669,7 @@ module Google
665
669
  # - `effectiveTagKeys:"123456789/env*"`
666
670
  # - `effectiveTagKeys="123456789/env"`
667
671
  # - `effectiveTagKeys:"env"`
672
+ # - `effectiveTagKeyIds="tagKeys/123"`
668
673
  # - `effectiveTagValues:"env"`
669
674
  # - `effectiveTagValues:"env/prod"`
670
675
  # - `effectiveTagValues:"123456789/env/prod*"`
@@ -925,7 +930,7 @@ module Google
925
930
  extend ::Google::Protobuf::MessageExts::ClassMethods
926
931
  end
927
932
 
928
- # The Condition evaluation.
933
+ # The condition evaluation.
929
934
  # @!attribute [rw] evaluation_value
930
935
  # @return [::Google::Cloud::Asset::V1::ConditionEvaluation::EvaluationValue]
931
936
  # The evaluation result.
@@ -946,7 +951,7 @@ module Google
946
951
 
947
952
  # The evaluation result is `conditional` when the condition expression
948
953
  # contains variables that are either missing input values or have not been
949
- # supported by Analyzer yet.
954
+ # supported by Policy Analyzer yet.
950
955
  CONDITIONAL = 3
951
956
  end
952
957
  end
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.31.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-03-07 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common