Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e771c7

Browse files
yoshi-automationtseaver
authored andcommitted
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. (googleapis#8951)
1 parent e2564a8 commit 4e771c7

15 files changed

+147
-98
lines changed

dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def create_cluster(
250250
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
251251
(\_), and hyphens (-). The maximum length is 40 characters.
252252
retry (Optional[google.api_core.retry.Retry]): A retry object used
253-
to retry requests. If ``None`` is specified, requests will not
254-
be retried.
253+
to retry requests. If ``None`` is specified, requests will
254+
be retried using a default configuration.
255255
timeout (Optional[float]): The amount of time, in seconds, to wait
256256
for the request to complete. Note that if ``retry`` is
257257
specified, the timeout applies to each individual attempt.
@@ -429,8 +429,8 @@ def update_cluster(
429429
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
430430
(\_), and hyphens (-). The maximum length is 40 characters.
431431
retry (Optional[google.api_core.retry.Retry]): A retry object used
432-
to retry requests. If ``None`` is specified, requests will not
433-
be retried.
432+
to retry requests. If ``None`` is specified, requests will
433+
be retried using a default configuration.
434434
timeout (Optional[float]): The amount of time, in seconds, to wait
435435
for the request to complete. Note that if ``retry`` is
436436
specified, the timeout applies to each individual attempt.
@@ -535,8 +535,8 @@ def delete_cluster(
535535
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
536536
(\_), and hyphens (-). The maximum length is 40 characters.
537537
retry (Optional[google.api_core.retry.Retry]): A retry object used
538-
to retry requests. If ``None`` is specified, requests will not
539-
be retried.
538+
to retry requests. If ``None`` is specified, requests will
539+
be retried using a default configuration.
540540
timeout (Optional[float]): The amount of time, in seconds, to wait
541541
for the request to complete. Note that if ``retry`` is
542542
specified, the timeout applies to each individual attempt.
@@ -615,8 +615,8 @@ def get_cluster(
615615
region (str): Required. The Cloud Dataproc region in which to handle the request.
616616
cluster_name (str): Required. The cluster name.
617617
retry (Optional[google.api_core.retry.Retry]): A retry object used
618-
to retry requests. If ``None`` is specified, requests will not
619-
be retried.
618+
to retry requests. If ``None`` is specified, requests will
619+
be retried using a default configuration.
620620
timeout (Optional[float]): The amount of time, in seconds, to wait
621621
for the request to complete. Note that if ``retry`` is
622622
specified, the timeout applies to each individual attempt.
@@ -719,8 +719,8 @@ def list_clusters(
719719
streaming is performed per-page, this determines the maximum number
720720
of resources in a page.
721721
retry (Optional[google.api_core.retry.Retry]): A retry object used
722-
to retry requests. If ``None`` is specified, requests will not
723-
be retried.
722+
to retry requests. If ``None`` is specified, requests will
723+
be retried using a default configuration.
724724
timeout (Optional[float]): The amount of time, in seconds, to wait
725725
for the request to complete. Note that if ``retry`` is
726726
specified, the timeout applies to each individual attempt.
@@ -813,8 +813,8 @@ def diagnose_cluster(
813813
region (str): Required. The Cloud Dataproc region in which to handle the request.
814814
cluster_name (str): Required. The cluster name.
815815
retry (Optional[google.api_core.retry.Retry]): A retry object used
816-
to retry requests. If ``None`` is specified, requests will not
817-
be retried.
816+
to retry requests. If ``None`` is specified, requests will
817+
be retried using a default configuration.
818818
timeout (Optional[float]): The amount of time, in seconds, to wait
819819
for the request to complete. Note that if ``retry`` is
820820
specified, the timeout applies to each individual attempt.

dataproc/google/cloud/dataproc_v1/gapic/job_controller_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def submit_job(
237237
The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
238238
(\_), and hyphens (-). The maximum length is 40 characters.
239239
retry (Optional[google.api_core.retry.Retry]): A retry object used
240-
to retry requests. If ``None`` is specified, requests will not
241-
be retried.
240+
to retry requests. If ``None`` is specified, requests will
241+
be retried using a default configuration.
242242
timeout (Optional[float]): The amount of time, in seconds, to wait
243243
for the request to complete. Note that if ``retry`` is
244244
specified, the timeout applies to each individual attempt.
@@ -307,8 +307,8 @@ def get_job(
307307
region (str): Required. The Cloud Dataproc region in which to handle the request.
308308
job_id (str): Required. The job ID.
309309
retry (Optional[google.api_core.retry.Retry]): A retry object used
310-
to retry requests. If ``None`` is specified, requests will not
311-
be retried.
310+
to retry requests. If ``None`` is specified, requests will
311+
be retried using a default configuration.
312312
timeout (Optional[float]): The amount of time, in seconds, to wait
313313
for the request to complete. Note that if ``retry`` is
314314
specified, the timeout applies to each individual attempt.
@@ -413,8 +413,8 @@ def list_jobs(
413413
414414
status.state = ACTIVE AND labels.env = staging AND labels.starred = \*
415415
retry (Optional[google.api_core.retry.Retry]): A retry object used
416-
to retry requests. If ``None`` is specified, requests will not
417-
be retried.
416+
to retry requests. If ``None`` is specified, requests will
417+
be retried using a default configuration.
418418
timeout (Optional[float]): The amount of time, in seconds, to wait
419419
for the request to complete. Note that if ``retry`` is
420420
specified, the timeout applies to each individual attempt.
@@ -522,8 +522,8 @@ def update_job(
522522
If a dict is provided, it must be of the same form as the protobuf
523523
message :class:`~google.cloud.dataproc_v1.types.FieldMask`
524524
retry (Optional[google.api_core.retry.Retry]): A retry object used
525-
to retry requests. If ``None`` is specified, requests will not
526-
be retried.
525+
to retry requests. If ``None`` is specified, requests will
526+
be retried using a default configuration.
527527
timeout (Optional[float]): The amount of time, in seconds, to wait
528528
for the request to complete. Note that if ``retry`` is
529529
specified, the timeout applies to each individual attempt.
@@ -600,8 +600,8 @@ def cancel_job(
600600
region (str): Required. The Cloud Dataproc region in which to handle the request.
601601
job_id (str): Required. The job ID.
602602
retry (Optional[google.api_core.retry.Retry]): A retry object used
603-
to retry requests. If ``None`` is specified, requests will not
604-
be retried.
603+
to retry requests. If ``None`` is specified, requests will
604+
be retried using a default configuration.
605605
timeout (Optional[float]): The amount of time, in seconds, to wait
606606
for the request to complete. Note that if ``retry`` is
607607
specified, the timeout applies to each individual attempt.
@@ -671,8 +671,8 @@ def delete_job(
671671
region (str): Required. The Cloud Dataproc region in which to handle the request.
672672
job_id (str): Required. The job ID.
673673
retry (Optional[google.api_core.retry.Retry]): A retry object used
674-
to retry requests. If ``None`` is specified, requests will not
675-
be retried.
674+
to retry requests. If ``None`` is specified, requests will
675+
be retried using a default configuration.
676676
timeout (Optional[float]): The amount of time, in seconds, to wait
677677
for the request to complete. Note that if ``retry`` is
678678
specified, the timeout applies to each individual attempt.

dataproc/google/cloud/dataproc_v1/gapic/transports/cluster_controller_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ def __init__(
5959

6060
# Create the channel.
6161
if channel is None:
62-
channel = self.create_channel(address=address, credentials=credentials)
62+
channel = self.create_channel(
63+
address=address,
64+
credentials=credentials,
65+
options={
66+
"grpc.max_send_message_length": -1,
67+
"grpc.max_receive_message_length": -1,
68+
}.items(),
69+
)
6370

6471
self._channel = channel
6572

dataproc/google/cloud/dataproc_v1/gapic/transports/job_controller_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ def __init__(
5858

5959
# Create the channel.
6060
if channel is None:
61-
channel = self.create_channel(address=address, credentials=credentials)
61+
channel = self.create_channel(
62+
address=address,
63+
credentials=credentials,
64+
options={
65+
"grpc.max_send_message_length": -1,
66+
"grpc.max_receive_message_length": -1,
67+
}.items(),
68+
)
6269

6370
self._channel = channel
6471

dataproc/google/cloud/dataproc_v1/gapic/transports/workflow_template_service_grpc_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ def __init__(
5959

6060
# Create the channel.
6161
if channel is None:
62-
channel = self.create_channel(address=address, credentials=credentials)
62+
channel = self.create_channel(
63+
address=address,
64+
credentials=credentials,
65+
options={
66+
"grpc.max_send_message_length": -1,
67+
"grpc.max_receive_message_length": -1,
68+
}.items(),
69+
)
6370

6471
self._channel = channel
6572

dataproc/google/cloud/dataproc_v1/gapic/workflow_template_service_client.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def create_workflow_template(
249249
If a dict is provided, it must be of the same form as the protobuf
250250
message :class:`~google.cloud.dataproc_v1.types.WorkflowTemplate`
251251
retry (Optional[google.api_core.retry.Retry]): A retry object used
252-
to retry requests. If ``None`` is specified, requests will not
253-
be retried.
252+
to retry requests. If ``None`` is specified, requests will
253+
be retried using a default configuration.
254254
timeout (Optional[float]): The amount of time, in seconds, to wait
255255
for the request to complete. Note that if ``retry`` is
256256
specified, the timeout applies to each individual attempt.
@@ -330,8 +330,8 @@ def get_workflow_template(
330330
331331
If unspecified, retrieves the current version.
332332
retry (Optional[google.api_core.retry.Retry]): A retry object used
333-
to retry requests. If ``None`` is specified, requests will not
334-
be retried.
333+
to retry requests. If ``None`` is specified, requests will
334+
be retried using a default configuration.
335335
timeout (Optional[float]): The amount of time, in seconds, to wait
336336
for the request to complete. Note that if ``retry`` is
337337
specified, the timeout applies to each individual attempt.
@@ -444,8 +444,8 @@ def instantiate_workflow_template(
444444
parameters (dict[str -> str]): Optional. Map from parameter names to values that should be used for those
445445
parameters. Values may not exceed 100 characters.
446446
retry (Optional[google.api_core.retry.Retry]): A retry object used
447-
to retry requests. If ``None`` is specified, requests will not
448-
be retried.
447+
to retry requests. If ``None`` is specified, requests will
448+
be retried using a default configuration.
449449
timeout (Optional[float]): The amount of time, in seconds, to wait
450450
for the request to complete. Note that if ``retry`` is
451451
specified, the timeout applies to each individual attempt.
@@ -568,8 +568,8 @@ def instantiate_inline_workflow_template(
568568
The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores
569569
(\_), and hyphens (-). The maximum length is 40 characters.
570570
retry (Optional[google.api_core.retry.Retry]): A retry object used
571-
to retry requests. If ``None`` is specified, requests will not
572-
be retried.
571+
to retry requests. If ``None`` is specified, requests will
572+
be retried using a default configuration.
573573
timeout (Optional[float]): The amount of time, in seconds, to wait
574574
for the request to complete. Note that if ``retry`` is
575575
specified, the timeout applies to each individual attempt.
@@ -656,8 +656,8 @@ def update_workflow_template(
656656
If a dict is provided, it must be of the same form as the protobuf
657657
message :class:`~google.cloud.dataproc_v1.types.WorkflowTemplate`
658658
retry (Optional[google.api_core.retry.Retry]): A retry object used
659-
to retry requests. If ``None`` is specified, requests will not
660-
be retried.
659+
to retry requests. If ``None`` is specified, requests will
660+
be retried using a default configuration.
661661
timeout (Optional[float]): The amount of time, in seconds, to wait
662662
for the request to complete. Note that if ``retry`` is
663663
specified, the timeout applies to each individual attempt.
@@ -747,8 +747,8 @@ def list_workflow_templates(
747747
streaming is performed per-page, this determines the maximum number
748748
of resources in a page.
749749
retry (Optional[google.api_core.retry.Retry]): A retry object used
750-
to retry requests. If ``None`` is specified, requests will not
751-
be retried.
750+
to retry requests. If ``None`` is specified, requests will
751+
be retried using a default configuration.
752752
timeout (Optional[float]): The amount of time, in seconds, to wait
753753
for the request to complete. Note that if ``retry`` is
754754
specified, the timeout applies to each individual attempt.
@@ -838,8 +838,8 @@ def delete_workflow_template(
838838
will only delete the template if the current server version matches
839839
specified version.
840840
retry (Optional[google.api_core.retry.Retry]): A retry object used
841-
to retry requests. If ``None`` is specified, requests will not
842-
be retried.
841+
to retry requests. If ``None`` is specified, requests will
842+
be retried using a default configuration.
843843
timeout (Optional[float]): The amount of time, in seconds, to wait
844844
for the request to complete. Note that if ``retry`` is
845845
specified, the timeout applies to each individual attempt.

dataproc/google/cloud/dataproc_v1beta2/gapic/autoscaling_policy_service_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ def create_autoscaling_policy(
239239
If a dict is provided, it must be of the same form as the protobuf
240240
message :class:`~google.cloud.dataproc_v1beta2.types.AutoscalingPolicy`
241241
retry (Optional[google.api_core.retry.Retry]): A retry object used
242-
to retry requests. If ``None`` is specified, requests will not
243-
be retried.
242+
to retry requests. If ``None`` is specified, requests will
243+
be retried using a default configuration.
244244
timeout (Optional[float]): The amount of time, in seconds, to wait
245245
for the request to complete. Note that if ``retry`` is
246246
specified, the timeout applies to each individual attempt.
@@ -317,8 +317,8 @@ def update_autoscaling_policy(
317317
If a dict is provided, it must be of the same form as the protobuf
318318
message :class:`~google.cloud.dataproc_v1beta2.types.AutoscalingPolicy`
319319
retry (Optional[google.api_core.retry.Retry]): A retry object used
320-
to retry requests. If ``None`` is specified, requests will not
321-
be retried.
320+
to retry requests. If ``None`` is specified, requests will
321+
be retried using a default configuration.
322322
timeout (Optional[float]): The amount of time, in seconds, to wait
323323
for the request to complete. Note that if ``retry`` is
324324
specified, the timeout applies to each individual attempt.
@@ -388,8 +388,8 @@ def get_autoscaling_policy(
388388
https://cloud.google.com/apis/design/resource\_names of the form
389389
``projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}``.
390390
retry (Optional[google.api_core.retry.Retry]): A retry object used
391-
to retry requests. If ``None`` is specified, requests will not
392-
be retried.
391+
to retry requests. If ``None`` is specified, requests will
392+
be retried using a default configuration.
393393
timeout (Optional[float]): The amount of time, in seconds, to wait
394394
for the request to complete. Note that if ``retry`` is
395395
specified, the timeout applies to each individual attempt.
@@ -477,8 +477,8 @@ def list_autoscaling_policies(
477477
streaming is performed per-page, this determines the maximum number
478478
of resources in a page.
479479
retry (Optional[google.api_core.retry.Retry]): A retry object used
480-
to retry requests. If ``None`` is specified, requests will not
481-
be retried.
480+
to retry requests. If ``None`` is specified, requests will
481+
be retried using a default configuration.
482482
timeout (Optional[float]): The amount of time, in seconds, to wait
483483
for the request to complete. Note that if ``retry`` is
484484
specified, the timeout applies to each individual attempt.
@@ -565,8 +565,8 @@ def delete_autoscaling_policy(
565565
https://cloud.google.com/apis/design/resource\_names of the form
566566
``projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}``.
567567
retry (Optional[google.api_core.retry.Retry]): A retry object used
568-
to retry requests. If ``None`` is specified, requests will not
569-
be retried.
568+
to retry requests. If ``None`` is specified, requests will
569+
be retried using a default configuration.
570570
timeout (Optional[float]): The amount of time, in seconds, to wait
571571
for the request to complete. Note that if ``retry`` is
572572
specified, the timeout applies to each individual attempt.

0 commit comments

Comments
 (0)