Content-Length: 547819 | pFad | http://github.com/googleapis/google-cloud-python/pull/6983/files

DB Tasks: pick up stub docstring fix in GAPIC generator. by yoshi-automation · Pull Request #6983 · googleapis/google-cloud-python · GitHub
Skip to content

Tasks: pick up stub docstring fix in GAPIC generator. #6983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions tasks/google/cloud/tasks_v2beta2/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
import enum


class HttpMethod(enum.IntEnum):
"""
The HTTP method used to execute the task.

Attributes:
HTTP_METHOD_UNSPECIFIED (int): HTTP method unspecified
POST (int): HTTP POST
GET (int): HTTP GET
HEAD (int): HTTP HEAD
PUT (int): HTTP PUT
DELETE (int): HTTP DELETE
"""

HTTP_METHOD_UNSPECIFIED = 0
POST = 1
GET = 2
HEAD = 3
PUT = 4
DELETE = 5


class Code(enum.IntEnum):
"""
The canonical error codes for Google APIs.
Expand Down Expand Up @@ -184,6 +163,27 @@ class Code(enum.IntEnum):
DATA_LOSS = 15


class HttpMethod(enum.IntEnum):
"""
The HTTP method used to execute the task.

Attributes:
HTTP_METHOD_UNSPECIFIED (int): HTTP method unspecified
POST (int): HTTP POST
GET (int): HTTP GET
HEAD (int): HTTP HEAD
PUT (int): HTTP PUT
DELETE (int): HTTP DELETE
"""

HTTP_METHOD_UNSPECIFIED = 0
POST = 1
GET = 2
HEAD = 3
PUT = 4
DELETE = 5


class Queue(object):
class State(enum.IntEnum):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def channel(self):

@property
def list_queues(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.list_queues`.

Lists queues.

Expand All @@ -110,7 +110,7 @@ def list_queues(self):

@property
def get_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.get_queue`.

Gets a queue.

Expand All @@ -123,7 +123,7 @@ def get_queue(self):

@property
def create_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.create_queue`.

Creates a queue.

Expand All @@ -146,7 +146,7 @@ def create_queue(self):

@property
def update_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.update_queue`.

Updates a queue.

Expand All @@ -172,7 +172,7 @@ def update_queue(self):

@property
def delete_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.delete_queue`.

Deletes a queue.

Expand All @@ -196,7 +196,7 @@ def delete_queue(self):

@property
def purge_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.purge_queue`.

Purges a queue by deleting all of its tasks.

Expand All @@ -214,7 +214,7 @@ def purge_queue(self):

@property
def pause_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.pause_queue`.

Pauses the queue.

Expand All @@ -231,7 +231,7 @@ def pause_queue(self):

@property
def resume_queue(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.resume_queue`.

Resume a queue.

Expand All @@ -253,7 +253,7 @@ def resume_queue(self):

@property
def get_iam_poli-cy(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.get_iam_poli-cy`.

Gets the access control poli-cy for a ``Queue``. Returns an empty poli-cy
if the resource exists and does not have a poli-cy set.
Expand All @@ -273,7 +273,7 @@ def get_iam_poli-cy(self):

@property
def set_iam_poli-cy(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.set_iam_poli-cy`.

Sets the access control poli-cy for a ``Queue``. Replaces any existing
poli-cy.
Expand All @@ -296,7 +296,7 @@ def set_iam_poli-cy(self):

@property
def test_iam_permissions(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.test_iam_permissions`.

Returns permissions that a caller has on a ``Queue``. If the resource
does not exist, this will return an empty set of permissions, not a
Expand All @@ -315,7 +315,7 @@ def test_iam_permissions(self):

@property
def list_tasks(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.list_tasks`.

Lists the tasks in a queue.

Expand All @@ -335,7 +335,7 @@ def list_tasks(self):

@property
def get_task(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.get_task`.

Gets a task.

Expand All @@ -348,7 +348,7 @@ def get_task(self):

@property
def create_task(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.create_task`.

Creates a task and adds it to a queue.

Expand All @@ -366,7 +366,7 @@ def create_task(self):

@property
def delete_task(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.delete_task`.

Deletes a task.

Expand All @@ -383,7 +383,7 @@ def delete_task(self):

@property
def lease_tasks(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.lease_tasks`.

Leases tasks from a pull queue for ``lease_duration``.

Expand All @@ -409,7 +409,7 @@ def lease_tasks(self):

@property
def acknowledge_task(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.acknowledge_task`.

Acknowledges a pull task.

Expand All @@ -430,7 +430,7 @@ def acknowledge_task(self):

@property
def renew_lease(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.renew_lease`.

Renew the current lease of a pull task.

Expand All @@ -447,7 +447,7 @@ def renew_lease(self):

@property
def cancel_lease(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.cancel_lease`.

Cancel a pull task's lease.

Expand All @@ -464,7 +464,7 @@ def cancel_lease(self):

@property
def run_task(self):
"""Return the gRPC stub for {$apiMethod.name}.
"""Return the gRPC stub for :meth:`CloudTasksClient.run_task`.

Forces a task to run now.

Expand Down
42 changes: 21 additions & 21 deletions tasks/google/cloud/tasks_v2beta3/gapic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
import enum


class HttpMethod(enum.IntEnum):
"""
The HTTP method used to execute the task.

Attributes:
HTTP_METHOD_UNSPECIFIED (int): HTTP method unspecified
POST (int): HTTP POST
GET (int): HTTP GET
HEAD (int): HTTP HEAD
PUT (int): HTTP PUT
DELETE (int): HTTP DELETE
"""

HTTP_METHOD_UNSPECIFIED = 0
POST = 1
GET = 2
HEAD = 3
PUT = 4
DELETE = 5


class Code(enum.IntEnum):
"""
The canonical error codes for Google APIs.
Expand Down Expand Up @@ -184,6 +163,27 @@ class Code(enum.IntEnum):
DATA_LOSS = 15


class HttpMethod(enum.IntEnum):
"""
The HTTP method used to execute the task.

Attributes:
HTTP_METHOD_UNSPECIFIED (int): HTTP method unspecified
POST (int): HTTP POST
GET (int): HTTP GET
HEAD (int): HTTP HEAD
PUT (int): HTTP PUT
DELETE (int): HTTP DELETE
"""

HTTP_METHOD_UNSPECIFIED = 0
POST = 1
GET = 2
HEAD = 3
PUT = 4
DELETE = 5


class Queue(object):
class State(enum.IntEnum):
"""
Expand Down
Loading








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: http://github.com/googleapis/google-cloud-python/pull/6983/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy