
                             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  G d d	ej                  ej                  e
j                        Zy
)z.Manages content bundles for Policy Controller.    )absolute_import)division)unicode_literals)base)command)contentc                   .    e Zd ZdZdZdZed        Zd Zy)Enablea  Installs the template library for Policy Controller.

  Google-defined template library can be installed onto Policy Controller
  installations. To uninstall the template library, use the `disable` command.

  ## EXAMPLES

  To install a template library:

    $ {command}
  policycontrollerc                 P    t        j                  |d      }|j                          y )Nenable)r   Flagsadd_memberships)clsparser	cmd_flagss      Hlib/surface/container/fleet/policycontroller/content/templates/enable.pyArgszEnable.Args*   s    fh/I    c                     t        j                  || j                        }| j                  |d      }|j	                         D ci c]  \  }}||j                  |       }}}| j                  |      S c c}}w )NT)r   
FlagParsermessages
path_specsitemsinstall_template_libraryupdate_specs)selfargsr   specspathpoco_cfgupdated_specss          r   Runz
Enable.Run/   s|    dmm4FOOD$'E $kkm+ND( 	f--h77+   ]++	s   A6N)	__name__
__module____qualname____doc__feature_namemf_nameclassmethodr   r#    r   r   r
   r
      s*    
 $,'   ,r   r
   N)r'   
__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
   r+   r   r   <module>r3      sA    5 &  ' D Y O O,T!6!68K8K ,r   