
    
                         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  S
SS.r\	R                   " \	R"                  R$                  5       " S S\	R&                  5      5       r\\l        g)z&Delete command for the Org Policy CLI.    )absolute_import)division)unicode_literals)service)base)	arguments)utils)logz0        Deletes an organization policy.
        z        To delete the policy associated with the constraint 'gcp.resourceLocations'
        and the Project 'foo-project', run:

        $ {command} gcp.resourceLocations --project=foo-project
        )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete*   zDelete an organization policy.c                 ~    [         R                  " U 5        [         R                  " U 5        U R                  SSSS9  g )Nz--etagETAGzThe current top-level etag of the Policy. If an etag is provided and does not match the current etag of the Policy, deletion will fail with a concurrent error.)metavarhelp)r   AddConstraintArgToParserAddResourceFlagsToParseradd_argument)parsers    "lib/surface/org_policies/delete.pyArgsDelete.Args.   s<    &&v.&&v.
-	      c                     [         R                  " U R                  5       5      n[        R                  " U5      nUR                  X1R                  5      n[        R                  " US5        U$ )a  Deletes an organization policy.

The policy is deleted using DeletePolicy.

Args:
  args: argparse.Namespace, An object that contains the values for the
    arguments specified in the Args method.

Returns:
   If the policy is deleted, then messages.GoogleProtobufEmpty.
policy)	org_policy_serviceOrgPolicyApiReleaseTrackr	   GetPolicyNameFromArgsDeletePolicyetagr
   DeletedResource)selfargsorg_policy_apipolicy_namedelete_responses        r   Run
Delete.Run<   sW     (44T5F5F5HIN--d3K$11+yyIOX.r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   __static_attributes__r,   r   r   r   r   *   s    & r   r   N)r1   
__future__r   r   r    googlecloudsdk.api_lib.orgpolicyr   r   googlecloudsdk.callioper   'googlecloudsdk.command_lib.org_policiesr   r	   googlecloudsdk.corer
   DETAILED_HELPReleaseTracksr    GACommandr   detailed_helpr,   r   r   <module>r>      st    - &  ' J ( = 9 #		 D%%(()"T\\ " *"J % r   