import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Retrieve a case. EXAMPLES: cURL: ``` shell case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case" ``` 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().get( name="projects/some-project/cases/43595344", ) print(request.execute()) ``` */ export declare function getCase(args: GetCaseArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetCaseArgs { caseId: string; v2Id: string; v2Id1: string; } export interface GetCaseResult { /** * The issue classification applicable to this case. */ readonly classification: outputs.cloudsupport.v2.CaseClassificationResponse; /** * A user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs. */ readonly contactEmail: string; /** * The time this case was created. */ readonly createTime: string; /** * The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support. */ readonly creator: outputs.cloudsupport.v2.ActorResponse; /** * A broad description of the issue. */ readonly description: string; /** * The short summary of the issue reported in this case. */ readonly displayName: string; /** * Whether the case is currently escalated. */ readonly escalated: boolean; /** * The language the user has requested to receive support in. This should be a BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours */ readonly languageCode: string; /** * The resource name for the case. */ readonly name: string; /** * The priority of this case. */ readonly priority: string; /** * The current status of the support case. */ readonly state: string; /** * The email addresses to receive updates on this case. */ readonly subscriberEmailAddresses: string[]; /** * Whether this case was created for internal API testing and should not be acted on by the support team. */ readonly testCase: boolean; /** * The timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API. */ readonly timeZone: string; /** * The time this case was last updated. */ readonly updateTime: string; } /** * Retrieve a case. EXAMPLES: cURL: ``` shell case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case" ``` 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().get( name="projects/some-project/cases/43595344", ) print(request.execute()) ``` */ export declare function getCaseOutput(args: GetCaseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetCaseOutputArgs { caseId: pulumi.Input; v2Id: pulumi.Input; v2Id1: pulumi.Input; }