Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

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

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 14, 2021
1 parent 6aba02a commit 167f431
Show file tree
Hide file tree
Showing 22 changed files with 937 additions and 745 deletions.
1 change: 0 additions & 1 deletion docs/functions_v1/cloud_functions_service.rst
Expand Up @@ -5,7 +5,6 @@ CloudFunctionsService
:members:
:inherited-members:


.. automodule:: google.cloud.functions_v1.services.cloud_functions_service.pagers
:members:
:inherited-members:
20 changes: 10 additions & 10 deletions google/cloud/functions/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from google.cloud.functions_v1.services.cloud_functions_service.async_client import (
CloudFunctionsServiceAsyncClient,
)
from google.cloud.functions_v1.services.cloud_functions_service.client import (
CloudFunctionsServiceClient,
)
from google.cloud.functions_v1.services.cloud_functions_service.async_client import (
CloudFunctionsServiceAsyncClient,
)

from google.cloud.functions_v1.types.functions import CallFunctionRequest
from google.cloud.functions_v1.types.functions import CallFunctionResponse
from google.cloud.functions_v1.types.functions import CloudFunction
from google.cloud.functions_v1.types.functions import CloudFunctionStatus
from google.cloud.functions_v1.types.functions import CreateFunctionRequest
from google.cloud.functions_v1.types.functions import DeleteFunctionRequest
from google.cloud.functions_v1.types.functions import EventTrigger
Expand All @@ -39,16 +38,16 @@
from google.cloud.functions_v1.types.functions import ListFunctionsResponse
from google.cloud.functions_v1.types.functions import SourceRepository
from google.cloud.functions_v1.types.functions import UpdateFunctionRequest
from google.cloud.functions_v1.types.functions import CloudFunctionStatus
from google.cloud.functions_v1.types.operations import OperationMetadataV1
from google.cloud.functions_v1.types.operations import OperationType

__all__ = (
"CloudFunctionsServiceClient",
"CloudFunctionsServiceAsyncClient",
"CallFunctionRequest",
"CallFunctionResponse",
"CloudFunction",
"CloudFunctionStatus",
"CloudFunctionsServiceAsyncClient",
"CloudFunctionsServiceClient",
"CreateFunctionRequest",
"DeleteFunctionRequest",
"EventTrigger",
Expand All @@ -61,8 +60,9 @@
"HttpsTrigger",
"ListFunctionsRequest",
"ListFunctionsResponse",
"OperationMetadataV1",
"OperationType",
"SourceRepository",
"UpdateFunctionRequest",
"CloudFunctionStatus",
"OperationMetadataV1",
"OperationType",
)
9 changes: 5 additions & 4 deletions google/cloud/functions_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from .services.cloud_functions_service import CloudFunctionsServiceClient
from .services.cloud_functions_service import CloudFunctionsServiceAsyncClient

from .types.functions import CallFunctionRequest
from .types.functions import CallFunctionResponse
from .types.functions import CloudFunction
from .types.functions import CloudFunctionStatus
from .types.functions import CreateFunctionRequest
from .types.functions import DeleteFunctionRequest
from .types.functions import EventTrigger
Expand All @@ -34,15 +34,17 @@
from .types.functions import ListFunctionsResponse
from .types.functions import SourceRepository
from .types.functions import UpdateFunctionRequest
from .types.functions import CloudFunctionStatus
from .types.operations import OperationMetadataV1
from .types.operations import OperationType


__all__ = (
"CloudFunctionsServiceAsyncClient",
"CallFunctionRequest",
"CallFunctionResponse",
"CloudFunction",
"CloudFunctionStatus",
"CloudFunctionsServiceClient",
"CreateFunctionRequest",
"DeleteFunctionRequest",
"EventTrigger",
Expand All @@ -59,5 +61,4 @@
"OperationType",
"SourceRepository",
"UpdateFunctionRequest",
"CloudFunctionsServiceClient",
)
133 changes: 133 additions & 0 deletions google/cloud/functions_v1/gapic_metadata.json
@@ -0,0 +1,133 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.functions_v1",
"protoPackage": "google.cloud.functions.v1",
"schema": "1.0",
"services": {
"CloudFunctionsService": {
"clients": {
"grpc": {
"libraryClient": "CloudFunctionsServiceClient",
"rpcs": {
"CallFunction": {
"methods": [
"call_function"
]
},
"CreateFunction": {
"methods": [
"create_function"
]
},
"DeleteFunction": {
"methods": [
"delete_function"
]
},
"GenerateDownloadUrl": {
"methods": [
"generate_download_url"
]
},
"GenerateUploadUrl": {
"methods": [
"generate_upload_url"
]
},
"GetFunction": {
"methods": [
"get_function"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListFunctions": {
"methods": [
"list_functions"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateFunction": {
"methods": [
"update_function"
]
}
}
},
"grpc-async": {
"libraryClient": "CloudFunctionsServiceAsyncClient",
"rpcs": {
"CallFunction": {
"methods": [
"call_function"
]
},
"CreateFunction": {
"methods": [
"create_function"
]
},
"DeleteFunction": {
"methods": [
"delete_function"
]
},
"GenerateDownloadUrl": {
"methods": [
"generate_download_url"
]
},
"GenerateUploadUrl": {
"methods": [
"generate_upload_url"
]
},
"GetFunction": {
"methods": [
"get_function"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListFunctions": {
"methods": [
"list_functions"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateFunction": {
"methods": [
"update_function"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/functions_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -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 CloudFunctionsServiceClient
from .async_client import CloudFunctionsServiceAsyncClient

Expand Down

0 comments on commit 167f431

Please sign in to comment.