release_tracks: [ALPHA, BETA, GA]

help_text:
  brief: |
    Clone items from source address group of organization.
  description: |
    Clone items from source address group of organization.

  examples: |
    Clone items from source address group named ``other-address-group'' of organization 1234.

      $ {command} my-address-group --organization=1234 --source=other-address-group

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:orgAddressGroup
    help_text: Name of the address group to be updated.
  params:
  - arg_name: source
    api_field: cloneAddressGroupItemsRequest.sourceAddressGroup
    help_text: Source address group to be cloned from.

async:
  collection: networksecurity.organizations.locations.operations

request: &request
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1
  method: cloneItems
  modify_request_hooks:
  - googlecloudsdk.command_lib.network_security.util:FormatSourceAddressGroup
  collection: networksecurity.organizations.locations.addressGroups

response:
  modify_response_hooks:
  - googlecloudsdk.command_lib.network_security.util:LogCloneItemsSuccess
