Google Cloud Logging v2 API - Class ListLogsRequest (4.4.0)

public sealed class ListLogsRequest : IMessage<ListLogsRequest>, IEquatable<ListLogsRequest>, IDeepCloneable<ListLogsRequest>, IBufferMessage, IMessage, IPageRequest

Reference documentation and code samples for the Google Cloud Logging v2 API class ListLogsRequest.

The parameters to ListLogs.

Inheritance

object > ListLogsRequest

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Constructors

ListLogsRequest()

public ListLogsRequest()

ListLogsRequest(ListLogsRequest)

public ListLogsRequest(ListLogsRequest other)
Parameter
Name Description
other ListLogsRequest

Properties

PageSize

public int PageSize { get; set; }

Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.

Property Value
Type Description
int

PageToken

public string PageToken { get; set; }

Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.

Property Value
Type Description
string

Parent

public string Parent { get; set; }

Required. The resource name to list logs for:

  • projects/[PROJECT_ID]
  • organizations/[ORGANIZATION_ID]
  • billingAccounts/[BILLING_ACCOUNT_ID]
  • folders/[FOLDER_ID]
Property Value
Type Description
string

ParentAsBillingAccountName

public BillingAccountName ParentAsBillingAccountName { get; set; }

BillingAccountName-typed view over the Parent resource name property.

Property Value
Type Description
BillingAccountName

ParentAsFolderName

public FolderName ParentAsFolderName { get; set; }

FolderName-typed view over the Parent resource name property.

Property Value
Type Description
FolderName

ParentAsOrganizationName

public OrganizationName ParentAsOrganizationName { get; set; }

OrganizationName-typed view over the Parent resource name property.

Property Value
Type Description
OrganizationName

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
Type Description
ProjectName

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
Type Description
IResourceName

ResourceNames

public RepeatedField<string> ResourceNames { get; }

Optional. List of resource names to list logs for:

  • projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
  • organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
  • billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
  • folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]

To support legacy queries, it could also be:

  • projects/[PROJECT_ID]
  • organizations/[ORGANIZATION_ID]
  • billingAccounts/[BILLING_ACCOUNT_ID]
  • folders/[FOLDER_ID]

The resource name in the parent field is added to this list.

Property Value
Type Description
RepeatedFieldstring

ResourceNamesAsBillingAccountNames

public ResourceNameList<BillingAccountName> ResourceNamesAsBillingAccountNames { get; }

BillingAccountName-typed view over the ResourceNames resource name property.

Property Value
Type Description
ResourceNameListBillingAccountName

ResourceNamesAsFolderNames

public ResourceNameList<FolderName> ResourceNamesAsFolderNames { get; }

FolderName-typed view over the ResourceNames resource name property.

Property Value
Type Description
ResourceNameListFolderName

ResourceNamesAsOrganizationNames

public ResourceNameList<OrganizationName> ResourceNamesAsOrganizationNames { get; }

OrganizationName-typed view over the ResourceNames resource name property.

Property Value
Type Description
ResourceNameListOrganizationName

ResourceNamesAsProjectNames

public ResourceNameList<ProjectName> ResourceNamesAsProjectNames { get; }

ProjectName-typed view over the ResourceNames resource name property.

Property Value
Type Description
ResourceNameListProjectName

ResourceNamesAsResourceNames

public ResourceNameList<IResourceName> ResourceNamesAsResourceNames { get; }

IResourceName-typed view over the ResourceNames resource name property.

Property Value
Type Description
ResourceNameListIResourceName