Class AssetsResource.ListRequest
Lists assets with time and resource types and returns paged results in response.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudAsset.v1p5beta1
Assembly: Google.Apis.CloudAsset.v1p5beta1.dll
Syntax
public class AssetsResource.ListRequest : CloudAssetBaseServiceRequest<ListAssetsResponse>, IClientServiceRequest<ListAssetsResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | parent |
Properties
AssetTypes
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".Instance." snapshots resources whose asset type contains "Instance". See RE2 for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See Introduction to Cloud Asset Inventory for all supported asset types.
Declaration
[RequestParameter("assetTypes", RequestParameterType.Query)]
public virtual Repeatable<string> AssetTypes { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<string> |
ContentType
Asset content type. If not specified, no content but the asset name will be returned.
Declaration
[RequestParameter("contentType", RequestParameterType.Query)]
public virtual AssetsResource.ListRequest.ContentTypeEnum? ContentType { get; set; }
Property Value
Type | Description |
---|---|
AssetsResource.ListRequest.ContentTypeEnum? |
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
PageSize
The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
The next_page_token
returned from the previous ListAssetsResponse
, or unspecified for the first
ListAssetsRequest
. It is a continuation of a prior ListAssets
call, and the API should return the
next page of assets.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), or "projects/[project-number]" (such as "projects/12345").
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
ReadTime
object representation of ReadTimeRaw.
Declaration
[Obsolete("This property is obsolete and may behave unexpectedly; please use ReadTimeDateTimeOffset instead.")]
public virtual object ReadTime { get; set; }
Property Value
Type | Description |
---|---|
object |
ReadTimeDateTimeOffset
Declaration
public virtual DateTimeOffset? ReadTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
ReadTimeRaw
String representation of ReadTimeDateTimeOffset, formatted for inclusion in the HTTP request.
Declaration
[RequestParameter("readTime", RequestParameterType.Query)]
public virtual string ReadTimeRaw { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()