escalate method
Escalate a case, starting the Google Cloud Support escalation management process.
This operation is only available for some support services. Go to
https://cloud.google.com/support and look for 'Technical support
escalations' in the feature list to find out which ones let you do that.
EXAMPLES: 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"
Python:
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
) request = supportApiService.cases().escalate(
name="projects/some-project/cases/43595344", body={ "escalation": {
"reason": "BUSINESS_IMPACT", "justification": "This is a test
escalation.", }, }, ) print(request.execute()) ```
[request] - The metadata request object.
Request parameters:
[name] - Required. The name of the case to be escalated.
Value must have pattern `^\[^/\]+/\[^/\]+/cases/\[^/\]+$`.
[$fields] - Selector specifying which fields to include in a partial
response.
Completes with a [Case].
Completes with a [commons.ApiRequestError] if the API endpoint returned an
error.
If the used [http.Client] completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<Case> escalate(
EscalateCaseRequest request,
core.String name, {
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$name') + ':escalate';
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return Case.fromJson(response_ as core.Map<core.String, core.dynamic>);
}