
                         z    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 Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zy)z9Shared resource flags for Secure Source Manager commands.    )absolute_import)division)unicode_literals)concepts)concept_parsersc                  0    t        j                  dd      S )NregionzSecure Source Manager location.)name	help_textr    ResourceParameterAttributeConfig     >lib/googlecloudsdk/command_lib/source_manager/resource_args.pyRegionAttributeConfigr      s    		2	21
3 3r   c                  .    t        j                  d      S )Ninstancer
   r   r   r   r   InstanceAttributeConfigr      s    		2	2
	CCr   c                  .    t        j                  d      S )N
repositoryr   r   r   r   r   RepositoryAttributeConfigr   #   s    		2	2	EEr   c                  b    t        j                  ddt               t         j                  d      S )Nz&securesourcemanager.projects.locationslocationF)resource_namelocationsId
projectsIddisable_auto_completers)r   ResourceSpecr    DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   GetRegionResourceSpecr!   '   s-    			.')::#
 r   c                  t    t        j                  ddt               t               t         j                  d      S )Nz0securesourcemanager.projects.locations.instancesr   F)r   instancesIdr   r   r   )r   r   r   r   r    r   r   r   GetInstanceResourceSpecr$   1   s3    			8)+')::#
% %r   c                  t    t        j                  ddt               t               t         j                  d      S )Nz3securesourcemanager.projects.locations.repositoriesr   F)r   repositoriesIdr   r   r   )r   r   r   r   r    r   r   r   GetRepositoryResourceSpecr'   ;   s3    			; .0')::#
 r   c                     t         j                  j                  dt               dj	                  |      d      j                  |        y)a  Add a resource argument for a Secure Source Manager location.

  NOTE: Must be used only if it's the only resource arg in the command.

  Args:
    parser: the parser for the command.
    verb: str, the verb to describe the resource, such as 'to update'.
  z--regionz&The Secure Source Manager location {}.TrequiredN)r   ConceptParserForResourcer!   formatAddToParserparserverbs     r   AddRegionResourceArgr2   F   sC     ++.55d;	 , 
 Kr   c                     t         j                  j                  dt               dj	                  |      d      j                  |        y)a  Add a resource argument for a Secure Source Manager instance.

  NOTE: Must be used only if it's the only resource arg in the command.

  Args:
    parser: the parser for the command.
    verb: str, the verb to describe the resource, such as 'to update'.
  r   z&The Secure Source Manager instance {}.Tr)   N)r   r+   r,   r$   r-   r.   r/   s     r   AddInstanceResourceArgr4   W   sC     ++.55d;	 , 
 Kr   c                     t         j                  j                  dt               dj	                  |      d      j                  |        y)a  Add a resource argument for a Secure Source Manager repository.

  NOTE: Must be used only if it's the only resource arg in the command.

  Args:
    parser: the parser for the command.
    verb: str, the verb to describe the resource, such as 'to update'.
  r   z(The Secure Source Manager repository {}.Tr)   N)r   r+   r,   r'   r-   r.   r/   s     r   AddRepositoryResourceArgr6   h   sC     ++!077=	 , 
 Kr   N)__doc__
__future__r   r   r    googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r   r!   r$   r'   r2   r4   r6   r   r   r   <module>r;      sI    @ &  ' 5 D3DF%""r   