Content-Length: 770183 | pFad | https://github.com/googleapis/google-cloud-python/commit/de3abdf4ea3fb4f0ec3e6eb3011e077cb72be2f4

F5 fix(scheduler)!: remove `project_path` method, update docstrings (via… · googleapis/google-cloud-python@de3abdf · GitHub
Skip to content

Commit de3abdf

Browse files
yoshi-automationbusunkim96
authored andcommitted
fix(scheduler)!: remove project_path method, update docstrings (via synth) (#9522)
1 parent 9fd07ec commit de3abdf

13 files changed

+257
-210
lines changed

scheduler/google/cloud/scheduler_v1/gapic/cloud_scheduler_client.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,6 @@ def location_path(cls, project, location):
9898
location=location,
9999
)
100100

101-
@classmethod
102-
def project_path(cls, project):
103-
"""Return a fully-qualified project string."""
104-
return google.api_core.path_template.expand(
105-
"projects/{project}", project=project
106-
)
107-
108101
def __init__(
109102
self,
110103
transport=None,

scheduler/google/cloud/scheduler_v1/gapic/cloud_scheduler_client_config.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,42 @@
1818
},
1919
"methods": {
2020
"ListJobs": {
21-
"timeout_millis": 30000,
21+
"timeout_millis": 60000,
2222
"retry_codes_name": "idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetJob": {
26-
"timeout_millis": 30000,
26+
"timeout_millis": 60000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"CreateJob": {
31-
"timeout_millis": 30000,
31+
"timeout_millis": 60000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"UpdateJob": {
36-
"timeout_millis": 30000,
36+
"timeout_millis": 60000,
3737
"retry_codes_name": "non_idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"DeleteJob": {
41-
"timeout_millis": 30000,
42-
"retry_codes_name": "idempotent",
41+
"timeout_millis": 60000,
42+
"retry_codes_name": "non_idempotent",
4343
"retry_params_name": "default",
4444
},
4545
"PauseJob": {
46-
"timeout_millis": 30000,
46+
"timeout_millis": 60000,
4747
"retry_codes_name": "non_idempotent",
4848
"retry_params_name": "default",
4949
},
5050
"ResumeJob": {
51-
"timeout_millis": 30000,
51+
"timeout_millis": 60000,
5252
"retry_codes_name": "non_idempotent",
5353
"retry_params_name": "default",
5454
},
5555
"RunJob": {
56-
"timeout_millis": 30000,
56+
"timeout_millis": 60000,
5757
"retry_codes_name": "non_idempotent",
5858
"retry_params_name": "default",
5959
},

scheduler/google/cloud/scheduler_v1/proto/cloudscheduler.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ message ListJobsRequest {
136136
string parent = 1 [
137137
(google.api.field_behavior) = REQUIRED,
138138
(google.api.resource_reference) = {
139-
child_type: "locations.googleapis.com/Location"
139+
child_type: "cloudscheduler.googleapis.com/Job"
140140
}
141141
];
142142

@@ -192,7 +192,7 @@ message CreateJobRequest {
192192
string parent = 1 [
193193
(google.api.field_behavior) = REQUIRED,
194194
(google.api.resource_reference) = {
195-
child_type: "locations.googleapis.com/Location"
195+
child_type: "cloudscheduler.googleapis.com/Job"
196196
}
197197
];
198198

scheduler/google/cloud/scheduler_v1/proto/cloudscheduler_pb2.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scheduler/google/cloud/scheduler_v1beta1/gapic/cloud_scheduler_client.py

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ def location_path(cls, project, location):
100100
location=location,
101101
)
102102

103-
@classmethod
104-
def project_path(cls, project):
105-
"""Return a fully-qualified project string."""
106-
return google.api_core.path_template.expand(
107-
"projects/{project}", project=project
108-
)
109-
110103
def __init__(
111104
self,
112105
transport=None,
@@ -253,9 +246,7 @@ def list_jobs(
253246
... pass
254247
255248
Args:
256-
parent (str): Required.
257-
258-
The location name. For example:
249+
parent (str): Required. The location name. For example:
259250
``projects/PROJECT_ID/locations/LOCATION_ID``.
260251
page_size (int): The maximum number of resources contained in the
261252
underlying API response. If page streaming is performed per-
@@ -344,9 +335,7 @@ def get_job(
344335
>>> response = client.get_job(name)
345336
346337
Args:
347-
name (str): Required.
348-
349-
The job name. For example:
338+
name (str): Required. The job name. For example:
350339
``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``.
351340
retry (Optional[google.api_core.retry.Retry]): A retry object used
352341
to retry requests. If ``None`` is specified, requests will
@@ -420,16 +409,12 @@ def create_job(
420409
>>> response = client.create_job(parent, job)
421410
422411
Args:
423-
parent (str): Required.
424-
425-
The location name. For example:
412+
parent (str): Required. The location name. For example:
426413
``projects/PROJECT_ID/locations/LOCATION_ID``.
427-
job (Union[dict, ~google.cloud.scheduler_v1beta1.types.Job]): Required.
428-
429-
The job to add. The user can optionally specify a name for the job in
430-
``name``. ``name`` cannot be the same as an existing job. If a name is
431-
not specified then the system will generate a random unique name that
432-
will be returned (``name``) in the response.
414+
job (Union[dict, ~google.cloud.scheduler_v1beta1.types.Job]): Required. The job to add. The user can optionally specify a name for the
415+
job in ``name``. ``name`` cannot be the same as an existing job. If a
416+
name is not specified then the system will generate a random unique name
417+
that will be returned (``name``) in the response.
433418
434419
If a dict is provided, it must be of the same form as the protobuf
435420
message :class:`~google.cloud.scheduler_v1beta1.types.Job`
@@ -511,9 +496,7 @@ def update_job(
511496
>>> response = client.update_job(job)
512497
513498
Args:
514-
job (Union[dict, ~google.cloud.scheduler_v1beta1.types.Job]): Required.
515-
516-
The new job properties. ``name`` must be specified.
499+
job (Union[dict, ~google.cloud.scheduler_v1beta1.types.Job]): Required. The new job properties. ``name`` must be specified.
517500
518501
Output only fields cannot be modified using UpdateJob. Any value
519502
specified for an output only field will be ignored.
@@ -592,9 +575,7 @@ def delete_job(
592575
>>> client.delete_job(name)
593576
594577
Args:
595-
name (str): Required.
596-
597-
The job name. For example:
578+
name (str): Required. The job name. For example:
598579
``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``.
599580
retry (Optional[google.api_core.retry.Retry]): A retry object used
600581
to retry requests. If ``None`` is specified, requests will
@@ -666,9 +647,7 @@ def pause_job(
666647
>>> response = client.pause_job(name)
667648
668649
Args:
669-
name (str): Required.
670-
671-
The job name. For example:
650+
name (str): Required. The job name. For example:
672651
``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``.
673652
retry (Optional[google.api_core.retry.Retry]): A retry object used
674653
to retry requests. If ``None`` is specified, requests will
@@ -743,9 +722,7 @@ def resume_job(
743722
>>> response = client.resume_job(name)
744723
745724
Args:
746-
name (str): Required.
747-
748-
The job name. For example:
725+
name (str): Required. The job name. For example:
749726
``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``.
750727
retry (Optional[google.api_core.retry.Retry]): A retry object used
751728
to retry requests. If ``None`` is specified, requests will
@@ -818,9 +795,7 @@ def run_job(
818795
>>> response = client.run_job(name)
819796
820797
Args:
821-
name (str): Required.
822-
823-
The job name. For example:
798+
name (str): Required. The job name. For example:
824799
``projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID``.
825800
retry (Optional[google.api_core.retry.Retry]): A retry object used
826801
to retry requests. If ``None`` is specified, requests will

scheduler/google/cloud/scheduler_v1beta1/gapic/cloud_scheduler_client_config.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,42 @@
1818
},
1919
"methods": {
2020
"ListJobs": {
21-
"timeout_millis": 10000,
21+
"timeout_millis": 60000,
2222
"retry_codes_name": "idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetJob": {
26-
"timeout_millis": 10000,
26+
"timeout_millis": 60000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"CreateJob": {
31-
"timeout_millis": 10000,
31+
"timeout_millis": 60000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"UpdateJob": {
36-
"timeout_millis": 10000,
36+
"timeout_millis": 60000,
3737
"retry_codes_name": "non_idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"DeleteJob": {
41-
"timeout_millis": 10000,
42-
"retry_codes_name": "idempotent",
41+
"timeout_millis": 60000,
42+
"retry_codes_name": "non_idempotent",
4343
"retry_params_name": "default",
4444
},
4545
"PauseJob": {
46-
"timeout_millis": 10000,
47-
"retry_codes_name": "idempotent",
46+
"timeout_millis": 60000,
47+
"retry_codes_name": "non_idempotent",
4848
"retry_params_name": "default",
4949
},
5050
"ResumeJob": {
51-
"timeout_millis": 10000,
52-
"retry_codes_name": "idempotent",
51+
"timeout_millis": 60000,
52+
"retry_codes_name": "non_idempotent",
5353
"retry_params_name": "default",
5454
},
5555
"RunJob": {
56-
"timeout_millis": 10000,
56+
"timeout_millis": 60000,
5757
"retry_codes_name": "non_idempotent",
5858
"retry_params_name": "default",
5959
},

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/de3abdf4ea3fb4f0ec3e6eb3011e077cb72be2f4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy