
                            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d	Zej                   ej                  ej                  j                  ej                  j                          G d
 dej"                                      Zy)%Create a backup of a Looker instance.    )backups)utils)base)flags)
properties)	resourcesz         To create a backup of an instance with the name my-looker-instance, in
        region us-central1 run:

          $ {command} --instance='my-looker-instance' --region='us-central1'
        )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)CreateInstanceBackupr   c                 V    t        j                  |        | j                  ddd       y)z Register flags for this command.z--regionTz             The name of the Looker region of the instance. Overrides the
            default looker/region property value for this command invocation.
            )requiredhelpN)r   AddInstanceadd_argument)parsers    $lib/surface/looker/backups/create.pyArgszCreateInstanceBackup.Args*   s0     
f
      c                 p   t         j                  j                  |j                  t        j
                  j                  j                  j                  |j                  dt        j                  | j                            d      j                         }t        j                  || j                               S )N)
projectsIdlocationsIdz#looker.projects.locations.instances)paramsapi_version
collection)r	   REGISTRYParseinstancer   VALUEScoreproject	GetOrFailregionr   VERSION_MAPReleaseTrackRelativeNamer   CreateBackup)selfargsparents      r   RunzCreateInstanceBackup.Run7   s    %%$++0088BB;;
 %%d&7&7&9:8 &  ln  (9(9(;<<r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r,    r   r   r   r   #   s#     . -
 
=r   r   N)r0   googlecloudsdk.api_lib.lookerr   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.lookerr   googlecloudsdk.corer   r	   r1   UniverseCompatibleReleaseTracksr&   ALPHAGACreateCommandr   r4   r   r   <module>r>      s    , 1 / ( 3 * ) ; D%%++T->->-A-AB=4-- = C =r   