# -*- coding: utf-8 -*- #
# Copyright 2024 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:
  - GA
  auto_generated: true
  help_text:
    brief: Sanitize Model Response.
    description: Sanitizes a model response.
    examples: |-
      To sanitize a model response, run:
      $ {command} my-template --location=us-central1 --model-response-data="test-model-response"
  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.v1_resources:project_location_template
      required: true
    - group:
        mutex: true
        help_text: |-
          Arguments for the data item.
        params:
        - arg_name: model-response-data-text
          api_field: sanitizeModelResponseRequest.modelResponseData.text
          required: false
          repeated: false
          help_text: |-
            Plaintext string data for sanitization.
        - group:
            api_field: sanitizeModelResponseRequest.modelResponseData.byteItem
            required: false
            help_text: |-
              Represents Byte Data item.
            params:
            - arg_name: model-response-data-byte-item-type
              api_field: sanitizeModelResponseRequest.modelResponseData.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_name: model-response-data-byte-item-from-file
              api_field: sanitizeModelResponseRequest.modelResponseData.byteItem.byteData
              json_name: byteDataFromFile
              required: true
              repeated: false
              type: file_type
              help_text: |-
                Bytes Data
    - arg_name: user-prompt
      api_field: sanitizeModelResponseRequest.userPrompt
      required: false
      repeated: false
      help_text: |-
        User Prompt associated with Model response.
  request:
    api_version: v1
    collection:
    - modelarmor.projects.locations.templates
    method: sanitizeModelResponse
