# -*- coding: utf-8 -*- #
# Copyright 2025 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This file is autogenerated and should not be edited by hand.
# AUTOGEN_CLI_VERSION: HEAD
- release_tracks:
  - BETA
  auto_generated: true
  help_text:
    brief: Sanitize User Prompt.
    description: Sanitizes a user prompt.
    examples: |-
      To sanitize a user prompt, run:

      $ {command} my-template --location=us-central1 --user-prompt-data="test-user-prompt"
  arguments:
    params:
    - help_text: |-
        Represents resource name of template
        e.g. name=projects/sample-project/locations/us-central1/templates/templ01
      is_positional: true
      is_primary_resource: true
      resource_spec: !REF googlecloudsdk.command_lib.model_armor.v1beta_resources:projects_locations_templates
      required: true
    - group:
        mutex: true
        help_text: |-
          Arguments for the data item.
        params:
        - arg_name: user-prompt-data-text
          api_field: sanitizeUserPromptRequest.userPromptData.text
          required: false
          repeated: false
          help_text: |-
            Plaintext string data for sanitization.
        - group:
            api_field: sanitizeUserPromptRequest.userPromptData.byteItem
            required: false
            help_text: |-
              Represents Byte Data item.
            params:
            - arg_name: byte-item-data-type
              api_field: sanitizeUserPromptRequest.userPromptData.byteItem.byteDataType
              required: true
              help_text: |-
                The type of byte data
              choices:
              - arg_value: plaintext-utf8
                enum_value: PLAINTEXT_UTF8
                help_text: |-
                  plain text
              - arg_value: pdf
                enum_value: PDF
                help_text: |-
                  PDF
              - arg_value: word-document
                enum_value: WORD_DOCUMENT
                help_text: |-
                  DOCX, DOCM, DOTX, DOTM
              - arg_value: excel-document
                enum_value: EXCEL_DOCUMENT
                help_text: |-
                  XLSX, XLSM, XLTX, XLYM
              - arg_value: powerpoint-document
                enum_value: POWERPOINT_DOCUMENT
                help_text: |-
                  PPTX, PPTM, POTX, POTM, POT
              - arg_value: txt
                enum_value: TXT
                help_text: |-
                  TXT
              - arg_value: csv
                enum_value: CSV
                help_text: |-
                  CSV
            - group:
                mutex: true
                required: true
                params:
                - arg_name: byte-item-data-from-file
                  api_field: sanitizeUserPromptRequest.userPromptData.byteItem.byteData
                  json_name: byteDataFromFile
                  required: false
                  repeated: false
                  type: file_type
                  help_text: |-
                    Bytes Data
                - arg_name: byte-item-data
                  api_field: sanitizeUserPromptRequest.userPromptData.byteItem.byteData
                  required: false
                  repeated: false
                  type: bytes
                  help_text: |-
                    Bytes Data
    - arg_name: multi-language-detection-metadata-source
      api_field: sanitizeUserPromptRequest.multiLanguageDetectionMetadata.sourceLanguage
      required: false
      repeated: false
      help_text: |-
        Optional Source language of the user prompt.

        If multi-language detection is enabled but language is not set in that case
        we would automatically detect the source language.
    - arg_name: multi-language-detection-metadata-enable
      api_field: sanitizeUserPromptRequest.multiLanguageDetectionMetadata.enableMultiLanguageDetection
      action: store_true
      required: false
      type: bool
      help_text: |-
        Enable detection of multi-language prompts and responses.
      default: null
  request:
    api_version: v1beta
    collection:
    - modelarmor.projects.locations.templates
    method: sanitizeUserPrompt
  command_type: GENERIC
