release_tracks: [GA, BETA, ALPHA]
help_text:
  brief: |
    Import ClientTlsPolicy.
  description: |
    Import a ClientTlsPolicy.
  examples: |
      To import a ClientTlsPolicy from a YAML file, run:

        $ {command} my-client-tls-policy --source=my-client-tls-policy.yaml --location=global

request:
  collection: networksecurity.projects.locations.clientTlsPolicies
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:clientTlsPolicy
    help_text: |
      Name of the ClientTlsPolicy to import.

async:
  collection: networksecurity.projects.locations.operations

import:
  abort_if_equivalent: true
  create_if_not_exists: true
  create_request:
    collection: networksecurity.projects.locations.clientTlsPolicies
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    method: create
