
    	                     *    S r SSKJr   " S S\5      rg)z2Utilities for Cloud Batch resource allowances API.    )utilc                   :    \ rS rSrSrS
S jrS rS rS rS r	S	r
g)ResourceAllowancesClient   z>Client for resource allowances service in the Cloud Batch API.Nc                     U=(       d    [         R                  " U5      U l        U=(       d    U R                  R                  U l        U R                  R
                  U l        g )N)batch_api_utilGetClientInstanceclientMESSAGES_MODULEmessages%projects_locations_resourceAllowancesservice)selfrelease_trackr
   r   s       7lib/googlecloudsdk/api_lib/batch/resource_allowances.py__init__!ResourceAllowancesClient.__init__   s@    KN<<]KDK; ; ;DM;;DDDL    c                     U R                   R                  nU" UUR                  5       US9nU R                  R	                  U5      $ )N)resourceAllowanceIdparentresourceAllowance)r   5BatchProjectsLocationsResourceAllowancesCreateRequestRelativeNamer   Create)r   resource_allowance_idlocation_refresource_allowance_configcreate_req_type
create_reqs         r   r   ResourceAllowancesClient.Create   sK     	KK  !1((*3J
 <<z**r   c                     U R                   R                  nU" UR                  5       S9nU R                  R	                  U5      $ N)name)r   2BatchProjectsLocationsResourceAllowancesGetRequestr   r   Get)r   resource_allowance_refget_req_typeget_reqs       r   r&   ResourceAllowancesClient.Get+   s?    HH   6 C C EFG<<G$$r   c                     U R                   R                  nU" UR                  5       S9nU R                  R	                  U5      $ r#   )r   5BatchProjectsLocationsResourceAllowancesDeleteRequestr   r   Delete)r   r'   delete_req_type
delete_reqs       r   r-   ResourceAllowancesClient.Delete2   s?    KK  !&<&I&I&KLJ<<z**r   c                     U R                   R                  nU" UR                  5       SR                  U5      US9nU R                  R                  U5      $ )N,)r$   
updateMaskr   )r   4BatchProjectsLocationsResourceAllowancesPatchRequestr   joinr   Patch)r   r'   r   update_maskupdate_req_type
update_reqs         r   UpdateResourceAllowancesClient.Update9   sT     	JJ  !#00288K(3J
 <<j))r   )r
   r   r   )NN)__name__
__module____qualname____firstlineno____doc__r   r   r&   r-   r:   __static_attributes__ r   r   r   r      s    FE
+%+*r   r   N)r@   googlecloudsdk.api_lib.batchr   r   objectr   rB   r   r   <module>rE      s     9 @.*v .*r   