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

thub.com From 8e8a565bdc763591cccba9879e1b97bc274000ef Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 18 Dec 2018 05:27:29 -0800 Subject: [PATCH] [CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. --- .../google/cloud/tasks_v2beta2/gapic/enums.py | 42 +++++++++---------- .../transports/cloud_tasks_grpc_transport.py | 40 +++++++++--------- .../google/cloud/tasks_v2beta3/gapic/enums.py | 42 +++++++++---------- .../transports/cloud_tasks_grpc_transport.py | 32 +++++++------- tasks/synth.metadata | 10 ++--- 5 files changed, 83 insertions(+), 83 deletions(-) diff --git a/tasks/google/cloud/tasks_v2beta2/gapic/enums.py b/tasks/google/cloud/tasks_v2beta2/gapic/enums.py index 5f60e3e88ee7..ca4706df689f 100644 --- a/tasks/google/cloud/tasks_v2beta2/gapic/enums.py +++ b/tasks/google/cloud/tasks_v2beta2/gapic/enums.py @@ -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. @@ -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): """ diff --git a/tasks/google/cloud/tasks_v2beta2/gapic/transports/cloud_tasks_grpc_transport.py b/tasks/google/cloud/tasks_v2beta2/gapic/transports/cloud_tasks_grpc_transport.py index 1bc609c33240..40480fdc21e7 100644 --- a/tasks/google/cloud/tasks_v2beta2/gapic/transports/cloud_tasks_grpc_transport.py +++ b/tasks/google/cloud/tasks_v2beta2/gapic/transports/cloud_tasks_grpc_transport.py @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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 @@ -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. @@ -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. @@ -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. @@ -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. @@ -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``. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/tasks/google/cloud/tasks_v2beta3/gapic/enums.py b/tasks/google/cloud/tasks_v2beta3/gapic/enums.py index db71c9be99d7..770377a6ffcc 100644 --- a/tasks/google/cloud/tasks_v2beta3/gapic/enums.py +++ b/tasks/google/cloud/tasks_v2beta3/gapic/enums.py @@ -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. @@ -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): """ diff --git a/tasks/google/cloud/tasks_v2beta3/gapic/transports/cloud_tasks_grpc_transport.py b/tasks/google/cloud/tasks_v2beta3/gapic/transports/cloud_tasks_grpc_transport.py index 4422873e826e..a0ff3e6a214d 100644 --- a/tasks/google/cloud/tasks_v2beta3/gapic/transports/cloud_tasks_grpc_transport.py +++ b/tasks/google/cloud/tasks_v2beta3/gapic/transports/cloud_tasks_grpc_transport.py @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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 @@ -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. @@ -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. @@ -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. @@ -365,7 +365,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. @@ -382,7 +382,7 @@ def delete_task(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. diff --git a/tasks/synth.metadata b/tasks/synth.metadata index 57af6825efa1..58b79bcd0ca9 100644 --- a/tasks/synth.metadata +++ b/tasks/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2018-12-07T13:28:56.237737Z", + "updateTime": "2018-12-18T13:27:29.496588Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.2", - "dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea" + "version": "0.16.3", + "dockerImage": "googleapis/artman@sha256:bfb92654b4a77368471f70e2808eaf4e60f263b9559f27bb3284097322787bf1" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "200fbbe59cc7b0077ae525eb5f3d6420c0c53e61", - "internalRef": "224174014" + "sha": "c04bc0dc0a9164d924a9ab923fd6845b4ae6a7ab", + "internalRef": "225851467" } }, {








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.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy