ó
    €Ï#"  ã                   ó´   • 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S rS rS rS rS rS rS rS rS rS rg)z3Shared resource arguments for Cloud Batch commands.é    )Úconcepts)Údeps)Úconcept_parsers)Úpresentation_specs)Ú
propertiesz!@#$%^c                  ó    • [         R                  " [        R                  R                  R
                  5      /n [        R                  " SSU S9$ )NÚlocationz)Google Cloud location for the {resource}.©ÚnameÚ	help_textÚfallthroughs)r   ÚPropertyFallthroughr   ÚVALUESÚbatchr	   r   Ú ResourceParameterAttributeConfig)Úftss    Ú5lib/googlecloudsdk/command_lib/batch/resource_args.pyÚLocationAttributeConfigr      sC   € Ü	×	!Ò	!¤*×"3Ñ"3×"9Ñ"9×"BÑ"BÓ	CÐD€#Ü	×	2Ò	2ØØ;Øñ
ð ó    c                  ó,   • [         R                  " SSS9$ )NÚjobúThe job ID for the {resource}.©r   r   ©r   r   © r   r   ÚJobAttributeConfigr   $   s   € Ü	×	2Ò	2ØØ0ñ
2ð 2r   c                  ó,   • [         R                  " SSS9$ )NÚ
task_groupz%The task_group ID for the {resource}.r   r   r   r   r   ÚTaskGroupAttributeConfigr   *   s   € Ü	×	2Ò	2ØØ7ñ
9ð 9r   c                  ó,   • [         R                  " SSS9$ )NÚtaskzThe task ID for the {resource}.r   r   r   r   r   ÚTaskAttributeConfigr"   0   s   € Ü	×	2Ò	2ØØ1ñ
3ð 3r   c                  ó\   • [         R                  " SS[        5       [         R                  S9$ )Nzbatch.projects.locationsr	   )Úresource_nameÚlocationsIdÚ
projectsId)r   ÚResourceSpecr   Ú DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   ÚGetLocationResourceSpecr)   6   s*   € Ü	×	Ò	Ø ØÜ)Ó+Ü×:Ñ:ñ	
<ð <r   c                  ón   • [         R                  " SS[        5       [        5       [         R                  S9$ )Núbatch.projects.locations.jobsr   ©r$   ÚjobsIdr%   r&   )r   r'   r   r   r(   r   r   r   ÚGetJobResourceSpecr.   >   s0   € Ü	×	Ò	Ø%ØÜÓ!Ü)Ó+Ü×:Ñ:ñ
<ð <r   c                  ó¶   • [         R                  " SS[         R                  " SS[        R                  " [
        SS9/S9[        5       [         R                  S9$ )Nr+   r   r   z9job ID is optional and will be generated if not specified©Úhintr
   r,   )r   r'   r   r   ÚValueFallthroughÚ	INVALIDIDr   r(   r   r   r   ÚGetSubmitJobResourceSpecr4   G   s]   € Ü	×	Ò	Ø%ØÜ×6Ò6ØØ4ô
 ×#Ò#Üð#ñðñô  *Ó+Ü×:Ñ:ñ)
ð r   c            
      ó’   • [         R                  " SS[        5       [        5       [	        5       [        5       [         R                  S9$ )Nz.batch.projects.locations.jobs.taskGroups.tasksr!   )r$   ÚtasksIdÚtaskGroupsIdr-   r%   r&   )r   r'   r"   r   r   r   r(   r   r   r   ÚGetTaskResourceSpecr8   `   s<   € Ü	×	Ò	Ø6ØÜ!Ó#Ü+Ó-ÜÓ!Ü)Ó+Ü×:Ñ:ñ
<ð <r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        g)zQAdd the location resource argument.

Args:
  parser: the parser for the command.
z
--locationzµThe Batch location resource. If you omit this flag, the defaultlocation is used if you set the batch/location property.Otherwise, omitting this flag lists jobs across all locations.F©ÚrequiredN)r   ÚResourcePresentationSpecr)   r   ÚConceptParserÚAddToParser©ÚparserÚ	arg_specss     r   ÚAddLocationResourceArgsrB   k   sH   € ô ×1Ò1Ø
Ü
!Ó
#ðLð ñð	€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        g)zTAdd the job resource argument as flag.

Args:
  parser: the parser for the command.
z--jobzLThe Batch job resource. If not specified,the current batch/location is used.Tr:   N©r   r<   r.   r   r=   r>   r?   s     r   ÚAddJobFlagResourceArgsrE      sE   € ô ×1Ò1Ø
Ü
Ó
ð1àñð€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        g©zZAdd the job resource argument as positional.

Args:
  parser: the parser for the command.
ÚJOBzWThe Batch job resource. If --location not specified,the current batch/location is used.Tr:   NrD   r?   s     r   ÚAddJobResourceArgsrI   ’   sE   € ô ×1Ò1Ø
Ü
Ó
ð1àñð€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        grG   )r   r<   r4   r   r=   r>   r?   s     r   ÚAddSubmitJobResourceArgsrK   ¥   sE   € ô ×1Ò1Ø
Ü
"Ó
$ð1àñð€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        g)zMAdd the task resource argument.

Args:
  parser: the parser for the command.
ÚTASKzMThe Batch task resource. If not specified,the current batch/location is used.Tr:   N)r   r<   r8   r   r=   r>   r?   s     r   ÚAddTaskResourceArgsrN   ¸   sE   € ô ×1Ò1Ø
Ü
Ó
ð1àñð€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        g©ziAdd the resource allowance resource argument as positional.

Args:
  parser: the parser for the command.
ÚRESOURCE_ALLOWANCEzfThe Batch resource allowance resource. If --location not specified,the current batch/location is used.Tr:   N)r   r<   Ú GetResourceAllowanceResourceSpecr   r=   r>   r?   s     r   Ú AddResourceAllowanceResourceArgsrS   Ë   sG   € ô ×1Ò1Ø
Ü
*Ó
,ð?ð ñð
€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                  ó,   • [         R                  " SSS9$ )NÚresource_allowanceú-The resource allowance ID for the {resource}.r   r   r   r   r   Ú ResourceAllowanceAttributeConfigrW   à   s   € Ü	×	2Ò	2ØØ?ñ
ð r   c            	      óp   • [         R                  " SSS[         R                  [        5       [	        5       S9$ )Nú+batch.projects.locations.resourceAllowancesÚv1alphaÚresourceAllowance)Úapi_versionr$   r&   r%   ÚresourceAllowancesId)r   r'   r(   r   rW   r   r   r   rR   rR   ç   s3   € Ü	×	Ò	Ø3ØØ'Ü×:Ñ:Ü)Ó+Ü;Ó=ñ
ð r   c                 óŽ   • [         R                  " S[        5       SSS9/n[        R                  " U5      R                  U 5        grP   )r   r<   Ú&GetCreateResourceAllowanceResourceSpecr   r=   r>   r?   s     r   Ú&AddCreateResourceAllowanceResourceArgsr`   ò   sG   € ô ×1Ò1Ø
Ü
0Ó
2ð?ð ñð
€)ô ×Ò 	Ó*×6Ñ6°vÕ>r   c                  ó¸   • [         R                  " SSS[         R                  [        5       [         R                  " SS[
        R                  " [        SS9/S9S	9$ )
NrY   r[   rZ   rU   rV   zHresource allowance ID is optional and will be generated if not specifiedr0   r
   )r$   r\   r&   r%   r]   )r   r'   r(   r   r   r   r2   r3   r   r   r   r_   r_     s^   € Ü	×	Ò	Ø3Ø'ØÜ×:Ñ:Ü)Ó+Ü#×DÒDØ#ØCô ×#Ò#Üð*ñðññ
ð r   N)Ú__doc__Ú googlecloudsdk.calliope.conceptsr   r   Ú(googlecloudsdk.command_lib.util.conceptsr   r   Úgooglecloudsdk.corer   r3   r   r   r   r"   r)   r.   r4   r8   rB   rE   rI   rK   rN   rS   rW   rR   r`   r_   r   r   r   Ú<module>rf      sz   ðñ  :õ 6Ý 1Ý DÝ GÝ *à€	òò2ò9ò3ò<ò<òò2<ò?ò(?ò&?ò&?ò&?ò&?ò*òò?ó*r   