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

        $ {command} my-security-profile --organization=1234 --location=global --source=my-security-profile.yaml

request:
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1
  collection: networksecurity.organizations.locations.securityProfiles
  modify_request_hooks:
  - googlecloudsdk.command_lib.network_security.hooks:SetUpdateMask

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:securityProfile
    help_text: |
      Name of the Security Profile to import.

async:
  collection: networksecurity.organizations.locations.operations

import:
  abort_if_equivalent: true
  create_if_not_exists: true
  create_request:
    collection: networksecurity.organizations.locations.securityProfiles
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1
    method: create
