Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#107)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3

feat: support self-signed JWT flow for service accounts

fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] authored May 20, 2021
1 parent c17e5dc commit 1acf20c
Show file tree
Hide file tree
Showing 67 changed files with 3,437 additions and 3,243 deletions.
1 change: 0 additions & 1 deletion docs/tasks_v2/cloud_tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CloudTasks
:members:
:inherited-members:


.. automodule:: google.cloud.tasks_v2.services.cloud_tasks.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/tasks_v2beta2/cloud_tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CloudTasks
:members:
:inherited-members:


.. automodule:: google.cloud.tasks_v2beta2.services.cloud_tasks.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/tasks_v2beta3/cloud_tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CloudTasks
:members:
:inherited-members:


.. automodule:: google.cloud.tasks_v2beta3.services.cloud_tasks.pagers
:members:
:inherited-members:
28 changes: 14 additions & 14 deletions google/cloud/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,10 +14,11 @@
# limitations under the License.
#

from google.cloud.tasks_v2.services.cloud_tasks.client import CloudTasksClient
from google.cloud.tasks_v2.services.cloud_tasks.async_client import (
CloudTasksAsyncClient,
)
from google.cloud.tasks_v2.services.cloud_tasks.client import CloudTasksClient

from google.cloud.tasks_v2.types.cloudtasks import CreateQueueRequest
from google.cloud.tasks_v2.types.cloudtasks import CreateTaskRequest
from google.cloud.tasks_v2.types.cloudtasks import DeleteQueueRequest
Expand All @@ -40,41 +40,41 @@
from google.cloud.tasks_v2.types.queue import StackdriverLoggingConfig
from google.cloud.tasks_v2.types.target import AppEngineHttpRequest
from google.cloud.tasks_v2.types.target import AppEngineRouting
from google.cloud.tasks_v2.types.target import HttpMethod
from google.cloud.tasks_v2.types.target import HttpRequest
from google.cloud.tasks_v2.types.target import OAuthToken
from google.cloud.tasks_v2.types.target import OidcToken
from google.cloud.tasks_v2.types.target import HttpMethod
from google.cloud.tasks_v2.types.task import Attempt
from google.cloud.tasks_v2.types.task import Task

__all__ = (
"AppEngineHttpRequest",
"AppEngineRouting",
"Attempt",
"CloudTasksAsyncClient",
"CloudTasksClient",
"CloudTasksAsyncClient",
"CreateQueueRequest",
"CreateTaskRequest",
"DeleteQueueRequest",
"DeleteTaskRequest",
"GetQueueRequest",
"GetTaskRequest",
"HttpMethod",
"HttpRequest",
"ListQueuesRequest",
"ListQueuesResponse",
"ListTasksRequest",
"ListTasksResponse",
"OAuthToken",
"OidcToken",
"PauseQueueRequest",
"PurgeQueueRequest",
"ResumeQueueRequest",
"RunTaskRequest",
"UpdateQueueRequest",
"Queue",
"RateLimits",
"ResumeQueueRequest",
"RetryConfig",
"RunTaskRequest",
"StackdriverLoggingConfig",
"AppEngineHttpRequest",
"AppEngineRouting",
"HttpRequest",
"OAuthToken",
"OidcToken",
"HttpMethod",
"Attempt",
"Task",
"UpdateQueueRequest",
)
9 changes: 5 additions & 4 deletions google/cloud/tasks_v2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.cloud_tasks import CloudTasksClient
from .services.cloud_tasks import CloudTasksAsyncClient

from .types.cloudtasks import CreateQueueRequest
from .types.cloudtasks import CreateTaskRequest
from .types.cloudtasks import DeleteQueueRequest
Expand All @@ -37,18 +38,19 @@
from .types.queue import StackdriverLoggingConfig
from .types.target import AppEngineHttpRequest
from .types.target import AppEngineRouting
from .types.target import HttpMethod
from .types.target import HttpRequest
from .types.target import OAuthToken
from .types.target import OidcToken
from .types.target import HttpMethod
from .types.task import Attempt
from .types.task import Task


__all__ = (
"CloudTasksAsyncClient",
"AppEngineHttpRequest",
"AppEngineRouting",
"Attempt",
"CloudTasksClient",
"CreateQueueRequest",
"CreateTaskRequest",
"DeleteQueueRequest",
Expand All @@ -73,5 +75,4 @@
"StackdriverLoggingConfig",
"Task",
"UpdateQueueRequest",
"CloudTasksClient",
)
183 changes: 183 additions & 0 deletions google/cloud/tasks_v2/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.tasks_v2",
"protoPackage": "google.cloud.tasks.v2",
"schema": "1.0",
"services": {
"CloudTasks": {
"clients": {
"grpc": {
"libraryClient": "CloudTasksClient",
"rpcs": {
"CreateQueue": {
"methods": [
"create_queue"
]
},
"CreateTask": {
"methods": [
"create_task"
]
},
"DeleteQueue": {
"methods": [
"delete_queue"
]
},
"DeleteTask": {
"methods": [
"delete_task"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetQueue": {
"methods": [
"get_queue"
]
},
"GetTask": {
"methods": [
"get_task"
]
},
"ListQueues": {
"methods": [
"list_queues"
]
},
"ListTasks": {
"methods": [
"list_tasks"
]
},
"PauseQueue": {
"methods": [
"pause_queue"
]
},
"PurgeQueue": {
"methods": [
"purge_queue"
]
},
"ResumeQueue": {
"methods": [
"resume_queue"
]
},
"RunTask": {
"methods": [
"run_task"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateQueue": {
"methods": [
"update_queue"
]
}
}
},
"grpc-async": {
"libraryClient": "CloudTasksAsyncClient",
"rpcs": {
"CreateQueue": {
"methods": [
"create_queue"
]
},
"CreateTask": {
"methods": [
"create_task"
]
},
"DeleteQueue": {
"methods": [
"delete_queue"
]
},
"DeleteTask": {
"methods": [
"delete_task"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"GetQueue": {
"methods": [
"get_queue"
]
},
"GetTask": {
"methods": [
"get_task"
]
},
"ListQueues": {
"methods": [
"list_queues"
]
},
"ListTasks": {
"methods": [
"list_tasks"
]
},
"PauseQueue": {
"methods": [
"pause_queue"
]
},
"PurgeQueue": {
"methods": [
"purge_queue"
]
},
"ResumeQueue": {
"methods": [
"resume_queue"
]
},
"RunTask": {
"methods": [
"run_task"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateQueue": {
"methods": [
"update_queue"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/tasks_v2/services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/tasks_v2/services/cloud_tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import CloudTasksClient
from .async_client import CloudTasksAsyncClient

Expand Down
Loading

0 comments on commit 1acf20c

Please sign in to comment.