
    z                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z8Generated client library for cloudtasks version v2beta3.    )absolute_import)base_api)cloudtasks_v2beta3_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$ )CloudtasksV2beta3
   z@Generated client library for service cloudtasks version v2beta3.z"https://cloudtasks.googleapis.com/z'https://cloudtasks.mtls.googleapis.com/
cloudtasksz.https://www.googleapis.com/auth/cloud-platformv2beta3	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 cloudtasks handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__#ProjectsLocationsQueuesTasksServiceprojects_locations_queues_tasksProjectsLocationsQueuesServiceprojects_locations_queuesProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Ylib/googlecloudsdk/generated_clients/apis/cloudtasks/v2beta3/cloudtasks_v2beta3_client.pyr   CloudtasksV2beta3.__init__   s     
C	
T+'%)3 7+ , - ,0+S+STX+YD(%)%H%H%ND"";;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rU =r$ )5CloudtasksV2beta3.ProjectsLocationsQueuesTasksService/   z?Service class for the projects_locations_queues_tasks resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr#   clientr%   s     r&   r   >CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.__init__4   s$    AA4QRXYdr(   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksBufferRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (BufferTaskResponse) The response message.
Bufferglobal_paramsGetMethodConfig
_RunMethodr#   requestr5   configs       r&   r3   <CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.Buffer9   /     ##H-f__
  8 8r(   c                  F    [         R                  " SSSSS/SS// SSSS	S
S9$ )Nz]v2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{taskId}:bufferPOSTz1cloudtasks.projects.locations.queues.tasks.bufferqueuetaskIdz&v2beta3/{+queue}/tasks/{taskId}:bufferbufferTaskRequest3CloudtasksProjectsLocationsQueuesTasksBufferRequestBufferTaskResponseF	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>>CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.<lambda>F   s:    8#9#9qE*h'>)O/$r(   c                 D    U R                  S5      nU R                  X1US9$ )aZ  Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Task) The response message.
Creater4   r6   r9   s       r&   rW   <CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.CreateT   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NMv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasksr?   z1cloudtasks.projects.locations.queues.tasks.createparentv2beta3/{+parent}/taskscreateTaskRequest3CloudtasksProjectsLocationsQueuesTasksCreateRequestTaskFrE   rQ   rS   r(   r&   rT   rU   a   s4    8#9#9aE zJ/)O!$r(   c                 D    U R                  S5      nU R                  X1US9$ )ab  Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter4   r6   r9   s       r&   ra   <CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.Deleteo   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NWv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}DELETEz1cloudtasks.projects.locations.queues.tasks.deletenamev2beta3/{+name} 3CloudtasksProjectsLocationsQueuesTasksDeleteRequestEmptyFrE   rQ   rS   r(   r&   rT   rU   |   s4    8#9#9kExH'O"$r(   c                 D    U R                  S5      nU R                  X1US9$ )aw  Gets a task. After a task is successfully executed or has exhausted its retry attempts, the task is deleted. A `GetTask` request for a deleted task returns a `NOT_FOUND` error.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Task) The response message.
Getr4   r6   r9   s       r&   rl   9CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.Get   /     ##E*f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nrd   GETz.cloudtasks.projects.locations.queues.tasks.getrf   responseViewrg   rh   0CloudtasksProjectsLocationsQueuesTasksGetRequestr_   FrE   rQ   rS   r(   r&   rT   rU      s7     6 6kBxH$%'L!!r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists the tasks in a queue. By default, only the BASIC view is retrieved due to performance considerations; response_view controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListTasksResponse) The response message.
Listr4   r6   r9   s       r&   rt   :CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.List   /     ##F+f__
  8 8r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NrZ   rp   z/cloudtasks.projects.locations.queues.tasks.listr[   )pageSize	pageTokenrq   r\   rh   1CloudtasksProjectsLocationsQueuesTasksListRequestListTasksResponseFrE   rQ   rS   r(   r&   rT   rU      s4    !7!7aC zJ>/M."r(   c                 D    U R                  S5      nU R                  X1US9$ )a4  Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the status after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed.

Args:
  request: (CloudtasksProjectsLocationsQueuesTasksRunRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Task) The response message.
Runr4   r6   r9   s       r&   r}   9CloudtasksV2beta3.ProjectsLocationsQueuesTasksService.Run   rn   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz[v2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}/tasks/{tasksId}:runr?   z.cloudtasks.projects.locations.queues.tasks.runrf   zv2beta3/{+name}:runrunTaskRequest0CloudtasksProjectsLocationsQueuesTasksRunRequestr_   FrE   rQ   rS   r(   r&   rT   rU      s4     6 6oBxH+&L!!r(   r.   r-   )__name__
__module____qualname____firstlineno____doc___NAMEr   r3   method_configrW   ra   rl   rt   r}   __static_attributes____classcell__r%   s   @r&   r   r*   /   sm    I-E
8F8F8F8C8D8Cr(   r   c                   N  ^  \ 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S jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )0CloudtasksV2beta3.ProjectsLocationsQueuesService   z9Service class for the projects_locations_queues resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r-   )r   r   r   r   r.   r/   s     r&   r   9CloudtasksV2beta3.ProjectsLocationsQueuesService.__init__   s#    <<dLVTdr(   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

Args:
  request: (CloudtasksProjectsLocationsQueuesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
rW   r4   r6   r9   s       r&   rW   7CloudtasksV2beta3.ProjectsLocationsQueuesService.Create   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N<v2beta3/projects/{projectsId}/locations/{locationsId}/queuesr?   z+cloudtasks.projects.locations.queues.creater[   v2beta3/{+parent}/queuesr@   .CloudtasksProjectsLocationsQueuesCreateRequestQueueFrE   rQ   rS   r(   r&   rT   9CloudtasksV2beta3.ProjectsLocationsQueuesService.<lambda>   s4    8#9#9P? zJ0J"$r(   c                 D    U R                  S5      nU R                  X1US9$ )ay  Deletes a queue. This command will delete the queue even if it has tasks in it. Note : If you delete a queue, you may be prevented from creating a new queue with the same name as the deleted queue for a tombstone window of up to 3 days. During this window, the CreateQueue operation may appear to recreate the queue, but this can be misleading. If you attempt to create a queue with the same name as one that is in the tombstone window, run GetQueue to confirm that the queue creation was successful. If GetQueue returns 200 response code, your queue was successfully created with the name of the previously deleted queue. Otherwise, your queue did not successfully recreate. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

Args:
  request: (CloudtasksProjectsLocationsQueuesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
ra   r4   r6   r9   s       r&   ra   7CloudtasksV2beta3.ProjectsLocationsQueuesService.Delete   r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NGv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}re   z+cloudtasks.projects.locations.queues.deleterf   rg   rh   .CloudtasksProjectsLocationsQueuesDeleteRequestrj   FrE   rQ   rS   r(   r&   rT   r     s4    8#9#9[?xH'J"$r(   c                 D    U R                  S5      nU R                  X1US9$ )zGets a queue.

Args:
  request: (CloudtasksProjectsLocationsQueuesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
rl   r4   r6   r9   s       r&   rl   4CloudtasksV2beta3.ProjectsLocationsQueuesService.Get  rn   r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   rp   z(cloudtasks.projects.locations.queues.getrf   readMaskrg   rh   +CloudtasksProjectsLocationsQueuesGetRequestr   FrE   rQ   rS   r(   r&   rT   r   (  s6     6 6[<xH \'G"!r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the access control policy for a Queue. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`.

Args:
  request: (CloudtasksProjectsLocationsQueuesGetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
GetIamPolicyr4   r6   r9   s       r&   r   =CloudtasksV2beta3.ProjectsLocationsQueuesService.GetIamPolicy6  /     ##N3f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzTv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:getIamPolicyr?   z1cloudtasks.projects.locations.queues.getIamPolicyresourcez v2beta3/{+resource}:getIamPolicygetIamPolicyRequest4CloudtasksProjectsLocationsQueuesGetIamPolicyRequestPolicyFrE   rQ   rS   r(   r&   rT   r   C  4    )?)?hE"|L8+P#*r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists queues. Queues are returned in lexicographical order.

Args:
  request: (CloudtasksProjectsLocationsQueuesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListQueuesResponse) The response message.
rt   r4   r6   r9   s       r&   rt   5CloudtasksV2beta3.ProjectsLocationsQueuesService.ListQ  rv   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nr   rp   z)cloudtasks.projects.locations.queues.listr[   )filterrx   ry   r   r   rh   ,CloudtasksProjectsLocationsQueuesListRequestListQueuesResponseFrE   rQ   rS   r(   r&   rT   r   ^  s4    !7!7P= zJD0H/"r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

Args:
  request: (CloudtasksProjectsLocationsQueuesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
Patchr4   r6   r9   s       r&   r   6CloudtasksV2beta3.ProjectsLocationsQueuesService.Patchl  /     ##G,f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz*cloudtasks.projects.locations.queues.patchrf   
updateMaskrg   r@   -CloudtasksProjectsLocationsQueuesPatchRequestr   FrE   rQ   rS   r(   r&   rT   r   y  s6    ("8"8[>xH"^'I"#r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via ResumeQueue. Tasks can still be added when the queue is paused. A queue is paused if its state is PAUSED.

Args:
  request: (CloudtasksProjectsLocationsQueuesPauseRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
Pauser4   r6   r9   s       r&   r   6CloudtasksV2beta3.ProjectsLocationsQueuesService.Pause  r   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzMv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:pauser?   z*cloudtasks.projects.locations.queues.pauserf   zv2beta3/{+name}:pausepauseQueueRequest-CloudtasksProjectsLocationsQueuesPauseRequestr   FrE   rQ   rS   r(   r&   rT   r     4    ("8"8a>xH-)I"#r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.

Args:
  request: (CloudtasksProjectsLocationsQueuesPurgeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
Purger4   r6   r9   s       r&   r   6CloudtasksV2beta3.ProjectsLocationsQueuesService.Purge  r   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzMv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:purger?   z*cloudtasks.projects.locations.queues.purgerf   zv2beta3/{+name}:purgepurgeQueueRequest-CloudtasksProjectsLocationsQueuesPurgeRequestr   FrE   rQ   rS   r(   r&   rT   r     r   r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Resume a queue. This method resumes a queue after it has been PAUSED or DISABLED. The state of a queue is stored in the queue's state; after calling this method it will be set to RUNNING. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).

Args:
  request: (CloudtasksProjectsLocationsQueuesResumeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Queue) The response message.
Resumer4   r6   r9   s       r&   r   7CloudtasksV2beta3.ProjectsLocationsQueuesService.Resume  r=   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzNv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:resumer?   z+cloudtasks.projects.locations.queues.resumerf   zv2beta3/{+name}:resumeresumeQueueRequest.CloudtasksProjectsLocationsQueuesResumeRequestr   FrE   rQ   rS   r(   r&   rT   r     s4    8#9#9b?xH.*J"$r(   c                 D    U R                  S5      nU R                  X1US9$ )a@  Sets the access control policy for a Queue. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`.

Args:
  request: (CloudtasksProjectsLocationsQueuesSetIamPolicyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Policy) The response message.
SetIamPolicyr4   r6   r9   s       r&   r   =CloudtasksV2beta3.ProjectsLocationsQueuesService.SetIamPolicy  r   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzTv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:setIamPolicyr?   z1cloudtasks.projects.locations.queues.setIamPolicyr   z v2beta3/{+resource}:setIamPolicysetIamPolicyRequest4CloudtasksProjectsLocationsQueuesSetIamPolicyRequestr   FrE   rQ   rS   r(   r&   rT   r     r   r(   c                 D    U R                  S5      nU R                  X1US9$ )a3  Returns permissions that a caller has on a Queue. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Args:
  request: (CloudtasksProjectsLocationsQueuesTestIamPermissionsRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (TestIamPermissionsResponse) The response message.
TestIamPermissionsr4   r6   r9   s       r&   r   CCloudtasksV2beta3.ProjectsLocationsQueuesService.TestIamPermissions  s0     ##$89f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzZv2beta3/projects/{projectsId}/locations/{locationsId}/queues/{queuesId}:testIamPermissionsr?   z7cloudtasks.projects.locations.queues.testIamPermissionsr   z&v2beta3/{+resource}:testIamPermissionstestIamPermissionsRequest:CloudtasksProjectsLocationsQueuesTestIamPermissionsRequestTestIamPermissionsResponseFrE   rQ   rS   r(   r&   rT   r      s4    x/E/EnK"|L>1V70r(   r   r-   )r   r   r   r   r   r   r   rW   r   ra   rl   r   rt   r   r   r   r   r   r   r   r   r   s   @r&   r   r      s    C'E
8F8F8C8"L8D8E8E8E8F8"L8($$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$ )*CloudtasksV2beta3.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   3CloudtasksV2beta3.ProjectsLocationsService.__init__  s#    66FvNdr(   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (CloudtasksProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
rl   r4   r6   r9   s       r&   rl   .CloudtasksV2beta3.ProjectsLocationsService.Get  rn   r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz5v2beta3/projects/{projectsId}/locations/{locationsId}rp   z!cloudtasks.projects.locations.getrf   rg   rh   %CloudtasksProjectsLocationsGetRequestLocationFrE   rQ   rS   r(   r&   rT   3CloudtasksV2beta3.ProjectsLocationsService.<lambda>%  s4     6 6I5xH'A%!r(   c                 D    U R                  S5      nU R                  X1US9$ )a_  Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured.

Args:
  request: (CloudtasksProjectsLocationsGetCmekConfigRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CmekConfig) The response message.
GetCmekConfigr4   r6   r9   s       r&   r   8CloudtasksV2beta3.ProjectsLocationsService.GetCmekConfig3  s/     ##O4f__
  8 8r(   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N@v2beta3/projects/{projectsId}/locations/{locationsId}/cmekConfigrp   z+cloudtasks.projects.locations.getCmekConfigrf   rg   rh   /CloudtasksProjectsLocationsGetCmekConfigRequest
CmekConfigFrE   rQ   rS   r(   r&   rT   r   @  s4    (*@*@T?xH'K'+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: (CloudtasksProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
rt   r4   r6   r9   s       r&   rt   /CloudtasksV2beta3.ProjectsLocationsService.ListN  rv   r(   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz'v2beta3/projects/{projectsId}/locationsrp   z"cloudtasks.projects.locations.listrf   )extraLocationTypesr   rx   ry   zv2beta3/{+name}/locationsrh   &CloudtasksProjectsLocationsListRequestListLocationsResponseFrE   rQ   rS   r(   r&   rT   r   [  s4    !7!7;6xHN1B2"r(   c                 D    U R                  S5      nU R                  X1US9$ )a  Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key assotiated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config.

Args:
  request: (CloudtasksProjectsLocationsUpdateCmekConfigRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (CmekConfig) The response message.
UpdateCmekConfigr4   r6   r9   s       r&   r   ;CloudtasksV2beta3.ProjectsLocationsService.UpdateCmekConfigi  s0     ##$67f__
  8 8r(   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   r   z.cloudtasks.projects.locations.updateCmekConfigrf   r   rg   
cmekConfig2CloudtasksProjectsLocationsUpdateCmekConfigRequestr   FrE   rQ   rS   r(   r&   rT   r   v  s6    X-C-CTBxH"^'"N'.r(   r   r-   )r   r   r   r   r   r   r   rl   r   r   rt   r   r   r   r   s   @r&   r   r     sP    < E
8C8#M8D8&""r(   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )!CloudtasksV2beta3.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   *CloudtasksV2beta3.ProjectsService.__init__  s#    --t=fE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   )rh   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    H/1(;-(=>'(*"."+*,()-6:/4<@?C	/(jH,C,C jXqx'>'> qf	t!8!8 tl//  r(   r   N)
r   
__future__r   apitools.base.pyr   8googlecloudsdk.generated_clients.apis.cloudtasks.v2beta3r   r   BaseApiClientr   rS   r(   r&   <module>r     s'    > ' % lB
.. B
r(   