From 79a7930777c72f07186609e119e9051e64206c6b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:13:24 -0400 Subject: [PATCH] docs: Fix formatting of request arg in docstring (#528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.9.0 PiperOrigin-RevId: 517425588 Source-Link: https://github.com/googleapis/googleapis/commit/33c93eb8b4d3aaf88e44a1be197811052be62282 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5f59789d19fc43270ff2124967d4ec8992b8e8f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDVmNTk3ODlkMTlmYzQzMjcwZmYyMTI0OTY3ZDRlYzg5OTJiOGU4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: Fix formatting of request arg in docstring chore: Update gapic-generator-python to v1.9.1 PiperOrigin-RevId: 518604533 Source-Link: https://github.com/googleapis/googleapis/commit/8a085aeddfa010af5bcef090827aac5255383d7e Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../services/autoscaling_policy_service/async_client.py | 4 ++-- .../services/autoscaling_policy_service/client.py | 4 ++-- .../services/autoscaling_policy_service/transports/rest.py | 5 ----- .../dataproc_v1/services/batch_controller/async_client.py | 6 ++---- .../cloud/dataproc_v1/services/batch_controller/client.py | 6 ++---- .../services/batch_controller/transports/rest.py | 2 -- .../services/cluster_controller/async_client.py | 3 ++- .../dataproc_v1/services/cluster_controller/client.py | 3 ++- .../services/cluster_controller/transports/rest.py | 3 --- .../dataproc_v1/services/job_controller/transports/rest.py | 1 - .../services/workflow_template_service/async_client.py | 3 ++- .../services/workflow_template_service/client.py | 3 ++- .../services/workflow_template_service/transports/rest.py | 7 ------- packages/google-cloud-dataproc/setup.py | 2 +- 14 files changed, 17 insertions(+), 35 deletions(-) diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/async_client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/async_client.py index de1cb7f06ddd..cd3f2b685150 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/async_client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/async_client.py @@ -785,8 +785,8 @@ async def sample_delete_autoscaling_policy(): request (Optional[Union[google.cloud.dataproc_v1.types.DeleteAutoscalingPolicyRequest, dict]]): The request object. A request to delete an autoscaling policy. - Autoscaling policies in use by one or more clusters will - not be deleted. + Autoscaling policies in use by one or + more clusters will not be deleted. name (:class:`str`): Required. The "resource name" of the autoscaling policy, as described in diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/client.py index cdeab356e20a..d56712d04c6d 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/client.py @@ -981,8 +981,8 @@ def sample_delete_autoscaling_policy(): request (Union[google.cloud.dataproc_v1.types.DeleteAutoscalingPolicyRequest, dict]): The request object. A request to delete an autoscaling policy. - Autoscaling policies in use by one or more clusters will - not be deleted. + Autoscaling policies in use by one or + more clusters will not be deleted. name (str): Required. The "resource name" of the autoscaling policy, as described in diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/transports/rest.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/transports/rest.py index 06fdc27cd82c..98a3fed8182f 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/transports/rest.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/autoscaling_policy_service/transports/rest.py @@ -508,7 +508,6 @@ def __call__( request (~.autoscaling_policies.CreateAutoscalingPolicyRequest): The request object. A request to create an autoscaling policy. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -616,7 +615,6 @@ def __call__( policy. Autoscaling policies in use by one or more clusters will not be deleted. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -698,7 +696,6 @@ def __call__( request (~.autoscaling_policies.GetAutoscalingPolicyRequest): The request object. A request to fetch an autoscaling policy. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -794,7 +791,6 @@ def __call__( request (~.autoscaling_policies.ListAutoscalingPoliciesRequest): The request object. A request to list autoscaling policies in a project. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -890,7 +886,6 @@ def __call__( request (~.autoscaling_policies.UpdateAutoscalingPolicyRequest): The request object. A request to update an autoscaling policy. - 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/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/async_client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/async_client.py index 4a3ddf37ee2f..730efbb3e84b 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/async_client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/async_client.py @@ -275,8 +275,7 @@ async def sample_create_batch(): Args: request (Optional[Union[google.cloud.dataproc_v1.types.CreateBatchRequest, dict]]): - The request object. A request to create a batch - workload. + The request object. A request to create a batch workload. parent (:class:`str`): Required. The parent resource where this batch will be created. @@ -623,8 +622,7 @@ async def sample_delete_batch(): Args: request (Optional[Union[google.cloud.dataproc_v1.types.DeleteBatchRequest, dict]]): - The request object. A request to delete a batch - workload. + The request object. A request to delete a batch workload. name (:class:`str`): Required. The fully qualified name of the batch to retrieve in the format diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/client.py index 8e5c3b597ce9..2695802db165 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/client.py @@ -524,8 +524,7 @@ def sample_create_batch(): Args: request (Union[google.cloud.dataproc_v1.types.CreateBatchRequest, dict]): - The request object. A request to create a batch - workload. + The request object. A request to create a batch workload. parent (str): Required. The parent resource where this batch will be created. @@ -872,8 +871,7 @@ def sample_delete_batch(): Args: request (Union[google.cloud.dataproc_v1.types.DeleteBatchRequest, dict]): - The request object. A request to delete a batch - workload. + The request object. A request to delete a batch workload. name (str): Required. The fully qualified name of the batch to retrieve in the format diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/transports/rest.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/transports/rest.py index 28eacfe3eb0e..d3c2ce15c1f1 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/transports/rest.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/batch_controller/transports/rest.py @@ -698,7 +698,6 @@ def __call__( request (~.batches.GetBatchRequest): The request object. A request to get the resource representation for a batch workload. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -788,7 +787,6 @@ def __call__( request (~.batches.ListBatchesRequest): The request object. A request to list batch workloads in a project. - 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/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/async_client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/async_client.py index 06bdcde63ed6..6bddb26cbf59 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/async_client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/async_client.py @@ -1034,7 +1034,8 @@ async def sample_get_cluster(): Args: request (Optional[Union[google.cloud.dataproc_v1.types.GetClusterRequest, dict]]): The request object. Request to get the resource - representation for a cluster in a project. + representation for a cluster in a + project. project_id (:class:`str`): Required. The ID of the Google Cloud Platform project that the cluster diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/client.py index df3a53193c60..b5e0076dc1b5 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/client.py @@ -1280,7 +1280,8 @@ def sample_get_cluster(): Args: request (Union[google.cloud.dataproc_v1.types.GetClusterRequest, dict]): The request object. Request to get the resource - representation for a cluster in a project. + representation for a cluster in a + project. project_id (str): Required. The ID of the Google Cloud Platform project that the cluster diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/transports/rest.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/transports/rest.py index fdf2853afec5..09ee39927263 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/transports/rest.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/cluster_controller/transports/rest.py @@ -849,7 +849,6 @@ def __call__( request (~.clusters.DiagnoseClusterRequest): The request object. A request to collect cluster diagnostic information. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -950,7 +949,6 @@ def __call__( The request object. Request to get the resource representation for a cluster in a project. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1041,7 +1039,6 @@ def __call__( request (~.clusters.ListClustersRequest): The request object. A request to list the clusters in a project. - 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/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/job_controller/transports/rest.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/job_controller/transports/rest.py index b3b8c93c6518..02aa6034c480 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/job_controller/transports/rest.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/job_controller/transports/rest.py @@ -775,7 +775,6 @@ def __call__( request (~.jobs.GetJobRequest): The request object. A request to get the resource representation for a job in a project. - 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/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/async_client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/async_client.py index 16f589433b29..8ec6e397c26e 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/async_client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/async_client.py @@ -1181,7 +1181,8 @@ async def sample_delete_workflow_template(): request (Optional[Union[google.cloud.dataproc_v1.types.DeleteWorkflowTemplateRequest, dict]]): The request object. A request to delete a workflow template. - Currently started workflows will remain running. + Currently started workflows will remain + running. name (:class:`str`): Required. The resource name of the workflow template, as described in diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/client.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/client.py index 7d3c64ae211c..a48288fd048a 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/client.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/client.py @@ -1392,7 +1392,8 @@ def sample_delete_workflow_template(): request (Union[google.cloud.dataproc_v1.types.DeleteWorkflowTemplateRequest, dict]): The request object. A request to delete a workflow template. - Currently started workflows will remain running. + Currently started workflows will remain + running. name (str): Required. The resource name of the workflow template, as described in diff --git a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/transports/rest.py b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/transports/rest.py index 71f4c3ce97f6..86746ad2bbd5 100644 --- a/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/transports/rest.py +++ b/packages/google-cloud-dataproc/google/cloud/dataproc_v1/services/workflow_template_service/transports/rest.py @@ -646,7 +646,6 @@ def __call__( request (~.workflow_templates.CreateWorkflowTemplateRequest): The request object. A request to create a workflow template. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -754,7 +753,6 @@ def __call__( template. Currently started workflows will remain running. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -836,7 +834,6 @@ def __call__( request (~.workflow_templates.GetWorkflowTemplateRequest): The request object. A request to fetch a workflow template. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -933,7 +930,6 @@ def __call__( request (~.workflow_templates.InstantiateInlineWorkflowTemplateRequest): The request object. A request to instantiate an inline workflow template. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1044,7 +1040,6 @@ def __call__( request (~.workflow_templates.InstantiateWorkflowTemplateRequest): The request object. A request to instantiate a workflow template. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1151,7 +1146,6 @@ def __call__( request (~.workflow_templates.ListWorkflowTemplatesRequest): The request object. A request to list workflow templates in a project. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1247,7 +1241,6 @@ def __call__( request (~.workflow_templates.UpdateWorkflowTemplateRequest): The request object. A request to update a workflow template. - 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/packages/google-cloud-dataproc/setup.py b/packages/google-cloud-dataproc/setup.py index 83bbbf10ada6..df44641a5273 100644 --- a/packages/google-cloud-dataproc/setup.py +++ b/packages/google-cloud-dataproc/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-dataproc"