
                             S r SSKJr  SSKJr  SS jrS rS rS rSS	 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g)z/Shared resource flags for Procurement commands.    )concepts)concept_parsersNc                 J    Ub  UnOSn[         R                  " U b  XS9$ SUS9$ )Nz5Cloud Billing account for the Procurement {resource}.billing-accountname	help_textr    ResourceParameterAttributeConfigr   raw_help_textr	   s      Dlib/googlecloudsdk/command_lib/commerce_procurement/resource_args.pyBillingAccountAttributeConfigr      s@    IGI		2	2#4
Q Q):i
Q Q    c                  ,    [         R                  " SSS9$ )Naccountz'Procurement Account for the {resource}.r   r
    r   r   AccountAttributeConfigr      s    		2	2 I
K Kr   c                  ,    [         R                  " SSS9$ )Nentitlementz+Procurement Entitlement for the {resource}.r   r
   r   r   r   EntitlementAttributeConfigr   $   s    		2	2=
? ?r   c                  ,    [         R                  " SSS9$ )Nz
free-trialz*Procurement free trial for the {resource}.r   r
   r   r   r   FreeTrialAttributeConfigr   *   s    		2	2#O
Q Qr   c                 J    Ub  UnOSn[         R                  " U b  XS9$ SUS9$ )Nz%Procurement Order for the {resource}.orderr   r
   r   s      r   OrderAttributeConfigr   /   s@    I7I		2	2#4
G G)0I
G Gr   c                  ,    [         R                  " SSS9$ )Norder-allocationz0Procurement Order Allocation for the {resource}.r   r
   r   r   r   OrderAllocationAttributeConfigr   8   s    		2	2B
D Dr   c                  ,    [         R                  " SSS9$ )N	operationz)Procurement Operation for the {resource}.r   r
   r   r   r   OperationAttributeConfigr"   >   s    		2	2"M
O Or   c                  >    [         R                  " SS[        5       S9$ )Nz0cloudcommerceconsumerprocurement.billingAccountsr   )resource_namebillingAccountsId)r   ResourceSpecr   r   r   r   GetBillingAccountResourceSpecr'   C   s!    			8%57
9 9r   c                  P    [         R                  " SS[        5       [        5       S9$ )Nz9cloudcommerceconsumerprocurement.billingAccounts.accountsr   )r$   r%   
accountsId)r   r&   r   r   r   r   r   GetAccountResourceSpecr*   J   s'    			A57')	
+ +r   c                  \    [         R                  " SS[         R                  [        5       S9$ )Nz6cloudcommerceconsumerprocurement.projects.entitlementsr   )r$   
projectsIdentitlementsId)r   r&    DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   r   GetEntitlementResourceSpecr/   R   s*    			>!::/1	
3 3r   c                  N    [         R                  " SS[        SS9[        5       S9$ )Nz7cloudcommerceconsumerprocurement.billingAccounts.ordersr   zCloud Billing Account for the Procurement Order. Billing account id is required if order is not specified as full resource name.r   )r$   r%   ordersId)r   r&   r   r   r   r   r   GetOrderResourceSpecr3   Z   s1    			?5 [ $%
' 'r   c            	      ^    [         R                  " SS[        SS9[        SS9[	        5       S9$ )NzHcloudcommerceconsumerprocurement.billingAccounts.orders.orderAllocationsr   zCloud Billing Account for the Procurement Order Allocation. Billing account id is required if order allocation is not specified as full resource name.r1   z|Procurement Order for the Order Allocation. Order id is required if order allocation is not specified as full resource name.)r$   r%   r2   orderAllocationsId)r   r&   r   r   r   r   r   r   GetOrderAllocationResourceSpecr6   d   sA    			P&5 q $ W 89	
; 	;r   c            	      ^    [         R                  " SS[        SS9[        SS9[	        5       S9$ )NzBcloudcommerceconsumerprocurement.billingAccounts.orders.operationszorder-operationzorder-operation-billing-account)r   zorder-operation-order)r$   r%   r2   operationsId)r   r&   r   r   r"   r   r   r   GetOrderOperationResourceSpecr9   q   s5    			J%502#)@A+-
/ /r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Nz--billing-accountTrequired)r   ConceptParserForResourcer'   AddToParserparserdescriptions     r   AddBillingAccountResourceArgrC   {   s6    ++#%	 ,  ![(r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Nr   Tr;   )r   r=   r>   r*   r?   r@   s     r   AddAccountResourceArgrE      s3    ++'); ,  [(r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Nr   Tr;   )r   r=   r>   r/   r?   r@   s     r   AddEntitlementResourceArgrG      s3    ++/1; ,  [(r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Nr   Tr;   r   r=   r>   r3   r?   r@   s     r   AddOrderResourceArgrJ      s3    ++#%{ ,  [(r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Nz--orderTr;   rI   r@   s     r   AddOrderParentResourceArgrL      s3    ++%' ,  [(r   c                 r    [         R                  R                  S[        5       USS9R	                  U 5        g )Norder_allocationTr;   )r   r=   r>   r6   r?   r@   s     r   AddOrderAllocationResourceArgrO      s6    ++$&	 ,  ![(r   c                 t    [         R                  R                  S[        5       U5      R	                  U 5        g )Nz--order-operation)r   r=   r>   r9   r?   r@   s     r   AddOrderOperationResourceArgrQ      s,    ++,?,I,K,799DV9Lr   )NN)__doc__ googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   r   r   r   r   r   r"   r'   r*   r/   r3   r6   r9   rC   rE   rG   rJ   rL   rO   rQ   r   r   r   <module>rU      s}    6 6 DQK
?Q
GDO
9+3'
;/))))))Mr   