
    L                     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 cloudscheduler version v1alpha1.    )absolute_import)base_api) cloudscheduler_v1alpha1_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$ )CloudschedulerV1alpha1
   zEGenerated client library for service cloudscheduler version v1alpha1.z&https://cloudscheduler.googleapis.com/z+https://cloudscheduler.mtls.googleapis.com/cloudschedulerz.https://www.googleapis.com/auth/cloud-platformv1alpha1	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 cloudscheduler handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__ProjectsLocationsJobsServiceprojects_locations_jobs"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               clib/googlecloudsdk/generated_clients/apis/cloudscheduler/v1alpha1/cloudscheduler_v1alpha1_client.pyr   CloudschedulerV1alpha1.__init__   s     
C	
 $0'%)3 7+ 1 - $(#D#DT#JD )-)P)PQU)VD&";;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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$ )3CloudschedulerV1alpha1.ProjectsLocationsJobsService/   z7Service class for the projects_locations_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   <CloudschedulerV1alpha1.ProjectsLocationsJobsService.__init__4   s$    "??OPVWdr(   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a job.

Args:
  request: (CloudschedulerProjectsLocationsJobsCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Createglobal_paramsGetMethodConfig
_RunMethodr#   requestr5   configs       r&   r3   :CloudschedulerV1alpha1.ProjectsLocationsJobsService.Create9   /     ##H-f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N;v1alpha1/projects/{projectsId}/locations/{locationsId}/jobsPOSTz-cloudscheduler.projects.locations.jobs.createparentv1alpha1/{+parent}/jobsjob0CloudschedulerProjectsLocationsJobsCreateRequestJobF	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><CloudschedulerV1alpha1.ProjectsLocationsJobsService.<lambda>F   s4    8#9#9OA zJ/L $r(   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a job.

Args:
  request: (CloudschedulerProjectsLocationsJobsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter4   r6   r9   s       r&   rX   :CloudschedulerV1alpha1.ProjectsLocationsJobsService.DeleteT   r=   r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NDv1alpha1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}DELETEz-cloudscheduler.projects.locations.jobs.deletenamelegacyAppEngineCronv1alpha1/{+name} 0CloudschedulerProjectsLocationsJobsDeleteRequestEmptyFrF   rR   rT   r(   r&   rU   rV   a   s7    8#9#9XAxH+,(L"$r(   c                 D    U R                  S5      nU R                  X1US9$ )zGets a job.

Args:
  request: (CloudschedulerProjectsLocationsJobsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Getr4   r6   r9   s       r&   rd   7CloudschedulerV1alpha1.ProjectsLocationsJobsService.Geto   /     ##E*f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr[   GETz*cloudscheduler.projects.locations.jobs.getr]   r_   r`   -CloudschedulerProjectsLocationsJobsGetRequestrE   FrF   rR   rT   r(   r&   rU   rV   |   s4     6 6X>xH(I !r(   c                 D    U R                  S5      nU R                  X1US9$ )zLists jobs.

Args:
  request: (CloudschedulerProjectsLocationsJobsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListJobsResponse) The response message.
Listr4   r6   r9   s       r&   rk   8CloudschedulerV1alpha1.ProjectsLocationsJobsService.List   /     ##F+f__
  8 8r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr?   rh   z+cloudscheduler.projects.locations.jobs.listrA   )filterr^   pageSize	pageTokenrB   r`   .CloudschedulerProjectsLocationsJobsListRequestListJobsResponseFrF   rR   rT   r(   r&   rU   rV      s4    !7!7O? zJO/J-"r(   c                 D    U R                  S5      nU R                  X1US9$ )a#  Updates a job. If successful, the updated Job is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.

Args:
  request: (CloudschedulerProjectsLocationsJobsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Patchr4   r6   r9   s       r&   ru   9CloudschedulerV1alpha1.ProjectsLocationsJobsService.Patch   /     ##G,f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr[   PATCHz,cloudscheduler.projects.locations.jobs.patchr]   
updateMaskr_   rC   /CloudschedulerProjectsLocationsJobsPatchRequestrE   FrF   rR   rT   r(   r&   rU   rV      s6    ("8"8X@xH"^(K #r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via CloudScheduler.ResumeJob. The state of the job is stored in Job.state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.

Args:
  request: (CloudschedulerProjectsLocationsJobsPauseRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Pauser4   r6   r9   s       r&   r}   9CloudschedulerV1alpha1.ProjectsLocationsJobsService.Pause   rw   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzJv1alpha1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:pauser@   z,cloudscheduler.projects.locations.jobs.pauser]   zv1alpha1/{+name}:pausepauseJobRequest/CloudschedulerProjectsLocationsJobsPauseRequestrE   FrF   rR   rT   r(   r&   rU   rV      s4    ("8"8^@xH.'K #r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.

Args:
  request: (CloudschedulerProjectsLocationsJobsResumeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Resumer4   r6   r9   s       r&   r   :CloudschedulerV1alpha1.ProjectsLocationsJobsService.Resume   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzKv1alpha1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:resumer@   z-cloudscheduler.projects.locations.jobs.resumer]   zv1alpha1/{+name}:resumeresumeJobRequest0CloudschedulerProjectsLocationsJobsResumeRequestrE   FrF   rR   rT   r(   r&   rU   rV      s4    8#9#9_AxH/(L $r(   c                 D    U R                  S5      nU R                  X1US9$ )aB  Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.

Args:
  request: (CloudschedulerProjectsLocationsJobsRunRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Job) The response message.
Runr4   r6   r9   s       r&   r   7CloudschedulerV1alpha1.ProjectsLocationsJobsService.Run   rf   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzHv1alpha1/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}:runr@   z*cloudscheduler.projects.locations.jobs.runr]   zv1alpha1/{+name}:runrunJobRequest-CloudschedulerProjectsLocationsJobsRunRequestrE   FrF   rR   rT   r(   r&   rU   rV     s4     6 6\>xH,%I !r(   r.   r-   )__name__
__module____qualname____firstlineno____doc___NAMEr   r3   method_configrX   rd   rk   ru   r}   r   r   __static_attributes____classcell__r%   s   @r&   r   r*   /   s    A%E
8F8F8C8D8E8E8F8C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$ )9CloudschedulerV1alpha1.ProjectsLocationsOperationsServicei  z=Service class for the projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r   r   r.   r/   s     r&   r   BCloudschedulerV1alpha1.ProjectsLocationsOperationsService.__init__  s$    "EEtUV\]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: (CloudschedulerProjectsLocationsOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelr4   r6   r9   s       r&   r   @CloudschedulerV1alpha1.ProjectsLocationsOperationsService.Cancel  r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzWv1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelr@   z3cloudscheduler.projects.locations.operations.cancelr]   zv1alpha1/{+name}:cancelcancelOperationRequest6CloudschedulerProjectsLocationsOperationsCancelRequestrb   FrF   rR   rT   r(   r&   rU   BCloudschedulerV1alpha1.ProjectsLocationsOperationsService.<lambda>(  s4    8#9#9k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: (CloudschedulerProjectsLocationsOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
rX   r4   r6   r9   s       r&   rX   @CloudschedulerV1alpha1.ProjectsLocationsOperationsService.Delete6  r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NPv1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}r\   z3cloudscheduler.projects.locations.operations.deleter]   r_   r`   6CloudschedulerProjectsLocationsOperationsDeleteRequestrb   FrF   rR   rT   r(   r&   rU   r   C  s4    8#9#9d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: (CloudschedulerProjectsLocationsOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
rd   r4   r6   r9   s       r&   rd   =CloudschedulerV1alpha1.ProjectsLocationsOperationsService.GetQ  rf   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rh   z0cloudscheduler.projects.locations.operations.getr]   r_   r`   3CloudschedulerProjectsLocationsOperationsGetRequest	OperationFrF   rR   rT   r(   r&   rU   r   ^  s4     6 6d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: (CloudschedulerProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
rk   r4   r6   r9   s       r&   rk   >CloudschedulerV1alpha1.ProjectsLocationsOperationsService.Listl  rm   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzAv1alpha1/projects/{projectsId}/locations/{locationsId}/operationsrh   z1cloudscheduler.projects.locations.operations.listr]   )ro   rp   rq   returnPartialSuccesszv1alpha1/{+name}/operationsr`   4CloudschedulerProjectsLocationsOperationsListRequestListOperationsResponseFrF   rR   rT   r(   r&   rU   r   y  s4    !7!7UExHP3P3"r(   r   r-   )r   r   r   r   r   r   r   r   r   rX   rd   rk   r   r   r   s   @r&   r   r     sO    G+E
8F8F8C8D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$ )/CloudschedulerV1alpha1.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   8CloudschedulerV1alpha1.ProjectsLocationsService.__init__  s#    ";;TKFSdr(   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (CloudschedulerProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
rd   r4   r6   r9   s       r&   rd   3CloudschedulerV1alpha1.ProjectsLocationsService.Get  rf   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz6v1alpha1/projects/{projectsId}/locations/{locationsId}rh   z%cloudscheduler.projects.locations.getr]   r_   r`   )CloudschedulerProjectsLocationsGetRequestLocationFrF   rR   rT   r(   r&   rU   8CloudschedulerV1alpha1.ProjectsLocationsService.<lambda>  s4     6 6J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: (CloudschedulerProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
rk   r4   r6   r9   s       r&   rk   4CloudschedulerV1alpha1.ProjectsLocationsService.List  rm   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz(v1alpha1/projects/{projectsId}/locationsrh   z&cloudscheduler.projects.locations.listr]   )extraLocationTypesro   rp   rq   zv1alpha1/{+name}/locationsr`   *CloudschedulerProjectsLocationsListRequestListLocationsResponseFrF   rR   rT   r(   r&   rU   r     s4    !7!7<:xHN2F2"r(   r   r-   )r   r   r   r   r   r   r   rd   r   rk   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$ )&CloudschedulerV1alpha1.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   /CloudschedulerV1alpha1.ProjectsService.__init__  s#    "22DB6Jdr(   r   )	r   r   r   r   r   r   r   r   r   r   s   @r&   r!   r     s    2E r(   r!   )r"   r    r   r   )r`   NTNNFFNNNN)r   r   r   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   r   s   @r&   r   r   
   s    M/5(?-(=>'(*"."+/,()-6:/4<@?C	/(`X%<%< `Dt8+B+B tl>!8!8 >@//  r(   r   N)
r   
__future__r   apitools.base.pyr   =googlecloudsdk.generated_clients.apis.cloudscheduler.v1alpha1r   r   BaseApiClientr   rT   r(   r&   <module>r      s'    C ' % vEX33 Er(   