
    y4                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z6Generated client library for datapipelines version v1.    )absolute_import)base_api)datapipelines_v1_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rU =r$ )DatapipelinesV1
   z>Generated client library for service datapipelines version v1.z%https://datapipelines.googleapis.com/z*https://datapipelines.mtls.googleapis.com/datapipelinesz.https://www.googleapis.com/auth/cloud-platformv1	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        g)z"Create a new datapipelines handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__%ProjectsLocationsPipelinesJobsService!projects_locations_pipelines_jobs!ProjectsLocationsPipelinesServiceprojects_locations_pipelinesProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Ulib/googlecloudsdk/generated_clients/apis/datapipelines/v1/datapipelines_v1_client.pyr   DatapipelinesV1.__init__   s     
C	/4)'%)3 7+ * - .2-W-WX\-]D*(,(N(Nt(TD%";;DAD((.DM    c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	5DatapipelinesV1.ProjectsLocationsPipelinesJobsService/   zAService class for the projects_locations_pipelines_jobs resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr#   clientr%   s     r&   r   >DatapipelinesV1.ProjectsLocationsPipelinesJobsService.__init__4   s#    OAA4QRXYdr(   c                 D    U R                  S5      nU R                  X1US9$ )ab  Lists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller doesn't have permission to access it.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesJobsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1ListJobsResponse) The response message.
Listglobal_paramsGetMethodConfig
_RunMethodr#   requestr5   configs       r&   r3   :DatapipelinesV1.ProjectsLocationsPipelinesJobsService.List9   /     ##F+f__
  8 8r(   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NzMv1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}/jobsGETz4datapipelines.projects.locations.pipelines.jobs.listparentpageSize	pageTokenzv1/{+parent}/jobs 6DatapipelinesProjectsLocationsPipelinesJobsListRequest*GoogleCloudDatapipelinesV1ListJobsResponseF	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>>DatapipelinesV1.ProjectsLocationsPipelinesJobsService.<lambda>F   s9    !7!7aH zJ +.)RG"r(   r.   r-   )__name__
__module____qualname____firstlineno____doc___NAMEr   r3   method_config__static_attributes____classcell__r%   s   @r&   r   r*   /   s"    K/E
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S jrS \l        SS jrS \l        SrU =r$ )1DatapipelinesV1.ProjectsLocationsPipelinesServiceT   z<Service class for the projects_locations_pipelines resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r   r   r.   r/   s     r&   r   :DatapipelinesV1.ProjectsLocationsPipelinesService.__init__Y   s"    O==tMfUdr(   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a pipeline. For a batch pipeline, you can pass scheduler information. Data Pipelines uses the scheduler information to create an internal scheduler that runs jobs periodically. If the internal scheduler is not configured, you can use RunPipeline to run jobs.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1Pipeline) The response message.
Creater4   r6   r9   s       r&   rh   8DatapipelinesV1.ProjectsLocationsPipelinesService.Create^   /     ##H-f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N:v1/projects/{projectsId}/locations/{locationsId}/pipelinesPOSTz1datapipelines.projects.locations.pipelines.creater@   v1/{+parent}/pipelines"googleCloudDatapipelinesV1Pipeline4DatapipelinesProjectsLocationsPipelinesCreateRequest"GoogleCloudDatapipelinesV1PipelineFrF   rR   rT   r(   r&   rU   :DatapipelinesV1.ProjectsLocationsPipelinesService.<lambda>k   s4    8#9#9NE zJ.:P?$r(   c                 D    U R                  S5      nU R                  X1US9$ )a1  Deletes a pipeline. If a scheduler job is attached to the pipeline, it will be deleted.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleProtobufEmpty) The response message.
Deleter4   r6   r9   s       r&   rt   8DatapipelinesV1.ProjectsLocationsPipelinesService.Deletey   rj   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NHv1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}DELETEz1datapipelines.projects.locations.pipelines.deletename
v1/{+name}rC   4DatapipelinesProjectsLocationsPipelinesDeleteRequestGoogleProtobufEmptyFrF   rR   rT   r(   r&   rU   rr      s4    8#9#9\ExH"P0$r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Looks up a single pipeline. Returns a "NOT_FOUND" error if no such pipeline exists. Returns a "FORBIDDEN" error if the caller doesn't have permission to access it.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1Pipeline) The response message.
Getr4   r6   r9   s       r&   r~   5DatapipelinesV1.ProjectsLocationsPipelinesService.Get   /     ##E*f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nrw   r?   z.datapipelines.projects.locations.pipelines.getry   rz   rC   1DatapipelinesProjectsLocationsPipelinesGetRequestrq   FrF   rR   rT   r(   r&   rU   rr      s4     6 6\BxH"M?!r(   c                 D    U R                  S5      nU R                  X1US9$ )aT  Lists pipelines. Returns a "FORBIDDEN" error if the caller doesn't have permission to access it.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1ListPipelinesResponse) The response message.
r3   r4   r6   r9   s       r&   r3   6DatapipelinesV1.ProjectsLocationsPipelinesService.List   r=   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nrl   r?   z/datapipelines.projects.locations.pipelines.listr@   )filterrA   rB   rn   rC   2DatapipelinesProjectsLocationsPipelinesListRequest/GoogleCloudDatapipelinesV1ListPipelinesResponseFrF   rR   rT   r(   r&   rU   rr      s4    !7!7NC zJ8.NL"r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates a pipeline. If successful, the updated Pipeline is returned. Returns `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return successfully, you can retry the UpdatePipeline request until you receive a successful response.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1Pipeline) The response message.
Patchr4   r6   r9   s       r&   r   7DatapipelinesV1.ProjectsLocationsPipelinesService.Patch   s/     ##G,f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nrw   PATCHz0datapipelines.projects.locations.pipelines.patchry   
updateMaskrz   ro   3DatapipelinesProjectsLocationsPipelinesPatchRequestrq   FrF   rR   rT   r(   r&   rU   rr      s6    ("8"8\DxH"^":O?#r(   c                 D    U R                  S5      nU R                  X1US9$ )aa  Creates a job for the specified pipeline directly. You can use this method when the internal scheduler is not configured and you want to trigger the job directly or through an external system. Returns a "NOT_FOUND" error if the pipeline doesn't exist. Returns a "FORBIDDEN" error if the user doesn't have permission to access the pipeline or run jobs for the pipeline.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesRunRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1RunPipelineResponse) The response message.
Runr4   r6   r9   s       r&   r   5DatapipelinesV1.ProjectsLocationsPipelinesService.Run   r   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzLv1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}:runrm   z.datapipelines.projects.locations.pipelines.runry   zv1/{+name}:run,googleCloudDatapipelinesV1RunPipelineRequest1DatapipelinesProjectsLocationsPipelinesRunRequest-GoogleCloudDatapipelinesV1RunPipelineResponseFrF   rR   rT   r(   r&   rU   rr      s4     6 6`BxH&DMJ!r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Freezes pipeline execution permanently. If there's a corresponding scheduler entry, it's deleted, and the pipeline state is changed to "ARCHIVED". However, pipeline metadata is retained.

Args:
  request: (DatapipelinesProjectsLocationsPipelinesStopRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GoogleCloudDatapipelinesV1Pipeline) The response message.
Stopr4   r6   r9   s       r&   r   6DatapipelinesV1.ProjectsLocationsPipelinesService.Stop   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzMv1/projects/{projectsId}/locations/{locationsId}/pipelines/{pipelinesId}:stoprm   z/datapipelines.projects.locations.pipelines.stopry   zv1/{+name}:stop-googleCloudDatapipelinesV1StopPipelineRequest2DatapipelinesProjectsLocationsPipelinesStopRequestrq   FrF   rR   rT   r(   r&   rU   rr     s4    !7!7aCxH'EN?"r(   rW   r-   )rX   rY   rZ   r[   r\   r]   r   rh   r^   rt   r~   r3   r   r   r   r_   r`   ra   s   @r&   r   rc   T   s|    F*E
8F8F8C8D8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$ )(DatapipelinesV1.ProjectsLocationsServicei  z2Service class for the projects_locations resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r   r   r.   r/   s     r&   r   1DatapipelinesV1.ProjectsLocationsService.__init__   s"    O44dDVLdr(   rW   	rX   rY   rZ   r[   r\   r]   r   r_   r`   ra   s   @r&   r   r     s    < E r(   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )DatapipelinesV1.ProjectsServicei%  z(Service class for the projects resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r!   r   r.   r/   s     r&   r   (DatapipelinesV1.ProjectsService.__init__*  s"    O++T;FCdr(   rW   r   ra   s   @r&   r!   r   %  s    2E r(   r!   )r"   r    r   r   )rC   NTNNFFNNNN)rX   rY   rZ   r[   r\   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`   ra   s   @r&   r   r   
   s    F/4(>-(=>'(*"."+(,()-6:/4<@?C	/(#h.E.E #JE(*A*A EN!8!8 //  r(   r   N)
r\   
__future__r   apitools.base.pyr   6googlecloudsdk.generated_clients.apis.datapipelines.v1r   r   BaseApiClientr   rT   r(   r&   <module>r      s'    < ' % hch,, cr(   