diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5fc5daa3..b8edda51 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index 882178ce..ec867d9f 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -5,6 +5,6 @@ typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index fa99c129..66a2172a 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d18e9443..559e0867 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.13.0" + ".": "2.13.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 63208d91..06e7f33b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-tasks/#history +## [2.13.1](https://github.com/googleapis/python-tasks/compare/v2.13.0...v2.13.1) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#342](https://github.com/googleapis/python-tasks/issues/342)) ([85141f8](https://github.com/googleapis/python-tasks/commit/85141f82f6dabf02b39e34420a3bbcc754227040)) + ## [2.13.0](https://github.com/googleapis/python-tasks/compare/v2.12.1...v2.13.0) (2023-02-28) diff --git a/google/cloud/tasks/gapic_version.py b/google/cloud/tasks/gapic_version.py index a3c92559..4c0211a9 100644 --- a/google/cloud/tasks/gapic_version.py +++ b/google/cloud/tasks/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.13.0" # {x-release-please-version} +__version__ = "2.13.1" # {x-release-please-version} diff --git a/google/cloud/tasks_v2/gapic_version.py b/google/cloud/tasks_v2/gapic_version.py index a3c92559..4c0211a9 100644 --- a/google/cloud/tasks_v2/gapic_version.py +++ b/google/cloud/tasks_v2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.13.0" # {x-release-please-version} +__version__ = "2.13.1" # {x-release-please-version} diff --git a/google/cloud/tasks_v2/services/cloud_tasks/async_client.py b/google/cloud/tasks_v2/services/cloud_tasks/async_client.py index 7715f16f..384f4c29 100644 --- a/google/cloud/tasks_v2/services/cloud_tasks/async_client.py +++ b/google/cloud/tasks_v2/services/cloud_tasks/async_client.py @@ -1241,8 +1241,7 @@ async def sample_get_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being requested. See the @@ -1429,8 +1428,7 @@ async def sample_set_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being specified. See the @@ -1605,8 +1603,7 @@ async def sample_test_iam_permissions(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (:class:`str`): REQUIRED: The resource for which the policy detail is being requested. See @@ -1739,8 +1736,7 @@ async def sample_list_tasks(): Args: request (Optional[Union[google.cloud.tasks_v2.types.ListTasksRequest, dict]]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. parent (:class:`str`): Required. The queue name. For example: @@ -1864,8 +1860,7 @@ async def sample_get_task(): Args: request (Optional[Union[google.cloud.tasks_v2.types.GetTaskRequest, dict]]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. name (:class:`str`): Required. The task name. For example: @@ -2131,8 +2126,7 @@ async def sample_delete_task(): Args: request (Optional[Union[google.cloud.tasks_v2.types.DeleteTaskRequest, dict]]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. name (:class:`str`): Required. The task name. For example: @@ -2261,8 +2255,7 @@ async def sample_run_task(): Args: request (Optional[Union[google.cloud.tasks_v2.types.RunTaskRequest, dict]]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask]. name (:class:`str`): Required. The task name. For example: diff --git a/google/cloud/tasks_v2/services/cloud_tasks/client.py b/google/cloud/tasks_v2/services/cloud_tasks/client.py index 7bb450af..ca5ceafa 100644 --- a/google/cloud/tasks_v2/services/cloud_tasks/client.py +++ b/google/cloud/tasks_v2/services/cloud_tasks/client.py @@ -1466,8 +1466,7 @@ def sample_get_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being requested. See the @@ -1641,8 +1640,7 @@ def sample_set_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being specified. See the @@ -1814,8 +1812,7 @@ def sample_test_iam_permissions(): Args: request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (str): REQUIRED: The resource for which the policy detail is being requested. See @@ -1936,8 +1933,7 @@ def sample_list_tasks(): Args: request (Union[google.cloud.tasks_v2.types.ListTasksRequest, dict]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. parent (str): Required. The queue name. For example: @@ -2051,8 +2047,7 @@ def sample_get_task(): Args: request (Union[google.cloud.tasks_v2.types.GetTaskRequest, dict]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. name (str): Required. The task name. For example: @@ -2308,8 +2303,7 @@ def sample_delete_task(): Args: request (Union[google.cloud.tasks_v2.types.DeleteTaskRequest, dict]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. name (str): Required. The task name. For example: @@ -2428,8 +2422,7 @@ def sample_run_task(): Args: request (Union[google.cloud.tasks_v2.types.RunTaskRequest, dict]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask]. name (str): Required. The task name. For example: diff --git a/google/cloud/tasks_v2/services/cloud_tasks/transports/rest.py b/google/cloud/tasks_v2/services/cloud_tasks/transports/rest.py index edc85faa..5d5bbd22 100644 --- a/google/cloud/tasks_v2/services/cloud_tasks/transports/rest.py +++ b/google/cloud/tasks_v2/services/cloud_tasks/transports/rest.py @@ -629,7 +629,6 @@ def __call__( request (~.cloudtasks.CreateQueueRequest): The request object. Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -732,7 +731,6 @@ def __call__( request (~.cloudtasks.CreateTaskRequest): The request object. Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -829,7 +827,6 @@ def __call__( request (~.cloudtasks.DeleteQueueRequest): The request object. Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -905,7 +902,6 @@ def __call__( request (~.cloudtasks.DeleteTaskRequest): The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1031,7 +1027,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -1150,7 +1147,6 @@ def __call__( request (~.cloudtasks.GetQueueRequest): The request object. Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1244,7 +1240,6 @@ def __call__( request (~.cloudtasks.GetTaskRequest): The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1332,7 +1327,6 @@ def __call__( request (~.cloudtasks.ListQueuesRequest): The request object. Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1422,7 +1416,6 @@ def __call__( request (~.cloudtasks.ListTasksRequest): The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1512,7 +1505,6 @@ def __call__( request (~.cloudtasks.PauseQueueRequest): The request object. Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1615,7 +1607,6 @@ def __call__( request (~.cloudtasks.PurgeQueueRequest): The request object. Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1718,7 +1709,6 @@ def __call__( request (~.cloudtasks.ResumeQueueRequest): The request object. Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1821,7 +1811,6 @@ def __call__( request (~.cloudtasks.RunTaskRequest): The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1968,7 +1957,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -2184,7 +2174,6 @@ def __call__( request (~.cloudtasks.UpdateQueueRequest): The request object. Request message for [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/tasks_v2beta2/gapic_version.py b/google/cloud/tasks_v2beta2/gapic_version.py index a3c92559..4c0211a9 100644 --- a/google/cloud/tasks_v2beta2/gapic_version.py +++ b/google/cloud/tasks_v2beta2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.13.0" # {x-release-please-version} +__version__ = "2.13.1" # {x-release-please-version} diff --git a/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py b/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py index 36b109dd..062064f6 100644 --- a/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py +++ b/google/cloud/tasks_v2beta2/services/cloud_tasks/async_client.py @@ -1242,8 +1242,7 @@ async def sample_get_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being requested. See the @@ -1430,8 +1429,7 @@ async def sample_set_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being specified. See the @@ -1606,8 +1604,7 @@ async def sample_test_iam_permissions(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (:class:`str`): REQUIRED: The resource for which the policy detail is being requested. See @@ -1740,8 +1737,7 @@ async def sample_list_tasks(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.ListTasksRequest, dict]]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. parent (:class:`str`): Required. The queue name. For example: @@ -1865,8 +1861,7 @@ async def sample_get_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.GetTaskRequest, dict]]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask]. name (:class:`str`): Required. The task name. For example: @@ -2136,8 +2131,7 @@ async def sample_delete_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.DeleteTaskRequest, dict]]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask]. name (:class:`str`): Required. The task name. For example: @@ -2264,8 +2258,7 @@ async def sample_lease_tasks(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.LeaseTasksRequest, dict]]): - The request object. Request message for leasing tasks - using + The request object. Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. parent (:class:`str`): Required. The queue name. For example: @@ -2411,8 +2404,7 @@ async def sample_acknowledge_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.AcknowledgeTaskRequest, dict]]): - The request object. Request message for acknowledging a - task using + The request object. Request message for acknowledging a task using [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]. name (:class:`str`): Required. The task name. For example: @@ -2528,8 +2520,7 @@ async def sample_renew_lease(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.RenewLeaseRequest, dict]]): - The request object. Request message for renewing a lease - using + The request object. Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease]. name (:class:`str`): Required. The task name. For example: @@ -2665,8 +2656,7 @@ async def sample_cancel_lease(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.CancelLeaseRequest, dict]]): - The request object. Request message for canceling a - lease using + The request object. Request message for canceling a lease using [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease]. name (:class:`str`): Required. The task name. For example: @@ -2814,8 +2804,7 @@ async def sample_run_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta2.types.RunTaskRequest, dict]]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask]. name (:class:`str`): Required. The task name. For example: diff --git a/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py b/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py index dbe3113c..a0874859 100644 --- a/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py +++ b/google/cloud/tasks_v2beta2/services/cloud_tasks/client.py @@ -1467,8 +1467,7 @@ def sample_get_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being requested. See the @@ -1642,8 +1641,7 @@ def sample_set_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being specified. See the @@ -1815,8 +1813,7 @@ def sample_test_iam_permissions(): Args: request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (str): REQUIRED: The resource for which the policy detail is being requested. See @@ -1937,8 +1934,7 @@ def sample_list_tasks(): Args: request (Union[google.cloud.tasks_v2beta2.types.ListTasksRequest, dict]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. parent (str): Required. The queue name. For example: @@ -2052,8 +2048,7 @@ def sample_get_task(): Args: request (Union[google.cloud.tasks_v2beta2.types.GetTaskRequest, dict]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask]. name (str): Required. The task name. For example: @@ -2313,8 +2308,7 @@ def sample_delete_task(): Args: request (Union[google.cloud.tasks_v2beta2.types.DeleteTaskRequest, dict]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask]. name (str): Required. The task name. For example: @@ -2431,8 +2425,7 @@ def sample_lease_tasks(): Args: request (Union[google.cloud.tasks_v2beta2.types.LeaseTasksRequest, dict]): - The request object. Request message for leasing tasks - using + The request object. Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. parent (str): Required. The queue name. For example: @@ -2578,8 +2571,7 @@ def sample_acknowledge_task(): Args: request (Union[google.cloud.tasks_v2beta2.types.AcknowledgeTaskRequest, dict]): - The request object. Request message for acknowledging a - task using + The request object. Request message for acknowledging a task using [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]. name (str): Required. The task name. For example: @@ -2695,8 +2687,7 @@ def sample_renew_lease(): Args: request (Union[google.cloud.tasks_v2beta2.types.RenewLeaseRequest, dict]): - The request object. Request message for renewing a lease - using + The request object. Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease]. name (str): Required. The task name. For example: @@ -2832,8 +2823,7 @@ def sample_cancel_lease(): Args: request (Union[google.cloud.tasks_v2beta2.types.CancelLeaseRequest, dict]): - The request object. Request message for canceling a - lease using + The request object. Request message for canceling a lease using [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease]. name (str): Required. The task name. For example: @@ -2981,8 +2971,7 @@ def sample_run_task(): Args: request (Union[google.cloud.tasks_v2beta2.types.RunTaskRequest, dict]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask]. name (str): Required. The task name. For example: diff --git a/google/cloud/tasks_v2beta2/services/cloud_tasks/transports/rest.py b/google/cloud/tasks_v2beta2/services/cloud_tasks/transports/rest.py index e65d5433..ef442845 100644 --- a/google/cloud/tasks_v2beta2/services/cloud_tasks/transports/rest.py +++ b/google/cloud/tasks_v2beta2/services/cloud_tasks/transports/rest.py @@ -730,7 +730,6 @@ def __call__( request (~.cloudtasks.AcknowledgeTaskRequest): The request object. Request message for acknowledging a task using [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -817,7 +816,6 @@ def __call__( request (~.cloudtasks.CancelLeaseRequest): The request object. Request message for canceling a lease using [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -914,7 +912,6 @@ def __call__( request (~.cloudtasks.CreateQueueRequest): The request object. Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1017,7 +1014,6 @@ def __call__( request (~.cloudtasks.CreateTaskRequest): The request object. Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1114,7 +1110,6 @@ def __call__( request (~.cloudtasks.DeleteQueueRequest): The request object. Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1190,7 +1185,6 @@ def __call__( request (~.cloudtasks.DeleteTaskRequest): The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1316,7 +1310,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -1435,7 +1430,6 @@ def __call__( request (~.cloudtasks.GetQueueRequest): The request object. Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1529,7 +1523,6 @@ def __call__( request (~.cloudtasks.GetTaskRequest): The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1617,7 +1610,6 @@ def __call__( request (~.cloudtasks.LeaseTasksRequest): The request object. Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1716,7 +1708,6 @@ def __call__( request (~.cloudtasks.ListQueuesRequest): The request object. Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1806,7 +1797,6 @@ def __call__( request (~.cloudtasks.ListTasksRequest): The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1896,7 +1886,6 @@ def __call__( request (~.cloudtasks.PauseQueueRequest): The request object. Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1999,7 +1988,6 @@ def __call__( request (~.cloudtasks.PurgeQueueRequest): The request object. Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2102,7 +2090,6 @@ def __call__( request (~.cloudtasks.RenewLeaseRequest): The request object. Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2199,7 +2186,6 @@ def __call__( request (~.cloudtasks.ResumeQueueRequest): The request object. Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2302,7 +2288,6 @@ def __call__( request (~.cloudtasks.RunTaskRequest): The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -2449,7 +2434,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -2665,7 +2651,6 @@ def __call__( request (~.cloudtasks.UpdateQueueRequest): The request object. Request message for [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/tasks_v2beta3/gapic_version.py b/google/cloud/tasks_v2beta3/gapic_version.py index a3c92559..4c0211a9 100644 --- a/google/cloud/tasks_v2beta3/gapic_version.py +++ b/google/cloud/tasks_v2beta3/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.13.0" # {x-release-please-version} +__version__ = "2.13.1" # {x-release-please-version} diff --git a/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py b/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py index a1a29949..db78e633 100644 --- a/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py +++ b/google/cloud/tasks_v2beta3/services/cloud_tasks/async_client.py @@ -1242,8 +1242,7 @@ async def sample_get_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being requested. See the @@ -1430,8 +1429,7 @@ async def sample_set_iam_policy(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (:class:`str`): REQUIRED: The resource for which the policy is being specified. See the @@ -1606,8 +1604,7 @@ async def sample_test_iam_permissions(): Args: request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (:class:`str`): REQUIRED: The resource for which the policy detail is being requested. See @@ -1740,8 +1737,7 @@ async def sample_list_tasks(): Args: request (Optional[Union[google.cloud.tasks_v2beta3.types.ListTasksRequest, dict]]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. parent (:class:`str`): Required. The queue name. For example: @@ -1865,8 +1861,7 @@ async def sample_get_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta3.types.GetTaskRequest, dict]]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. name (:class:`str`): Required. The task name. For example: @@ -2132,8 +2127,7 @@ async def sample_delete_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta3.types.DeleteTaskRequest, dict]]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. name (:class:`str`): Required. The task name. For example: @@ -2263,8 +2257,7 @@ async def sample_run_task(): Args: request (Optional[Union[google.cloud.tasks_v2beta3.types.RunTaskRequest, dict]]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. name (:class:`str`): Required. The task name. For example: diff --git a/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py b/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py index 924cec34..c44723cd 100644 --- a/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py +++ b/google/cloud/tasks_v2beta3/services/cloud_tasks/client.py @@ -1467,8 +1467,7 @@ def sample_get_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]): - The request object. Request message for `GetIamPolicy` - method. + The request object. Request message for ``GetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being requested. See the @@ -1642,8 +1641,7 @@ def sample_set_iam_policy(): Args: request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]): - The request object. Request message for `SetIamPolicy` - method. + The request object. Request message for ``SetIamPolicy`` method. resource (str): REQUIRED: The resource for which the policy is being specified. See the @@ -1815,8 +1813,7 @@ def sample_test_iam_permissions(): Args: request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]): - The request object. Request message for - `TestIamPermissions` method. + The request object. Request message for ``TestIamPermissions`` method. resource (str): REQUIRED: The resource for which the policy detail is being requested. See @@ -1937,8 +1934,7 @@ def sample_list_tasks(): Args: request (Union[google.cloud.tasks_v2beta3.types.ListTasksRequest, dict]): - The request object. Request message for listing tasks - using + The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. parent (str): Required. The queue name. For example: @@ -2052,8 +2048,7 @@ def sample_get_task(): Args: request (Union[google.cloud.tasks_v2beta3.types.GetTaskRequest, dict]): - The request object. Request message for getting a task - using + The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. name (str): Required. The task name. For example: @@ -2309,8 +2304,7 @@ def sample_delete_task(): Args: request (Union[google.cloud.tasks_v2beta3.types.DeleteTaskRequest, dict]): - The request object. Request message for deleting a task - using + The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. name (str): Required. The task name. For example: @@ -2430,8 +2424,7 @@ def sample_run_task(): Args: request (Union[google.cloud.tasks_v2beta3.types.RunTaskRequest, dict]): - The request object. Request message for forcing a task - to run now using + The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. name (str): Required. The task name. For example: diff --git a/google/cloud/tasks_v2beta3/services/cloud_tasks/transports/rest.py b/google/cloud/tasks_v2beta3/services/cloud_tasks/transports/rest.py index 642b65ce..869b6d47 100644 --- a/google/cloud/tasks_v2beta3/services/cloud_tasks/transports/rest.py +++ b/google/cloud/tasks_v2beta3/services/cloud_tasks/transports/rest.py @@ -629,7 +629,6 @@ def __call__( request (~.cloudtasks.CreateQueueRequest): The request object. Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -732,7 +731,6 @@ def __call__( request (~.cloudtasks.CreateTaskRequest): The request object. Request message for [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -829,7 +827,6 @@ def __call__( request (~.cloudtasks.DeleteQueueRequest): The request object. Request message for [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -905,7 +902,6 @@ def __call__( request (~.cloudtasks.DeleteTaskRequest): The request object. Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1031,7 +1027,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -1150,7 +1147,6 @@ def __call__( request (~.cloudtasks.GetQueueRequest): The request object. Request message for [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1244,7 +1240,6 @@ def __call__( request (~.cloudtasks.GetTaskRequest): The request object. Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1332,7 +1327,6 @@ def __call__( request (~.cloudtasks.ListQueuesRequest): The request object. Request message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1422,7 +1416,6 @@ def __call__( request (~.cloudtasks.ListTasksRequest): The request object. Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1512,7 +1505,6 @@ def __call__( request (~.cloudtasks.PauseQueueRequest): The request object. Request message for [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1615,7 +1607,6 @@ def __call__( request (~.cloudtasks.PurgeQueueRequest): The request object. Request message for [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1718,7 +1709,6 @@ def __call__( request (~.cloudtasks.ResumeQueueRequest): The request object. Request message for [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1821,7 +1811,6 @@ def __call__( request (~.cloudtasks.RunTaskRequest): The request object. Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1968,7 +1957,8 @@ def __call__( "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", - "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", } } ], @@ -2184,7 +2174,6 @@ def __call__( request (~.cloudtasks.UpdateQueueRequest): The request object. Request message for [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue]. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2.json b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2.json index afcc74ae..53a0de93 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-tasks", - "version": "2.13.0" + "version": "2.13.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta2.json b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta2.json index 5d3bd547..2c90b455 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta2.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-tasks", - "version": "2.13.0" + "version": "2.13.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta3.json b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta3.json index ffa7beb6..07aa5cf4 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta3.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.tasks.v2beta3.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-tasks", - "version": "2.13.0" + "version": "2.13.1" }, "snippets": [ { diff --git a/setup.py b/setup.py index 8db5698d..6279ebc3 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ "proto-plus >= 1.22.0, <2.0.0dev", "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", - "grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev", + "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev", ] url = "https://github.com/googleapis/python-tasks"