
                         |   S r SSKJr  SSKJr  SSKJr  SSKJr  \R                  " \R                  R                  5      \R                   " S S\R                  5      5       5       r\R                  " \R                  R                  \R                  R                   5       " S S	\5      5       rS
SSSS.\l        g)z)Command for describing snapshot settings.    )base_classes)base)flags)
propertiesc                   8    \ rS rSrSr\S 5       rS rSS jrSr	g)	Describe   Describe snapshot settings.c                 :    U R                   R                  S5        g )NzIyaml(storageLocation.policy, storageLocation.locations.list(show="keys")))display_info	AddFormatparsers    1lib/surface/compute/snapshot_settings/describe.pyArgsDescribe.Args   s    
!!	8    c                 $    U R                  U5      $ )N_Runselfargss     r   RunDescribe.Run$   s    99T?r   c                 V   [         R                  " U R                  5       5      nUR                  nU(       a|  UR                  (       ak  UR
                  R                  nUR                  R                  [        R                  R                  R                  R                  5       UR                  S9nO_UR
                  R                  nUR                  R                  [        R                  R                  R                  R                  5       S9nUR!                  USU4/5      S   $ )N)projectregion)r   Getr   )r   ComputeApiHolderReleaseTrackclientr   apitools_clientregionSnapshotSettingsmessages'ComputeRegionSnapshotSettingsGetRequestr   VALUEScorer   	GetOrFailsnapshotSettings!ComputeSnapshotSettingsGetRequestMakeRequests)r   r   support_regionholderr"   servicerequests          r   r   Describe._Run'   s    **4+<+<+>?F]]F$++&&==gGG##((00::<T[[ H g &&77gAA##((00::< B g % 9:;A>>r    N)F)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r   r   __static_attributes__r2   r   r   r   r      s#     $ ?r   r   c                   .    \ rS rSrSr\S 5       rS rSrg)DescribeAlphaAndBeta7   r
   c                 f    [         R                  " U 5        U R                  R                  S5        g )Nzyaml(accessLocation.policy,accessLocation.locations.list(show="keys"),storageLocation.policy,storageLocation.locations.list(show="keys")))r   AddSnapshotSettingArgr   r   r   s    r   r   DescribeAlphaAndBeta.Args;   s)    	'
!!	7r   c                 "    U R                  USS9$ )NT)r-   r   r   s     r   r   DescribeAlphaAndBeta.RunD   s    99   r   r2   N)	r3   r4   r5   r6   r7   r8   r   r   r9   r2   r   r   r;   r;   7   s    # r   r;   r
   z9      Describe the snapshot settings of a project.
      z    To display the snapshot settings of a project called my-project, run:

        $ {command} --project=my-project
            z      This command uses the compute/alpha or compute/beta or comptue/v1 API. The full documentation for this API
     can be found at: https://cloud.google.com/compute/)briefDESCRIPTIONEXAMPLESzAPI REFERENCEN)r7   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   4googlecloudsdk.command_lib.compute.snapshot_settingsr   googlecloudsdk.corer   ReleaseTracksr!   GAUniverseCompatibleDescribeCommandr   ALPHABETAr;   detailed_helpr2   r   r   <module>rP      s     0 7 ( F * D%%(()?t## ?  *?: D%%++T->->-C-CD8  E( +

; r   