
                         z    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 r	S r
S	 rS
 rS rS rS rS rS rg)z9Shared resource flags for Secure Source Manager commands.    )absolute_import)division)unicode_literals)concepts)concept_parsersc                  ,    [         R                  " SSS9$ )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                  *    [         R                  " SS9$ )Ninstancer
   r   r   r   r   InstanceAttributeConfigr      s    		2	2
	CCr   c                  *    [         R                  " SS9$ )N
repositoryr   r   r   r   r   RepositoryAttributeConfigr   #   s    		2	2	EEr   c                  ^    [         R                  " SS[        5       [         R                  SS9$ )Nz&securesourcemanager.projects.locationslocationF)resource_namelocationsId
projectsIddisable_auto_completers)r   ResourceSpecr    DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   GetRegionResourceSpecr!   '   s-    			.')::#
 r   c            	      p    [         R                  " SS[        5       [        5       [         R                  SS9$ )Nz0securesourcemanager.projects.locations.instancesr   F)r   instancesIdr   r   r   )r   r   r   r   r    r   r   r   GetInstanceResourceSpecr$   1   s3    			8)+')::#
% %r   c            	      p    [         R                  " SS[        5       [        5       [         R                  SS9$ )Nz3securesourcemanager.projects.locations.repositoriesr   F)r   repositoriesIdr   r   r   )r   r   r   r   r    r   r   r   GetRepositoryResourceSpecr'   ;   s3    			; .0')::#
 r   c                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd 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                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd 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                     [         R                  R                  S[        5       SR	                  U5      SS9R                  U 5        g)zAdd 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   