Class CaseClassificationsResource.SearchRequest
Retrieve valid classifications to use when creating a support case. Classifications are hierarchical. Each
classification is a string containing all levels of the hierarchy separated by " > "
. For example,
"Technical Issue > Compute > Compute Engine"
. Classification IDs returned by this endpoint
are valid for at least six months. When a classification is deactivated, this endpoint immediately stops
returning it. After six months, case.create
requests using the classification will fail. EXAMPLES: cURL:
shell curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \
'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
Python:
python import googleapiclient.discovery supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version="v2",
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2", ) request =
supportApiService.caseClassifications().search( query='display_name:"*Compute Engine*"' )
print(request.execute())
Inheritance
Inherited Members
Namespace: Google.Apis.CloudSupport.v2
Assembly: Google.Apis.CloudSupport.v2.dll
Syntax
public class CaseClassificationsResource.SearchRequest : CloudSupportBaseServiceRequest<SearchCaseClassificationsResponse>, IClientServiceRequest<SearchCaseClassificationsResponse>, IClientServiceRequest
Constructors
SearchRequest(IClientService)
Constructs a new Search request.
Declaration
public SearchRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
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
PageSize
The maximum number of classifications fetched with each request.
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 |
Query
An expression used to filter case classifications. If it's an empty string, then no filtering happens. Otherwise, case classifications will be returned that match the filter.
Declaration
[RequestParameter("query", RequestParameterType.Query)]
public virtual string Query { get; set; }
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 Search parameter list.
Declaration
protected override void InitParameters()