
                            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                  j                        ej                   G d dej                                      Zdd	d
Zy)z%Command for describing disk settings.    )base_classes)base)flags)
propertiesc                   &    e Zd ZdZed        Zd Zy)Describez.Describe a Google Compute Engine disk setting.c                     t        j                  |        t        t         _        | j                  j	                  d       y )Nz^yaml(accessLocation.policy,accessLocation.locations.list(show="keys"),defaultResourcePolicies))r   AddDiskSettingArgdetailed_helpdisplay_info	AddFormat)parsers    -lib/surface/compute/disk_settings/describe.pyArgszDescribe.Args   s2    	F#'E
!!	N    c                 ^   t        j                  | j                               }|j                  }|j                  rn|j
                  j                  }|j                  j                  t        j                  j                  j                  j                         |j                        }nm|j
                  j                  }|j                  j                  t        j                  j                  j                  j                         |j                         }|j#                  |d|fg      d   S )N)projectzone)r   regionGetr   )r   ComputeApiHolderReleaseTrackclientr   apitools_clientdiskSettingsmessagesComputeDiskSettingsGetRequestr   VALUEScorer   	GetOrFailregionDiskSettings#ComputeRegionDiskSettingsGetRequestr   MakeRequests)selfargsholderr   servicerequests         r   RunzDescribe.Run&   s    **4+<+<+>?F]]Fyy&&33g==##((00::<499 > g &&99gCC##((00::<T[[ D g % 9:;A>>r   N)__name__
__module____qualname____doc__staticmethodr   r)    r   r   r   r      s     7 ?r   r   z-Describe a Google Compute Engine disk settingzl      *{command}* display the Google Compute Engine disk setting in current scope of current project.
      )briefDESCRIPTIONN)r-   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   0googlecloudsdk.command_lib.compute.disk_settingsr   googlecloudsdk.corer   ReleaseTracksr   ALPHABETAUniverseCompatibleDescribeCommandr   r   r/   r   r   <module>r;      s~     , 7 ( B * D%%++T->->-C-CD?t## ?  E?: =
r   