
    	                         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	\R                  \R                  \
R                  5      rg
)z.Manages content bundles for Policy Controller.    )absolute_import)division)unicode_literals)base)command)contentc                   <    \ rS rSrSrSrSr\S 5       rS r	S r
Srg)	Remove   a  Removes a bundle installation for Policy Controller content.

Google-defined policy bundles of constraints can be installed onto Policy
Controller installations. This command removes those bundles.

## EXAMPLES

To remove a policy bundle:

  $ {command} cis-k8s-v1.5.1
policycontrollerc                     [         R                  " US5      nUR                  5         UR                  [         R                  SS9  g )Nbundlesz7The constraint bundle to remove from Policy Controller.)help)r   Flagsadd_membershipsadd_argumentARG_LABEL_BUNDLE)clsparser	cmd_flagss      Flib/surface/container/fleet/policycontroller/content/bundles/remove.pyArgsRemove.Args*   s=    fi0I
  F      c           	          [         R                  " XR                  5      nU R                  US5      nUR	                  5        VVs0 s H  u  pEX@R                  XR5      _M     nnnU R                  U5      $ s  snnf )NT)r   
FlagParsermessages
path_specsitemsmodifyupdate_specs)selfargsr   specspathsupdated_specss          r   Run
Remove.Run4   se    mm4FOOD$'EAFOgdT;;q11MO]++ Ps   A7c                     UR                   R                  R                  nUR                  U5      UR                   R                  l        U$ )N)r   policyControllerHubConfigpolicyContentremove_bundle)r"   specr   policy_contents       r   r    Remove.modify:   sG    77EE  	^, 	33A Kr    N)__name__
__module____qualname____firstlineno____doc__feature_namemf_nameclassmethodr   r(   r    __static_attributes__r1   r   r   r
   r
      s/    
 $,' ,r   r
   N)r6   
__future__r   r   r   3googlecloudsdk.command_lib.container.fleet.featuresr   =googlecloudsdk.command_lib.container.fleet.membershipfeaturesmf_base;googlecloudsdk.command_lib.container.fleet.policycontrollerr   r   UpdateCommandPocoCommandr
   r1   r   r   <module>rB      sA    5 &  ' D Y O O'T!6!68K8K 'r   