
                         l    S 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.    )
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   r.   EndpointsClient.Delete-   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.Describe3   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.List9   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.UpdateG   s    J	"&yy!! " =Hcc&&(88J' d )J <<j))r   )r   NNNNNNN)__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackGAr   r&   r.   r5   rF   rT   __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	$ )	EndpointsClientBetaZ   z:Client for endpoints in the v1beta1 Service Directory API.c                 \   > [         [        U ]  [        R                  R
                  5        g r	   )r
   rc   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   ri   r   r   r(   s           r   r&   EndpointsClientBeta.Create`   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      $ )rI   r   r   ri   )r   r   ri   rJ   rK   rM   )r   r'   r   r   ri   rR   r   rS   s           r   rT   EndpointsClientBeta.Updateo   s    J	"
#yy!!'x!PHcc&&(88J' d )J <<j))r    rV   rW   )
rX   rY   rZ   r[   r\   r   r&   rT   r_   r`   ra   s   @r   rc   rc   Z   s)    BF
 +* *r   rc   N)
r\   apitools.base.pyr   (googlecloudsdk.api_lib.service_directoryr   sd_basegooglecloudsdk.calliopeServiceDirectoryApiLibBaser   rc   rm   r   r   <module>rs      s6    1 ( D (@*g88 @*F$*/ $*r   