Skip to content

Commit cd5f398

Browse files
chore: Update gapic-generator-python to v1.8.5 (#387)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: googleapis/googleapis-gen@1907294 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 b05de17 commit cd5f398

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/rest.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from requests import __version__ as requests_version
3232
import dataclasses
3333
import re
34-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
34+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
3535
import warnings
3636

3737
try:
@@ -767,7 +767,7 @@ class _ApproveBuild(CloudBuildRestStub):
767767
def __hash__(self):
768768
return hash("ApproveBuild")
769769

770-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
770+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
771771

772772
@classmethod
773773
def _get_unset_required_fields(cls, message_dict):
@@ -870,7 +870,7 @@ class _CancelBuild(CloudBuildRestStub):
870870
def __hash__(self):
871871
return hash("CancelBuild")
872872

873-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
873+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
874874

875875
@classmethod
876876
def _get_unset_required_fields(cls, message_dict):
@@ -993,7 +993,7 @@ class _CreateBuild(CloudBuildRestStub):
993993
def __hash__(self):
994994
return hash("CreateBuild")
995995

996-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
996+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
997997

998998
@classmethod
999999
def _get_unset_required_fields(cls, message_dict):
@@ -1094,7 +1094,7 @@ class _CreateBuildTrigger(CloudBuildRestStub):
10941094
def __hash__(self):
10951095
return hash("CreateBuildTrigger")
10961096

1097-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1097+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10981098

10991099
@classmethod
11001100
def _get_unset_required_fields(cls, message_dict):
@@ -1199,7 +1199,7 @@ class _CreateWorkerPool(CloudBuildRestStub):
11991199
def __hash__(self):
12001200
return hash("CreateWorkerPool")
12011201

1202-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1202+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
12031203
"workerPoolId": "",
12041204
}
12051205

@@ -1299,7 +1299,7 @@ class _DeleteBuildTrigger(CloudBuildRestStub):
12991299
def __hash__(self):
13001300
return hash("DeleteBuildTrigger")
13011301

1302-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1302+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13031303

13041304
@classmethod
13051305
def _get_unset_required_fields(cls, message_dict):
@@ -1379,7 +1379,7 @@ class _DeleteWorkerPool(CloudBuildRestStub):
13791379
def __hash__(self):
13801380
return hash("DeleteWorkerPool")
13811381

1382-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1382+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13831383

13841384
@classmethod
13851385
def _get_unset_required_fields(cls, message_dict):
@@ -1468,7 +1468,7 @@ class _GetBuild(CloudBuildRestStub):
14681468
def __hash__(self):
14691469
return hash("GetBuild")
14701470

1471-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1471+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
14721472

14731473
@classmethod
14741474
def _get_unset_required_fields(cls, message_dict):
@@ -1581,7 +1581,7 @@ class _GetBuildTrigger(CloudBuildRestStub):
15811581
def __hash__(self):
15821582
return hash("GetBuildTrigger")
15831583

1584-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1584+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
15851585

15861586
@classmethod
15871587
def _get_unset_required_fields(cls, message_dict):
@@ -1676,7 +1676,7 @@ class _GetWorkerPool(CloudBuildRestStub):
16761676
def __hash__(self):
16771677
return hash("GetWorkerPool")
16781678

1679-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1679+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
16801680

16811681
@classmethod
16821682
def _get_unset_required_fields(cls, message_dict):
@@ -1777,7 +1777,7 @@ class _ListBuilds(CloudBuildRestStub):
17771777
def __hash__(self):
17781778
return hash("ListBuilds")
17791779

1780-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1780+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17811781

17821782
@classmethod
17831783
def _get_unset_required_fields(cls, message_dict):
@@ -1867,7 +1867,7 @@ class _ListBuildTriggers(CloudBuildRestStub):
18671867
def __hash__(self):
18681868
return hash("ListBuildTriggers")
18691869

1870-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1870+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
18711871

18721872
@classmethod
18731873
def _get_unset_required_fields(cls, message_dict):
@@ -1959,7 +1959,7 @@ class _ListWorkerPools(CloudBuildRestStub):
19591959
def __hash__(self):
19601960
return hash("ListWorkerPools")
19611961

1962-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1962+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
19631963

19641964
@classmethod
19651965
def _get_unset_required_fields(cls, message_dict):
@@ -2143,7 +2143,7 @@ class _RetryBuild(CloudBuildRestStub):
21432143
def __hash__(self):
21442144
return hash("RetryBuild")
21452145

2146-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2146+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
21472147

21482148
@classmethod
21492149
def _get_unset_required_fields(cls, message_dict):
@@ -2244,7 +2244,7 @@ class _RunBuildTrigger(CloudBuildRestStub):
22442244
def __hash__(self):
22452245
return hash("RunBuildTrigger")
22462246

2247-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2247+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
22482248

22492249
@classmethod
22502250
def _get_unset_required_fields(cls, message_dict):
@@ -2349,7 +2349,7 @@ class _UpdateBuildTrigger(CloudBuildRestStub):
23492349
def __hash__(self):
23502350
return hash("UpdateBuildTrigger")
23512351

2352-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2352+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
23532353

23542354
@classmethod
23552355
def _get_unset_required_fields(cls, message_dict):
@@ -2454,7 +2454,7 @@ class _UpdateWorkerPool(CloudBuildRestStub):
24542454
def __hash__(self):
24552455
return hash("UpdateWorkerPool")
24562456

2457-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2457+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
24582458

24592459
@classmethod
24602460
def _get_unset_required_fields(cls, message_dict):

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types/cloudbuild.py

Lines 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
import proto # type: ignore

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v2/services/repository_manager/transports/rest.py

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from requests import __version__ as requests_version
3636
import dataclasses
3737
import re
38-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
38+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
3939
import warnings
4040

4141
try:
@@ -490,17 +490,15 @@ def pre_get_iam_policy(
490490
self,
491491
request: iam_policy_pb2.GetIamPolicyRequest,
492492
metadata: Sequence[Tuple[str, str]],
493-
) -> policy_pb2.Policy:
493+
) -> Tuple[iam_policy_pb2.GetIamPolicyRequest, Sequence[Tuple[str, str]]]:
494494
"""Pre-rpc interceptor for get_iam_policy
495495
496496
Override in a subclass to manipulate the request or metadata
497497
before they are sent to the RepositoryManager server.
498498
"""
499499
return request, metadata
500500

501-
def post_get_iam_policy(
502-
self, response: iam_policy_pb2.GetIamPolicyRequest
503-
) -> policy_pb2.Policy:
501+
def post_get_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
504502
"""Post-rpc interceptor for get_iam_policy
505503
506504
Override in a subclass to manipulate the response
@@ -513,17 +511,15 @@ def pre_set_iam_policy(
513511
self,
514512
request: iam_policy_pb2.SetIamPolicyRequest,
515513
metadata: Sequence[Tuple[str, str]],
516-
) -> policy_pb2.Policy:
514+
) -> Tuple[iam_policy_pb2.SetIamPolicyRequest, Sequence[Tuple[str, str]]]:
517515
"""Pre-rpc interceptor for set_iam_policy
518516
519517
Override in a subclass to manipulate the request or metadata
520518
before they are sent to the RepositoryManager server.
521519
"""
522520
return request, metadata
523521

524-
def post_set_iam_policy(
525-
self, response: iam_policy_pb2.SetIamPolicyRequest
526-
) -> policy_pb2.Policy:
522+
def post_set_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
527523
"""Post-rpc interceptor for set_iam_policy
528524
529525
Override in a subclass to manipulate the response
@@ -536,7 +532,7 @@ def pre_test_iam_permissions(
536532
self,
537533
request: iam_policy_pb2.TestIamPermissionsRequest,
538534
metadata: Sequence[Tuple[str, str]],
539-
) -> iam_policy_pb2.TestIamPermissionsResponse:
535+
) -> Tuple[iam_policy_pb2.TestIamPermissionsRequest, Sequence[Tuple[str, str]]]:
540536
"""Pre-rpc interceptor for test_iam_permissions
541537
542538
Override in a subclass to manipulate the request or metadata
@@ -545,7 +541,7 @@ def pre_test_iam_permissions(
545541
return request, metadata
546542

547543
def post_test_iam_permissions(
548-
self, response: iam_policy_pb2.TestIamPermissionsRequest
544+
self, response: iam_policy_pb2.TestIamPermissionsResponse
549545
) -> iam_policy_pb2.TestIamPermissionsResponse:
550546
"""Post-rpc interceptor for test_iam_permissions
551547
@@ -559,17 +555,15 @@ def pre_cancel_operation(
559555
self,
560556
request: operations_pb2.CancelOperationRequest,
561557
metadata: Sequence[Tuple[str, str]],
562-
) -> None:
558+
) -> Tuple[operations_pb2.CancelOperationRequest, Sequence[Tuple[str, str]]]:
563559
"""Pre-rpc interceptor for cancel_operation
564560
565561
Override in a subclass to manipulate the request or metadata
566562
before they are sent to the RepositoryManager server.
567563
"""
568564
return request, metadata
569565

570-
def post_cancel_operation(
571-
self, response: operations_pb2.CancelOperationRequest
572-
) -> None:
566+
def post_cancel_operation(self, response: None) -> None:
573567
"""Post-rpc interceptor for cancel_operation
574568
575569
Override in a subclass to manipulate the response
@@ -582,7 +576,7 @@ def pre_get_operation(
582576
self,
583577
request: operations_pb2.GetOperationRequest,
584578
metadata: Sequence[Tuple[str, str]],
585-
) -> operations_pb2.Operation:
579+
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
586580
"""Pre-rpc interceptor for get_operation
587581
588582
Override in a subclass to manipulate the request or metadata
@@ -591,7 +585,7 @@ def pre_get_operation(
591585
return request, metadata
592586

593587
def post_get_operation(
594-
self, response: operations_pb2.GetOperationRequest
588+
self, response: operations_pb2.Operation
595589
) -> operations_pb2.Operation:
596590
"""Post-rpc interceptor for get_operation
597591
@@ -744,7 +738,7 @@ class _BatchCreateRepositories(RepositoryManagerRestStub):
744738
def __hash__(self):
745739
return hash("BatchCreateRepositories")
746740

747-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
741+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
748742

749743
@classmethod
750744
def _get_unset_required_fields(cls, message_dict):
@@ -844,7 +838,7 @@ class _CreateConnection(RepositoryManagerRestStub):
844838
def __hash__(self):
845839
return hash("CreateConnection")
846840

847-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
841+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
848842
"connectionId": "",
849843
}
850844

@@ -944,7 +938,7 @@ class _CreateRepository(RepositoryManagerRestStub):
944938
def __hash__(self):
945939
return hash("CreateRepository")
946940

947-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
941+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
948942
"repositoryId": "",
949943
}
950944

@@ -1044,7 +1038,7 @@ class _DeleteConnection(RepositoryManagerRestStub):
10441038
def __hash__(self):
10451039
return hash("DeleteConnection")
10461040

1047-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1041+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10481042

10491043
@classmethod
10501044
def _get_unset_required_fields(cls, message_dict):
@@ -1133,7 +1127,7 @@ class _DeleteRepository(RepositoryManagerRestStub):
11331127
def __hash__(self):
11341128
return hash("DeleteRepository")
11351129

1136-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1130+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11371131

11381132
@classmethod
11391133
def _get_unset_required_fields(cls, message_dict):
@@ -1222,7 +1216,7 @@ class _FetchLinkableRepositories(RepositoryManagerRestStub):
12221216
def __hash__(self):
12231217
return hash("FetchLinkableRepositories")
12241218

1225-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1219+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
12261220

12271221
@classmethod
12281222
def _get_unset_required_fields(cls, message_dict):
@@ -1315,7 +1309,7 @@ class _FetchReadToken(RepositoryManagerRestStub):
13151309
def __hash__(self):
13161310
return hash("FetchReadToken")
13171311

1318-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1312+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13191313

13201314
@classmethod
13211315
def _get_unset_required_fields(cls, message_dict):
@@ -1414,7 +1408,7 @@ class _FetchReadWriteToken(RepositoryManagerRestStub):
14141408
def __hash__(self):
14151409
return hash("FetchReadWriteToken")
14161410

1417-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1411+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
14181412

14191413
@classmethod
14201414
def _get_unset_required_fields(cls, message_dict):
@@ -1515,7 +1509,7 @@ class _GetConnection(RepositoryManagerRestStub):
15151509
def __hash__(self):
15161510
return hash("GetConnection")
15171511

1518-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1512+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
15191513

15201514
@classmethod
15211515
def _get_unset_required_fields(cls, message_dict):
@@ -1606,7 +1600,7 @@ class _GetRepository(RepositoryManagerRestStub):
16061600
def __hash__(self):
16071601
return hash("GetRepository")
16081602

1609-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1603+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
16101604

16111605
@classmethod
16121606
def _get_unset_required_fields(cls, message_dict):
@@ -1696,7 +1690,7 @@ class _ListConnections(RepositoryManagerRestStub):
16961690
def __hash__(self):
16971691
return hash("ListConnections")
16981692

1699-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1693+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17001694

17011695
@classmethod
17021696
def _get_unset_required_fields(cls, message_dict):
@@ -1788,7 +1782,7 @@ class _ListRepositories(RepositoryManagerRestStub):
17881782
def __hash__(self):
17891783
return hash("ListRepositories")
17901784

1791-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1785+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17921786

17931787
@classmethod
17941788
def _get_unset_required_fields(cls, message_dict):
@@ -1880,7 +1874,7 @@ class _UpdateConnection(RepositoryManagerRestStub):
18801874
def __hash__(self):
18811875
return hash("UpdateConnection")
18821876

1883-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1877+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
18841878

18851879
@classmethod
18861880
def _get_unset_required_fields(cls, message_dict):

0 commit comments

Comments
 (0)