Show / Hide Table of Contents

Class AssetsResource.ListRequest

Lists assets with time and resource types and returns paged results in response.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListAssetsResponse>
CloudAssetBaseServiceRequest<ListAssetsResponse>
AssetsResource.ListRequest
Implements
IClientServiceRequest<ListAssetsResponse>
IClientServiceRequest
Inherited Members
CloudAssetBaseServiceRequest<ListAssetsResponse>.Xgafv
CloudAssetBaseServiceRequest<ListAssetsResponse>.AccessToken
CloudAssetBaseServiceRequest<ListAssetsResponse>.Alt
CloudAssetBaseServiceRequest<ListAssetsResponse>.Callback
CloudAssetBaseServiceRequest<ListAssetsResponse>.Fields
CloudAssetBaseServiceRequest<ListAssetsResponse>.Key
CloudAssetBaseServiceRequest<ListAssetsResponse>.OauthToken
CloudAssetBaseServiceRequest<ListAssetsResponse>.PrettyPrint
CloudAssetBaseServiceRequest<ListAssetsResponse>.QuotaUser
CloudAssetBaseServiceRequest<ListAssetsResponse>.UploadType
CloudAssetBaseServiceRequest<ListAssetsResponse>.UploadProtocol
ClientServiceRequest<ListAssetsResponse>.Execute()
ClientServiceRequest<ListAssetsResponse>.ExecuteAsStream()
ClientServiceRequest<ListAssetsResponse>.ExecuteAsync()
ClientServiceRequest<ListAssetsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListAssetsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListAssetsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListAssetsResponse>.CreateRequest(bool?)
ClientServiceRequest<ListAssetsResponse>.GenerateRequestUri()
ClientServiceRequest<ListAssetsResponse>.GetBody()
ClientServiceRequest<ListAssetsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListAssetsResponse>.ETagAction
ClientServiceRequest<ListAssetsResponse>.ModifyRequest
ClientServiceRequest<ListAssetsResponse>.ValidateParameters
ClientServiceRequest<ListAssetsResponse>.ApiVersion
ClientServiceRequest<ListAssetsResponse>.RequestParameters
ClientServiceRequest<ListAssetsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudAsset.v1
Assembly: Google.Apis.CloudAsset.v1.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
ClientServiceRequest<ListAssetsResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListAssetsResponse>.MethodName

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, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/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

RelationshipTypes

A list of relationship types to output, for example: INSTANCE_TO_INSTANCEGROUP. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.

Declaration
[RequestParameter("relationshipTypes", RequestParameterType.Query)]
public virtual Repeatable<string> RelationshipTypes { get; set; }
Property Value
Type Description
Repeatable<string>

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListAssetsResponse>.RestPath

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudAssetBaseServiceRequest<ListAssetsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX