- release_tracks: [ALPHA, BETA]

  help_text:
    brief: Remove a product from a product set.
    description: Remove a product from a product set.
    examples: |
      To remove product 'my-product' from product set 'my-product-set' in location 'us-east1', run:

        $ {command} my-product-set --location=us-east1 --product=my-product

  request:
    collection: vision.projects.locations.productSets
    method: removeProduct
    modify_request_hooks:
    - googlecloudsdk.command_lib.ml.vision.product_search.utils:FixProductInRemoveProductFromProductSetRequest

  arguments:
    resource:
      help_text: Product set to remove product from.
      spec: !REF googlecloudsdk.command_lib.ml.vision.resources:product_set

    params:
    - api_field: removeProductFromProductSetRequest.product
      arg_name: product
      required: true
      help_text: |-
        The id of the product to remove from the product set. The product must be in the same
        project and location as the specified product set.
