Show / Hide Table of Contents

Class CasesResource.ListRequest

Retrieve all cases under a parent, but not its children. For example, listing cases under an organization only returns the cases that are directly parented by that organization. To retrieve cases under an organization and its projects, use cases.search. EXAMPLES: cURL:

shell parent="projects/some-project"
curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$parent/cases"

Python:

python import
googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request
= supportApiService.cases().list(parent="projects/some-project") print(request.execute())
Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListCasesResponse>
CloudSupportBaseServiceRequest<ListCasesResponse>
CasesResource.ListRequest
Implements
IClientServiceRequest<ListCasesResponse>
IClientServiceRequest
Inherited Members
CloudSupportBaseServiceRequest<ListCasesResponse>.Xgafv
CloudSupportBaseServiceRequest<ListCasesResponse>.AccessToken
CloudSupportBaseServiceRequest<ListCasesResponse>.Alt
CloudSupportBaseServiceRequest<ListCasesResponse>.Callback
CloudSupportBaseServiceRequest<ListCasesResponse>.Fields
CloudSupportBaseServiceRequest<ListCasesResponse>.Key
CloudSupportBaseServiceRequest<ListCasesResponse>.OauthToken
CloudSupportBaseServiceRequest<ListCasesResponse>.PrettyPrint
CloudSupportBaseServiceRequest<ListCasesResponse>.QuotaUser
CloudSupportBaseServiceRequest<ListCasesResponse>.UploadType
CloudSupportBaseServiceRequest<ListCasesResponse>.UploadProtocol
ClientServiceRequest<ListCasesResponse>.Execute()
ClientServiceRequest<ListCasesResponse>.ExecuteAsStream()
ClientServiceRequest<ListCasesResponse>.ExecuteAsync()
ClientServiceRequest<ListCasesResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListCasesResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListCasesResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListCasesResponse>.CreateRequest(bool?)
ClientServiceRequest<ListCasesResponse>.GenerateRequestUri()
ClientServiceRequest<ListCasesResponse>.GetBody()
ClientServiceRequest<ListCasesResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListCasesResponse>.ETagAction
ClientServiceRequest<ListCasesResponse>.ModifyRequest
ClientServiceRequest<ListCasesResponse>.ValidateParameters
ClientServiceRequest<ListCasesResponse>.ApiVersion
ClientServiceRequest<ListCasesResponse>.RequestParameters
ClientServiceRequest<ListCasesResponse>.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.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.ListRequest : CloudSupportBaseServiceRequest<ListCasesResponse>, IClientServiceRequest<ListCasesResponse>, 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

Filter

An expression used to filter cases. If it's an empty string, then no filtering happens. Otherwise, the endpoint returns the cases that match the filter. Expressions use the following fields separated by AND and specified with =: - state: Can be OPEN or CLOSED. - priority: Can be P0, P1, P2, P3, or P4. You can specify multiple values for priority using the OR operator. For example, priority=P1 OR priority=P2. - creator.email: The email address of the case creator. EXAMPLES: - state=CLOSED - state=OPEN AND creator.email="tester@example.com" - state=OPEN AND (priority=P0 OR priority=P1)

Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

PageSize

The maximum number of cases fetched with each request. Defaults to 10.

Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type Description
int?

PageToken

A token identifying the page of results to return. If unspecified, the first page is retrieved.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

Parent

Required. The name of a parent to list cases under.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

ProductLine

The product line to request cases for. If unspecified, only Google Cloud cases will be returned.

Declaration
[RequestParameter("productLine", RequestParameterType.Query)]
public virtual CasesResource.ListRequest.ProductLineEnum? ProductLine { get; set; }
Property Value
Type Description
CasesResource.ListRequest.ProductLineEnum?

RestPath

Gets the REST path.

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

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudSupportBaseServiceRequest<ListCasesResponse>.InitParameters()

Implements

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