@@ -306,7 +306,7 @@ service AssetService {
306306 //
307307 // This RPC only returns either resources of types supported by [searchable
308308 // asset
309- // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types ),
309+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
310310 // or IAM policies.
311311 rpc AnalyzeOrgPolicyGovernedAssets (AnalyzeOrgPolicyGovernedAssetsRequest )
312312 returns (AnalyzeOrgPolicyGovernedAssetsResponse ) {
@@ -923,31 +923,31 @@ message SearchAllResourcesRequest {
923923 // * `labels.env:*` to find Google Cloud resources that have a label `env`.
924924 // * `tagKeys:env` to find Google Cloud resources that have directly
925925 // attached tags where the
926- // [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
927- // .`namespacedName` contains `env`.
926+ // [`TagKey.namespacedName `](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
927+ // contains `env`.
928928 // * `tagValues:prod*` to find Google Cloud resources that have directly
929929 // attached tags where the
930- // [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
931- // .`namespacedName` contains a word prefixed by `prod`.
930+ // [`TagValue.namespacedName `](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
931+ // contains a word prefixed by `prod`.
932932 // * `tagValueIds=tagValues/123` to find Google Cloud resources that have
933933 // directly attached tags where the
934- // [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
935- // .`name` is exactly `tagValues/123`.
934+ // [`TagValue.name `](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
935+ // is exactly `tagValues/123`.
936936 // * `effectiveTagKeys:env` to find Google Cloud resources that have
937937 // directly attached or inherited tags where the
938- // [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
939- // .`namespacedName` contains `env`.
938+ // [`TagKey.namespacedName `](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
939+ // contains `env`.
940940 // * `effectiveTagValues:prod*` to find Google Cloud resources that have
941941 // directly attached or inherited tags where the
942- // [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
943- // .`namespacedName` contains a word prefixed by `prod`.
942+ // [`TagValue.namespacedName `](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
943+ // contains a word prefixed by `prod`.
944944 // * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that
945945 // have directly attached or inherited tags where the
946- // [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
947- // .`name` is exactly `tagValues/123`.
946+ // [`TagValue.name `](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
947+ // is exactly `tagValues/123`.
948948 // * `kmsKey:key` to find Google Cloud resources encrypted with a
949949 // customer-managed encryption key whose name contains `key` as a word. This
950- // field is deprecated. Please use the `kmsKeys` field to retrieve Cloud KMS
950+ // field is deprecated. Use the `kmsKeys` field to retrieve Cloud KMS
951951 // key information.
952952 // * `kmsKeys:key` to find Google Cloud resources encrypted with
953953 // customer-managed encryption keys whose name contains the word `key`.
@@ -959,6 +959,10 @@ message SearchAllResourcesRequest {
959959 // Compute Engine instances that have relationships with `instance-group-1`
960960 // in the Compute Engine instance group resource name, for relationship type
961961 // `INSTANCE_TO_INSTANCEGROUP`.
962+ // * `sccSecurityMarks.key=value` to find Cloud resources that are attached
963+ // with security marks whose key is `key` and value is `value`.
964+ // * `sccSecurityMarks.key:*` to find Cloud resources that are attached with
965+ // security marks whose key is `key`.
962966 // * `state:ACTIVE` to find Google Cloud resources whose state contains
963967 // `ACTIVE` as a word.
964968 // * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't
@@ -981,7 +985,7 @@ message SearchAllResourcesRequest {
981985
982986 // Optional. A list of asset types that this request searches for. If empty,
983987 // it will search all the [searchable asset
984- // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types ).
988+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
985989 //
986990 // Regular expressions are also supported. For example:
987991 //
@@ -1150,7 +1154,7 @@ message SearchAllIamPoliciesRequest {
11501154 // Optional. A list of asset types that the IAM policies are attached to. If
11511155 // empty, it will search the IAM policies that are attached to all the
11521156 // [searchable asset
1153- // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types ).
1157+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
11541158 //
11551159 // Regular expressions are also supported. For example:
11561160 //
@@ -1400,7 +1404,7 @@ message AnalyzeIamPolicyRequest {
14001404 // If both `analysis_query` and `saved_analysis_query` are provided, they
14011405 // will be merged together with the `saved_analysis_query` as base and
14021406 // the `analysis_query` as overrides. For more details of the merge behavior,
1403- // please refer to the
1407+ // refer to the
14041408 // [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
14051409 // page.
14061410 //
@@ -1556,7 +1560,7 @@ message AnalyzeIamPolicyLongrunningRequest {
15561560 // If both `analysis_query` and `saved_analysis_query` are provided, they
15571561 // will be merged together with the `saved_analysis_query` as base and
15581562 // the `analysis_query` as overrides. For more details of the merge behavior,
1559- // please refer to the
1563+ // refer to the
15601564 // [MergeFrom](https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#Message.MergeFrom.details)
15611565 // doc.
15621566 //
@@ -1776,14 +1780,22 @@ message AnalyzeMoveRequest {
17761780 // Only Google Cloud projects are supported as of today. Hence, this can only
17771781 // be a project ID (such as "projects/my-project-id") or a project number
17781782 // (such as "projects/12345").
1779- string resource = 1 [(google.api.field_behavior ) = REQUIRED ];
1783+ string resource = 1 [
1784+ (google.api.field_behavior ) = REQUIRED ,
1785+ (google.api.resource_reference ) = {
1786+ type : "cloudresourcemanager.googleapis.com/Project"
1787+ }
1788+ ];
17801789
17811790 // Required. Name of the Google Cloud folder or organization to reparent the
17821791 // target resource. The analysis will be performed against hypothetically
17831792 // moving the resource to this specified desitination parent. This can only be
17841793 // a folder number (such as "folders/123") or an organization number (such as
17851794 // "organizations/123").
1786- string destination_parent = 2 [(google.api.field_behavior ) = REQUIRED ];
1795+ string destination_parent = 2 [
1796+ (google.api.field_behavior ) = REQUIRED ,
1797+ (google.api.resource_reference ) = { type : "*" }
1798+ ];
17871799
17881800 // Analysis view indicating what information should be included in the
17891801 // analysis response. If unspecified, the default view is FULL.
@@ -2053,7 +2065,7 @@ message BatchGetEffectiveIamPoliciesRequest {
20532065 // Required. The names refer to the [full_resource_names]
20542066 // (https://cloud.google.com/asset-inventory/docs/resource-name-format)
20552067 // of [searchable asset
2056- // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types ).
2068+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
20572069 // A maximum of 20 resources' effective policies can be retrieved in a batch.
20582070 repeated string names = 3 [
20592071 (google.api.field_behavior ) = REQUIRED ,
@@ -2355,12 +2367,15 @@ message AnalyzeOrgPoliciesRequest {
23552367
23562368 // The expression to filter
23572369 // [AnalyzeOrgPoliciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.org_policy_results].
2358- // The only supported field is `consolidated_policy.attached_resource`, and
2359- // the only supported operator is `=`.
2370+ // Filtering is currently available for bare literal values and the following
2371+ // fields:
2372+ // * consolidated_policy.attached_resource
2373+ // * consolidated_policy.rules.enforce
23602374 //
2361- // Example:
2375+ // When filtering by a specific field, the only supported operator is `=`.
2376+ // For example, filtering by
23622377 // consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
2363- // will return the org policy results of "folders/001".
2378+ // will return all the Organization Policy results attached to "folders/001".
23642379 string filter = 3 ;
23652380
23662381 // The maximum number of items to return per page. If unspecified,
@@ -2423,13 +2438,17 @@ message AnalyzeOrgPolicyGovernedContainersRequest {
24232438 // constraint.
24242439 string constraint = 2 [(google.api.field_behavior ) = REQUIRED ];
24252440
2426- // The expression to filter the governed containers in result.
2427- // The only supported field is `parent`, and the only supported operator is
2428- // `=`.
2429- //
2430- // Example:
2431- // parent="//cloudresourcemanager.googleapis.com/folders/001" will return all
2432- // containers under "folders/001".
2441+ // The expression to filter
2442+ // [AnalyzeOrgPolicyGovernedContainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.governed_containers].
2443+ // Filtering is currently available for bare literal values and the following
2444+ // fields:
2445+ // * parent
2446+ // * consolidated_policy.rules.enforce
2447+ //
2448+ // When filtering by a specific field, the only supported operator is `=`.
2449+ // For example, filtering by
2450+ // parent="//cloudresourcemanager.googleapis.com/folders/001"
2451+ // will return all the containers under "folders/001".
24332452 string filter = 3 ;
24342453
24352454 // The maximum number of items to return per page. If unspecified,
@@ -2502,18 +2521,33 @@ message AnalyzeOrgPolicyGovernedAssetsRequest {
25022521 // constraint.
25032522 string constraint = 2 [(google.api.field_behavior ) = REQUIRED ];
25042523
2505- // The expression to filter the governed assets in result. The only supported
2506- // fields for governed resources are `governed_resource.project` and
2507- // `governed_resource.folders`. The only supported fields for governed iam
2508- // policies are `governed_iam_policy.project` and
2509- // `governed_iam_policy.folders`. The only supported operator is `=`.
2510- //
2511- // Example 1: governed_resource.project="projects/12345678" filter will return
2512- // all governed resources under projects/12345678 including the project
2513- // ifself, if applicable.
2524+ // The expression to filter
2525+ // [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
25142526 //
2515- // Example 2: governed_iam_policy.folders="folders/12345678" filter will
2516- // return all governed iam policies under folders/12345678, if applicable.
2527+ // For governed resources, filtering is currently available for bare literal
2528+ // values and the following fields:
2529+ // * governed_resource.project
2530+ // * governed_resource.folders
2531+ // * consolidated_policy.rules.enforce
2532+ // When filtering by `governed_resource.project` or
2533+ // `consolidated_policy.rules.enforce`, the only supported operator is `=`.
2534+ // When filtering by `governed_resource.folders`, the supported operators
2535+ // are `=` and `:`.
2536+ // For example, filtering by `governed_resource.project="projects/12345678"`
2537+ // will return all the governed resources under "projects/12345678",
2538+ // including the project itself if applicable.
2539+ //
2540+ // For governed IAM policies, filtering is currently available for bare
2541+ // literal values and the following fields:
2542+ // * governed_iam_policy.project
2543+ // * governed_iam_policy.folders
2544+ // * consolidated_policy.rules.enforce
2545+ // When filtering by `governed_iam_policy.project` or
2546+ // `consolidated_policy.rules.enforce`, the only supported operator is `=`.
2547+ // When filtering by `governed_iam_policy.folders`, the supported operators
2548+ // are `=` and `:`.
2549+ // For example, filtering by `governed_iam_policy.folders:"folders/12345678"`
2550+ // will return all the governed IAM policies under "folders/001".
25172551 string filter = 3 ;
25182552
25192553 // The maximum number of items to return per page. If unspecified,
0 commit comments