1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudsupport
  5. cloudsupport/v2
  6. getCase

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudsupport/v2.getCase

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    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())

    Using getCase

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCase(args: GetCaseArgs, opts?: InvokeOptions): Promise<GetCaseResult>
    function getCaseOutput(args: GetCaseOutputArgs, opts?: InvokeOptions): Output<GetCaseResult>
    def get_case(case_id: Optional[str] = None,
                 v2_id: Optional[str] = None,
                 v2_id1: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetCaseResult
    def get_case_output(case_id: Optional[pulumi.Input[str]] = None,
                 v2_id: Optional[pulumi.Input[str]] = None,
                 v2_id1: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetCaseResult]
    func LookupCase(ctx *Context, args *LookupCaseArgs, opts ...InvokeOption) (*LookupCaseResult, error)
    func LookupCaseOutput(ctx *Context, args *LookupCaseOutputArgs, opts ...InvokeOption) LookupCaseResultOutput

    > Note: This function is named LookupCase in the Go SDK.

    public static class GetCase 
    {
        public static Task<GetCaseResult> InvokeAsync(GetCaseArgs args, InvokeOptions? opts = null)
        public static Output<GetCaseResult> Invoke(GetCaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCaseResult> getCase(GetCaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:cloudsupport/v2:getCase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CaseId string
    V2Id string
    V2Id1 string
    CaseId string
    V2Id string
    V2Id1 string
    caseId String
    v2Id String
    v2Id1 String
    caseId string
    v2Id string
    v2Id1 string
    case_id str
    v2_id str
    v2_id1 str
    caseId String
    v2Id String
    v2Id1 String

    getCase Result

    The following output properties are available:

    Classification Pulumi.GoogleNative.CloudSupport.V2.Outputs.CaseClassificationResponse
    The issue classification applicable to this case.
    ContactEmail string
    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.
    CreateTime string
    The time this case was created.
    Creator Pulumi.GoogleNative.CloudSupport.V2.Outputs.ActorResponse
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    Description string
    A broad description of the issue.
    DisplayName string
    The short summary of the issue reported in this case.
    Escalated bool
    Whether the case is currently escalated.
    LanguageCode string
    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
    Name string
    The resource name for the case.
    Priority string
    The priority of this case.
    State string
    The current status of the support case.
    SubscriberEmailAddresses List<string>
    The email addresses to receive updates on this case.
    TestCase bool
    Whether this case was created for internal API testing and should not be acted on by the support team.
    TimeZone string
    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.
    UpdateTime string
    The time this case was last updated.
    Classification CaseClassificationResponse
    The issue classification applicable to this case.
    ContactEmail string
    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.
    CreateTime string
    The time this case was created.
    Creator ActorResponse
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    Description string
    A broad description of the issue.
    DisplayName string
    The short summary of the issue reported in this case.
    Escalated bool
    Whether the case is currently escalated.
    LanguageCode string
    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
    Name string
    The resource name for the case.
    Priority string
    The priority of this case.
    State string
    The current status of the support case.
    SubscriberEmailAddresses []string
    The email addresses to receive updates on this case.
    TestCase bool
    Whether this case was created for internal API testing and should not be acted on by the support team.
    TimeZone string
    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.
    UpdateTime string
    The time this case was last updated.
    classification CaseClassificationResponse
    The issue classification applicable to this case.
    contactEmail String
    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.
    createTime String
    The time this case was created.
    creator ActorResponse
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    description String
    A broad description of the issue.
    displayName String
    The short summary of the issue reported in this case.
    escalated Boolean
    Whether the case is currently escalated.
    languageCode String
    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
    name String
    The resource name for the case.
    priority String
    The priority of this case.
    state String
    The current status of the support case.
    subscriberEmailAddresses List<String>
    The email addresses to receive updates on this case.
    testCase Boolean
    Whether this case was created for internal API testing and should not be acted on by the support team.
    timeZone String
    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.
    updateTime String
    The time this case was last updated.
    classification CaseClassificationResponse
    The issue classification applicable to this case.
    contactEmail string
    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.
    createTime string
    The time this case was created.
    creator ActorResponse
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    description string
    A broad description of the issue.
    displayName string
    The short summary of the issue reported in this case.
    escalated boolean
    Whether the case is currently escalated.
    languageCode string
    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
    name string
    The resource name for the case.
    priority string
    The priority of this case.
    state string
    The current status of the support case.
    subscriberEmailAddresses string[]
    The email addresses to receive updates on this case.
    testCase boolean
    Whether this case was created for internal API testing and should not be acted on by the support team.
    timeZone string
    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.
    updateTime string
    The time this case was last updated.
    classification CaseClassificationResponse
    The issue classification applicable to this case.
    contact_email str
    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.
    create_time str
    The time this case was created.
    creator ActorResponse
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    description str
    A broad description of the issue.
    display_name str
    The short summary of the issue reported in this case.
    escalated bool
    Whether the case is currently escalated.
    language_code str
    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
    name str
    The resource name for the case.
    priority str
    The priority of this case.
    state str
    The current status of the support case.
    subscriber_email_addresses Sequence[str]
    The email addresses to receive updates on this case.
    test_case bool
    Whether this case was created for internal API testing and should not be acted on by the support team.
    time_zone str
    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.
    update_time str
    The time this case was last updated.
    classification Property Map
    The issue classification applicable to this case.
    contactEmail String
    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.
    createTime String
    The time this case was created.
    creator Property Map
    The user who created the case. Note: The name and email will be obfuscated if the case was created by Google Support.
    description String
    A broad description of the issue.
    displayName String
    The short summary of the issue reported in this case.
    escalated Boolean
    Whether the case is currently escalated.
    languageCode String
    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
    name String
    The resource name for the case.
    priority String
    The priority of this case.
    state String
    The current status of the support case.
    subscriberEmailAddresses List<String>
    The email addresses to receive updates on this case.
    testCase Boolean
    Whether this case was created for internal API testing and should not be acted on by the support team.
    timeZone String
    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.
    updateTime String
    The time this case was last updated.

    Supporting Types

    ActorResponse

    DisplayName string
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    Email string
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    GoogleSupport bool
    Whether the actor is a Google support actor.
    DisplayName string
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    Email string
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    GoogleSupport bool
    Whether the actor is a Google support actor.
    displayName String
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    email String
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    googleSupport Boolean
    Whether the actor is a Google support actor.
    displayName string
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    email string
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    googleSupport boolean
    Whether the actor is a Google support actor.
    display_name str
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    email str
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    google_support bool
    Whether the actor is a Google support actor.
    displayName String
    The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    email String
    The email address of the actor. If not provided, it is inferred from credentials supplied during case creation. If the authenticated principal does not have an email address, one must be provided. When a name is provided, an email must also be provided. This will be obfuscated if the user is a Google Support agent.
    googleSupport Boolean
    Whether the actor is a Google support actor.

    CaseClassificationResponse

    DisplayName string
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.
    DisplayName string
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.
    displayName String
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.
    displayName string
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.
    display_name str
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.
    displayName String
    A display name for the classification. The display name is not static and can change. To uniquely and consistently identify classifications, use the CaseClassification.id field.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi