Skip to content

Commit 7572488

Browse files
yoshi-automationbusunkim96
authored andcommitted
Revert manual change to enum docstring references (via synth). (#9180)
1 parent ef3cc4a commit 7572488

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

tasks/google/cloud/tasks_v2beta2/gapic/cloud_tasks_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ def list_tasks(
12251225
Args:
12261226
parent (str): Required. The queue name. For example:
12271227
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
1228-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1228+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
12291229
returned.
12301230
12311231
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1328,7 +1328,7 @@ def get_task(
13281328
Args:
13291329
name (str): Required. The task name. For example:
13301330
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
1331-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1331+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
13321332
returned.
13331333
13341334
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1454,7 +1454,7 @@ def create_task(
14541454
14551455
If a dict is provided, it must be of the same form as the protobuf
14561456
message :class:`~google.cloud.tasks_v2beta2.types.Task`
1457-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1457+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
14581458
returned.
14591459
14601460
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1655,7 +1655,7 @@ def lease_tasks(
16551655
The maximum total size of a ``lease tasks response`` is 32 MB. If the
16561656
sum of all task sizes requested reaches this limit, fewer tasks than
16571657
requested are returned.
1658-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1658+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
16591659
returned.
16601660
16611661
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1883,7 +1883,7 @@ def renew_lease(
18831883
18841884
If a dict is provided, it must be of the same form as the protobuf
18851885
message :class:`~google.cloud.tasks_v2beta2.types.Duration`
1886-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1886+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
18871887
returned.
18881888
18891889
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1985,7 +1985,7 @@ def cancel_lease(
19851985
19861986
If a dict is provided, it must be of the same form as the protobuf
19871987
message :class:`~google.cloud.tasks_v2beta2.types.Timestamp`
1988-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
1988+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
19891989
returned.
19901990
19911991
By default response\_view is ``BASIC``; not all information is retrieved
@@ -2091,7 +2091,7 @@ def run_task(
20912091
Args:
20922092
name (str): Required. The task name. For example:
20932093
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
2094-
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
2094+
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
20952095
returned.
20962096
20972097
By default response\_view is ``BASIC``; not all information is retrieved

tasks/google/cloud/tasks_v2beta3/gapic/cloud_tasks_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def list_tasks(
12411241
Args:
12421242
parent (str): Required. The queue name. For example:
12431243
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
1244-
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
1244+
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
12451245
returned.
12461246
12471247
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1344,7 +1344,7 @@ def get_task(
13441344
Args:
13451345
name (str): Required. The task name. For example:
13461346
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
1347-
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
1347+
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
13481348
returned.
13491349
13501350
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1469,7 +1469,7 @@ def create_task(
14691469
14701470
If a dict is provided, it must be of the same form as the protobuf
14711471
message :class:`~google.cloud.tasks_v2beta3.types.Task`
1472-
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
1472+
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
14731473
returned.
14741474
14751475
By default response\_view is ``BASIC``; not all information is retrieved
@@ -1644,7 +1644,7 @@ def run_task(
16441644
Args:
16451645
name (str): Required. The task name. For example:
16461646
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
1647-
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
1647+
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
16481648
returned.
16491649
16501650
By default response\_view is ``BASIC``; not all information is retrieved

tasks/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-08-21T12:39:33.815307Z",
2+
"updateTime": "2019-09-13T20:06:15.433828Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.34.0",
8-
"dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea"
7+
"version": "0.36.2",
8+
"dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "11592a15391951348a64f5c303399733b1c5b3b2",
16-
"internalRef": "264425502"
15+
"sha": "a602911ffd765e317860a74bccabfaae684ecf78",
16+
"internalRef": "268935270"
1717
}
1818
},
1919
{

tasks/synth.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
"\g<1>... }\n",
8383
)
8484

85+
# Fix enum docstring references
86+
s.replace(
87+
"google/cloud/**/cloud_tasks_client.py",
88+
"types\.View",
89+
"enums.Task.View")
8590

8691
# ----------------------------------------------------------------------------
8792
# Add templated files

0 commit comments

Comments
 (0)