- help_text:
    brief: Associate a device with a gateway.
    description: Associate a device with a gateway.
    examples: |
      To associate 'my-device' with 'my-gateway' in region 'us-central1', run:

        $ {command} --device=my-device --device-region=us-central1 --device-registry=my-registry --gateway=my-gateway --gateway-region=us-central1 --gateway-registry=my-registry

  request:
    collection: cloudiot.projects.locations.registries
    method: bindDeviceToGateway
    modify_request_hooks:
    - googlecloudsdk.command_lib.iot.util:AddBindArgsToRequest

  arguments:
    additional_arguments_hook: googlecloudsdk.command_lib.iot.resource_args:BindAdditionalArgsHook
