
                         |   d Z ddlmZ ddlmZ ddlmZ ddlmZ  ej                  ej                  j                        ej                   G d dej                                      Z ej                  ej                  j                  ej                  j                          G d d	e             Zd
dddde_        y)z)Command for describing snapshot settings.    )base_classes)base)flags)
propertiesc                   .    e Zd ZdZed        Zd ZddZy)DescribeDescribe snapshot settings.c                 :    | j                   j                  d       y )NzIyaml(storageLocation.policy, storageLocation.locations.list(show="keys")))display_info	AddFormatparsers    1lib/surface/compute/snapshot_settings/describe.pyArgszDescribe.Args   s    
!!	8    c                 $    | j                  |      S )N_Runselfargss     r   RunzDescribe.Run$   s    99T?r   c                 L   t        j                  | j                               }|j                  }|rz|j                  rn|j
                  j                  }|j                  j                  t        j                  j                  j                  j                         |j                        }nb|j
                  j                  }|j                  j                  t        j                  j                  j                  j                               }|j!                  |d|fg      d   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   z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____doc__staticmethodr   r   r    r   r   r   r      s#     $ ?r   r   c                   &    e Zd ZdZed        Zd Zy)DescribeAlphaAndBetar	   c                 d    t        j                  |        | j                  j                  d       y )Nzyaml(accessLocation.policy,accessLocation.locations.list(show="keys"),storageLocation.policy,storageLocation.locations.list(show="keys")))r   AddSnapshotSettingArgr   r   r   s    r   r   zDescribeAlphaAndBeta.Args;   s)    	'
!!	7r   c                 (    | j                  |d      S )NT)r*   r   r   s     r   r   zDescribeAlphaAndBeta.RunD   s    99   r   N)r.   r/   r0   r1   r2   r   r   r3   r   r   r5   r5   7   s    # r   r5   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)r1   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   4googlecloudsdk.command_lib.compute.snapshot_settingsr   googlecloudsdk.corer   ReleaseTracksr   GAUniverseCompatibleDescribeCommandr   ALPHABETAr5   detailed_helpr3   r   r   <module>rG      s     0 7 ( F * D%%(()?t## ?  *?: D%%++T->->-C-CD8  E( +

; r   