
    
                         S r SSKJr  \R                  " \R                  R
                  5      \R                   " S S\R                  5      5       5       rg)z&The command group for Disk Migrations.    )basec                       \ rS rSrSrSrg)DiskMigrations   a  Migrates disks to Compute Engine.

The gcloud alpha migration vms disk-migrations command lets you create and
manage disk migration resource. You must create a disk migration resource
before you can migrate your disk from any migration source to a Compute Engine
disk. The disk migration resource tracks the progress of the disk migration.
To use this command, you must enable VM Migration API in your project.

Note that this command only creates a disk migration resource. It does not
initiate the disk migration process. After creating the disk migration
resource, you must initiate the migration process using the run command.


The disk is migrated to a Google Cloud Project, designated by the Target Project resource.
To get a list of Target Projects, run the gcloud alpha migration vms target-projects list command.
For information on adding target projects, see https://cloud.google.com/migrate/virtual-machines/docs/5.0/how-to/target-project.

A project can support a maximum of 200 Disk/VM Migration active resources per project; 1000 ready disk migration resources, and 500 finished disk migration resources.
Hence we recommend that you delete a completed disk migrations to avoid reaching the disk migration resources limit.
Deletion of disk migration resource does not affect the migrated disk.

## Create Disk Migration
$ gcloud migration vms disk-migrations create DISK_MIGRATION_JOB_NAME \
  --source=AWS_SOURCE_NAME \
  --source-volume-id=AWS_VOLUME_ID \
  --location=REGION \
  --target-project=TARGET_PROJECT_RESOURCE_PATH

## Run Disk Migration
$ gcloud migration vms disk-migrations run DISK_MIGRATION_JOB_NAME \
  --source=AWS_SOURCE_NAME \
  --location=REGION \

## Delete Disk Migration resource
$ gcloud migration vms disk-migrations delete DISK_MIGRATION_JOB_NAME \
  --location=REGION
 N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       5lib/surface/migration/vms/disk_migrations/__init__.pyr   r      s    $r   r   N)	r   googlecloudsdk.callioper   ReleaseTracksReleaseTrackALPHADefaultUniverseOnlyGroupr   r   r   r   <module>r      sQ    - ( D%%++,%TZZ %  -%r   