- release_tracks: [ALPHA, BETA]

  help_text:
    brief: Add a product to the specified product set.
    description: Add a product to the specified product set. One product can be added to at most 100 product sets.
    examples: |
      To add product 'my-product' to 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: addProduct
    modify_request_hooks:
    - googlecloudsdk.command_lib.ml.vision.product_search.utils:FixProductInAddProductToProductSetRequest

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

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