- release_tracks: [ALPHA, GA]
  help_text:
    brief: Migrate a key to reCAPTCHA Enterprise.
    description: Migrate a key from reCAPTCHA to reCAPTCHA Enterprise.
    examples: |
        To migrate a key from reCAPTCHA to reCAPTCHA Enterprise, run:

          $ {command} test-key

  request:
    collection: recaptchaenterprise.projects.keys
    method: migrate

  arguments:
    resource:
      help_text: The reCAPTCHA key to migrate.
      spec: !REF googlecloudsdk.command_lib.recaptcha.resources:keys

  response:
    modify_response_hooks:
    - googlecloudsdk.command_lib.recaptcha.migrate_util:LogMigrateSuccess

  output:
    format: none
