
    [                         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KJr  SSKJr  \	R                  " \	R                   R"                  5       " S	 S
\	R$                  5      5       rg)z6Implements command to delete a specified guest policy.    )absolute_import)division)unicode_literals)utils)base)log)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   zDelete the specified guest policy.

## EXAMPLES

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

        $ {command} policy1

c                 .    U R                  S[        SS9  g)See base class.	POLICY_IDz#Name of the guest policy to delete.)typehelpN)add_argumentstr)parsers    6lib/surface/compute/os_config/guest_policies/delete.pyArgsDelete.Args(   s      #$I  K    c                    U R                  5       n[        R                  " U5      n[        R                  " U5      n[        R
                  R                  R                  R                  5       n[        R                  " SXQR                  5      nUR                  US9nUR                  nUR                  U5      n	[        R                   " U5        U	$ )r   projects)name)ReleaseTrackosconfig_api_utilsGetClientInstanceGetClientMessagesr	   VALUEScoreproject	GetOrFailosconfig_command_utilsGetGuestPolicyUriPathr   *OsconfigProjectsGuestPoliciesDeleteRequestprojects_guestPoliciesr   r   DeletedResource)
selfargsrelease_trackclientmessagesr"   guest_policy_namerequestserviceresponses
             r   Run
Delete.Run.   s    %%'M11-@F!33MBH$$,,668G.DDG^^-AA B  G++G~~g&H)*Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r2   __static_attributes__r4   r   r   r   r      s"     K K
r   r   N)r9   
__future__r   r   r   (googlecloudsdk.api_lib.compute.os_configr   r   googlecloudsdk.callioper   ,googlecloudsdk.command_lib.compute.os_configr$   googlecloudsdk.corer   r	   ReleaseTracksr   BETADeleteCommandr   r4   r   r   <module>rD      sZ    = &  ' P ( X # * D%%**+ T   , r   