Class V1Resource.QueryAssetsRequest
Issue a job that queries assets using a SQL statement compatible with BigQuery
SQL. If the query execution finishes within
timeout and there's no pagination, the full query results will be returned in the QueryAssetsResponse
.
Otherwise, full query results can be obtained by issuing extra requests with the job_reference
from the a
previous QueryAssets
call. Note, the query result has approximately 10 GB limitation enforced by
BigQuery. Queries return larger
results will result in errors.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudAsset.v1
Assembly: Google.Apis.CloudAsset.v1.dll
Syntax
public class V1Resource.QueryAssetsRequest : CloudAssetBaseServiceRequest<QueryAssetsResponse>, IClientServiceRequest<QueryAssetsResponse>, IClientServiceRequest
Constructors
QueryAssetsRequest(IClientService, QueryAssetsRequest, string)
Constructs a new QueryAssets request.
Declaration
public QueryAssetsRequest(IClientService service, QueryAssetsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
QueryAssetsRequest | body | |
string | parent |
Properties
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
Parent
Required. The relative name of the root asset. This can only be an organization number (such as
"organizations/123"), a project ID (such as "projects/my-project-id"), or a project number (such as
"projects/12345"), or a folder number (such as "folders/123"). Only assets belonging to the parent
will be returned.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes QueryAssets parameter list.
Declaration
protected override void InitParameters()