
                         p   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
 dd	lmZ d
 Zd Zd Zd Zd Z ej$                  dd      Z ej$                  ddd      Z ej$                  ddd      Z ej$                  dddgdd      Z ej$                  ddd      Z ej$                  dd  ej0                         d!      Z ej$                  d"d#d      Z ej$                  d$d%d& ej0                         d'      Z ej$                  d(d)d      Z ej$                  d*d+d      Zy,)-z=Common flags for the SCC RemediationIntent resource commands.    )absolute_import)division)print_function)unicode_literals)arg_parsers)base)concepts)concept_parsersc                  0    t        j                  dd      S )Norganizationz1The Google Cloud organization for the {resource}.name	help_textr	    ResourceParameterAttributeConfig     ?lib/googlecloudsdk/command_lib/scc/remediation_intents/flags.pyOrganizationAttributeConfigr      s    		2	2C
 r   c                  0    t        j                  dd      S )Nlocationz-The Google Cloud location for the {resource}.r   r   r   r   r   LocationAttributeConfigr   %   s    		2	2?
 r   c                  0    t        j                  dd      S )Nzremediation-intentz*The remediation intent for the {resource}.r   r   r   r   r    RemediationIntentAttributeConfigr   -   s    		2	2<
 r   c                  h    t        j                  ddt               t               t	               d      S )Nz:securityposture.organizations.locations.remediationIntentsremediationIntentF)resource_nameorganizationsIdlocationsIdremediationIntentsIddisable_auto_completers)r	   ResourceSpecr   r   r   r   r   r    GetRemediationIntentResourceSpecr#   5   s0    			B'13)+;=#
 r   c                 x    t         j                  j                  dt               dd      j	                  |        y )Nremediationintentz The remediation intent resource.T)required)r
   ConceptParserForResourcer#   AddToParser)parsers    r   AddRemediationIntentResourceArgr+   A   s6    ++&((	 , 
 Kr   parentzw The parent resource to create the remediation intent under.
        Format: organizations/{org_id}/locations/{loc_id} )helpz--parentT)r-   r&   z--finding-namez Canonical name of the SCC finding
        Format: projects/{proj_id}/sources/{src_id}/locations/{loc_id}/findings/{finding_id} Fz--workflow-typezsemi-autonomousmanualz# Type of the workflow to be created)choicesr-   r&   z--etagzu Etag is an optional flag. If the provided Etag doesn't match the server generated Etag, the operation won't proceed.z--ri-from-filezl Path to the YAML file containing the remediation intent resource.
              Format: /path/to/file.yaml.)r-   typer&   z--update-maskze Comma separated string containing list of fields to be updated.
              Format: field1,field2.z--git-config-patha%   Path to the git config file in YAML format to raise the PR.
            Format: /path/to/file.yaml. Sample Config file:

              remote: origin
              main-branch-name: master
              branch-prefix: iac-remediation-
              reviewers: reviewer1,reviewer2
            GIT_SETTINGS)r-   metavarr0   r&   z--org-idz! The Google Cloud organization IDz--root-dir-pathz The relative path to the root directory for the terraform
    repository.
 If not specified, the default value
    is assumed to be the current directory.N)__doc__
__future__r   r   r   r   googlecloudsdk.callioper   r    googlecloudsdk.calliope.conceptsr	   (googlecloudsdk.command_lib.util.conceptsr
   r   r   r   r#   r+   ArgumentPOSITIONAL_PARENT_NAME_FLAGPARENT_NAME_FLAGFINDING_NAME_FLAGWORKFLOW_TYPE_FLAG	ETAG_FLAGYAMLFileContents!REMEDIATION_INTENT_FROM_FILE_FLAGUPDATE_MASK_FLAGGIT_CONFIG_FILE_PATH_FLAGORG_ID_FLAGROOT_DIR_PATH_FLAGr   r   r   <module>rD      s   D &  % ' / ( 5 D ,dmm
>  !4==
>	  "DMM
a	  #T]])	2	  DMM 
E	 %2DMM
-	%	%	%	'% ! !4==
(	  *DMM
 	%	%	%	'  dmm	0 #T]]
/  r   