Class ResourcesResource.SearchAllRequest
Searches all the resources within a given accessible Resource Manager scope (project/folder/organization).
This RPC gives callers especially administrators the ability to search all the resources within a scope,
even if they don't have .get
permission of all the resources. Callers should have
cloudasset.assets.searchAllResources
permission on the requested scope, otherwise the request will be
rejected.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudAsset.v1p1beta1
Assembly: Google.Apis.CloudAsset.v1p1beta1.dll
Syntax
public class ResourcesResource.SearchAllRequest : CloudAssetBaseServiceRequest<SearchAllResourcesResponse>, IClientServiceRequest<SearchAllResourcesResponse>, IClientServiceRequest
Constructors
SearchAllRequest(IClientService, string)
Constructs a new SearchAll request.
Declaration
public SearchAllRequest(IClientService service, string scope)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | scope |
Properties
AssetTypes
Optional. A list of asset types that this request searches for. If empty, it will search all the supported asset types.
Declaration
[RequestParameter("assetTypes", RequestParameterType.Query)]
public virtual Repeatable<string> AssetTypes { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<string> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
OrderBy
Optional. A comma separated list of fields specifying the sorting order of the results. The default
order is ascending. Add DESC
after the field name to indicate descending order. Redundant space
characters are ignored. For example, location DESC , name
.
Declaration
[RequestParameter("orderBy", RequestParameterType.Query)]
public virtual string OrderBy { get; set; }
Property Value
Type | Description |
---|---|
string |
PageSize
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.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
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.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Query
Optional. The query statement.
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Scope
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") * Project ID (such as "projects/abc")
Declaration
[RequestParameter("scope", RequestParameterType.Path)]
public virtual string Scope { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes SearchAll parameter list.
Declaration
protected override void InitParameters()