
    {
                         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	0r\R                  " \R                  R                  5       " S
 S\R                  5      5       rg)z-recommender API insights Mark Active command.    )absolute_import)division)unicode_literals)insight)base)flagsEXAMPLESz
        To mark an insight as ACTIVE:

          $ {command} abcd-1234 --project=project-id --location=global --insight-type=google.compute.firewall.Insight --etag=abc123
        c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)
MarkActive#   zMark an insight's state as ACTIVE.

Mark an insight's state as ACTIVE. Can be applied to insights in DISMISSED
state. The following are currently supported: project, billing_account,
folder, and organization.
c                     [         R                  " U 5        U R                  S[        SS9  U R                  SSSSS9  U R                  S	S
SSS9  U R                  SSSSS9  g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go on
    the command line after this command.
INSIGHTz)Insight id which will be marked as active)typehelpz
--locationLOCATIONTLocation)metavarrequiredr   z--insight-typeINSIGHT_TYPEzInsight Type of the insightsz--etagetagzEtag of a insight)r   r   r   N)r   AddParentFlagsToParseradd_argumentstr)parsers    /lib/surface/recommender/insights/mark_active.pyArgsMarkActive.Args.   s     
  (
8  
 j4j  J
+	  -
 46I  K    c                     [         R                  " U R                  5       5      n[        R                  " U5      nUR                  X1R                  5      $ )zRun 'gcloud recommender insights mark-active'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
    with.

Returns:
  The result insights after being marked as active
)r   CreateClientReleaseTrackr   GetInsightNamer   r   )selfargsclientnames       r   RunMarkActive.RunF   sB     !!$"3"3"56F%DT99--r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r'   __static_attributes__r)   r   r   r   r   #   s'      -K K..r   r   N)r.   
__future__r   r   r   "googlecloudsdk.api_lib.recommenderr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.recommenderr   r/   ReleaseTracksr!   ALPHACommandr   r)   r   r   <module>r:      sc    4 &  ' 6 ( 8 	 D%%++,.. .. -..r   