Class CasesResource
The "cases" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource
Constructors
CasesResource(IClientService)
Constructs a new resource.
Declaration
public CasesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Attachments
Gets the Attachments resource.
Declaration
public virtual CasesResource.AttachmentsResource Attachments { get; }
Property Value
Type | Description |
---|---|
CasesResource.AttachmentsResource |
Comments
Gets the Comments resource.
Declaration
public virtual CasesResource.CommentsResource Comments { get; }
Property Value
Type | Description |
---|---|
CasesResource.CommentsResource |
Methods
Close(CloseCaseRequest, string)
Close the specified case. Here is an example of calling this endpoint using cURL:
shell
case="projects/some-project/cases/43595344" curl \ --request POST \ --header "Authorization: Bearer $(gcloud
auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case:close"
Declaration
public virtual CasesResource.CloseRequest Close(CloseCaseRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
CloseCaseRequest | body | The body of the request. |
string | name | Required. The fully qualified name of the case resource to be closed. |
Returns
Type | Description |
---|---|
CasesResource.CloseRequest |
Create(Case, string)
Create a new case and associate it with a Google Cloud Resource. The case object must have the following
fields set: display_name
, description
, classification
, and priority
. If you're just testing the API
and don't want to route your case to an agent, set testCase=true
. Here is an example of calling this
endpoint using cURL:
shell parent="projects/some-project" curl \ --request POST \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \
--data '{ "display_name": "Test case created by me.", "description": "a random test case, feel free to
close", "classification": { "id":
"100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
}, "time_zone": "-07:00", "subscriber_email_addresses": [ "foo@domain.com", "bar@domain.com" ], "testCase":
true, "priority": "P3" }' \ "https://cloudsupport.googleapis.com/v2/$parent/cases"
Declaration
public virtual CasesResource.CreateRequest Create(Case body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Case | body | The body of the request. |
string | parent | Required. The name of the Google Cloud Resource under which the case should be created. |
Returns
Type | Description |
---|---|
CasesResource.CreateRequest |
Escalate(EscalateCaseRequest, string)
Escalate a case. Escalating a case initiates the Google Cloud Support escalation management process. This operation is only available to certain Customer Care support services. Go to https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which support services let you perform escalations. Here is an example of calling this endpoint using cURL:
shell case="projects/some-project/cases/43595344" curl \ --request POST \ --header "Authorization:
Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \ --data '{
"escalation": { "reason": "BUSINESS_IMPACT", "justification": "This is a test escalation." } }' \
"https://cloudsupport.googleapis.com/v2/$case:escalate"
Declaration
public virtual CasesResource.EscalateRequest Escalate(EscalateCaseRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
EscalateCaseRequest | body | The body of the request. |
string | name | Required. The fully qualified name of the Case resource to be escalated. |
Returns
Type | Description |
---|---|
CasesResource.EscalateRequest |
Get(string)
Retrieve the specified case. Here is an example of calling this endpoint using cURL:
shell
case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth
print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case"
Declaration
public virtual CasesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The fully qualified name of a case to be retrieved. |
Returns
Type | Description |
---|---|
CasesResource.GetRequest |
List(string)
Retrieve all cases under the specified parent. Note: Listing cases under an organization returns only the
cases directly parented by that organization. To retrieve all cases under an organization, including cases
parented by projects under that organization, use cases.search
. Here is an example of calling this
endpoint using cURL:
shell parent="projects/some-project" curl \ --header "Authorization: Bearer $(gcloud
auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases"
Declaration
public virtual CasesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The fully qualified name of parent resource to list cases under. |
Returns
Type | Description |
---|---|
CasesResource.ListRequest |
Patch(Case, string)
Update the specified case. Only a subset of fields can be updated. Here is an example of calling this endpoint using cURL:
shell case="projects/some-project/cases/43595344" curl \ --request PATCH \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \
--data '{ "priority": "P1" }' \ "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
Declaration
public virtual CasesResource.PatchRequest Patch(Case body, string name)
Parameters
Type | Name | Description |
---|---|---|
Case | body | The body of the request. |
string | name | The resource name for the case. |
Returns
Type | Description |
---|---|
CasesResource.PatchRequest |
Search()
Search cases using the specified query. Here is an example of calling this endpoint using cURL:
shell
parent="projects/some-project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$parent/cases:search"
Declaration
public virtual CasesResource.SearchRequest Search()
Returns
Type | Description |
---|---|
CasesResource.SearchRequest |