google-cloud-asset-v1 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/asset/v1/asset_service/client.rb +100 -50
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +28 -6
- data/lib/google/cloud/asset/v1/asset_service/rest/client.rb +102 -49
- data/lib/google/cloud/asset/v1/asset_service/rest/operations.rb +33 -8
- data/lib/google/cloud/asset/v1/asset_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/asset/v1/asset_service_pb.rb +1 -1
- data/lib/google/cloud/asset/v1/asset_service_services_pb.rb +1 -1
- data/lib/google/cloud/asset/v1/assets_pb.rb +1 -2
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -0
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +66 -40
- data/proto_docs/google/cloud/asset/v1/assets.rb +18 -17
- metadata +4 -4
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Asset service definition.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
include Paths
|
36
39
|
|
37
40
|
# @private
|
@@ -184,6 +187,15 @@ module Google
|
|
184
187
|
@config
|
185
188
|
end
|
186
189
|
|
190
|
+
##
|
191
|
+
# The effective universe domain
|
192
|
+
#
|
193
|
+
# @return [String]
|
194
|
+
#
|
195
|
+
def universe_domain
|
196
|
+
@asset_service_stub.universe_domain
|
197
|
+
end
|
198
|
+
|
187
199
|
##
|
188
200
|
# Create a new AssetService REST client object.
|
189
201
|
#
|
@@ -211,8 +223,9 @@ module Google
|
|
211
223
|
credentials = @config.credentials
|
212
224
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
213
225
|
# but only if the default endpoint does not have a region prefix.
|
214
|
-
enable_self_signed_jwt = @config.endpoint
|
215
|
-
|
226
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
227
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
228
|
+
!@config.endpoint.split(".").first.include?("-"))
|
216
229
|
credentials ||= Credentials.default scope: @config.scope,
|
217
230
|
enable_self_signed_jwt: enable_self_signed_jwt
|
218
231
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -226,9 +239,15 @@ module Google
|
|
226
239
|
config.credentials = credentials
|
227
240
|
config.quota_project = @quota_project_id
|
228
241
|
config.endpoint = @config.endpoint
|
242
|
+
config.universe_domain = @config.universe_domain
|
229
243
|
end
|
230
244
|
|
231
|
-
@asset_service_stub = ::Google::Cloud::Asset::V1::AssetService::Rest::ServiceStub.new
|
245
|
+
@asset_service_stub = ::Google::Cloud::Asset::V1::AssetService::Rest::ServiceStub.new(
|
246
|
+
endpoint: @config.endpoint,
|
247
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
248
|
+
universe_domain: @config.universe_domain,
|
249
|
+
credentials: credentials
|
250
|
+
)
|
232
251
|
end
|
233
252
|
|
234
253
|
##
|
@@ -1122,31 +1141,31 @@ module Google
|
|
1122
1141
|
# * `labels.env:*` to find Google Cloud resources that have a label `env`.
|
1123
1142
|
# * `tagKeys:env` to find Google Cloud resources that have directly
|
1124
1143
|
# attached tags where the
|
1125
|
-
# [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
1126
|
-
#
|
1144
|
+
# [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
1145
|
+
# contains `env`.
|
1127
1146
|
# * `tagValues:prod*` to find Google Cloud resources that have directly
|
1128
1147
|
# attached tags where the
|
1129
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1130
|
-
#
|
1148
|
+
# [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1149
|
+
# contains a word prefixed by `prod`.
|
1131
1150
|
# * `tagValueIds=tagValues/123` to find Google Cloud resources that have
|
1132
1151
|
# directly attached tags where the
|
1133
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1134
|
-
#
|
1152
|
+
# [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1153
|
+
# is exactly `tagValues/123`.
|
1135
1154
|
# * `effectiveTagKeys:env` to find Google Cloud resources that have
|
1136
1155
|
# directly attached or inherited tags where the
|
1137
|
-
# [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
1138
|
-
#
|
1156
|
+
# [`TagKey.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
|
1157
|
+
# contains `env`.
|
1139
1158
|
# * `effectiveTagValues:prod*` to find Google Cloud resources that have
|
1140
1159
|
# directly attached or inherited tags where the
|
1141
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1142
|
-
#
|
1160
|
+
# [`TagValue.namespacedName`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1161
|
+
# contains a word prefixed by `prod`.
|
1143
1162
|
# * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that
|
1144
1163
|
# have directly attached or inherited tags where the
|
1145
|
-
# [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1146
|
-
#
|
1164
|
+
# [`TagValue.name`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
|
1165
|
+
# is exactly `tagValues/123`.
|
1147
1166
|
# * `kmsKey:key` to find Google Cloud resources encrypted with a
|
1148
1167
|
# customer-managed encryption key whose name contains `key` as a word. This
|
1149
|
-
# field is deprecated.
|
1168
|
+
# field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS
|
1150
1169
|
# key information.
|
1151
1170
|
# * `kmsKeys:key` to find Google Cloud resources encrypted with
|
1152
1171
|
# customer-managed encryption keys whose name contains the word `key`.
|
@@ -1158,6 +1177,10 @@ module Google
|
|
1158
1177
|
# Compute Engine instances that have relationships with `instance-group-1`
|
1159
1178
|
# in the Compute Engine instance group resource name, for relationship type
|
1160
1179
|
# `INSTANCE_TO_INSTANCEGROUP`.
|
1180
|
+
# * `sccSecurityMarks.key=value` to find Cloud resources that are attached
|
1181
|
+
# with security marks whose key is `key` and value is `value`.
|
1182
|
+
# * `sccSecurityMarks.key:*` to find Cloud resources that are attached with
|
1183
|
+
# security marks whose key is `key`.
|
1161
1184
|
# * `state:ACTIVE` to find Google Cloud resources whose state contains
|
1162
1185
|
# `ACTIVE` as a word.
|
1163
1186
|
# * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't
|
@@ -1179,7 +1202,7 @@ module Google
|
|
1179
1202
|
# @param asset_types [::Array<::String>]
|
1180
1203
|
# Optional. A list of asset types that this request searches for. If empty,
|
1181
1204
|
# it will search all the [searchable asset
|
1182
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
1205
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
1183
1206
|
#
|
1184
1207
|
# Regular expressions are also supported. For example:
|
1185
1208
|
#
|
@@ -1407,7 +1430,7 @@ module Google
|
|
1407
1430
|
# Optional. A list of asset types that the IAM policies are attached to. If
|
1408
1431
|
# empty, it will search the IAM policies that are attached to all the
|
1409
1432
|
# [searchable asset
|
1410
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
1433
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
1411
1434
|
#
|
1412
1435
|
# Regular expressions are also supported. For example:
|
1413
1436
|
#
|
@@ -1526,7 +1549,7 @@ module Google
|
|
1526
1549
|
# If both `analysis_query` and `saved_analysis_query` are provided, they
|
1527
1550
|
# will be merged together with the `saved_analysis_query` as base and
|
1528
1551
|
# the `analysis_query` as overrides. For more details of the merge behavior,
|
1529
|
-
#
|
1552
|
+
# refer to the
|
1530
1553
|
# [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
|
1531
1554
|
# page.
|
1532
1555
|
#
|
@@ -1642,7 +1665,7 @@ module Google
|
|
1642
1665
|
# If both `analysis_query` and `saved_analysis_query` are provided, they
|
1643
1666
|
# will be merged together with the `saved_analysis_query` as base and
|
1644
1667
|
# the `analysis_query` as overrides. For more details of the merge behavior,
|
1645
|
-
#
|
1668
|
+
# refer to the
|
1646
1669
|
# [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
|
1647
1670
|
# doc.
|
1648
1671
|
#
|
@@ -2440,7 +2463,7 @@ module Google
|
|
2440
2463
|
# Required. The names refer to the [full_resource_names]
|
2441
2464
|
# (https://cloud.google.com/asset-inventory/docs/resource-name-format)
|
2442
2465
|
# of [searchable asset
|
2443
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
2466
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
|
2444
2467
|
# A maximum of 20 resources' effective policies can be retrieved in a batch.
|
2445
2468
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2446
2469
|
# @yieldparam result [::Google::Cloud::Asset::V1::BatchGetEffectiveIamPoliciesResponse]
|
@@ -2530,12 +2553,15 @@ module Google
|
|
2530
2553
|
# @param filter [::String]
|
2531
2554
|
# The expression to filter
|
2532
2555
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results AnalyzeOrgPoliciesResponse.org_policy_results}.
|
2533
|
-
#
|
2534
|
-
#
|
2556
|
+
# Filtering is currently available for bare literal values and the following
|
2557
|
+
# fields:
|
2558
|
+
# * consolidated_policy.attached_resource
|
2559
|
+
# * consolidated_policy.rules.enforce
|
2535
2560
|
#
|
2536
|
-
#
|
2561
|
+
# When filtering by a specific field, the only supported operator is `=`.
|
2562
|
+
# For example, filtering by
|
2537
2563
|
# consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
|
2538
|
-
# will return the
|
2564
|
+
# will return all the Organization Policy results attached to "folders/001".
|
2539
2565
|
# @param page_size [::Integer]
|
2540
2566
|
# The maximum number of items to return per page. If unspecified,
|
2541
2567
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results AnalyzeOrgPoliciesResponse.org_policy_results}
|
@@ -2636,13 +2662,17 @@ module Google
|
|
2636
2662
|
# The analysis only contains organization policies for the provided
|
2637
2663
|
# constraint.
|
2638
2664
|
# @param filter [::String]
|
2639
|
-
# The expression to filter
|
2640
|
-
#
|
2641
|
-
#
|
2642
|
-
#
|
2643
|
-
#
|
2644
|
-
#
|
2645
|
-
#
|
2665
|
+
# The expression to filter
|
2666
|
+
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse#governed_containers AnalyzeOrgPolicyGovernedContainersResponse.governed_containers}.
|
2667
|
+
# Filtering is currently available for bare literal values and the following
|
2668
|
+
# fields:
|
2669
|
+
# * parent
|
2670
|
+
# * consolidated_policy.rules.enforce
|
2671
|
+
#
|
2672
|
+
# When filtering by a specific field, the only supported operator is `=`.
|
2673
|
+
# For example, filtering by
|
2674
|
+
# parent="//cloudresourcemanager.googleapis.com/folders/001"
|
2675
|
+
# will return all the containers under "folders/001".
|
2646
2676
|
# @param page_size [::Integer]
|
2647
2677
|
# The maximum number of items to return per page. If unspecified,
|
2648
2678
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse#governed_containers AnalyzeOrgPolicyGovernedContainersResponse.governed_containers}
|
@@ -2730,7 +2760,7 @@ module Google
|
|
2730
2760
|
#
|
2731
2761
|
# This RPC only returns either resources of types supported by [searchable
|
2732
2762
|
# asset
|
2733
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
2763
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
|
2734
2764
|
# or IAM policies.
|
2735
2765
|
#
|
2736
2766
|
# @overload analyze_org_policy_governed_assets(request, options = nil)
|
@@ -2760,18 +2790,33 @@ module Google
|
|
2760
2790
|
# analysis only contains analyzed organization policies for the provided
|
2761
2791
|
# constraint.
|
2762
2792
|
# @param filter [::String]
|
2763
|
-
# The expression to filter
|
2764
|
-
#
|
2765
|
-
#
|
2766
|
-
#
|
2767
|
-
#
|
2768
|
-
#
|
2769
|
-
#
|
2770
|
-
#
|
2771
|
-
#
|
2772
|
-
#
|
2773
|
-
#
|
2774
|
-
#
|
2793
|
+
# The expression to filter
|
2794
|
+
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse#governed_assets AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets}.
|
2795
|
+
#
|
2796
|
+
# For governed resources, filtering is currently available for bare literal
|
2797
|
+
# values and the following fields:
|
2798
|
+
# * governed_resource.project
|
2799
|
+
# * governed_resource.folders
|
2800
|
+
# * consolidated_policy.rules.enforce
|
2801
|
+
# When filtering by `governed_resource.project` or
|
2802
|
+
# `consolidated_policy.rules.enforce`, the only supported operator is `=`.
|
2803
|
+
# When filtering by `governed_resource.folders`, the supported operators
|
2804
|
+
# are `=` and `:`.
|
2805
|
+
# For example, filtering by `governed_resource.project="projects/12345678"`
|
2806
|
+
# will return all the governed resources under "projects/12345678",
|
2807
|
+
# including the project itself if applicable.
|
2808
|
+
#
|
2809
|
+
# For governed IAM policies, filtering is currently available for bare
|
2810
|
+
# literal values and the following fields:
|
2811
|
+
# * governed_iam_policy.project
|
2812
|
+
# * governed_iam_policy.folders
|
2813
|
+
# * consolidated_policy.rules.enforce
|
2814
|
+
# When filtering by `governed_iam_policy.project` or
|
2815
|
+
# `consolidated_policy.rules.enforce`, the only supported operator is `=`.
|
2816
|
+
# When filtering by `governed_iam_policy.folders`, the supported operators
|
2817
|
+
# are `=` and `:`.
|
2818
|
+
# For example, filtering by `governed_iam_policy.folders:"folders/12345678"`
|
2819
|
+
# will return all the governed IAM policies under "folders/001".
|
2775
2820
|
# @param page_size [::Integer]
|
2776
2821
|
# The maximum number of items to return per page. If unspecified,
|
2777
2822
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse#governed_assets AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets}
|
@@ -2871,9 +2916,9 @@ module Google
|
|
2871
2916
|
# end
|
2872
2917
|
#
|
2873
2918
|
# @!attribute [rw] endpoint
|
2874
|
-
#
|
2875
|
-
#
|
2876
|
-
# @return [::String]
|
2919
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
2920
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
2921
|
+
# @return [::String,nil]
|
2877
2922
|
# @!attribute [rw] credentials
|
2878
2923
|
# Credentials to send with calls. You may provide any of the following types:
|
2879
2924
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2910,13 +2955,20 @@ module Google
|
|
2910
2955
|
# @!attribute [rw] quota_project
|
2911
2956
|
# A separate project against which to charge quota.
|
2912
2957
|
# @return [::String]
|
2958
|
+
# @!attribute [rw] universe_domain
|
2959
|
+
# The universe domain within which to make requests. This determines the
|
2960
|
+
# default endpoint URL. The default value of nil uses the environment
|
2961
|
+
# universe (usually the default "googleapis.com" universe).
|
2962
|
+
# @return [::String,nil]
|
2913
2963
|
#
|
2914
2964
|
class Configuration
|
2915
2965
|
extend ::Gapic::Config
|
2916
2966
|
|
2967
|
+
# @private
|
2968
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
2917
2969
|
DEFAULT_ENDPOINT = "cloudasset.googleapis.com"
|
2918
2970
|
|
2919
|
-
config_attr :endpoint,
|
2971
|
+
config_attr :endpoint, nil, ::String, nil
|
2920
2972
|
config_attr :credentials, nil do |value|
|
2921
2973
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2922
2974
|
allowed.any? { |klass| klass === value }
|
@@ -2928,6 +2980,7 @@ module Google
|
|
2928
2980
|
config_attr :metadata, nil, ::Hash, nil
|
2929
2981
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2930
2982
|
config_attr :quota_project, nil, ::String, nil
|
2983
|
+
config_attr :universe_domain, nil, ::String, nil
|
2931
2984
|
|
2932
2985
|
# @private
|
2933
2986
|
def initialize parent_config = nil
|
@@ -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
|
+
DEFAULT_ENDPOINT_TEMPLATE = "cloudasset.$UNIVERSE_DOMAIN$"
|
31
|
+
|
29
32
|
# @private
|
30
33
|
attr_reader :operations_stub
|
31
34
|
|
@@ -60,6 +63,15 @@ module Google
|
|
60
63
|
@config
|
61
64
|
end
|
62
65
|
|
66
|
+
##
|
67
|
+
# The effective universe domain
|
68
|
+
#
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
def universe_domain
|
72
|
+
@operations_stub.universe_domain
|
73
|
+
end
|
74
|
+
|
63
75
|
##
|
64
76
|
# Create a new Operations client object.
|
65
77
|
#
|
@@ -84,8 +96,10 @@ module Google
|
|
84
96
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
85
97
|
|
86
98
|
@operations_stub = OperationsServiceStub.new(
|
87
|
-
endpoint:
|
88
|
-
|
99
|
+
endpoint: @config.endpoint,
|
100
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
101
|
+
universe_domain: @config.universe_domain,
|
102
|
+
credentials: credentials
|
89
103
|
)
|
90
104
|
|
91
105
|
# Used by an LRO wrapper for some methods of this service
|
@@ -478,9 +492,9 @@ module Google
|
|
478
492
|
# end
|
479
493
|
#
|
480
494
|
# @!attribute [rw] endpoint
|
481
|
-
#
|
482
|
-
#
|
483
|
-
# @return [::String]
|
495
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
496
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
497
|
+
# @return [::String,nil]
|
484
498
|
# @!attribute [rw] credentials
|
485
499
|
# Credentials to send with calls. You may provide any of the following types:
|
486
500
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -517,13 +531,20 @@ module Google
|
|
517
531
|
# @!attribute [rw] quota_project
|
518
532
|
# A separate project against which to charge quota.
|
519
533
|
# @return [::String]
|
534
|
+
# @!attribute [rw] universe_domain
|
535
|
+
# The universe domain within which to make requests. This determines the
|
536
|
+
# default endpoint URL. The default value of nil uses the environment
|
537
|
+
# universe (usually the default "googleapis.com" universe).
|
538
|
+
# @return [::String,nil]
|
520
539
|
#
|
521
540
|
class Configuration
|
522
541
|
extend ::Gapic::Config
|
523
542
|
|
543
|
+
# @private
|
544
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
524
545
|
DEFAULT_ENDPOINT = "cloudasset.googleapis.com"
|
525
546
|
|
526
|
-
config_attr :endpoint,
|
547
|
+
config_attr :endpoint, nil, ::String, nil
|
527
548
|
config_attr :credentials, nil do |value|
|
528
549
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
529
550
|
allowed.any? { |klass| klass === value }
|
@@ -535,6 +556,7 @@ module Google
|
|
535
556
|
config_attr :metadata, nil, ::Hash, nil
|
536
557
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
537
558
|
config_attr :quota_project, nil, ::String, nil
|
559
|
+
config_attr :universe_domain, nil, ::String, nil
|
538
560
|
|
539
561
|
# @private
|
540
562
|
def initialize parent_config = nil
|
@@ -617,12 +639,15 @@ module Google
|
|
617
639
|
# Service stub contains baseline method implementations
|
618
640
|
# including transcoding, making the REST call, and deserialing the response.
|
619
641
|
class OperationsServiceStub
|
620
|
-
def initialize endpoint:, credentials:
|
642
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
621
643
|
# These require statements are intentionally placed here to initialize
|
622
644
|
# the REST modules only when it's required.
|
623
645
|
require "gapic/rest"
|
624
646
|
|
625
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
647
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
648
|
+
endpoint_template: endpoint_template,
|
649
|
+
universe_domain: universe_domain,
|
650
|
+
credentials: credentials
|
626
651
|
end
|
627
652
|
|
628
653
|
##
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: true,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the export_assets REST call
|
45
57
|
#
|
@@ -20,7 +20,7 @@ require 'google/rpc/status_pb'
|
|
20
20
|
require 'google/type/expr_pb'
|
21
21
|
|
22
22
|
|
23
|
-
descriptor_data = "\n)google/cloud/asset/v1/asset_service.proto\x12\x15google.cloud.asset.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/cloud/asset/v1/assets.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/expr.proto\"[\n#AnalyzeIamPolicyLongrunningMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xa9\x02\n\x13\x45xportAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12?\n\routput_config\x18\x05 \x01(\x0b\x32#.google.cloud.asset.v1.OutputConfigB\x03\xe0\x41\x02\x12\x1a\n\x12relationship_types\x18\x06 \x03(\t\"\xbd\x01\n\x14\x45xportAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\routput_config\x18\x02 \x01(\x0b\x32#.google.cloud.asset.v1.OutputConfig\x12:\n\routput_result\x18\x03 \x01(\x0b\x32#.google.cloud.asset.v1.OutputResult\"\x8d\x02\n\x11ListAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x1a\n\x12relationship_types\x18\x07 \x03(\t\"\x8a\x01\n\x12ListAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x06\x61ssets\x18\x02 \x03(\x0b\x32\x1c.google.cloud.asset.v1.Asset\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8e\x02\n\x1c\x42\x61tchGetAssetsHistoryRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x03 \x01(\x0e\x32\".google.cloud.asset.v1.ContentTypeB\x03\xe0\x41\x01\x12@\n\x10read_time_window\x18\x04 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindowB\x03\xe0\x41\x01\x12\x1f\n\x12relationship_types\x18\x05 \x03(\tB\x03\xe0\x41\x01\"U\n\x1d\x42\x61tchGetAssetsHistoryResponse\x12\x34\n\x06\x61ssets\x18\x01 \x03(\x0b\x32$.google.cloud.asset.v1.TemporalAsset\"n\n\x11\x43reateFeedRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x66\x65\x65\x64_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12.\n\x04\x66\x65\x65\x64\x18\x03 \x01(\x0b\x32\x1b.google.cloud.asset.v1.FeedB\x03\xe0\x41\x02\"F\n\x0eGetFeedRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudasset.googleapis.com/Feed\"\'\n\x10ListFeedsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n\x11ListFeedsResponse\x12*\n\x05\x66\x65\x65\x64s\x18\x01 \x03(\x0b\x32\x1b.google.cloud.asset.v1.Feed\"y\n\x11UpdateFeedRequest\x12.\n\x04\x66\x65\x65\x64\x18\x01 \x01(\x0b\x32\x1b.google.cloud.asset.v1.FeedB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"I\n\x11\x44\x65leteFeedRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudasset.googleapis.com/Feed\"\xab\x01\n\x0cOutputConfig\x12@\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32%.google.cloud.asset.v1.GcsDestinationH\x00\x12J\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32*.google.cloud.asset.v1.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"V\n\x0cOutputResult\x12<\n\ngcs_result\x18\x01 \x01(\x0b\x32&.google.cloud.asset.v1.GcsOutputResultH\x00\x42\x08\n\x06result\"\x1f\n\x0fGcsOutputResult\x12\x0c\n\x04uris\x18\x01 \x03(\t\"C\n\x0eGcsDestination\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x14\n\nuri_prefix\x18\x02 \x01(\tH\x00\x42\x0c\n\nobject_uri\"\xb4\x01\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x12<\n\x0epartition_spec\x18\x04 \x01(\x0b\x32$.google.cloud.asset.v1.PartitionSpec\x12&\n\x1eseparate_tables_per_asset_type\x18\x05 \x01(\x08\"\xa9\x01\n\rPartitionSpec\x12H\n\rpartition_key\x18\x01 \x01(\x0e\x32\x31.google.cloud.asset.v1.PartitionSpec.PartitionKey\"N\n\x0cPartitionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\x00\x12\r\n\tREAD_TIME\x10\x01\x12\x10\n\x0cREQUEST_TIME\x10\x02\"\"\n\x11PubsubDestination\x12\r\n\x05topic\x18\x01 \x01(\t\"i\n\x10\x46\x65\x65\x64OutputConfig\x12\x46\n\x12pubsub_destination\x18\x01 \x01(\x0b\x32(.google.cloud.asset.v1.PubsubDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\x9d\x03\n\x04\x46\x65\x65\x64\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12H\n\x12\x66\x65\x65\x64_output_config\x18\x05 \x01(\x0b\x32\'.google.cloud.asset.v1.FeedOutputConfigB\x03\xe0\x41\x02\x12$\n\tcondition\x18\x06 \x01(\x0b\x32\x11.google.type.Expr\x12\x1a\n\x12relationship_types\x18\x07 \x03(\t:\x91\x01\xea\x41\x8d\x01\n\x1e\x63loudasset.googleapis.com/Feed\x12\x1fprojects/{project}/feeds/{feed}\x12\x1d\x66olders/{folder}/feeds/{feed}\x12)organizations/{organization}/feeds/{feed} \x01\"\xd9\x01\n\x19SearchAllResourcesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61sset_types\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n\x1aSearchAllResourcesResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32+.google.cloud.asset.v1.ResourceSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x1bSearchAllIamPoliciesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61sset_types\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x07 \x01(\tB\x03\xe0\x41\x01\"v\n\x1cSearchAllIamPoliciesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.google.cloud.asset.v1.IamPolicySearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc6\x07\n\x16IamPolicyAnalysisQuery\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\x11resource_selector\x18\x02 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorB\x03\xe0\x41\x01\x12^\n\x11identity_selector\x18\x03 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorB\x03\xe0\x41\x01\x12Z\n\x0f\x61\x63\x63\x65ss_selector\x18\x04 \x01(\x0b\x32<.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorB\x03\xe0\x41\x01\x12K\n\x07options\x18\x05 \x01(\x0b\x32\x35.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsB\x03\xe0\x41\x01\x12^\n\x11\x63ondition_context\x18\x06 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextB\x03\xe0\x41\x01\x1a\x33\n\x10ResourceSelector\x12\x1f\n\x12\x66ull_resource_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a)\n\x10IdentitySelector\x12\x15\n\x08identity\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a>\n\x0e\x41\x63\x63\x65ssSelector\x12\x12\n\x05roles\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x18\n\x0bpermissions\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x07Options\x12\x1a\n\rexpand_groups\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0c\x65xpand_roles\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x65xpand_resources\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15output_resource_edges\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12output_group_edges\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x32\n%analyze_service_account_impersonation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x1aT\n\x10\x43onditionContext\x12\x31\n\x0b\x61\x63\x63\x65ss_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x42\r\n\x0bTimeContext\"\xc3\x01\n\x17\x41nalyzeIamPolicyRequest\x12J\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryB\x03\xe0\x41\x02\x12!\n\x14saved_analysis_query\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\x8a\x04\n\x18\x41nalyzeIamPolicyResponse\x12X\n\rmain_analysis\x18\x01 \x01(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis\x12q\n&service_account_impersonation_analysis\x18\x02 \x03(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis\x12\x16\n\x0e\x66ully_explored\x18\x03 \x01(\x08\x1a\x88\x02\n\x11IamPolicyAnalysis\x12\x45\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQuery\x12H\n\x10\x61nalysis_results\x18\x02 \x03(\x0b\x32..google.cloud.asset.v1.IamPolicyAnalysisResult\x12\x16\n\x0e\x66ully_explored\x18\x03 \x01(\x08\x12J\n\x13non_critical_errors\x18\x05 \x03(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\"\xb4\x04\n\x1dIamPolicyAnalysisOutputConfig\x12^\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x43.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationH\x00\x12h\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32H.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationH\x00\x1a\"\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\x95\x02\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0ctable_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12l\n\rpartition_key\x18\x03 \x01(\x0e\x32U.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey\x12\x1e\n\x11write_disposition\x18\x04 \x01(\tB\x03\xe0\x41\x01\"?\n\x0cPartitionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\x00\x12\x10\n\x0cREQUEST_TIME\x10\x01\x42\r\n\x0b\x64\x65stination\"\xe5\x01\n\"AnalyzeIamPolicyLongrunningRequest\x12J\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryB\x03\xe0\x41\x02\x12!\n\x14saved_analysis_query\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12P\n\routput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigB\x03\xe0\x41\x02\"%\n#AnalyzeIamPolicyLongrunningResponse\"\xb7\x05\n\nSavedQuery\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0clast_updater\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x07 \x03(\x0b\x32-.google.cloud.asset.v1.SavedQuery.LabelsEntry\x12?\n\x07\x63ontent\x18\x08 \x01(\x0b\x32..google.cloud.asset.v1.SavedQuery.QueryContent\x1as\n\x0cQueryContent\x12R\n\x19iam_policy_analysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryH\x00\x42\x0f\n\rquery_content\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xbf\x01\xea\x41\xbb\x01\n$cloudasset.googleapis.com/SavedQuery\x12-projects/{project}/savedQueries/{saved_query}\x12+folders/{folder}/savedQueries/{saved_query}\x12\x37organizations/{organization}/savedQueries/{saved_query}\"\xb1\x01\n\x17\x43reateSavedQueryRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudasset.googleapis.com/SavedQuery\x12;\n\x0bsaved_query\x18\x02 \x01(\x0b\x32!.google.cloud.asset.v1.SavedQueryB\x03\xe0\x41\x02\x12\x1b\n\x0esaved_query_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"R\n\x14GetSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudasset.googleapis.com/SavedQuery\"\x9d\x01\n\x17ListSavedQueriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudasset.googleapis.com/SavedQuery\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"m\n\x18ListSavedQueriesResponse\x12\x38\n\rsaved_queries\x18\x01 \x03(\x0b\x32!.google.cloud.asset.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8c\x01\n\x17UpdateSavedQueryRequest\x12;\n\x0bsaved_query\x18\x01 \x01(\x0b\x32!.google.cloud.asset.v1.SavedQueryB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x17\x44\x65leteSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudasset.googleapis.com/SavedQuery\"\xd6\x01\n\x12\x41nalyzeMoveRequest\x12\x15\n\x08resource\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12\x64\x65stination_parent\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x04view\x18\x03 \x01(\x0e\x32\x36.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView\"B\n\x0c\x41nalysisView\x12\x1d\n\x19\x41NALYSIS_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\"Q\n\x13\x41nalyzeMoveResponse\x12:\n\rmove_analysis\x18\x01 \x03(\x0b\x32#.google.cloud.asset.v1.MoveAnalysis\"\x92\x01\n\x0cMoveAnalysis\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12=\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32).google.cloud.asset.v1.MoveAnalysisResultH\x00\x12#\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x42\x08\n\x06result\"~\n\x12MoveAnalysisResult\x12\x33\n\x08\x62lockers\x18\x01 \x03(\x0b\x32!.google.cloud.asset.v1.MoveImpact\x12\x33\n\x08warnings\x18\x02 \x03(\x0b\x32!.google.cloud.asset.v1.MoveImpact\"\x1c\n\nMoveImpact\x12\x0e\n\x06\x64\x65tail\x18\x01 \x01(\t\"\xd7\x01\n\x17QueryAssetsOutputConfig\x12`\n\x14\x62igquery_destination\x18\x01 \x01(\x0b\x32\x42.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination\x1aZ\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11write_disposition\x18\x03 \x01(\t\"\xbe\x03\n\x12QueryAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12\x18\n\tstatement\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1c\n\rjob_reference\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12/\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x42\n\x10read_time_window\x18\x07 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindowB\x03\xe0\x41\x01H\x01\x12\x34\n\tread_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x01\x12J\n\routput_config\x18\t \x01(\x0b\x32..google.cloud.asset.v1.QueryAssetsOutputConfigB\x03\xe0\x41\x01\x42\x07\n\x05queryB\x06\n\x04time\"\xf0\x01\n\x13QueryAssetsResponse\x12\x15\n\rjob_reference\x18\x01 \x01(\t\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\x12#\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12:\n\x0cquery_result\x18\x04 \x01(\x0b\x32\".google.cloud.asset.v1.QueryResultH\x00\x12G\n\routput_config\x18\x05 \x01(\x0b\x32..google.cloud.asset.v1.QueryAssetsOutputConfigH\x00\x42\n\n\x08response\"\x95\x01\n\x0bQueryResult\x12%\n\x04rows\x18\x01 \x03(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x06schema\x18\x02 \x01(\x0b\x32\".google.cloud.asset.v1.TableSchema\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_rows\x18\x04 \x01(\x03\"F\n\x0bTableSchema\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.google.cloud.asset.v1.TableFieldSchema\"v\n\x10TableFieldSchema\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12\x37\n\x06\x66ields\x18\x04 \x03(\x0b\x32\'.google.cloud.asset.v1.TableFieldSchema\"Y\n#BatchGetEffectiveIamPoliciesRequest\x12\x18\n\x05scope\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\x12\x01*\x12\x18\n\x05names\x18\x03 \x03(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\"\xfe\x02\n$BatchGetEffectiveIamPoliciesResponse\x12\x66\n\x0epolicy_results\x18\x02 \x03(\x0b\x32N.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy\x1a\xed\x01\n\x12\x45\x66\x66\x65\x63tiveIamPolicy\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12k\n\x08policies\x18\x02 \x03(\x0b\x32Y.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo\x1aN\n\nPolicyInfo\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12%\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.Policy\"\xb2\x03\n\x11\x41nalyzerOrgPolicy\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12\x18\n\x10\x61pplied_resource\x18\x05 \x01(\t\x12<\n\x05rules\x18\x02 \x03(\x0b\x32-.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule\x12\x1b\n\x13inherit_from_parent\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x1a\xfd\x01\n\x04Rule\x12L\n\x06values\x18\x03 \x01(\x0b\x32:.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValuesH\x00\x12\x13\n\tallow_all\x18\x04 \x01(\x08H\x00\x12\x12\n\x08\x64\x65ny_all\x18\x05 \x01(\x08H\x00\x12\x11\n\x07\x65nforce\x18\x06 \x01(\x08H\x00\x12$\n\tcondition\x18\x07 \x01(\x0b\x32\x11.google.type.Expr\x1a=\n\x0cStringValues\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x12\x15\n\rdenied_values\x18\x02 \x03(\tB\x06\n\x04kind\"\x91\n\n\x1b\x41nalyzerOrgPolicyConstraint\x12\x62\n\x19google_defined_constraint\x18\x01 \x01(\x0b\x32=.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintH\x00\x12`\n\x11\x63ustom_constraint\x18\x02 \x01(\x0b\x32\x43.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintH\x00\x1a\xbf\x04\n\nConstraint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12k\n\x12\x63onstraint_default\x18\x04 \x01(\x0e\x32O.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault\x12g\n\x0flist_constraint\x18\x05 \x01(\x0b\x32L.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintH\x00\x12m\n\x12\x62oolean_constraint\x18\x06 \x01(\x0b\x32O.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintH\x00\x1a=\n\x0eListConstraint\x12\x13\n\x0bsupports_in\x18\x01 \x01(\x08\x12\x16\n\x0esupports_under\x18\x02 \x01(\x08\x1a\x13\n\x11\x42ooleanConstraint\"L\n\x11\x43onstraintDefault\x12\"\n\x1e\x43ONSTRAINT_DEFAULT_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x42\x11\n\x0f\x63onstraint_type\x1a\xd0\x03\n\x10\x43ustomConstraint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0eresource_types\x18\x02 \x03(\t\x12\x64\n\x0cmethod_types\x18\x03 \x03(\x0e\x32N.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType\x12\x11\n\tcondition\x18\x04 \x01(\t\x12\x63\n\x0b\x61\x63tion_type\x18\x05 \x01(\x0e\x32N.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"M\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\">\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x42\x17\n\x15\x63onstraint_definition\"\x92\x01\n\x19\x41nalyzeOrgPoliciesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\xf8\x02\n\x1a\x41nalyzeOrgPoliciesResponse\x12]\n\x12org_policy_results\x18\x01 \x03(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1a\x99\x01\n\x0fOrgPolicyResult\x12\x45\n\x13\x63onsolidated_policy\x18\x01 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x02 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\"\xa2\x01\n)AnalyzeOrgPolicyGovernedContainersRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\xc9\x03\n*AnalyzeOrgPolicyGovernedContainersResponse\x12p\n\x13governed_containers\x18\x01 \x03(\x0b\x32S.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1a\xc7\x01\n\x11GovernedContainer\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x45\n\x13\x63onsolidated_policy\x18\x03 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x04 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\"\x9e\x01\n%AnalyzeOrgPolicyGovernedAssetsRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\x80\x07\n&AnalyzeOrgPolicyGovernedAssetsResponse\x12\x64\n\x0fgoverned_assets\x18\x01 \x03(\x0b\x32K.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1av\n\x10GovernedResource\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x05 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x1a\x8d\x01\n\x11GovernedIamPolicy\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12%\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12\x0f\n\x07project\x18\x05 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x1a\x86\x03\n\rGovernedAsset\x12k\n\x11governed_resource\x18\x01 \x01(\x0b\x32N.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceH\x00\x12n\n\x13governed_iam_policy\x18\x02 \x01(\x0b\x32O.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyH\x00\x12\x45\n\x13\x63onsolidated_policy\x18\x03 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x04 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicyB\x10\n\x0egoverned_asset*\x90\x01\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08RESOURCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x12\x0e\n\nORG_POLICY\x10\x04\x12\x11\n\rACCESS_POLICY\x10\x05\x12\x10\n\x0cOS_INVENTORY\x10\x06\x12\x10\n\x0cRELATIONSHIP\x10\x07\x32\xd1 \n\x0c\x41ssetService\x12\xde\x01\n\x0c\x45xportAssets\x12*.google.cloud.asset.v1.ExportAssetsRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02\"\"\x1d/v1/{parent=*/*}:exportAssets:\x01*\xca\x41W\n*google.cloud.asset.v1.ExportAssetsResponse\x12)google.cloud.asset.v1.ExportAssetsRequest\x12\x8b\x01\n\nListAssets\x12(.google.cloud.asset.v1.ListAssetsRequest\x1a).google.cloud.asset.v1.ListAssetsResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=*/*}/assets\xda\x41\x06parent\x12\xb2\x01\n\x15\x42\x61tchGetAssetsHistory\x12\x33.google.cloud.asset.v1.BatchGetAssetsHistoryRequest\x1a\x34.google.cloud.asset.v1.BatchGetAssetsHistoryResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{parent=*/*}:batchGetAssetsHistory\x12\x7f\n\nCreateFeed\x12(.google.cloud.asset.v1.CreateFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"*\x82\xd3\xe4\x93\x02\x1b\"\x16/v1/{parent=*/*}/feeds:\x01*\xda\x41\x06parent\x12t\n\x07GetFeed\x12%.google.cloud.asset.v1.GetFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"%\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/{name=*/*/feeds/*}\xda\x41\x04name\x12\x87\x01\n\tListFeeds\x12\'.google.cloud.asset.v1.ListFeedsRequest\x1a(.google.cloud.asset.v1.ListFeedsResponse\"\'\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/{parent=*/*}/feeds\xda\x41\x06parent\x12\x82\x01\n\nUpdateFeed\x12(.google.cloud.asset.v1.UpdateFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"-\x82\xd3\xe4\x93\x02 2\x1b/v1/{feed.name=*/*/feeds/*}:\x01*\xda\x41\x04\x66\x65\x65\x64\x12u\n\nDeleteFeed\x12(.google.cloud.asset.v1.DeleteFeedRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x18*\x16/v1/{name=*/*/feeds/*}\xda\x41\x04name\x12\xbf\x01\n\x12SearchAllResources\x12\x30.google.cloud.asset.v1.SearchAllResourcesRequest\x1a\x31.google.cloud.asset.v1.SearchAllResourcesResponse\"D\x82\xd3\xe4\x93\x02$\x12\"/v1/{scope=*/*}:searchAllResources\xda\x41\x17scope,query,asset_types\x12\xbb\x01\n\x14SearchAllIamPolicies\x12\x32.google.cloud.asset.v1.SearchAllIamPoliciesRequest\x1a\x33.google.cloud.asset.v1.SearchAllIamPoliciesResponse\":\x82\xd3\xe4\x93\x02&\x12$/v1/{scope=*/*}:searchAllIamPolicies\xda\x41\x0bscope,query\x12\xac\x01\n\x10\x41nalyzeIamPolicy\x12..google.cloud.asset.v1.AnalyzeIamPolicyRequest\x1a/.google.cloud.asset.v1.AnalyzeIamPolicyResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{analysis_query.scope=*/*}:analyzeIamPolicy\x12\xb8\x02\n\x1b\x41nalyzeIamPolicyLongrunning\x12\x39.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x01\x82\xd3\xe4\x93\x02?\":/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning:\x01*\xca\x41v\n9google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse\x12\x39google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata\x12\x8c\x01\n\x0b\x41nalyzeMove\x12).google.cloud.asset.v1.AnalyzeMoveRequest\x1a*.google.cloud.asset.v1.AnalyzeMoveResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{resource=*/*}:analyzeMove\x12\x8d\x01\n\x0bQueryAssets\x12).google.cloud.asset.v1.QueryAssetsRequest\x1a*.google.cloud.asset.v1.QueryAssetsResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/v1/{parent=*/*}:queryAssets:\x01*\x12\xbd\x01\n\x10\x43reateSavedQuery\x12..google.cloud.asset.v1.CreateSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\"V\x82\xd3\xe4\x93\x02,\"\x1d/v1/{parent=*/*}/savedQueries:\x0bsaved_query\xda\x41!parent,saved_query,saved_query_id\x12\x8d\x01\n\rGetSavedQuery\x12+.google.cloud.asset.v1.GetSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\",\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=*/*/savedQueries/*}\xda\x41\x04name\x12\xa3\x01\n\x10ListSavedQueries\x12..google.cloud.asset.v1.ListSavedQueriesRequest\x1a/.google.cloud.asset.v1.ListSavedQueriesResponse\".\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=*/*}/savedQueries\xda\x41\x06parent\x12\xbf\x01\n\x10UpdateSavedQuery\x12..google.cloud.asset.v1.UpdateSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\"X\x82\xd3\xe4\x93\x02\x38\x32)/v1/{saved_query.name=*/*/savedQueries/*}:\x0bsaved_query\xda\x41\x17saved_query,update_mask\x12\x88\x01\n\x10\x44\x65leteSavedQuery\x12..google.cloud.asset.v1.DeleteSavedQueryRequest\x1a\x16.google.protobuf.Empty\",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=*/*/savedQueries/*}\xda\x41\x04name\x12\xce\x01\n\x1c\x42\x61tchGetEffectiveIamPolicies\x12:.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest\x1a;.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{scope=*/*}/effectiveIamPolicies:batchGet\x12\xbf\x01\n\x12\x41nalyzeOrgPolicies\x12\x30.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest\x1a\x31.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse\"D\x82\xd3\xe4\x93\x02$\x12\"/v1/{scope=*/*}:analyzeOrgPolicies\xda\x41\x17scope,constraint,filter\x12\xff\x01\n\"AnalyzeOrgPolicyGovernedContainers\x12@.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest\x1a\x41.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse\"T\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{scope=*/*}:analyzeOrgPolicyGovernedContainers\xda\x41\x17scope,constraint,filter\x12\xef\x01\n\x1e\x41nalyzeOrgPolicyGovernedAssets\x12<.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest\x1a=.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse\"P\x82\xd3\xe4\x93\x02\x30\x12./v1/{scope=*/*}:analyzeOrgPolicyGovernedAssets\xda\x41\x17scope,constraint,filter\x1aM\xca\x41\x19\x63loudasset.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x91\x01\n\x19\x63om.google.cloud.asset.v1B\x11\x41ssetServiceProtoP\x01Z/cloud.google.com/go/asset/apiv1/assetpb;assetpb\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1b\x06proto3"
|
23
|
+
descriptor_data = "\n)google/cloud/asset/v1/asset_service.proto\x12\x15google.cloud.asset.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/cloud/asset/v1/assets.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/expr.proto\"[\n#AnalyzeIamPolicyLongrunningMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xa9\x02\n\x13\x45xportAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12?\n\routput_config\x18\x05 \x01(\x0b\x32#.google.cloud.asset.v1.OutputConfigB\x03\xe0\x41\x02\x12\x1a\n\x12relationship_types\x18\x06 \x03(\t\"\xbd\x01\n\x14\x45xportAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\routput_config\x18\x02 \x01(\x0b\x32#.google.cloud.asset.v1.OutputConfig\x12:\n\routput_result\x18\x03 \x01(\x0b\x32#.google.cloud.asset.v1.OutputResult\"\x8d\x02\n\x11ListAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12-\n\tread_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x1a\n\x12relationship_types\x18\x07 \x03(\t\"\x8a\x01\n\x12ListAssetsResponse\x12-\n\tread_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x06\x61ssets\x18\x02 \x03(\x0b\x32\x1c.google.cloud.asset.v1.Asset\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"\x8e\x02\n\x1c\x42\x61tchGetAssetsHistoryRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12=\n\x0c\x63ontent_type\x18\x03 \x01(\x0e\x32\".google.cloud.asset.v1.ContentTypeB\x03\xe0\x41\x01\x12@\n\x10read_time_window\x18\x04 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindowB\x03\xe0\x41\x01\x12\x1f\n\x12relationship_types\x18\x05 \x03(\tB\x03\xe0\x41\x01\"U\n\x1d\x42\x61tchGetAssetsHistoryResponse\x12\x34\n\x06\x61ssets\x18\x01 \x03(\x0b\x32$.google.cloud.asset.v1.TemporalAsset\"n\n\x11\x43reateFeedRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x66\x65\x65\x64_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12.\n\x04\x66\x65\x65\x64\x18\x03 \x01(\x0b\x32\x1b.google.cloud.asset.v1.FeedB\x03\xe0\x41\x02\"F\n\x0eGetFeedRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudasset.googleapis.com/Feed\"\'\n\x10ListFeedsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n\x11ListFeedsResponse\x12*\n\x05\x66\x65\x65\x64s\x18\x01 \x03(\x0b\x32\x1b.google.cloud.asset.v1.Feed\"y\n\x11UpdateFeedRequest\x12.\n\x04\x66\x65\x65\x64\x18\x01 \x01(\x0b\x32\x1b.google.cloud.asset.v1.FeedB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"I\n\x11\x44\x65leteFeedRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudasset.googleapis.com/Feed\"\xab\x01\n\x0cOutputConfig\x12@\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32%.google.cloud.asset.v1.GcsDestinationH\x00\x12J\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32*.google.cloud.asset.v1.BigQueryDestinationH\x00\x42\r\n\x0b\x64\x65stination\"V\n\x0cOutputResult\x12<\n\ngcs_result\x18\x01 \x01(\x0b\x32&.google.cloud.asset.v1.GcsOutputResultH\x00\x42\x08\n\x06result\"\x1f\n\x0fGcsOutputResult\x12\x0c\n\x04uris\x18\x01 \x03(\t\"C\n\x0eGcsDestination\x12\r\n\x03uri\x18\x01 \x01(\tH\x00\x12\x14\n\nuri_prefix\x18\x02 \x01(\tH\x00\x42\x0c\n\nobject_uri\"\xb4\x01\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x12<\n\x0epartition_spec\x18\x04 \x01(\x0b\x32$.google.cloud.asset.v1.PartitionSpec\x12&\n\x1eseparate_tables_per_asset_type\x18\x05 \x01(\x08\"\xa9\x01\n\rPartitionSpec\x12H\n\rpartition_key\x18\x01 \x01(\x0e\x32\x31.google.cloud.asset.v1.PartitionSpec.PartitionKey\"N\n\x0cPartitionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\x00\x12\r\n\tREAD_TIME\x10\x01\x12\x10\n\x0cREQUEST_TIME\x10\x02\"\"\n\x11PubsubDestination\x12\r\n\x05topic\x18\x01 \x01(\t\"i\n\x10\x46\x65\x65\x64OutputConfig\x12\x46\n\x12pubsub_destination\x18\x01 \x01(\x0b\x32(.google.cloud.asset.v1.PubsubDestinationH\x00\x42\r\n\x0b\x64\x65stination\"\x9d\x03\n\x04\x46\x65\x65\x64\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x61sset_names\x18\x02 \x03(\t\x12\x13\n\x0b\x61sset_types\x18\x03 \x03(\t\x12\x38\n\x0c\x63ontent_type\x18\x04 \x01(\x0e\x32\".google.cloud.asset.v1.ContentType\x12H\n\x12\x66\x65\x65\x64_output_config\x18\x05 \x01(\x0b\x32\'.google.cloud.asset.v1.FeedOutputConfigB\x03\xe0\x41\x02\x12$\n\tcondition\x18\x06 \x01(\x0b\x32\x11.google.type.Expr\x12\x1a\n\x12relationship_types\x18\x07 \x03(\t:\x91\x01\xea\x41\x8d\x01\n\x1e\x63loudasset.googleapis.com/Feed\x12\x1fprojects/{project}/feeds/{feed}\x12\x1d\x66olders/{folder}/feeds/{feed}\x12)organizations/{organization}/feeds/{feed} \x01\"\xd9\x01\n\x19SearchAllResourcesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61sset_types\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n\x1aSearchAllResourcesResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32+.google.cloud.asset.v1.ResourceSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x1bSearchAllIamPoliciesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61sset_types\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x07 \x01(\tB\x03\xe0\x41\x01\"v\n\x1cSearchAllIamPoliciesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.google.cloud.asset.v1.IamPolicySearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc6\x07\n\x16IamPolicyAnalysisQuery\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\x11resource_selector\x18\x02 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorB\x03\xe0\x41\x01\x12^\n\x11identity_selector\x18\x03 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorB\x03\xe0\x41\x01\x12Z\n\x0f\x61\x63\x63\x65ss_selector\x18\x04 \x01(\x0b\x32<.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorB\x03\xe0\x41\x01\x12K\n\x07options\x18\x05 \x01(\x0b\x32\x35.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsB\x03\xe0\x41\x01\x12^\n\x11\x63ondition_context\x18\x06 \x01(\x0b\x32>.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextB\x03\xe0\x41\x01\x1a\x33\n\x10ResourceSelector\x12\x1f\n\x12\x66ull_resource_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a)\n\x10IdentitySelector\x12\x15\n\x08identity\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a>\n\x0e\x41\x63\x63\x65ssSelector\x12\x12\n\x05roles\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x18\n\x0bpermissions\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x07Options\x12\x1a\n\rexpand_groups\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0c\x65xpand_roles\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x65xpand_resources\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15output_resource_edges\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12output_group_edges\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x32\n%analyze_service_account_impersonation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x1aT\n\x10\x43onditionContext\x12\x31\n\x0b\x61\x63\x63\x65ss_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x42\r\n\x0bTimeContext\"\xc3\x01\n\x17\x41nalyzeIamPolicyRequest\x12J\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryB\x03\xe0\x41\x02\x12!\n\x14saved_analysis_query\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x11\x65xecution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\x8a\x04\n\x18\x41nalyzeIamPolicyResponse\x12X\n\rmain_analysis\x18\x01 \x01(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis\x12q\n&service_account_impersonation_analysis\x18\x02 \x03(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis\x12\x16\n\x0e\x66ully_explored\x18\x03 \x01(\x08\x1a\x88\x02\n\x11IamPolicyAnalysis\x12\x45\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQuery\x12H\n\x10\x61nalysis_results\x18\x02 \x03(\x0b\x32..google.cloud.asset.v1.IamPolicyAnalysisResult\x12\x16\n\x0e\x66ully_explored\x18\x03 \x01(\x08\x12J\n\x13non_critical_errors\x18\x05 \x03(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisState\"\xb4\x04\n\x1dIamPolicyAnalysisOutputConfig\x12^\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x43.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationH\x00\x12h\n\x14\x62igquery_destination\x18\x02 \x01(\x0b\x32H.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationH\x00\x1a\"\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\x95\x02\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0ctable_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12l\n\rpartition_key\x18\x03 \x01(\x0e\x32U.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey\x12\x1e\n\x11write_disposition\x18\x04 \x01(\tB\x03\xe0\x41\x01\"?\n\x0cPartitionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\x00\x12\x10\n\x0cREQUEST_TIME\x10\x01\x42\r\n\x0b\x64\x65stination\"\xe5\x01\n\"AnalyzeIamPolicyLongrunningRequest\x12J\n\x0e\x61nalysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryB\x03\xe0\x41\x02\x12!\n\x14saved_analysis_query\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12P\n\routput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigB\x03\xe0\x41\x02\"%\n#AnalyzeIamPolicyLongrunningResponse\"\xb7\x05\n\nSavedQuery\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0clast_updater\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12=\n\x06labels\x18\x07 \x03(\x0b\x32-.google.cloud.asset.v1.SavedQuery.LabelsEntry\x12?\n\x07\x63ontent\x18\x08 \x01(\x0b\x32..google.cloud.asset.v1.SavedQuery.QueryContent\x1as\n\x0cQueryContent\x12R\n\x19iam_policy_analysis_query\x18\x01 \x01(\x0b\x32-.google.cloud.asset.v1.IamPolicyAnalysisQueryH\x00\x42\x0f\n\rquery_content\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xbf\x01\xea\x41\xbb\x01\n$cloudasset.googleapis.com/SavedQuery\x12-projects/{project}/savedQueries/{saved_query}\x12+folders/{folder}/savedQueries/{saved_query}\x12\x37organizations/{organization}/savedQueries/{saved_query}\"\xb1\x01\n\x17\x43reateSavedQueryRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudasset.googleapis.com/SavedQuery\x12;\n\x0bsaved_query\x18\x02 \x01(\x0b\x32!.google.cloud.asset.v1.SavedQueryB\x03\xe0\x41\x02\x12\x1b\n\x0esaved_query_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"R\n\x14GetSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudasset.googleapis.com/SavedQuery\"\x9d\x01\n\x17ListSavedQueriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudasset.googleapis.com/SavedQuery\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"m\n\x18ListSavedQueriesResponse\x12\x38\n\rsaved_queries\x18\x01 \x03(\x0b\x32!.google.cloud.asset.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8c\x01\n\x17UpdateSavedQueryRequest\x12;\n\x0bsaved_query\x18\x01 \x01(\x0b\x32!.google.cloud.asset.v1.SavedQueryB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x17\x44\x65leteSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudasset.googleapis.com/SavedQuery\"\x8c\x02\n\x12\x41nalyzeMoveRequest\x12\x45\n\x08resource\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12%\n\x12\x64\x65stination_parent\x18\x02 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x44\n\x04view\x18\x03 \x01(\x0e\x32\x36.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView\"B\n\x0c\x41nalysisView\x12\x1d\n\x19\x41NALYSIS_VIEW_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\"Q\n\x13\x41nalyzeMoveResponse\x12:\n\rmove_analysis\x18\x01 \x03(\x0b\x32#.google.cloud.asset.v1.MoveAnalysis\"\x92\x01\n\x0cMoveAnalysis\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12=\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32).google.cloud.asset.v1.MoveAnalysisResultH\x00\x12#\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x42\x08\n\x06result\"~\n\x12MoveAnalysisResult\x12\x33\n\x08\x62lockers\x18\x01 \x03(\x0b\x32!.google.cloud.asset.v1.MoveImpact\x12\x33\n\x08warnings\x18\x02 \x03(\x0b\x32!.google.cloud.asset.v1.MoveImpact\"\x1c\n\nMoveImpact\x12\x0e\n\x06\x64\x65tail\x18\x01 \x01(\t\"\xd7\x01\n\x17QueryAssetsOutputConfig\x12`\n\x14\x62igquery_destination\x18\x01 \x01(\x0b\x32\x42.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination\x1aZ\n\x13\x42igQueryDestination\x12\x14\n\x07\x64\x61taset\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05table\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11write_disposition\x18\x03 \x01(\t\"\xbe\x03\n\x12QueryAssetsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudasset.googleapis.com/Asset\x12\x18\n\tstatement\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1c\n\rjob_reference\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12/\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x42\n\x10read_time_window\x18\x07 \x01(\x0b\x32!.google.cloud.asset.v1.TimeWindowB\x03\xe0\x41\x01H\x01\x12\x34\n\tread_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x01\x12J\n\routput_config\x18\t \x01(\x0b\x32..google.cloud.asset.v1.QueryAssetsOutputConfigB\x03\xe0\x41\x01\x42\x07\n\x05queryB\x06\n\x04time\"\xf0\x01\n\x13QueryAssetsResponse\x12\x15\n\rjob_reference\x18\x01 \x01(\t\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\x12#\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12:\n\x0cquery_result\x18\x04 \x01(\x0b\x32\".google.cloud.asset.v1.QueryResultH\x00\x12G\n\routput_config\x18\x05 \x01(\x0b\x32..google.cloud.asset.v1.QueryAssetsOutputConfigH\x00\x42\n\n\x08response\"\x95\x01\n\x0bQueryResult\x12%\n\x04rows\x18\x01 \x03(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x06schema\x18\x02 \x01(\x0b\x32\".google.cloud.asset.v1.TableSchema\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12\x12\n\ntotal_rows\x18\x04 \x01(\x03\"F\n\x0bTableSchema\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.google.cloud.asset.v1.TableFieldSchema\"v\n\x10TableFieldSchema\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12\x37\n\x06\x66ields\x18\x04 \x03(\x0b\x32\'.google.cloud.asset.v1.TableFieldSchema\"Y\n#BatchGetEffectiveIamPoliciesRequest\x12\x18\n\x05scope\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\x12\x01*\x12\x18\n\x05names\x18\x03 \x03(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\"\xfe\x02\n$BatchGetEffectiveIamPoliciesResponse\x12\x66\n\x0epolicy_results\x18\x02 \x03(\x0b\x32N.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy\x1a\xed\x01\n\x12\x45\x66\x66\x65\x63tiveIamPolicy\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12k\n\x08policies\x18\x02 \x03(\x0b\x32Y.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo\x1aN\n\nPolicyInfo\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12%\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.Policy\"\xb2\x03\n\x11\x41nalyzerOrgPolicy\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12\x18\n\x10\x61pplied_resource\x18\x05 \x01(\t\x12<\n\x05rules\x18\x02 \x03(\x0b\x32-.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule\x12\x1b\n\x13inherit_from_parent\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x1a\xfd\x01\n\x04Rule\x12L\n\x06values\x18\x03 \x01(\x0b\x32:.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValuesH\x00\x12\x13\n\tallow_all\x18\x04 \x01(\x08H\x00\x12\x12\n\x08\x64\x65ny_all\x18\x05 \x01(\x08H\x00\x12\x11\n\x07\x65nforce\x18\x06 \x01(\x08H\x00\x12$\n\tcondition\x18\x07 \x01(\x0b\x32\x11.google.type.Expr\x1a=\n\x0cStringValues\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x12\x15\n\rdenied_values\x18\x02 \x03(\tB\x06\n\x04kind\"\x91\n\n\x1b\x41nalyzerOrgPolicyConstraint\x12\x62\n\x19google_defined_constraint\x18\x01 \x01(\x0b\x32=.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.ConstraintH\x00\x12`\n\x11\x63ustom_constraint\x18\x02 \x01(\x0b\x32\x43.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraintH\x00\x1a\xbf\x04\n\nConstraint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12k\n\x12\x63onstraint_default\x18\x04 \x01(\x0e\x32O.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault\x12g\n\x0flist_constraint\x18\x05 \x01(\x0b\x32L.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraintH\x00\x12m\n\x12\x62oolean_constraint\x18\x06 \x01(\x0b\x32O.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintH\x00\x1a=\n\x0eListConstraint\x12\x13\n\x0bsupports_in\x18\x01 \x01(\x08\x12\x16\n\x0esupports_under\x18\x02 \x01(\x08\x1a\x13\n\x11\x42ooleanConstraint\"L\n\x11\x43onstraintDefault\x12\"\n\x1e\x43ONSTRAINT_DEFAULT_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x42\x11\n\x0f\x63onstraint_type\x1a\xd0\x03\n\x10\x43ustomConstraint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0eresource_types\x18\x02 \x03(\t\x12\x64\n\x0cmethod_types\x18\x03 \x03(\x0e\x32N.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType\x12\x11\n\tcondition\x18\x04 \x01(\t\x12\x63\n\x0b\x61\x63tion_type\x18\x05 \x01(\x0e\x32N.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\"M\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\">\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02\x42\x17\n\x15\x63onstraint_definition\"\x92\x01\n\x19\x41nalyzeOrgPoliciesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\xf8\x02\n\x1a\x41nalyzeOrgPoliciesResponse\x12]\n\x12org_policy_results\x18\x01 \x03(\x0b\x32\x41.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1a\x99\x01\n\x0fOrgPolicyResult\x12\x45\n\x13\x63onsolidated_policy\x18\x01 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x02 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\"\xa2\x01\n)AnalyzeOrgPolicyGovernedContainersRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\xc9\x03\n*AnalyzeOrgPolicyGovernedContainersResponse\x12p\n\x13governed_containers\x18\x01 \x03(\x0b\x32S.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1a\xc7\x01\n\x11GovernedContainer\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x45\n\x13\x63onsolidated_policy\x18\x03 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x04 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\"\x9e\x01\n%AnalyzeOrgPolicyGovernedAssetsRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nconstraint\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\npage_token\x18\x05 \x01(\tB\x0c\n\n_page_size\"\x80\x07\n&AnalyzeOrgPolicyGovernedAssetsResponse\x12\x64\n\x0fgoverned_assets\x18\x01 \x03(\x0b\x32K.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset\x12\x46\n\nconstraint\x18\x02 \x01(\x0b\x32\x32.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x1av\n\x10GovernedResource\x12\x1a\n\x12\x66ull_resource_name\x18\x01 \x01(\t\x12\x0e\n\x06parent\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x05 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x1a\x8d\x01\n\x11GovernedIamPolicy\x12\x19\n\x11\x61ttached_resource\x18\x01 \x01(\t\x12%\n\x06policy\x18\x02 \x01(\x0b\x32\x15.google.iam.v1.Policy\x12\x0f\n\x07project\x18\x05 \x01(\t\x12\x0f\n\x07\x66olders\x18\x06 \x03(\t\x12\x14\n\x0corganization\x18\x07 \x01(\t\x1a\x86\x03\n\rGovernedAsset\x12k\n\x11governed_resource\x18\x01 \x01(\x0b\x32N.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceH\x00\x12n\n\x13governed_iam_policy\x18\x02 \x01(\x0b\x32O.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyH\x00\x12\x45\n\x13\x63onsolidated_policy\x18\x03 \x01(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicy\x12?\n\rpolicy_bundle\x18\x04 \x03(\x0b\x32(.google.cloud.asset.v1.AnalyzerOrgPolicyB\x10\n\x0egoverned_asset*\x90\x01\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08RESOURCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x12\x0e\n\nORG_POLICY\x10\x04\x12\x11\n\rACCESS_POLICY\x10\x05\x12\x10\n\x0cOS_INVENTORY\x10\x06\x12\x10\n\x0cRELATIONSHIP\x10\x07\x32\xd1 \n\x0c\x41ssetService\x12\xde\x01\n\x0c\x45xportAssets\x12*.google.cloud.asset.v1.ExportAssetsRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02\"\"\x1d/v1/{parent=*/*}:exportAssets:\x01*\xca\x41W\n*google.cloud.asset.v1.ExportAssetsResponse\x12)google.cloud.asset.v1.ExportAssetsRequest\x12\x8b\x01\n\nListAssets\x12(.google.cloud.asset.v1.ListAssetsRequest\x1a).google.cloud.asset.v1.ListAssetsResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=*/*}/assets\xda\x41\x06parent\x12\xb2\x01\n\x15\x42\x61tchGetAssetsHistory\x12\x33.google.cloud.asset.v1.BatchGetAssetsHistoryRequest\x1a\x34.google.cloud.asset.v1.BatchGetAssetsHistoryResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{parent=*/*}:batchGetAssetsHistory\x12\x7f\n\nCreateFeed\x12(.google.cloud.asset.v1.CreateFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"*\x82\xd3\xe4\x93\x02\x1b\"\x16/v1/{parent=*/*}/feeds:\x01*\xda\x41\x06parent\x12t\n\x07GetFeed\x12%.google.cloud.asset.v1.GetFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"%\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/{name=*/*/feeds/*}\xda\x41\x04name\x12\x87\x01\n\tListFeeds\x12\'.google.cloud.asset.v1.ListFeedsRequest\x1a(.google.cloud.asset.v1.ListFeedsResponse\"\'\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/{parent=*/*}/feeds\xda\x41\x06parent\x12\x82\x01\n\nUpdateFeed\x12(.google.cloud.asset.v1.UpdateFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"-\x82\xd3\xe4\x93\x02 2\x1b/v1/{feed.name=*/*/feeds/*}:\x01*\xda\x41\x04\x66\x65\x65\x64\x12u\n\nDeleteFeed\x12(.google.cloud.asset.v1.DeleteFeedRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x18*\x16/v1/{name=*/*/feeds/*}\xda\x41\x04name\x12\xbf\x01\n\x12SearchAllResources\x12\x30.google.cloud.asset.v1.SearchAllResourcesRequest\x1a\x31.google.cloud.asset.v1.SearchAllResourcesResponse\"D\x82\xd3\xe4\x93\x02$\x12\"/v1/{scope=*/*}:searchAllResources\xda\x41\x17scope,query,asset_types\x12\xbb\x01\n\x14SearchAllIamPolicies\x12\x32.google.cloud.asset.v1.SearchAllIamPoliciesRequest\x1a\x33.google.cloud.asset.v1.SearchAllIamPoliciesResponse\":\x82\xd3\xe4\x93\x02&\x12$/v1/{scope=*/*}:searchAllIamPolicies\xda\x41\x0bscope,query\x12\xac\x01\n\x10\x41nalyzeIamPolicy\x12..google.cloud.asset.v1.AnalyzeIamPolicyRequest\x1a/.google.cloud.asset.v1.AnalyzeIamPolicyResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{analysis_query.scope=*/*}:analyzeIamPolicy\x12\xb8\x02\n\x1b\x41nalyzeIamPolicyLongrunning\x12\x39.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x01\x82\xd3\xe4\x93\x02?\":/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning:\x01*\xca\x41v\n9google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse\x12\x39google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata\x12\x8c\x01\n\x0b\x41nalyzeMove\x12).google.cloud.asset.v1.AnalyzeMoveRequest\x1a*.google.cloud.asset.v1.AnalyzeMoveResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{resource=*/*}:analyzeMove\x12\x8d\x01\n\x0bQueryAssets\x12).google.cloud.asset.v1.QueryAssetsRequest\x1a*.google.cloud.asset.v1.QueryAssetsResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1c/v1/{parent=*/*}:queryAssets:\x01*\x12\xbd\x01\n\x10\x43reateSavedQuery\x12..google.cloud.asset.v1.CreateSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\"V\x82\xd3\xe4\x93\x02,\"\x1d/v1/{parent=*/*}/savedQueries:\x0bsaved_query\xda\x41!parent,saved_query,saved_query_id\x12\x8d\x01\n\rGetSavedQuery\x12+.google.cloud.asset.v1.GetSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\",\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=*/*/savedQueries/*}\xda\x41\x04name\x12\xa3\x01\n\x10ListSavedQueries\x12..google.cloud.asset.v1.ListSavedQueriesRequest\x1a/.google.cloud.asset.v1.ListSavedQueriesResponse\".\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=*/*}/savedQueries\xda\x41\x06parent\x12\xbf\x01\n\x10UpdateSavedQuery\x12..google.cloud.asset.v1.UpdateSavedQueryRequest\x1a!.google.cloud.asset.v1.SavedQuery\"X\x82\xd3\xe4\x93\x02\x38\x32)/v1/{saved_query.name=*/*/savedQueries/*}:\x0bsaved_query\xda\x41\x17saved_query,update_mask\x12\x88\x01\n\x10\x44\x65leteSavedQuery\x12..google.cloud.asset.v1.DeleteSavedQueryRequest\x1a\x16.google.protobuf.Empty\",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=*/*/savedQueries/*}\xda\x41\x04name\x12\xce\x01\n\x1c\x42\x61tchGetEffectiveIamPolicies\x12:.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest\x1a;.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{scope=*/*}/effectiveIamPolicies:batchGet\x12\xbf\x01\n\x12\x41nalyzeOrgPolicies\x12\x30.google.cloud.asset.v1.AnalyzeOrgPoliciesRequest\x1a\x31.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse\"D\x82\xd3\xe4\x93\x02$\x12\"/v1/{scope=*/*}:analyzeOrgPolicies\xda\x41\x17scope,constraint,filter\x12\xff\x01\n\"AnalyzeOrgPolicyGovernedContainers\x12@.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRequest\x1a\x41.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse\"T\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{scope=*/*}:analyzeOrgPolicyGovernedContainers\xda\x41\x17scope,constraint,filter\x12\xef\x01\n\x1e\x41nalyzeOrgPolicyGovernedAssets\x12<.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest\x1a=.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse\"P\x82\xd3\xe4\x93\x02\x30\x12./v1/{scope=*/*}:analyzeOrgPolicyGovernedAssets\xda\x41\x17scope,constraint,filter\x1aM\xca\x41\x19\x63loudasset.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x91\x01\n\x19\x63om.google.cloud.asset.v1B\x11\x41ssetServiceProtoP\x01Z/cloud.google.com/go/asset/apiv1/assetpb;assetpb\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1b\x06proto3"
|
24
24
|
|
25
25
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
26
26
|
|
@@ -144,7 +144,7 @@ module Google
|
|
144
144
|
#
|
145
145
|
# This RPC only returns either resources of types supported by [searchable
|
146
146
|
# asset
|
147
|
-
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types
|
147
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
|
148
148
|
# or IAM policies.
|
149
149
|
rpc :AnalyzeOrgPolicyGovernedAssets, ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsRequest, ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse
|
150
150
|
end
|