@@ -31,28 +31,32 @@ option php_namespace = "Google\\Cloud\\Asset\\V1p1beta1";
3131// Asset service definition.
3232service AssetService {
3333 option (google.api.default_host ) = "cloudasset.googleapis.com" ;
34- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
34+ option (google.api.oauth_scopes ) =
35+ "https://www.googleapis.com/auth/cloud-platform" ;
3536
36- // Searches all the resources under a given accessible CRM scope
37+ // Searches all the resources under a given accessible {{crm_name}} scope
3738 // (project/folder/organization). This RPC gives callers
3839 // especially admins the ability to search all the resources under a scope,
3940 // even if they don't have .get permission of all the resources. Callers
4041 // should have cloud.assets.SearchAllResources permission on the requested
4142 // scope, otherwise it will be rejected.
42- rpc SearchAllResources (SearchAllResourcesRequest ) returns (SearchAllResourcesResponse ) {
43+ rpc SearchAllResources (SearchAllResourcesRequest )
44+ returns (SearchAllResourcesResponse ) {
4345 option (google.api.http ) = {
4446 get : "/v1p1beta1/{scope=*/*}/resources:searchAll"
4547 };
4648 option (google.api.method_signature ) = "scope,query,asset_types" ;
4749 }
4850
49- // Searches all the IAM policies under a given accessible CRM scope
50- // (project/folder/organization). This RPC gives callers
51- // especially admins the ability to search all the IAM policies under a scope,
52- // even if they don't have .getIamPolicy permission of all the IAM policies.
53- // Callers should have cloud.assets.SearchAllIamPolicies permission on the
54- // requested scope, otherwise it will be rejected.
55- rpc SearchAllIamPolicies (SearchAllIamPoliciesRequest ) returns (SearchAllIamPoliciesResponse ) {
51+ // Searches all the {{iam_name_short}} policies under a given accessible
52+ // {{crm_name}} scope (project/folder/organization). This RPC gives callers
53+ // especially admins the ability to search all the {{iam_name_short}} policies
54+ // under a scope, even if they don't have .getIamPolicy permission of all the
55+ // {{iam_name_short}} policies. Callers should have
56+ // cloud.assets.SearchAllIamPolicies permission on the requested scope,
57+ // otherwise it will be rejected.
58+ rpc SearchAllIamPolicies (SearchAllIamPoliciesRequest )
59+ returns (SearchAllIamPoliciesResponse ) {
5660 option (google.api.http ) = {
5761 get : "/v1p1beta1/{scope=*/*}/iamPolicies:searchAll"
5862 };
@@ -62,8 +66,8 @@ service AssetService {
6266
6367// Search all resources request.
6468message SearchAllResourcesRequest {
65- // Required. The relative name of an asset. The search is limited to the resources
66- // within the `scope`. The allowed value must be:
69+ // Required. The relative name of an asset. The search is limited to the
70+ // resources within the `scope`. The allowed value must be:
6771 // * Organization number (such as "organizations/123")
6872 // * Folder number(such as "folders/1234")
6973 // * Project number (such as "projects/12345")
@@ -73,26 +77,27 @@ message SearchAllResourcesRequest {
7377 // Optional. The query statement.
7478 string query = 2 [(google.api.field_behavior ) = OPTIONAL ];
7579
76- // Optional. A list of asset types that this request searches for. If empty, it will
77- // search all the supported asset types.
80+ // Optional. A list of asset types that this request searches for. If empty,
81+ // it will search all the supported asset types.
7882 repeated string asset_types = 3 [(google.api.field_behavior ) = OPTIONAL ];
7983
80- // Optional. The page size for search result pagination. Page size is capped at 500 even
81- // if a larger value is given. If set to zero, server will pick an appropriate
82- // default. Returned results may be fewer than requested. When this happens,
83- // there could be more results as long as `next_page_token` is returned.
84+ // Optional. The page size for search result pagination. Page size is capped
85+ // at 500 even if a larger value is given. If set to zero, server will pick an
86+ // appropriate default. Returned results may be fewer than requested. When
87+ // this happens, there could be more results as long as `next_page_token` is
88+ // returned.
8489 int32 page_size = 4 [(google.api.field_behavior ) = OPTIONAL ];
8590
86- // Optional. If present, then retrieve the next batch of results from the preceding call
87- // to this method. `page_token` must be the value of `next_page_token` from
88- // the previous response. The values of all other method parameters, must be
89- // identical to those in the previous call.
91+ // Optional. If present, then retrieve the next batch of results from the
92+ // preceding call to this method. `page_token` must be the value of
93+ // `next_page_token` from the previous response. The values of all other
94+ // method parameters, must be identical to those in the previous call.
9095 string page_token = 5 [(google.api.field_behavior ) = OPTIONAL ];
9196
92- // Optional. A comma separated list of fields specifying the sorting order of the
93- // results. The default order is ascending. Add " desc" after the field name
94- // to indicate descending order. Redundant space characters are ignored. For
95- // example, " foo , bar desc ".
97+ // Optional. A comma separated list of fields specifying the sorting order of
98+ // the results. The default order is ascending. Add " desc" after the field
99+ // name to indicate descending order. Redundant space characters are ignored.
100+ // For example, " foo , bar desc ".
96101 string order_by = 10 [(google.api.field_behavior ) = OPTIONAL ];
97102}
98103
@@ -107,10 +112,10 @@ message SearchAllResourcesResponse {
107112 string next_page_token = 2 ;
108113}
109114
110- // Search all IAM policies request.
115+ // Search all {{iam_name_short}} policies request.
111116message SearchAllIamPoliciesRequest {
112- // Required. The relative name of an asset. The search is limited to the resources
113- // within the `scope`. The allowed value must be:
117+ // Required. The relative name of an asset. The search is limited to the
118+ // resources within the `scope`. The allowed value must be:
114119 // * Organization number (such as "organizations/123")
115120 // * Folder number(such as "folders/1234")
116121 // * Project number (such as "projects/12345")
@@ -123,23 +128,25 @@ message SearchAllIamPoliciesRequest {
123128 // * "policy:([email protected] viewer)" 124129 string query = 2 [(google.api.field_behavior ) = OPTIONAL ];
125130
126- // Optional. The page size for search result pagination. Page size is capped at 500 even
127- // if a larger value is given. If set to zero, server will pick an appropriate
128- // default. Returned results may be fewer than requested. When this happens,
129- // there could be more results as long as `next_page_token` is returned.
131+ // Optional. The page size for search result pagination. Page size is capped
132+ // at 500 even if a larger value is given. If set to zero, server will pick an
133+ // appropriate default. Returned results may be fewer than requested. When
134+ // this happens, there could be more results as long as `next_page_token` is
135+ // returned.
130136 int32 page_size = 3 [(google.api.field_behavior ) = OPTIONAL ];
131137
132- // Optional. If present, retrieve the next batch of results from the preceding call to
133- // this method. `page_token` must be the value of `next_page_token` from the
134- // previous response. The values of all other method parameters must be
135- // identical to those in the previous call.
138+ // Optional. If present, retrieve the next batch of results from the preceding
139+ // call to this method. `page_token` must be the value of `next_page_token`
140+ // from the previous response. The values of all other method parameters must
141+ // be identical to those in the previous call.
136142 string page_token = 4 [(google.api.field_behavior ) = OPTIONAL ];
137143}
138144
139- // Search all IAM policies response.
145+ // Search all {{iam_name_short}} policies response.
140146message SearchAllIamPoliciesResponse {
141- // A list of IamPolicy that match the search query. Related information such
142- // as the associated resource is returned along with the policy.
147+ // A list of {{iam_name_short}} policies that match the search query. Related
148+ // information such as the associated resource is returned along with the
149+ // policy.
143150 repeated IamPolicySearchResult results = 1 ;
144151
145152 // Set if there are more results than those appearing in this response; to get
0 commit comments