
    R                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z<Generated client library for messagestreams version v1alpha.    )absolute_import)base_api)messagestreams_v1alpha_messagesc                   >  ^  \ rS rSrSr\rSrSrSr	S/r
SrSrS	rS
rS rSrSr     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )MessagestreamsV1alpha
   zDGenerated client library for service messagestreams version v1alpha.z&https://messagestreams.googleapis.com/z+https://messagestreams.mtls.googleapis.com/messagestreamsz.https://www.googleapis.com/auth/cloud-platformv1alpha	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                 <  > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        U R                  U 5      U l        U R                  U 5      U l        g)z#Create a new messagestreams handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__"ProjectsLocationsOperationsServiceprojects_locations_operations,ProjectsLocationsStreamsRetryPoliciesService(projects_locations_streams_retryPoliciesProjectsLocationsStreamsServiceprojects_locations_streamsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               alib/googlecloudsdk/generated_clients/apis/messagestreams/v1alpha/messagestreams_v1alpha_client.pyr   MessagestreamsV1alpha.__init__   s     
C	
/'%)3 7+ 0 - *.)P)PQU)VD&484e4efj4kD1&*&J&J4&PD#";;DAD((.DM    c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )8MessagestreamsV1alpha.ProjectsLocationsOperationsService0   z=Service class for the projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr%   clientr'   s     r(   r   AMessagestreamsV1alpha.ProjectsLocationsOperationsService.__init__5   s$    !DDdTU[\dr*   c                 D    U R                  S5      nU R                  X1US9$ )a  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

Args:
  request: (MessagestreamsProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelglobal_paramsGetMethodConfig
_RunMethodr%   requestr7   configs       r(   r5   ?MessagestreamsV1alpha.ProjectsLocationsOperationsService.Cancel:   /     ##H-f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzVv1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz3messagestreams.projects.locations.operations.cancelnamezv1alpha/{+name}:cancelcancelOperationRequest6MessagestreamsProjectsLocationsOperationsCancelRequestEmptyF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r*   r(   <lambda>AMessagestreamsV1alpha.ProjectsLocationsOperationsService.<lambda>G   s4    8#9#9jGxH..R"$r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

Args:
  request: (MessagestreamsProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter6   r8   r;   s       r(   rX   ?MessagestreamsV1alpha.ProjectsLocationsOperationsService.DeleteU   r?   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NOv1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}DELETEz3messagestreams.projects.locations.operations.deleterB   v1alpha/{+name} 6MessagestreamsProjectsLocationsOperationsDeleteRequestrE   FrF   rR   rT   r*   r(   rU   rV   b   s4    8#9#9cGxH'R"$r*   c                 D    U R                  S5      nU R                  X1US9$ )aj  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Args:
  request: (MessagestreamsProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getr6   r8   r;   s       r(   ra   <MessagestreamsV1alpha.ProjectsLocationsOperationsService.Getp   /     ##E*f__
  8 8r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr[   GETz0messagestreams.projects.locations.operations.getrB   r]   r^   3MessagestreamsProjectsLocationsOperationsGetRequest	OperationFrF   rR   rT   r*   r(   rU   rV   }   s4     6 6cDxH'O&!r*   c                 D    U R                  S5      nU R                  X1US9$ )ad  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (MessagestreamsProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr6   r8   r;   s       r(   ri   =MessagestreamsV1alpha.ProjectsLocationsOperationsService.List   /     ##F+f__
  8 8r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz@v1alpha/projects/{projectsId}/locations/{locationsId}/operationsre   z1messagestreams.projects.locations.operations.listrB   )filterpageSize	pageTokenreturnPartialSuccesszv1alpha/{+name}/operationsr^   4MessagestreamsProjectsLocationsOperationsListRequestListOperationsResponseFrF   rR   rT   r*   r(   rU   rV      s4    !7!7TExHP2P3"r*   r0   r/   )__name__
__module____qualname____firstlineno____doc___NAMEr   r5   method_configrX   ra   ri   __static_attributes____classcell__r'   s   @r(   r   r,   0   sO    G+E
8F8F8C8Dr*   r   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )BMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService   zHService class for the projects_locations_streams_retryPolicies resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   KMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.__init__   s%    !NNPT^_efdr*   c                 D    U R                  S5      nU R                  X1US9$ )zCreate a new retry policy.

Args:
  request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater6   r8   r;   s       r(   r   IMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Create   r?   r*   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NWv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}/retryPoliciesrA   z>messagestreams.projects.locations.streams.retryPolicies.createparentretryPolicyIdv1alpha/{+parent}/retryPoliciesretryPolicy@MessagestreamsProjectsLocationsStreamsRetryPoliciesCreateRequestrg   FrF   rR   rT   r*   r(   rU   KMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.<lambda>   s7    8#9#9kR zJ%&7#\&$r*   c                 D    U R                  S5      nU R                  X1US9$ )zDelete a retry policy.

Args:
  request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rX   r6   r8   r;   s       r(   rX   IMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Delete   r?   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Niv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}/retryPolicies/{retryPoliciesId}r\   z>messagestreams.projects.locations.streams.retryPolicies.deleterB   r]   r^   @MessagestreamsProjectsLocationsStreamsRetryPoliciesDeleteRequestrg   FrF   rR   rT   r*   r(   rU   r      s4    8#9#9}RxH'\&$r*   c                 D    U R                  S5      nU R                  X1US9$ )zGet a retry policy.

Args:
  request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (RetryPolicy) The response message.
ra   r6   r8   r;   s       r(   ra   FMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Get   rc   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   re   z;messagestreams.projects.locations.streams.retryPolicies.getrB   r]   r^   =MessagestreamsProjectsLocationsStreamsRetryPoliciesGetRequestRetryPolicyFrF   rR   rT   r*   r(   rU   r      s4     6 6}OxH'Y(!r*   c                 D    U R                  S5      nU R                  X1US9$ )zList retry policies.

Args:
  request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListRetryPoliciesResponse) The response message.
ri   r6   r8   r;   s       r(   ri   GMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.List  rk   r*   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   re   z<messagestreams.projects.locations.streams.retryPolicies.listr   rn   ro   r   r^   >MessagestreamsProjectsLocationsStreamsRetryPoliciesListRequestListRetryPoliciesResponseFrF   rR   rT   r*   r(   rU   r     s9    !7!7kP zJ +.7Z6"r*   rs   r/   )rt   ru   rv   rw   rx   ry   r   r   rz   rX   ra   ri   r{   r|   r}   s   @r(   r   r      sO    R6E
8F8F8C8Dr*   r   c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SS jrS \l        SrU =r$ )5MessagestreamsV1alpha.ProjectsLocationsStreamsServicei  z:Service class for the projects_locations_streams resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r   r   r0   r1   s     r(   r   >MessagestreamsV1alpha.ProjectsLocationsStreamsService.__init__!  s$    !AA4QRXYdr*   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a new stream in a given project and location.

Args:
  request: (MessagestreamsProjectsLocationsStreamsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r6   r8   r;   s       r(   r   <MessagestreamsV1alpha.ProjectsLocationsStreamsService.Create&  r?   r*   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N=v1alpha/projects/{projectsId}/locations/{locationsId}/streamsrA   z0messagestreams.projects.locations.streams.creater   	requestIdstreamIdv1alpha/{+parent}/streamsstream3MessagestreamsProjectsLocationsStreamsCreateRequestrg   FrF   rR   rT   r*   r(   rU   >MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>3  s9    8#9#9QD zJ!:.1O&$r*   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a single stream.

Args:
  request: (MessagestreamsProjectsLocationsStreamsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rX   r6   r8   r;   s       r(   rX   <MessagestreamsV1alpha.ProjectsLocationsStreamsService.DeleteA  r?   r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NIv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}r\   z0messagestreams.projects.locations.streams.deleterB   )etagforcer   r]   r^   3MessagestreamsProjectsLocationsStreamsDeleteRequestrg   FrF   rR   rT   r*   r(   rU   r   N  s4    8#9#9]DxH3'O&$r*   c                 D    U R                  S5      nU R                  X1US9$ )zGets details of a single stream.

Args:
  request: (MessagestreamsProjectsLocationsStreamsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Stream) The response message.
ra   r6   r8   r;   s       r(   ra   9MessagestreamsV1alpha.ProjectsLocationsStreamsService.Get\  rc   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   re   z-messagestreams.projects.locations.streams.getrB   r]   r^   0MessagestreamsProjectsLocationsStreamsGetRequestStreamFrF   rR   rT   r*   r(   rU   r   i  s4     6 6]AxH'L#!r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists streams in a given project and location.

Args:
  request: (MessagestreamsProjectsLocationsStreamsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListStreamsResponse) The response message.
ri   r6   r8   r;   s       r(   ri   :MessagestreamsV1alpha.ProjectsLocationsStreamsService.Listw  rk   r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr   re   z.messagestreams.projects.locations.streams.listr   )rm   orderByrn   ro   r   r^   1MessagestreamsProjectsLocationsStreamsListRequestListStreamsResponseFrF   rR   rT   r*   r(   rU   r     s4    !7!7QB zJC1M0"r*   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the parameters of a single stream.

Args:
  request: (MessagestreamsProjectsLocationsStreamsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr6   r8   r;   s       r(   r   ;MessagestreamsV1alpha.ProjectsLocationsStreamsService.Patch  s/     ##G,f__
  8 8r*   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   PATCHz/messagestreams.projects.locations.streams.patchrB   r   
updateMaskr]   r   2MessagestreamsProjectsLocationsStreamsPatchRequestrg   FrF   rR   rT   r*   r(   rU   r     s9    ("8"8]CxH!<0'N&#r*   rs   r/   )rt   ru   rv   rw   rx   ry   r   r   rz   rX   ra   ri   r   r{   r|   r}   s   @r(   r   r     s^    D(E
8F8F8C8D8Er*   r   c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ ).MessagestreamsV1alpha.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r!   r   r0   r1   s     r(   r   7MessagestreamsV1alpha.ProjectsLocationsService.__init__  s#    !::DJ6Rdr*   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (MessagestreamsProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
ra   r6   r8   r;   s       r(   ra   2MessagestreamsV1alpha.ProjectsLocationsService.Get  rc   r*   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz5v1alpha/projects/{projectsId}/locations/{locationsId}re   z%messagestreams.projects.locations.getrB   r]   r^   )MessagestreamsProjectsLocationsGetRequestLocationFrF   rR   rT   r*   r(   rU   7MessagestreamsV1alpha.ProjectsLocationsService.<lambda>  s4     6 6I9xH'E%!r*   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists information about the supported locations for this service.

Args:
  request: (MessagestreamsProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
ri   r6   r8   r;   s       r(   ri   3MessagestreamsV1alpha.ProjectsLocationsService.List  rk   r*   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz'v1alpha/projects/{projectsId}/locationsre   z&messagestreams.projects.locations.listrB   )extraLocationTypesrm   includeUnrevealedLocationsrn   ro   zv1alpha/{+name}/locationsr^   *MessagestreamsProjectsLocationsListRequestListLocationsResponseFrF   rR   rT   r*   r(   rU   r     s4    !7!7;:xHl1F2"r*   rs   r/   )rt   ru   rv   rw   rx   ry   r   ra   rz   ri   r{   r|   r}   s   @r(   r!   r     s1    < E
8C8Dr*   r!   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )%MessagestreamsV1alpha.ProjectsServicei  z(Service class for the projects resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r/   )r   r   r#   r   r0   r1   s     r(   r   .MessagestreamsV1alpha.ProjectsService.__init__  s#    !114A&Idr*   rs   )	rt   ru   rv   rw   rx   ry   r   r{   r|   r}   s   @r(   r#   r     s    2E r*   r#   )r$   r"   r   r    r   )r^   NTNNFFNNNN)rt   ru   rv   rw   rx   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   r!   r#   r{   r|   r}   s   @r(   r   r   
   s    L/5(?-(=>'(*"."+.,()-6:/4<@?C	/*t8+B+B tltX5L5L tlO(?(? Ob>!8!8 >@//  r*   r   N)
rx   
__future__r   apitools.base.pyr   <googlecloudsdk.generated_clients.apis.messagestreams.v1alphar   r   BaseApiClientr   rT   r*   r(   <module>r      s'    B ' % tkH22 kr*   