Class CasesResource.CloseRequest
Close a case. EXAMPLES: 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"
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().close( name="projects/some-project/cases/43595344" ) print(request.execute())
Inheritance
CasesResource.CloseRequest
Inherited Members
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.CloseRequest : CloudSupportBaseServiceRequest<Case>, IClientServiceRequest<Case>, IClientServiceRequest
Constructors
CloseRequest(IClientService, CloseCaseRequest, string)
Constructs a new Close request.
Declaration
public CloseRequest(IClientService service, CloseCaseRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CloseCaseRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Case>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Case>.MethodName
Name
Required. The name of the case to close.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Case>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Case>.GetBody()
InitParameters()
Initializes Close parameter list.
Declaration
protected override void InitParameters()