
                             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lmZ  e	j                  e	j                  j                          G d d	e	j"                               Zy
)z8Implements command to describe a specified guest policy.    )absolute_import)division)unicode_literals)utils)base)
propertiesc                   &    e Zd ZdZed        Zd Zy)DescribezDescribe the specified guest policy.

  ## EXAMPLES

    To describe the guest policy `policy1` in the current project, run:

          $ {command} policy1

  c                 4    | j                  dt        d       y)See base class.	POLICY_IDz%Name of the guest policy to describe.)typehelpN)add_argumentstr)parsers    8lib/surface/compute/os_config/guest_policies/describe.pyArgszDescribe.Args'   s      #$K  M    c                 v   | j                         }t        j                  |      }t        j                  |      }t        j
                  j                  j                  j                         }|j                  t        j                  d||j                              }|j                  }|j                  |      S )r   projects)name)ReleaseTrackosconfig_api_utilsGetClientInstanceGetClientMessagesr   VALUEScoreproject	GetOrFail'OsconfigProjectsGuestPoliciesGetRequestosconfig_command_utilsGetGuestPolicyUriPathr   projects_guestPoliciesGet)selfargsrelease_trackclientmessagesr   requestservices           r   RunzDescribe.Run-   s    %%'M11-@F!33MBH$$,,668G>>#991 ? 2G ++G;;wr   N)__name__
__module____qualname____doc__staticmethodr   r-    r   r   r
   r
      s"     M M
 r   r
   N)r1   
__future__r   r   r   (googlecloudsdk.api_lib.compute.os_configr   r   googlecloudsdk.callioper   ,googlecloudsdk.command_lib.compute.os_configr"   googlecloudsdk.corer   ReleaseTracksr   BETADescribeCommandr
   r3   r   r   <module>r<      sY    ? &  ' P ( X * D%%**+ t##   , r   