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 Jul 6, 2023. It is now read-only.

Commit 8b18423

Browse filesBrowse files
chore: Update gapic-generator-python to v1.8.5 (#51)
* 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 38e29fb commit 8b18423
Copy full SHA for 8b18423

File tree

Expand file treeCollapse file tree

2 files changed

+43
-41
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+43
-41
lines changed

‎google/cloud/dataform_v1beta1/services/dataform/transports/rest.py

Copy file name to clipboardExpand all lines: google/cloud/dataform_v1beta1/services/dataform/transports/rest.py
+41-41Lines changed: 41 additions & 41 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 gapic_v1, path_template, rest_helpers, rest_streaming
@@ -1032,7 +1032,7 @@ def pre_get_location(
10321032
self,
10331033
request: locations_pb2.GetLocationRequest,
10341034
metadata: Sequence[Tuple[str, str]],
1035-
) -> locations_pb2.Location:
1035+
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
10361036
"""Pre-rpc interceptor for get_location
10371037
10381038
Override in a subclass to manipulate the request or metadata
@@ -1041,7 +1041,7 @@ def pre_get_location(
10411041
return request, metadata
10421042

10431043
def post_get_location(
1044-
self, response: locations_pb2.GetLocationRequest
1044+
self, response: locations_pb2.Location
10451045
) -> locations_pb2.Location:
10461046
"""Post-rpc interceptor for get_location
10471047
@@ -1055,7 +1055,7 @@ def pre_list_locations(
10551055
self,
10561056
request: locations_pb2.ListLocationsRequest,
10571057
metadata: Sequence[Tuple[str, str]],
1058-
) -> locations_pb2.ListLocationsResponse:
1058+
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
10591059
"""Pre-rpc interceptor for list_locations
10601060
10611061
Override in a subclass to manipulate the request or metadata
@@ -1064,7 +1064,7 @@ def pre_list_locations(
10641064
return request, metadata
10651065

10661066
def post_list_locations(
1067-
self, response: locations_pb2.ListLocationsRequest
1067+
self, response: locations_pb2.ListLocationsResponse
10681068
) -> locations_pb2.ListLocationsResponse:
10691069
"""Post-rpc interceptor for list_locations
10701070
@@ -1176,7 +1176,7 @@ class _CancelWorkflowInvocation(DataformRestStub):
11761176
def __hash__(self):
11771177
return hash("CancelWorkflowInvocation")
11781178

1179-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1179+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11801180

11811181
@classmethod
11821182
def _get_unset_required_fields(cls, message_dict):
@@ -1262,7 +1262,7 @@ class _CommitWorkspaceChanges(DataformRestStub):
12621262
def __hash__(self):
12631263
return hash("CommitWorkspaceChanges")
12641264

1265-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1265+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
12661266

12671267
@classmethod
12681268
def _get_unset_required_fields(cls, message_dict):
@@ -1347,7 +1347,7 @@ class _CreateCompilationResult(DataformRestStub):
13471347
def __hash__(self):
13481348
return hash("CreateCompilationResult")
13491349

1350-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1350+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
13511351

13521352
@classmethod
13531353
def _get_unset_required_fields(cls, message_dict):
@@ -1446,7 +1446,7 @@ class _CreateRepository(DataformRestStub):
14461446
def __hash__(self):
14471447
return hash("CreateRepository")
14481448

1449-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1449+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
14501450
"repositoryId": "",
14511451
}
14521452

@@ -1545,7 +1545,7 @@ class _CreateWorkflowInvocation(DataformRestStub):
15451545
def __hash__(self):
15461546
return hash("CreateWorkflowInvocation")
15471547

1548-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1548+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
15491549

15501550
@classmethod
15511551
def _get_unset_required_fields(cls, message_dict):
@@ -1645,7 +1645,7 @@ class _CreateWorkspace(DataformRestStub):
16451645
def __hash__(self):
16461646
return hash("CreateWorkspace")
16471647

1648-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1648+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
16491649
"workspaceId": "",
16501650
}
16511651

@@ -1744,7 +1744,7 @@ class _DeleteRepository(DataformRestStub):
17441744
def __hash__(self):
17451745
return hash("DeleteRepository")
17461746

1747-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1747+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
17481748

17491749
@classmethod
17501750
def _get_unset_required_fields(cls, message_dict):
@@ -1820,7 +1820,7 @@ class _DeleteWorkflowInvocation(DataformRestStub):
18201820
def __hash__(self):
18211821
return hash("DeleteWorkflowInvocation")
18221822

1823-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1823+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
18241824

18251825
@classmethod
18261826
def _get_unset_required_fields(cls, message_dict):
@@ -1897,7 +1897,7 @@ class _DeleteWorkspace(DataformRestStub):
18971897
def __hash__(self):
18981898
return hash("DeleteWorkspace")
18991899

1900-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1900+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
19011901

19021902
@classmethod
19031903
def _get_unset_required_fields(cls, message_dict):
@@ -1973,7 +1973,7 @@ class _FetchFileDiff(DataformRestStub):
19731973
def __hash__(self):
19741974
return hash("FetchFileDiff")
19751975

1976-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1976+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
19771977
"path": "",
19781978
}
19791979

@@ -2061,7 +2061,7 @@ class _FetchFileGitStatuses(DataformRestStub):
20612061
def __hash__(self):
20622062
return hash("FetchFileGitStatuses")
20632063

2064-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2064+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
20652065

20662066
@classmethod
20672067
def _get_unset_required_fields(cls, message_dict):
@@ -2149,7 +2149,7 @@ class _FetchGitAheadBehind(DataformRestStub):
21492149
def __hash__(self):
21502150
return hash("FetchGitAheadBehind")
21512151

2152-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2152+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
21532153

21542154
@classmethod
21552155
def _get_unset_required_fields(cls, message_dict):
@@ -2237,7 +2237,7 @@ class _FetchRemoteBranches(DataformRestStub):
22372237
def __hash__(self):
22382238
return hash("FetchRemoteBranches")
22392239

2240-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2240+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
22412241

22422242
@classmethod
22432243
def _get_unset_required_fields(cls, message_dict):
@@ -2325,7 +2325,7 @@ class _GetCompilationResult(DataformRestStub):
23252325
def __hash__(self):
23262326
return hash("GetCompilationResult")
23272327

2328-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2328+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
23292329

23302330
@classmethod
23312331
def _get_unset_required_fields(cls, message_dict):
@@ -2415,7 +2415,7 @@ class _GetRepository(DataformRestStub):
24152415
def __hash__(self):
24162416
return hash("GetRepository")
24172417

2418-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2418+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
24192419

24202420
@classmethod
24212421
def _get_unset_required_fields(cls, message_dict):
@@ -2501,7 +2501,7 @@ class _GetWorkflowInvocation(DataformRestStub):
25012501
def __hash__(self):
25022502
return hash("GetWorkflowInvocation")
25032503

2504-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2504+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
25052505

25062506
@classmethod
25072507
def _get_unset_required_fields(cls, message_dict):
@@ -2591,7 +2591,7 @@ class _GetWorkspace(DataformRestStub):
25912591
def __hash__(self):
25922592
return hash("GetWorkspace")
25932593

2594-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2594+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
25952595

25962596
@classmethod
25972597
def _get_unset_required_fields(cls, message_dict):
@@ -2677,7 +2677,7 @@ class _InstallNpmPackages(DataformRestStub):
26772677
def __hash__(self):
26782678
return hash("InstallNpmPackages")
26792679

2680-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2680+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
26812681

26822682
@classmethod
26832683
def _get_unset_required_fields(cls, message_dict):
@@ -2774,7 +2774,7 @@ class _ListCompilationResults(DataformRestStub):
27742774
def __hash__(self):
27752775
return hash("ListCompilationResults")
27762776

2777-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2777+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
27782778

27792779
@classmethod
27802780
def _get_unset_required_fields(cls, message_dict):
@@ -2862,7 +2862,7 @@ class _ListRepositories(DataformRestStub):
28622862
def __hash__(self):
28632863
return hash("ListRepositories")
28642864

2865-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2865+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
28662866

28672867
@classmethod
28682868
def _get_unset_required_fields(cls, message_dict):
@@ -2950,7 +2950,7 @@ class _ListWorkflowInvocations(DataformRestStub):
29502950
def __hash__(self):
29512951
return hash("ListWorkflowInvocations")
29522952

2953-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
2953+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
29542954

29552955
@classmethod
29562956
def _get_unset_required_fields(cls, message_dict):
@@ -3038,7 +3038,7 @@ class _ListWorkspaces(DataformRestStub):
30383038
def __hash__(self):
30393039
return hash("ListWorkspaces")
30403040

3041-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3041+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
30423042

30433043
@classmethod
30443044
def _get_unset_required_fields(cls, message_dict):
@@ -3124,7 +3124,7 @@ class _MakeDirectory(DataformRestStub):
31243124
def __hash__(self):
31253125
return hash("MakeDirectory")
31263126

3127-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3127+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
31283128

31293129
@classmethod
31303130
def _get_unset_required_fields(cls, message_dict):
@@ -3219,7 +3219,7 @@ class _MoveDirectory(DataformRestStub):
32193219
def __hash__(self):
32203220
return hash("MoveDirectory")
32213221

3222-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3222+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
32233223

32243224
@classmethod
32253225
def _get_unset_required_fields(cls, message_dict):
@@ -3314,7 +3314,7 @@ class _MoveFile(DataformRestStub):
33143314
def __hash__(self):
33153315
return hash("MoveFile")
33163316

3317-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3317+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
33183318

33193319
@classmethod
33203320
def _get_unset_required_fields(cls, message_dict):
@@ -3409,7 +3409,7 @@ class _PullGitCommits(DataformRestStub):
34093409
def __hash__(self):
34103410
return hash("PullGitCommits")
34113411

3412-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3412+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
34133413

34143414
@classmethod
34153415
def _get_unset_required_fields(cls, message_dict):
@@ -3494,7 +3494,7 @@ class _PushGitCommits(DataformRestStub):
34943494
def __hash__(self):
34953495
return hash("PushGitCommits")
34963496

3497-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3497+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
34983498

34993499
@classmethod
35003500
def _get_unset_required_fields(cls, message_dict):
@@ -3579,7 +3579,7 @@ class _QueryCompilationResultActions(DataformRestStub):
35793579
def __hash__(self):
35803580
return hash("QueryCompilationResultActions")
35813581

3582-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3582+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
35833583

35843584
@classmethod
35853585
def _get_unset_required_fields(cls, message_dict):
@@ -3668,7 +3668,7 @@ class _QueryDirectoryContents(DataformRestStub):
36683668
def __hash__(self):
36693669
return hash("QueryDirectoryContents")
36703670

3671-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3671+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
36723672

36733673
@classmethod
36743674
def _get_unset_required_fields(cls, message_dict):
@@ -3756,7 +3756,7 @@ class _QueryWorkflowInvocationActions(DataformRestStub):
37563756
def __hash__(self):
37573757
return hash("QueryWorkflowInvocationActions")
37583758

3759-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3759+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
37603760

37613761
@classmethod
37623762
def _get_unset_required_fields(cls, message_dict):
@@ -3845,7 +3845,7 @@ class _ReadFile(DataformRestStub):
38453845
def __hash__(self):
38463846
return hash("ReadFile")
38473847

3848-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
3848+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
38493849
"path": "",
38503850
}
38513851

@@ -3933,7 +3933,7 @@ class _RemoveDirectory(DataformRestStub):
39333933
def __hash__(self):
39343934
return hash("RemoveDirectory")
39353935

3936-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
3936+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
39373937

39383938
@classmethod
39393939
def _get_unset_required_fields(cls, message_dict):
@@ -4018,7 +4018,7 @@ class _RemoveFile(DataformRestStub):
40184018
def __hash__(self):
40194019
return hash("RemoveFile")
40204020

4021-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
4021+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
40224022

40234023
@classmethod
40244024
def _get_unset_required_fields(cls, message_dict):
@@ -4101,7 +4101,7 @@ class _ResetWorkspaceChanges(DataformRestStub):
41014101
def __hash__(self):
41024102
return hash("ResetWorkspaceChanges")
41034103

4104-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
4104+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
41054105

41064106
@classmethod
41074107
def _get_unset_required_fields(cls, message_dict):
@@ -4186,7 +4186,7 @@ class _UpdateRepository(DataformRestStub):
41864186
def __hash__(self):
41874187
return hash("UpdateRepository")
41884188

4189-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
4189+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
41904190

41914191
@classmethod
41924192
def _get_unset_required_fields(cls, message_dict):
@@ -4283,7 +4283,7 @@ class _WriteFile(DataformRestStub):
42834283
def __hash__(self):
42844284
return hash("WriteFile")
42854285

4286-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
4286+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
42874287

42884288
@classmethod
42894289
def _get_unset_required_fields(cls, message_dict):

‎google/cloud/dataform_v1beta1/types/dataform.py

Copy file name to clipboardExpand all lines: google/cloud/dataform_v1beta1/types/dataform.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 field_mask_pb2 # type: ignore

0 commit comments

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