
                         ~    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r " S	 S
\R                  5      rg)z/The command to enable Identity Service Feature.    )absolute_import)division)unicode_literals)file_parsers)base)utilsz    To enable the Identity Service Feature, run:

    $ {command}

    To enable the Identity Service Feature with a fleet-level default membership configuration, run:

    $ {command} --fleet-default-member-config=/path/to/identity-service.yaml
c                   :    \ rS rSrSrS\0rSr\S 5       r	S r
Srg)	Enable&   zdEnable the Identity Service Feature.

This command enables the Identity Service Feature in a fleet.
EXAMPLESidentityservicec                 .    UR                  S[        SS9  g )Nz--fleet-default-member-configa  The path to an identity-service.yaml identity configuration
        file. If specified, this configuration would be the default Identity
        Service configuration for all memberships in your fleet. It could be
        overridden with a membership-specific configuration by using the
        the `Apply` command with the `--config` argument.

        To enable the Identity Service Feature with a fleet-level default
        membership configuration, run:

          $ {command} --fleet-default-member-config=/path/to/identity-service.yaml)typehelp)add_argumentstr)clsparsers     6lib/surface/container/fleet/identity_service/enable.pyArgsEnable.Args0   s!    
'	V      c                    UR                   (       d)  U R                  U R                  R                  5       5      $ [        R
                  " UR                   [        R                  S9n[        R                  " X R                  5      nU R                  R                  U R                  R                  US9S9nU R                  U5      $ )N)	file_path	item_type)r   )fleetDefaultMemberConfig)
fleet_default_member_configr
   messagesFeaturer   YamlConfigFileLoginConfigObjectr   parse_config"CommonFleetDefaultMemberConfigSpec)selfargsloaded_configmember_configfeatures        r   Run
Enable.RunA   s    ++[[..011 !//22002M
 &&}mmDM mm##!%	+	+M	+	J $ LG ;;wr    N)__name__
__module____qualname____firstlineno____doc__r   detailed_helpfeature_nameclassmethodr   r)   __static_attributes__r+   r   r   r
   r
   &   s/    
 x(-",   r   r
   N)r0   
__future__r   r   r   (googlecloudsdk.command_lib.anthos.commonr   3googlecloudsdk.command_lib.container.fleet.featuresr   ;googlecloudsdk.command_lib.container.fleet.identity_servicer   r   EnableCommandr
   r+   r   r   <module>r:      s5    6 &  ' A D M, T , r   