
                         8   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ d	d
dZe
j                   e
j                  e
j                   j"                  e
j                   j$                         G d de
j&                                      Zee_        y)z%'workbench instances update' command.    )absolute_import)division)unicode_literals)	instances)util)base)flagsz4
        Resizes the workbench instance's disk.
    a   
    To increase the boot disk size for an instance, run:

        $ {command} example-instance --boot-disk-size=200 --location=us-central1-a

    To increase the data disk size for an instance, run:

        $ {command} example-instance --data-disk-size=200 --location=us-central1-a
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Updatez&Resizes the workbench instance's disk.c                 .    t        j                  |        y)z Register flags for this command.N)r	   AddResizeDiskFlags)parsers    .lib/surface/workbench/instances/resize_disk.pyArgszUpdate.Args1   s     
V$    c                 <   | j                         }t        j                  |      }t        j                  |      }|j                  }|j                  t        j                  ||            }t        j                  ||||t        j                  j                        S )N)operation_type)ReleaseTrackr   	GetClientGetMessagesprojects_locations_instances
ResizeDiskinstance_utilCreateInstanceResizeDisk	HandleLROOperationTypeUPDATE)selfargsrelease_trackclientmessagesinstance_service	operations          r   Runz
Update.Run6   s    %%'M^^M*F.H:: ++..tX>@I""$2299; ;r   N)__name__
__module____qualname____doc__staticmethodr   r'    r   r   r   r   ,   s     /% %;r   r   N)r+   
__future__r   r   r    googlecloudsdk.api_lib.workbenchr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.workbenchr	   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GABETACommandr   detailed_helpr-   r   r   <module>r9      s    , &  ' G 1 ( 6		$ D%%(($*;*;*@*@A;T\\ ; B ;, % r   