-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: removed SearchResources and SearchIamPolicies from v1p1beta1 c…
…lient
- Loading branch information
1 parent
2ff0fb9
commit 10c0af9
Showing
8 changed files
with
4 additions
and
2,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,22 +34,6 @@ service AssetService { | |
option (google.api.default_host) = "cloudasset.googleapis.com"; | ||
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; | ||
|
||
// Searches resources which are accessible with .get permission. | ||
rpc SearchResources(SearchResourcesRequest) returns (SearchResourcesResponse) { | ||
option (google.api.http) = { | ||
get: "/v1p1beta1/resources:search" | ||
}; | ||
option (google.api.method_signature) = "scope,query,asset_types"; | ||
} | ||
|
||
// Searches IAM policies which are accessible with .getIamPolicy permission. | ||
rpc SearchIamPolicies(SearchIamPoliciesRequest) returns (SearchIamPoliciesResponse) { | ||
option (google.api.http) = { | ||
get: "/v1p1beta1/iamPolicies:search" | ||
}; | ||
option (google.api.method_signature) = "scope,query"; | ||
} | ||
|
||
// Searches all the resources under a given accessible CRM scope | ||
// (project/folder/organization). This RPC gives callers | ||
// especially admins the ability to search all the resources under a scope, | ||
|
@@ -77,86 +61,6 @@ service AssetService { | |
} | ||
} | ||
|
||
// Search resource request. | ||
message SearchResourcesRequest { | ||
// Required. The relative name of an asset. The search is limited to the resources | ||
// within the `scope`. The allowed value must be: | ||
// * Organization number (such as "organizations/123") | ||
// * Folder number(such as "folders/1234") | ||
// * Project number (such as "projects/12345") | ||
string scope = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. The query statement. | ||
string query = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. A list of asset types that this request searches for. If empty, it will | ||
// search all the supported asset types. | ||
repeated string asset_types = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. The page size for search result pagination. Page size is capped at 500 even | ||
// if a larger value is given. If set to zero, server will pick an appropriate | ||
// default. Returned results may be fewer than requested. When this happens, | ||
// there could be more results as long as `next_page_token` is returned. | ||
int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. If present, then retrieve the next batch of results from the preceding call | ||
// to this method. `page_token` must be the value of `next_page_token` from | ||
// the previous response. The values of all other method parameters, must be | ||
// identical to those in the previous call. | ||
string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; | ||
} | ||
|
||
// Search resource response. | ||
message SearchResourcesResponse { | ||
// A list of resource that match the search query. | ||
repeated StandardResourceMetadata results = 1; | ||
|
||
// If there are more results than those appearing in this response, then | ||
// `next_page_token` is included. To get the next set of results, call this | ||
// method again using the value of `next_page_token` as `page_token`. | ||
string next_page_token = 2; | ||
} | ||
|
||
// Search IAM policies request. | ||
message SearchIamPoliciesRequest { | ||
// Required. The relative name of an asset. The search is limited to the resources | ||
// within the `scope`. The allowed value must be: | ||
// * Organization number (such as "organizations/123") | ||
// * Folder number(such as "folders/1234") | ||
// * Project number (such as "projects/12345") | ||
string scope = 4 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. The query statement. | ||
// Examples: | ||
// * "policy:[email protected]" | ||
// * "policy:([email protected] viewer)" | ||
string query = 1 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. The page size for search result pagination. Page size is capped at 500 even | ||
// if a larger value is given. If set to zero, server will pick an appropriate | ||
// default. Returned results may be fewer than requested. When this happens, | ||
// there could be more results as long as `next_page_token` is returned. | ||
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. If present, retrieve the next batch of results from the preceding call to | ||
// this method. `page_token` must be the value of `next_page_token` from the | ||
// previous response. The values of all other method parameters must be | ||
// identical to those in the previous call. | ||
string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
} | ||
|
||
// Search IAM policies response. | ||
message SearchIamPoliciesResponse { | ||
// A list of IamPolicy that match the search query. Related information such | ||
// as the associated resource is returned along with the policy. | ||
repeated IamPolicySearchResult results = 1; | ||
|
||
// Set if there are more results than those appearing in this response; to get | ||
// the next set of results, call this method again, using this value as the | ||
// `page_token`. | ||
string next_page_token = 2; | ||
} | ||
|
||
// Search all resources request. | ||
message SearchAllResourcesRequest { | ||
// Required. The relative name of an asset. The search is limited to the resources | ||
|
Oops, something went wrong.