Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 71bb809

Browse filesBrowse files
chore: Update gapic-generator-python to v1.8.5 (#252)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent b75d580 commit 71bb809
Copy full SHA for 71bb809

File tree

Expand file treeCollapse file tree

7 files changed

+38
-36
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+38
-36
lines changed

‎google/cloud/functions_v1/services/cloud_functions_service/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v1/services/cloud_functions_service/transports/rest.py
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import (
@@ -557,7 +557,7 @@ class _CallFunction(CloudFunctionsServiceRestStub):
557557
def __hash__(self):
558558
return hash("CallFunction")
559559

560-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
560+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
561561

562562
@classmethod
563563
def _get_unset_required_fields(cls, message_dict):
@@ -652,7 +652,7 @@ class _CreateFunction(CloudFunctionsServiceRestStub):
652652
def __hash__(self):
653653
return hash("CreateFunction")
654654

655-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
655+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
656656

657657
@classmethod
658658
def _get_unset_required_fields(cls, message_dict):
@@ -748,7 +748,7 @@ class _DeleteFunction(CloudFunctionsServiceRestStub):
748748
def __hash__(self):
749749
return hash("DeleteFunction")
750750

751-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
751+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
752752

753753
@classmethod
754754
def _get_unset_required_fields(cls, message_dict):
@@ -1007,7 +1007,7 @@ class _GetFunction(CloudFunctionsServiceRestStub):
10071007
def __hash__(self):
10081008
return hash("GetFunction")
10091009

1010-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1010+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10111011

10121012
@classmethod
10131013
def _get_unset_required_fields(cls, message_dict):
@@ -1097,7 +1097,7 @@ class _GetIamPolicy(CloudFunctionsServiceRestStub):
10971097
def __hash__(self):
10981098
return hash("GetIamPolicy")
10991099

1100-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1100+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11011101

11021102
@classmethod
11031103
def _get_unset_required_fields(cls, message_dict):
@@ -1332,7 +1332,7 @@ class _SetIamPolicy(CloudFunctionsServiceRestStub):
13321332
def __hash__(self):
13331333
return hash("SetIamPolicy")
13341334

1335-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1335+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13361336

13371337
@classmethod
13381338
def _get_unset_required_fields(cls, message_dict):
@@ -1501,7 +1501,7 @@ class _TestIamPermissions(CloudFunctionsServiceRestStub):
15011501
def __hash__(self):
15021502
return hash("TestIamPermissions")
15031503

1504-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1504+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
15051505

15061506
@classmethod
15071507
def _get_unset_required_fields(cls, message_dict):
@@ -1598,7 +1598,7 @@ class _UpdateFunction(CloudFunctionsServiceRestStub):
15981598
def __hash__(self):
15991599
return hash("UpdateFunction")
16001600

1601-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1601+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
16021602

16031603
@classmethod
16041604
def _get_unset_required_fields(cls, message_dict):

‎google/cloud/functions_v1/types/functions.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v1/types/functions.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import duration_pb2 # type: ignore

‎google/cloud/functions_v1/types/operations.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v1/types/operations.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import any_pb2 # type: ignore

‎google/cloud/functions_v2/services/function_service/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v2/services/function_service/transports/rest.py
+21-25Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import (
@@ -329,7 +329,7 @@ def pre_list_locations(
329329
self,
330330
request: locations_pb2.ListLocationsRequest,
331331
metadata: Sequence[Tuple[str, str]],
332-
) -> locations_pb2.ListLocationsResponse:
332+
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
333333
"""Pre-rpc interceptor for list_locations
334334
335335
Override in a subclass to manipulate the request or metadata
@@ -338,7 +338,7 @@ def pre_list_locations(
338338
return request, metadata
339339

340340
def post_list_locations(
341-
self, response: locations_pb2.ListLocationsRequest
341+
self, response: locations_pb2.ListLocationsResponse
342342
) -> locations_pb2.ListLocationsResponse:
343343
"""Post-rpc interceptor for list_locations
344344
@@ -352,17 +352,15 @@ def pre_get_iam_policy(
352352
self,
353353
request: iam_policy_pb2.GetIamPolicyRequest,
354354
metadata: Sequence[Tuple[str, str]],
355-
) -> policy_pb2.Policy:
355+
) -> Tuple[iam_policy_pb2.GetIamPolicyRequest, Sequence[Tuple[str, str]]]:
356356
"""Pre-rpc interceptor for get_iam_policy
357357
358358
Override in a subclass to manipulate the request or metadata
359359
before they are sent to the FunctionService server.
360360
"""
361361
return request, metadata
362362

363-
def post_get_iam_policy(
364-
self, response: iam_policy_pb2.GetIamPolicyRequest
365-
) -> policy_pb2.Policy:
363+
def post_get_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
366364
"""Post-rpc interceptor for get_iam_policy
367365
368366
Override in a subclass to manipulate the response
@@ -375,17 +373,15 @@ def pre_set_iam_policy(
375373
self,
376374
request: iam_policy_pb2.SetIamPolicyRequest,
377375
metadata: Sequence[Tuple[str, str]],
378-
) -> policy_pb2.Policy:
376+
) -> Tuple[iam_policy_pb2.SetIamPolicyRequest, Sequence[Tuple[str, str]]]:
379377
"""Pre-rpc interceptor for set_iam_policy
380378
381379
Override in a subclass to manipulate the request or metadata
382380
before they are sent to the FunctionService server.
383381
"""
384382
return request, metadata
385383

386-
def post_set_iam_policy(
387-
self, response: iam_policy_pb2.SetIamPolicyRequest
388-
) -> policy_pb2.Policy:
384+
def post_set_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
389385
"""Post-rpc interceptor for set_iam_policy
390386
391387
Override in a subclass to manipulate the response
@@ -398,7 +394,7 @@ def pre_test_iam_permissions(
398394
self,
399395
request: iam_policy_pb2.TestIamPermissionsRequest,
400396
metadata: Sequence[Tuple[str, str]],
401-
) -> iam_policy_pb2.TestIamPermissionsResponse:
397+
) -> Tuple[iam_policy_pb2.TestIamPermissionsRequest, Sequence[Tuple[str, str]]]:
402398
"""Pre-rpc interceptor for test_iam_permissions
403399
404400
Override in a subclass to manipulate the request or metadata
@@ -407,7 +403,7 @@ def pre_test_iam_permissions(
407403
return request, metadata
408404

409405
def post_test_iam_permissions(
410-
self, response: iam_policy_pb2.TestIamPermissionsRequest
406+
self, response: iam_policy_pb2.TestIamPermissionsResponse
411407
) -> iam_policy_pb2.TestIamPermissionsResponse:
412408
"""Post-rpc interceptor for test_iam_permissions
413409
@@ -421,7 +417,7 @@ def pre_get_operation(
421417
self,
422418
request: operations_pb2.GetOperationRequest,
423419
metadata: Sequence[Tuple[str, str]],
424-
) -> operations_pb2.Operation:
420+
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
425421
"""Pre-rpc interceptor for get_operation
426422
427423
Override in a subclass to manipulate the request or metadata
@@ -430,7 +426,7 @@ def pre_get_operation(
430426
return request, metadata
431427

432428
def post_get_operation(
433-
self, response: operations_pb2.GetOperationRequest
429+
self, response: operations_pb2.Operation
434430
) -> operations_pb2.Operation:
435431
"""Post-rpc interceptor for get_operation
436432
@@ -444,7 +440,7 @@ def pre_list_operations(
444440
self,
445441
request: operations_pb2.ListOperationsRequest,
446442
metadata: Sequence[Tuple[str, str]],
447-
) -> operations_pb2.ListOperationsResponse:
443+
) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]:
448444
"""Pre-rpc interceptor for list_operations
449445
450446
Override in a subclass to manipulate the request or metadata
@@ -453,7 +449,7 @@ def pre_list_operations(
453449
return request, metadata
454450

455451
def post_list_operations(
456-
self, response: operations_pb2.ListOperationsRequest
452+
self, response: operations_pb2.ListOperationsResponse
457453
) -> operations_pb2.ListOperationsResponse:
458454
"""Post-rpc interceptor for list_operations
459455
@@ -610,7 +606,7 @@ class _CreateFunction(FunctionServiceRestStub):
610606
def __hash__(self):
611607
return hash("CreateFunction")
612608

613-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
609+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
614610

615611
@classmethod
616612
def _get_unset_required_fields(cls, message_dict):
@@ -706,7 +702,7 @@ class _DeleteFunction(FunctionServiceRestStub):
706702
def __hash__(self):
707703
return hash("DeleteFunction")
708704

709-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
705+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
710706

711707
@classmethod
712708
def _get_unset_required_fields(cls, message_dict):
@@ -793,7 +789,7 @@ class _GenerateDownloadUrl(FunctionServiceRestStub):
793789
def __hash__(self):
794790
return hash("GenerateDownloadUrl")
795791

796-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
792+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
797793

798794
@classmethod
799795
def _get_unset_required_fields(cls, message_dict):
@@ -890,7 +886,7 @@ class _GenerateUploadUrl(FunctionServiceRestStub):
890886
def __hash__(self):
891887
return hash("GenerateUploadUrl")
892888

893-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
889+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
894890

895891
@classmethod
896892
def _get_unset_required_fields(cls, message_dict):
@@ -987,7 +983,7 @@ class _GetFunction(FunctionServiceRestStub):
987983
def __hash__(self):
988984
return hash("GetFunction")
989985

990-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
986+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
991987

992988
@classmethod
993989
def _get_unset_required_fields(cls, message_dict):
@@ -1077,7 +1073,7 @@ class _ListFunctions(FunctionServiceRestStub):
10771073
def __hash__(self):
10781074
return hash("ListFunctions")
10791075

1080-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1076+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10811077

10821078
@classmethod
10831079
def _get_unset_required_fields(cls, message_dict):
@@ -1163,7 +1159,7 @@ class _ListRuntimes(FunctionServiceRestStub):
11631159
def __hash__(self):
11641160
return hash("ListRuntimes")
11651161

1166-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1162+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11671163

11681164
@classmethod
11691165
def _get_unset_required_fields(cls, message_dict):
@@ -1249,7 +1245,7 @@ class _UpdateFunction(FunctionServiceRestStub):
12491245
def __hash__(self):
12501246
return hash("UpdateFunction")
12511247

1252-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1248+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
12531249

12541250
@classmethod
12551251
def _get_unset_required_fields(cls, message_dict):

‎google/cloud/functions_v2/types/functions.py

Copy file name to clipboardExpand all lines: google/cloud/functions_v2/types/functions.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import any_pb2 # type: ignore

‎samples/generated_samples/snippet_metadata_google.cloud.functions.v1.json

Copy file name to clipboardExpand all lines: samples/generated_samples/snippet_metadata_google.cloud.functions.v1.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-functions",
11-
"version": "1.11.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

‎samples/generated_samples/snippet_metadata_google.cloud.functions.v2.json

Copy file name to clipboardExpand all lines: samples/generated_samples/snippet_metadata_google.cloud.functions.v2.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-functions",
11-
"version": "1.11.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.