
    a                         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	  \R                  " \R                  R                  5      \R                  \R                   " S S\R                  5      5       5       5       rg	)
z@Command to enable Artifact Registry Platform Logs configuration.    )apis)base)flags)platformlogs_util)logc                   <    \ rS rSrSrSrSSS.r\S 5       rS r	S	r
g
)Enable   z'Enable the Platform Logs configuration.v1z{description}a  
          To enable Platform Logs for the project 'my-project' in us-west1 for all severity levels:

            $ {command} --project=my-project --location=us-west1

          To enable Platform Logs for the project 'my-project' in us-west1 for INFO level and above:

            $ {command} --project=my-project --location=us-west1 --severity=INFO

          To enable Platform Logs for the repository 'my-repo' in us-west1 for all severity levels:

            $ {command} --project=my-project --location=us-west1 --repository=my-repo

          To enable Platform Logs for the repository 'my-repo' in us-west1 for INFO level and above:

            $ {command} --project=my-project --location=us-west1 --repository=my-repo --severity=INFO
          )DESCRIPTIONEXAMPLESc                     [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        [         R                  " 5       R                  U 5        g)zOSet up arguments for this command.

Args:
  parser: An argparse.ArgumentPaser.
N)r   GetPlainRepoFlagAddToParserGetPlainLocationFlagGetSeverityFlag)parsers    -lib/surface/artifacts/platform_logs/enable.pyArgsEnable.Args5   sI     
((0	 ,,V4	''/    c                 @   [         R                  " SU R                  5      nUR                  nUR	                  UR                  R
                  R                  S9nUR                  S5      (       a*  UR                  R                  UR                  5      Ul
        [        R                  " XX45      nSnUR                  S5      (       a  SR                  UR                  5      n[        R                  R!                  SR                  UR"                  U5      5        U$ )zRun the enable command.artifactregistry)loggingStateseverityz for all severity levelsz for severity {} and abovez!Enabled Platform Logs for [{}]{}.)r   GetClientInstanceapi_versionMESSAGES_MODULEPlatformLogsConfigLoggingStateValueValuesEnumENABLEDIsSpecifiedSeverityLevelValueValuesEnumr   severityLevelr   UpdatePlatformLogsConfigformatr   statusPrintname)selfargsclientmessagesplatform_logs_configresponseseverity_msgs          r   Run
Enable.Run@   s    ##$68H8HIF%%H#6600LLTT 7  
##

%
%
B
Bmm ( !99hH .L
##188GlJJ8??|% &Or    N)__name__
__module____qualname____firstlineno____doc__r   detailed_helpstaticmethodr   r1   __static_attributes__r3   r   r   r	   r	      s6     0+ %-* 0 0r   r	   N)r8   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.artifactsr   r   googlecloudsdk.corer   ReleaseTracksReleaseTrackGAHiddenUniverseCompatibleUpdateCommandr	   r3   r   r   <module>rF      sl    G , ( 6 B # D%%(()=T =   *=r   