
    Q                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Z	y)z<Generated client library for messagestreams version v1alpha.    )absolute_import)base_api)messagestreams_v1alpha_messagesc                   2    e Zd ZdZeZdZdZdZdgZ	dZ
dZdZd	Zd ZdZd
Z	 	 	 	 	 d fd	Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )MessagestreamsV1alphazDGenerated 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                 >   |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        | j                  |       | _        | j                  |       | _        y)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   zMessagestreamsV1alpha.__init__   s     
C	
/'d%l)3 7+ 0 - *.)P)PQU)VD&484e4efj4kD1&*&J&J4&PD#";;DAD((.DM    c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_         xZS )8MessagestreamsV1alpha.ProjectsLocationsOperationsServicez=Service class for the projects_locations_operations resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr$   clientr&   s     r'   r   zAMessagestreamsV1alpha.ProjectsLocationsOperationsService.__init__5   s$    !DDdTU[\dr(   c                 L    | j                  d      }| j                  |||      S )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$   requestr3   configs       r'   r1   z?MessagestreamsV1alpha.ProjectsLocationsOperationsService.Cancel:   1     ##H-f__
'  8 8r(   c                  F    t        j                  ddddgdgg ddddd	
      S )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>zAMessagestreamsV1alpha.ProjectsLocationsOperationsService.<lambda>G   s4    8#9#9jGxH..R"$r(   c                 L    | j                  d      }| j                  |||      S )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.
      Deleter2   r4   r7   s       r'   rR   z?MessagestreamsV1alpha.ProjectsLocationsOperationsService.DeleteU   r:   r(   c                  F    t        j                  ddddgdgg ddddd	
      S )NOv1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}DELETEz3messagestreams.projects.locations.operations.deleter=   v1alpha/{+name} 6MessagestreamsProjectsLocationsOperationsDeleteRequestr@   FrA   rM   rO   r(   r'   rP   zAMessagestreamsV1alpha.ProjectsLocationsOperationsService.<lambda>b   s4    8#9#9cGxH'R"$r(   c                 L    | j                  d      }| j                  |||      S )a  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.
      Getr2   r4   r7   s       r'   rZ   z<MessagestreamsV1alpha.ProjectsLocationsOperationsService.Getp   1     ##E*f__
'  8 8r(   c                  F    t        j                  ddddgdgg ddddd	
      S )NrT   GETz0messagestreams.projects.locations.operations.getr=   rV   rW   3MessagestreamsProjectsLocationsOperationsGetRequest	OperationFrA   rM   rO   r(   r'   rP   zAMessagestreamsV1alpha.ProjectsLocationsOperationsService.<lambda>}   s4     6 6cDxH'O&!r(   c                 L    | j                  d      }| j                  |||      S )a  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.
      Listr2   r4   r7   s       r'   ra   z=MessagestreamsV1alpha.ProjectsLocationsOperationsService.List   1     ##F+f__
'  8 8r(   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz@v1alpha/projects/{projectsId}/locations/{locationsId}/operationsr]   z1messagestreams.projects.locations.operations.listr=   )filterpageSize	pageTokenzv1alpha/{+name}/operationsrW   4MessagestreamsProjectsLocationsOperationsListRequestListOperationsResponseFrA   rM   rO   r(   r'   rP   zAMessagestreamsV1alpha.ProjectsLocationsOperationsService.<lambda>   s4    !7!7TExH82P3"r(   r,   )__name__
__module____qualname____doc___NAMEr   r1   method_configrR   rZ   ra   __classcell__r&   s   @r'   r   r*   0   sO    G+E
8F8F8C8Dr(   r   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_         xZS )BMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesServicezHService class for the projects_locations_streams_retryPolicies resource.r   c                 N    t         t        j                  |   |       i | _        y r,   )r   r   r   r   r-   r.   s     r'   r   zKMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.__init__   s%    !NNPT^_efdr(   c                 L    | j                  d      }| j                  |||      S )a  Create a new retry policy.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Creater2   r4   r7   s       r'   ru   zIMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Create   r:   r(   c                  H    t        j                  ddddgdgdgdddd	d
      S )NWv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}/retryPoliciesr<   z>messagestreams.projects.locations.streams.retryPolicies.createparentretryPolicyIdv1alpha/{+parent}/retryPoliciesretryPolicy@MessagestreamsProjectsLocationsStreamsRetryPoliciesCreateRequestr_   FrA   rM   rO   r(   r'   rP   zKMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.<lambda>   s7    8#9#9kR zJ%&7#\&$r(   c                 L    | j                  d      }| j                  |||      S )a  Delete a retry policy.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      rR   r2   r4   r7   s       r'   rR   zIMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Delete   r:   r(   c                  F    t        j                  ddddgdgg ddddd	
      S )Niv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}/retryPolicies/{retryPoliciesId}rU   z>messagestreams.projects.locations.streams.retryPolicies.deleter=   rV   rW   @MessagestreamsProjectsLocationsStreamsRetryPoliciesDeleteRequestr_   FrA   rM   rO   r(   r'   rP   zKMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.<lambda>   s4    8#9#9}RxH'\&$r(   c                 L    | j                  d      }| j                  |||      S )a  Get a retry policy.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (RetryPolicy) The response message.
      rZ   r2   r4   r7   s       r'   rZ   zFMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.Get   r[   r(   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r]   z;messagestreams.projects.locations.streams.retryPolicies.getr=   rV   rW   =MessagestreamsProjectsLocationsStreamsRetryPoliciesGetRequestRetryPolicyFrA   rM   rO   r(   r'   rP   zKMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.<lambda>   s4     6 6}OxH'Y(!r(   c                 L    | j                  d      }| j                  |||      S )a"  List retry policies.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsRetryPoliciesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListRetryPoliciesResponse) The response message.
      ra   r2   r4   r7   s       r'   ra   zGMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.List  rb   r(   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nrw   r]   z<messagestreams.projects.locations.streams.retryPolicies.listrx   re   rf   rz   rW   >MessagestreamsProjectsLocationsStreamsRetryPoliciesListRequestListRetryPoliciesResponseFrA   rM   rO   r(   r'   rP   zKMessagestreamsV1alpha.ProjectsLocationsStreamsRetryPoliciesService.<lambda>  s9    !7!7kP zJ +.7Z6"r(   r,   )ri   rj   rk   rl   rm   r   ru   rn   rR   rZ   ra   ro   rp   s   @r'   r   rr      sO    R6E
8F8F8C8Dr(   r   c                        e Zd ZdZdZ fdZddZd e_        ddZd e_        ddZ	d	 e	_        dd
Z
d e
_        ddZd e_         xZS )5MessagestreamsV1alpha.ProjectsLocationsStreamsServicez:Service class for the projects_locations_streams resource.r   c                 N    t         t        j                  |   |       i | _        y r,   )r   r   r   r   r-   r.   s     r'   r   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.__init__!  s$    !AA4QRXYdr(   c                 L    | j                  d      }| j                  |||      S )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.
      ru   r2   r4   r7   s       r'   ru   z<MessagestreamsV1alpha.ProjectsLocationsStreamsService.Create&  r:   r(   c                  J    t        j                  ddddgdgddgddd	d
d      S )N=v1alpha/projects/{projectsId}/locations/{locationsId}/streamsr<   z0messagestreams.projects.locations.streams.createrx   	requestIdstreamIdv1alpha/{+parent}/streamsstream3MessagestreamsProjectsLocationsStreamsCreateRequestr_   FrA   rM   rO   r(   r'   rP   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>3  s9    8#9#9QD zJ!:.1O&$r(   c                 L    | j                  d      }| j                  |||      S )a  Deletes a single stream.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      rR   r2   r4   r7   s       r'   rR   z<MessagestreamsV1alpha.ProjectsLocationsStreamsService.DeleteA  r:   r(   c                  J    t        j                  ddddgdgg ddddd	d
      S )NIv1alpha/projects/{projectsId}/locations/{locationsId}/streams/{streamsId}rU   z0messagestreams.projects.locations.streams.deleter=   )etagforcer   rV   rW   3MessagestreamsProjectsLocationsStreamsDeleteRequestr_   FrA   rM   rO   r(   r'   rP   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>N  s4    8#9#9]DxH3'O&$r(   c                 L    | j                  d      }| j                  |||      S )a  Gets details of a single stream.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Stream) The response message.
      rZ   r2   r4   r7   s       r'   rZ   z9MessagestreamsV1alpha.ProjectsLocationsStreamsService.Get\  r[   r(   c                  F    t        j                  ddddgdgg ddddd	
      S )Nr   r]   z-messagestreams.projects.locations.streams.getr=   rV   rW   0MessagestreamsProjectsLocationsStreamsGetRequestStreamFrA   rM   rO   r(   r'   rP   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>i  s4     6 6]AxH'L#!r(   c                 L    | j                  d      }| j                  |||      S )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.
      ra   r2   r4   r7   s       r'   ra   z:MessagestreamsV1alpha.ProjectsLocationsStreamsService.Listw  rb   r(   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nr   r]   z.messagestreams.projects.locations.streams.listrx   )rd   orderByre   rf   r   rW   1MessagestreamsProjectsLocationsStreamsListRequestListStreamsResponseFrA   rM   rO   r(   r'   rP   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>  s4    !7!7QB zJC1M0"r(   c                 L    | j                  d      }| j                  |||      S )a  Updates the parameters of a single stream.

      Args:
        request: (MessagestreamsProjectsLocationsStreamsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Patchr2   r4   r7   s       r'   r   z;MessagestreamsV1alpha.ProjectsLocationsStreamsService.Patch  s1     ##G,f__
'  8 8r(   c                  J    t        j                  ddddgdgddgddd	d
d      S )Nr   PATCHz/messagestreams.projects.locations.streams.patchr=   r   
updateMaskrV   r   2MessagestreamsProjectsLocationsStreamsPatchRequestr_   FrA   rM   rO   r(   r'   rP   z>MessagestreamsV1alpha.ProjectsLocationsStreamsService.<lambda>  s9    ("8"8]CxH!<0'N&#r(   r,   )ri   rj   rk   rl   rm   r   ru   rn   rR   rZ   ra   r   ro   rp   s   @r'   r   r     s^    D(E
8F8F8C8D8Er(   r   c                   V     e Zd ZdZdZ fdZddZd e_        ddZd e_         xZ	S )	.MessagestreamsV1alpha.ProjectsLocationsServicez2Service class for the projects_locations resource.r!   c                 N    t         t        j                  |   |       i | _        y r,   )r   r   r    r   r-   r.   s     r'   r   z7MessagestreamsV1alpha.ProjectsLocationsService.__init__  s#    !::DJ6Rdr(   c                 L    | j                  d      }| j                  |||      S )a
  Gets information about a location.

      Args:
        request: (MessagestreamsProjectsLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Location) The response message.
      rZ   r2   r4   r7   s       r'   rZ   z2MessagestreamsV1alpha.ProjectsLocationsService.Get  r[   r(   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz5v1alpha/projects/{projectsId}/locations/{locationsId}r]   z%messagestreams.projects.locations.getr=   rV   rW   )MessagestreamsProjectsLocationsGetRequestLocationFrA   rM   rO   r(   r'   rP   z7MessagestreamsV1alpha.ProjectsLocationsService.<lambda>  s4     6 6I9xH'E%!r(   c                 L    | j                  d      }| j                  |||      S )a7  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.
      ra   r2   r4   r7   s       r'   ra   z3MessagestreamsV1alpha.ProjectsLocationsService.List  rb   r(   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz'v1alpha/projects/{projectsId}/locationsr]   z&messagestreams.projects.locations.listr=   )extraLocationTypesrd   includeUnrevealedLocationsre   rf   zv1alpha/{+name}/locationsrW   *MessagestreamsProjectsLocationsListRequestListLocationsResponseFrA   rM   rO   r(   r'   rP   z7MessagestreamsV1alpha.ProjectsLocationsService.<lambda>  s4    !7!7;:xHl1F2"r(   r,   )
ri   rj   rk   rl   rm   r   rZ   rn   ra   ro   rp   s   @r'   r    r     s1    < E
8C8Dr(   r    c                   &     e Zd ZdZdZ fdZ xZS )%MessagestreamsV1alpha.ProjectsServicez(Service class for the projects resource.r#   c                 N    t         t        j                  |   |       i | _        y r,   )r   r   r"   r   r-   r.   s     r'   r   z.MessagestreamsV1alpha.ProjectsService.__init__  s#    !114A&Idr(   )ri   rj   rk   rl   rm   r   ro   rp   s   @r'   r"   r     s    2E r(   r"   )rW   NTNNFFNNNN)ri   rj   rk   rl   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"   ro   rp   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)
rl   
__future__r   apitools.base.pyr   <googlecloudsdk.generated_clients.apis.messagestreams.v1alphar   r   BaseApiClientr   rO   r(   r'   <module>r      s'    B ' % tkH22 kr(   