HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/ml/translate/get_supported_languages.yaml
- release_tracks: [ALPHA, BETA]
  help_text:
    brief: Returns a list of supported languages for translation.
    description: |
      List supported languages for translation.
    examples: |
      The following command lists supported languages.

        $ {command} --zone=global

  request:
    collection: translate.projects.locations
    method: getSupportedLanguages
    BETA:
      api_version: v3
    ALPHA:
      api_version: v3beta1
    modify_request_hooks:
    - googlecloudsdk.command_lib.ml.translate.hooks:UpdateRequestGetSupportedLanguages

  arguments:
    resource:
      help_text: endpoint location
      spec: !REF googlecloudsdk.command_lib.ml.translate.resources:project
      override_resource_collection: true

    params:
    - _REF_: googlecloudsdk.command_lib.ml.translate.flags:zone
    - api_field: displayLanguageCode
      arg_name: display-language-code
      help_text: |
        The language to use to return localized, human-readable name of supported languages.
        If missing, then display names aren't returned in the response.
    - api_field: model
      arg_name: model
      help_text: |
        Get supported languages of specified model.

        Authorization requires one or more of the following Google IAM permissions on the specified
        resource model:

          cloudtranslate.generalModels.get

          automl.models.get

        Defaults to 'general/base'.

        Usage:

          AutoML models: '--model=TRL321456789'

          General models: '--model=general/nmt'