# -*- 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:
  - ALPHA
  auto_generated: true
  hidden: true
  help_text:
    brief: Update dataproc gdc application environment controller.
    description: |
      Update dataproc gdc application environment controller.
    examples: |-
      Updates application environment controller.

      $ {command} my-environment --location=my-location --project=my-project --instance=my-instance
  arguments:
    params:
    - help_text: |-
        Identifier. Fields 1-6 should exist for all declarative friendly resources per
        aip.dev/148 The name of the application environment.
        Format:
        projects/{project}/locations/{location}/serviceInstances/{service_instance}/applicationEnvironments/{application_environment_id}
      is_positional: true
      resource_spec: !REF googlecloudsdk.command_lib.dataproc_gdc.v1alpha1_resources:project_location_service_instance_application_environment
      required: true
    - arg_name: display-name
      api_field: applicationEnvironment.displayName
      required: false
      repeated: false
      help_text: |-
        User-provided human-readable name to be used in user interfaces.
    - arg_name: labels
      api_field: applicationEnvironment.labels
      required: false
      repeated: true
      help_text: |-
        The labels to associate with this application environment. Labels may be
        used for filtering and billing tracking.
      clearable: true
      spec:
      - api_field: key
      - api_field: value
    - arg_name: annotations
      api_field: applicationEnvironment.annotations
      required: false
      repeated: true
      help_text: |-
        The annotations to associate with this application environment. Annotations
        may be used to store client information, but are not used by the server.
      clearable: true
      spec:
      - api_field: key
      - api_field: value
    - group:
        required: false
        help_text: |-
          Represents the SparkApplicationEnvironmentConfig.
        params:
        - arg_name: spark-application-environment-config-default-properties
          api_field: applicationEnvironment.sparkApplicationEnvironmentConfig.defaultProperties
          required: false
          repeated: true
          help_text: |-
            A map of default Spark properties to apply to workloads in this application
            environment. These defaults may be overridden by per-application
            properties.
          clearable: true
          spec:
          - api_field: key
          - api_field: value
        - arg_name: spark-application-environment-config-default-version
          api_field: applicationEnvironment.sparkApplicationEnvironmentConfig.defaultVersion
          required: false
          repeated: false
          help_text: |-
            The default Dataproc version to use for applications submitted to this
            application environment
    - arg_name: namespace
      api_field: applicationEnvironment.namespace
      required: false
      repeated: false
      help_text: |-
        The name of the namespace in which to create this ApplicationEnvironment.
        This namespace must already exist in the cluster
  request:
    api_version: v1alpha1
    collection:
    - dataprocgdc.projects.locations.serviceInstances.applicationEnvironments
  update:
    read_modify_update: true
