
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSKJ
r
  S SS	.r\R                  \R                  " \R                  R                  \R                  R                   5       " S
 S\R"                  5      5       5       rg)%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                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)CreateInstanceBackup#   r   c                 R    [         R                  " U 5        U R                  SSSS9  g)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ArgsCreateInstanceBackup.Args*   s0     
f
      c                 j   [         R                  R                  UR                  [        R
                  R                  R                  R                  UR                  S.[        R                  U R                  5          SS9R                  5       n[        R                  " X R                  5       5      $ )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   RunCreateInstanceBackup.Run7   s    %%$++0088BB;;
 %%d&7&7&9:8 &  ln  (9(9(;<<r    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r   #   s#     . -
 
=r   r   N)r5   googlecloudsdk.api_lib.lookerr   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.lookerr   googlecloudsdk.corer   r	   r6   UniverseCompatibleReleaseTracksr(   ALPHAGACreateCommandr   r0   r   r   <module>rC      s    , 1 / ( 3 * ) ; D%%++T->->-A-AB=4-- = C =r   