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

Commit 167f431

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#60)
PiperOrigin-RevId: 373649163 Source-Link: googleapis/googleapis@7e1b14e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3 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
1 parent 6aba02a commit 167f431

File tree

22 files changed

+937
-745
lines changed

22 files changed

+937
-745
lines changed

‎docs/functions_v1/cloud_functions_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CloudFunctionsService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.functions_v1.services.cloud_functions_service.pagers
109
:members:
1110
:inherited-members:

‎google/cloud/functions/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,16 +14,16 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.cloud.functions_v1.services.cloud_functions_service.async_client import (
19-
CloudFunctionsServiceAsyncClient,
20-
)
2117
from google.cloud.functions_v1.services.cloud_functions_service.client import (
2218
CloudFunctionsServiceClient,
2319
)
20+
from google.cloud.functions_v1.services.cloud_functions_service.async_client import (
21+
CloudFunctionsServiceAsyncClient,
22+
)
23+
2424
from google.cloud.functions_v1.types.functions import CallFunctionRequest
2525
from google.cloud.functions_v1.types.functions import CallFunctionResponse
2626
from google.cloud.functions_v1.types.functions import CloudFunction
27-
from google.cloud.functions_v1.types.functions import CloudFunctionStatus
2827
from google.cloud.functions_v1.types.functions import CreateFunctionRequest
2928
from google.cloud.functions_v1.types.functions import DeleteFunctionRequest
3029
from google.cloud.functions_v1.types.functions import EventTrigger
@@ -39,16 +38,16 @@
3938
from google.cloud.functions_v1.types.functions import ListFunctionsResponse
4039
from google.cloud.functions_v1.types.functions import SourceRepository
4140
from google.cloud.functions_v1.types.functions import UpdateFunctionRequest
41+
from google.cloud.functions_v1.types.functions import CloudFunctionStatus
4242
from google.cloud.functions_v1.types.operations import OperationMetadataV1
4343
from google.cloud.functions_v1.types.operations import OperationType
4444

4545
__all__ = (
46+
"CloudFunctionsServiceClient",
47+
"CloudFunctionsServiceAsyncClient",
4648
"CallFunctionRequest",
4749
"CallFunctionResponse",
4850
"CloudFunction",
49-
"CloudFunctionStatus",
50-
"CloudFunctionsServiceAsyncClient",
51-
"CloudFunctionsServiceClient",
5251
"CreateFunctionRequest",
5352
"DeleteFunctionRequest",
5453
"EventTrigger",
@@ -61,8 +60,9 @@
6160
"HttpsTrigger",
6261
"ListFunctionsRequest",
6362
"ListFunctionsResponse",
64-
"OperationMetadataV1",
65-
"OperationType",
6663
"SourceRepository",
6764
"UpdateFunctionRequest",
65+
"CloudFunctionStatus",
66+
"OperationMetadataV1",
67+
"OperationType",
6868
)

‎google/cloud/functions_v1/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,10 +15,11 @@
1615
#
1716

1817
from .services.cloud_functions_service import CloudFunctionsServiceClient
18+
from .services.cloud_functions_service import CloudFunctionsServiceAsyncClient
19+
1920
from .types.functions import CallFunctionRequest
2021
from .types.functions import CallFunctionResponse
2122
from .types.functions import CloudFunction
22-
from .types.functions import CloudFunctionStatus
2323
from .types.functions import CreateFunctionRequest
2424
from .types.functions import DeleteFunctionRequest
2525
from .types.functions import EventTrigger
@@ -34,15 +34,17 @@
3434
from .types.functions import ListFunctionsResponse
3535
from .types.functions import SourceRepository
3636
from .types.functions import UpdateFunctionRequest
37+
from .types.functions import CloudFunctionStatus
3738
from .types.operations import OperationMetadataV1
3839
from .types.operations import OperationType
3940

40-
4141
__all__ = (
42+
"CloudFunctionsServiceAsyncClient",
4243
"CallFunctionRequest",
4344
"CallFunctionResponse",
4445
"CloudFunction",
4546
"CloudFunctionStatus",
47+
"CloudFunctionsServiceClient",
4648
"CreateFunctionRequest",
4749
"DeleteFunctionRequest",
4850
"EventTrigger",
@@ -59,5 +61,4 @@
5961
"OperationType",
6062
"SourceRepository",
6163
"UpdateFunctionRequest",
62-
"CloudFunctionsServiceClient",
6364
)
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.functions_v1",
5+
"protoPackage": "google.cloud.functions.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"CloudFunctionsService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "CloudFunctionsServiceClient",
12+
"rpcs": {
13+
"CallFunction": {
14+
"methods": [
15+
"call_function"
16+
]
17+
},
18+
"CreateFunction": {
19+
"methods": [
20+
"create_function"
21+
]
22+
},
23+
"DeleteFunction": {
24+
"methods": [
25+
"delete_function"
26+
]
27+
},
28+
"GenerateDownloadUrl": {
29+
"methods": [
30+
"generate_download_url"
31+
]
32+
},
33+
"GenerateUploadUrl": {
34+
"methods": [
35+
"generate_upload_url"
36+
]
37+
},
38+
"GetFunction": {
39+
"methods": [
40+
"get_function"
41+
]
42+
},
43+
"GetIamPolicy": {
44+
"methods": [
45+
"get_iam_policy"
46+
]
47+
},
48+
"ListFunctions": {
49+
"methods": [
50+
"list_functions"
51+
]
52+
},
53+
"SetIamPolicy": {
54+
"methods": [
55+
"set_iam_policy"
56+
]
57+
},
58+
"TestIamPermissions": {
59+
"methods": [
60+
"test_iam_permissions"
61+
]
62+
},
63+
"UpdateFunction": {
64+
"methods": [
65+
"update_function"
66+
]
67+
}
68+
}
69+
},
70+
"grpc-async": {
71+
"libraryClient": "CloudFunctionsServiceAsyncClient",
72+
"rpcs": {
73+
"CallFunction": {
74+
"methods": [
75+
"call_function"
76+
]
77+
},
78+
"CreateFunction": {
79+
"methods": [
80+
"create_function"
81+
]
82+
},
83+
"DeleteFunction": {
84+
"methods": [
85+
"delete_function"
86+
]
87+
},
88+
"GenerateDownloadUrl": {
89+
"methods": [
90+
"generate_download_url"
91+
]
92+
},
93+
"GenerateUploadUrl": {
94+
"methods": [
95+
"generate_upload_url"
96+
]
97+
},
98+
"GetFunction": {
99+
"methods": [
100+
"get_function"
101+
]
102+
},
103+
"GetIamPolicy": {
104+
"methods": [
105+
"get_iam_policy"
106+
]
107+
},
108+
"ListFunctions": {
109+
"methods": [
110+
"list_functions"
111+
]
112+
},
113+
"SetIamPolicy": {
114+
"methods": [
115+
"set_iam_policy"
116+
]
117+
},
118+
"TestIamPermissions": {
119+
"methods": [
120+
"test_iam_permissions"
121+
]
122+
},
123+
"UpdateFunction": {
124+
"methods": [
125+
"update_function"
126+
]
127+
}
128+
}
129+
}
130+
}
131+
}
132+
}
133+
}

‎google/cloud/functions_v1/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

‎google/cloud/functions_v1/services/cloud_functions_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import CloudFunctionsServiceClient
1917
from .async_client import CloudFunctionsServiceAsyncClient
2018

0 commit comments

Comments
 (0)