release_tracks: [ALPHA, BETA, GA]

help_text:
  brief: |
    Remove items from an address group of organization.
  description: |
    Remove items from an existing address group of organization.

  examples: |
    Remove an item from an address group named ``my-address-group'' of organization 1234.

      $ {command} my-address-group --items=192.168.1.1 --organization=1234

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:orgAddressGroup
    help_text: Name of the address group to be updated.
  params:
  - arg_name: items
    api_field: removeAddressGroupItemsRequest.items
    help_text: Items to be removed from the address group.

async:
  collection: networksecurity.organizations.locations.operations

request: &request
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1
  method: removeItems
  collection: networksecurity.organizations.locations.addressGroups

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