
    S                         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SK
Jr   " S S\	R                  5      r " S	 S
\5      rg)z*Utilities Service Directory endpoints API.    )absolute_import)division)unicode_literals)
list_pager)basec                      ^  \ rS rSrSr\R                  R                  4U 4S jjr    S
S jr	S r
S rSS jrSS jrS	rU =r$ )EndpointsClient   z2Client for endpoints in the Service Directory API.c                 b   > [         [        U ]  U5        U R                  R                  U l        g N)superr	   __init__client0projects_locations_namespaces_services_endpointsservice)selfrelease_track	__class__s     9lib/googlecloudsdk/api_lib/service_directory/endpoints.pyr   EndpointsClient.__init__   s#    	/4)-8;;OODL    c                     U R                   R                  X#XES9nU R                   R                  UR                  5       R	                  5       UUR
                  S9nU R                  R                  U5      $ )Endpoints create request.)addressportannotationsnetworkparentendpoint
endpointIdmsgsEndpointIServicedirectoryProjectsLocationsNamespacesServicesEndpointsCreateRequestParentRelativeNameendpointsIdr   Create)r   endpoint_refr   r   r   r   r    
create_reqs           r   r)   EndpointsClient.Create!   su     yy!! " NHdd""$113++ e -J <<z**r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ )zEndpoints delete request.name)r#   IServicedirectoryProjectsLocationsNamespacesServicesEndpointsDeleteRequestr'   r   Delete)r   r*   
delete_reqs      r   r1   EndpointsClient.Delete0   s=    dd&&( e *J<<z**r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ )zEndpoints describe request.r.   )r#   FServicedirectoryProjectsLocationsNamespacesServicesEndpointsGetRequestr'   r   Get)r   r*   describe_reqs      r   DescribeEndpointsClient.Describe6   s=    99cc&&( d *L<<L))r   c                     U R                   R                  UR                  5       UUUS9n[        R                  " U R
                  UUSSS9$ )zEndpoints list request.)r   filterorderBypageSize	endpointsr=   )
batch_sizefieldbatch_size_attribute)r#   GServicedirectoryProjectsLocationsNamespacesServicesEndpointsListRequestr'   r   YieldFromListr   )r   service_reffilter_order_by	page_sizelist_reqs         r   ListEndpointsClient.List<   sY    yy``'')	 a H
 ##') )r   c                 X   / nUb  UR                  S5        Ub  UR                  S5        Ub  UR                  S5        U R                  R                  X#US9nU R                  R                  UR	                  5       USR                  U5      S9nU R                  R                  U5      $ )Endpoints update request.r   r   r   )r   r   r   ,r/   r    
updateMaskappendr#   r$   HServicedirectoryProjectsLocationsNamespacesServicesEndpointsPatchRequestr'   joinr   Patch)r   r*   r   r   r   
mask_partsr    
update_reqs           r   UpdateEndpointsClient.UpdateJ   s    J	"&yy!! " =Hcc&&(88J' d )J <<j))r   )r   NNNNNNN)__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackGAr   r)   r1   r8   rI   rW   __static_attributes____classcell__r   s   @r   r	   r	      sG    :#'#4#4#7#7 P ++*)* *r   r	   c                   H   ^  \ rS rSrSrU 4S jr    SS jrSS jrSrU =r	$ )	EndpointsClientBeta]   z:Client for endpoints in the v1beta1 Service Directory API.c                 \   > [         [        U ]  [        R                  R
                  5        g r   )r   rf   r   r   r`   BETA)r   r   s    r   r   EndpointsClientBeta.__init__`   s    	
t-d.?.?.D.DEr   c                     U R                   R                  X#XES9nU R                   R                  UR                  5       R	                  5       UUR
                  S9nU R                  R                  U5      $ )r   )r   r   metadatar   r   r"   )r   r*   r   r   rl   r   r    r+   s           r   r)   EndpointsClientBeta.Createc   su     yy!!X " HHdd""$113++ e -J <<z**r   c                 X   / nUb  UR                  S5        Ub  UR                  S5        Ub  UR                  S5        U R                  R                  X#US9nU R                  R                  UR	                  5       USR                  U5      S9nU R                  R                  U5      $ )rL   r   r   rl   )r   r   rl   rM   rN   rP   )r   r*   r   r   rl   rU   r    rV   s           r   rW   EndpointsClientBeta.Updater   s    J	"
#yy!!'x!PHcc&&(88J' d )J <<j))r    rY   rZ   )
r[   r\   r]   r^   r_   r   r)   rW   rb   rc   rd   s   @r   rf   rf   ]   s)    BF
 +* *r   rf   N)r_   
__future__r   r   r   apitools.base.pyr   (googlecloudsdk.api_lib.service_directoryr   sd_basegooglecloudsdk.calliopeServiceDirectoryApiLibBaser	   rf   rp   r   r   <module>rw      s=    1 &  ' ' D (@*g88 @*F$*/ $*r   