Skip to content

Commit

Permalink
Revert manual change to enum docstring references (via synth). (#9180)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and busunkim96 committed Sep 13, 2019
1 parent ef3cc4a commit 7572488
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
14 changes: 7 additions & 7 deletions tasks/google/cloud/tasks_v2beta2/gapic/cloud_tasks_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ def list_tasks(
Args:
parent (str): Required. The queue name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1328,7 +1328,7 @@ def get_task(
Args:
name (str): Required. The task name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1454,7 +1454,7 @@ def create_task(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.tasks_v2beta2.types.Task`
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1655,7 +1655,7 @@ def lease_tasks(
The maximum total size of a ``lease tasks response`` is 32 MB. If the
sum of all task sizes requested reaches this limit, fewer tasks than
requested are returned.
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1883,7 +1883,7 @@ def renew_lease(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.tasks_v2beta2.types.Duration`
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1985,7 +1985,7 @@ def cancel_lease(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.tasks_v2beta2.types.Timestamp`
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -2091,7 +2091,7 @@ def run_task(
Args:
name (str): Required. The task name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
response_view (~google.cloud.tasks_v2beta2.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta2.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down
8 changes: 4 additions & 4 deletions tasks/google/cloud/tasks_v2beta3/gapic/cloud_tasks_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ def list_tasks(
Args:
parent (str): Required. The queue name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID``
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1344,7 +1344,7 @@ def get_task(
Args:
name (str): Required. The task name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1469,7 +1469,7 @@ def create_task(
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.tasks_v2beta3.types.Task`
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down Expand Up @@ -1644,7 +1644,7 @@ def run_task(
Args:
name (str): Required. The task name. For example:
``projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID``
response_view (~google.cloud.tasks_v2beta3.types.View): The response\_view specifies which subset of the ``Task`` will be
response_view (~google.cloud.tasks_v2beta3.enums.Task.View): The response\_view specifies which subset of the ``Task`` will be
returned.
By default response\_view is ``BASIC``; not all information is retrieved
Expand Down
10 changes: 5 additions & 5 deletions tasks/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-08-21T12:39:33.815307Z",
"updateTime": "2019-09-13T20:06:15.433828Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.34.0",
"dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea"
"version": "0.36.2",
"dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "11592a15391951348a64f5c303399733b1c5b3b2",
"internalRef": "264425502"
"sha": "a602911ffd765e317860a74bccabfaae684ecf78",
"internalRef": "268935270"
}
},
{
Expand Down
5 changes: 5 additions & 0 deletions tasks/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
"\g<1>... }\n",
)

# Fix enum docstring references
s.replace(
"google/cloud/**/cloud_tasks_client.py",
"types\.View",
"enums.Task.View")

# ----------------------------------------------------------------------------
# Add templated files
Expand Down

0 comments on commit 7572488

Please sign in to comment.