@@ -31,32 +31,28 @@ 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 ) =
35- "https://www.googleapis.com/auth/cloud-platform" ;
34+ option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
3635
37- // Searches all the resources under a given accessible {{crm_name}} scope
36+ // Searches all the resources under a given accessible CRM scope
3837 // (project/folder/organization). This RPC gives callers
3938 // especially admins the ability to search all the resources under a scope,
4039 // even if they don't have .get permission of all the resources. Callers
4140 // should have cloud.assets.SearchAllResources permission on the requested
4241 // scope, otherwise it will be rejected.
43- rpc SearchAllResources (SearchAllResourcesRequest )
44- returns (SearchAllResourcesResponse ) {
42+ rpc SearchAllResources (SearchAllResourcesRequest ) returns (SearchAllResourcesResponse ) {
4543 option (google.api.http ) = {
4644 get : "/v1p1beta1/{scope=*/*}/resources:searchAll"
4745 };
4846 option (google.api.method_signature ) = "scope,query,asset_types" ;
4947 }
5048
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 ) {
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 ) {
6056 option (google.api.http ) = {
6157 get : "/v1p1beta1/{scope=*/*}/iamPolicies:searchAll"
6258 };
@@ -66,8 +62,8 @@ service AssetService {
6662
6763// Search all resources request.
6864message SearchAllResourcesRequest {
69- // Required. The relative name of an asset. The search is limited to the
70- // resources within the `scope`. The allowed value must be:
65+ // Required. The relative name of an asset. The search is limited to the resources
66+ // within the `scope`. The allowed value must be:
7167 // * Organization number (such as "organizations/123")
7268 // * Folder number(such as "folders/1234")
7369 // * Project number (such as "projects/12345")
@@ -77,27 +73,26 @@ message SearchAllResourcesRequest {
7773 // Optional. The query statement.
7874 string query = 2 [(google.api.field_behavior ) = OPTIONAL ];
7975
80- // Optional. A list of asset types that this request searches for. If empty,
81- // it will search all the supported asset types.
76+ // Optional. A list of asset types that this request searches for. If empty, it will
77+ // search all the supported asset types.
8278 repeated string asset_types = 3 [(google.api.field_behavior ) = OPTIONAL ];
8379
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.
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.
8984 int32 page_size = 4 [(google.api.field_behavior ) = OPTIONAL ];
9085
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.
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.
9590 string page_token = 5 [(google.api.field_behavior ) = OPTIONAL ];
9691
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 ".
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 ".
10196 string order_by = 10 [(google.api.field_behavior ) = OPTIONAL ];
10297}
10398
@@ -112,10 +107,10 @@ message SearchAllResourcesResponse {
112107 string next_page_token = 2 ;
113108}
114109
115- // Search all {{iam_name_short}} policies request.
110+ // Search all IAM policies request.
116111message SearchAllIamPoliciesRequest {
117- // Required. The relative name of an asset. The search is limited to the
118- // resources within the `scope`. The allowed value must be:
112+ // Required. The relative name of an asset. The search is limited to the resources
113+ // within the `scope`. The allowed value must be:
119114 // * Organization number (such as "organizations/123")
120115 // * Folder number(such as "folders/1234")
121116 // * Project number (such as "projects/12345")
@@ -128,25 +123,23 @@ message SearchAllIamPoliciesRequest {
128123 // * "policy:([email protected] viewer)" 129124 string query = 2 [(google.api.field_behavior ) = OPTIONAL ];
130125
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.
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.
136130 int32 page_size = 3 [(google.api.field_behavior ) = OPTIONAL ];
137131
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.
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.
142136 string page_token = 4 [(google.api.field_behavior ) = OPTIONAL ];
143137}
144138
145- // Search all {{iam_name_short}} policies response.
139+ // Search all IAM policies response.
146140message SearchAllIamPoliciesResponse {
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.
141+ // A list of IamPolicy that match the search query. Related information such
142+ // as the associated resource is returned along with the policy.
150143 repeated IamPolicySearchResult results = 1 ;
151144
152145 // Set if there are more results than those appearing in this response; to get
0 commit comments