17
17
import dataclasses
18
18
import json # type: ignore
19
19
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
21
21
import warnings
22
22
23
23
from google .api_core import gapic_v1 , path_template , rest_helpers , rest_streaming
@@ -1032,7 +1032,7 @@ def pre_get_location(
1032
1032
self ,
1033
1033
request : locations_pb2 .GetLocationRequest ,
1034
1034
metadata : Sequence [Tuple [str , str ]],
1035
- ) -> locations_pb2 .Location :
1035
+ ) -> Tuple [ locations_pb2 .GetLocationRequest , Sequence [ Tuple [ str , str ]]] :
1036
1036
"""Pre-rpc interceptor for get_location
1037
1037
1038
1038
Override in a subclass to manipulate the request or metadata
@@ -1041,7 +1041,7 @@ def pre_get_location(
1041
1041
return request , metadata
1042
1042
1043
1043
def post_get_location (
1044
- self , response : locations_pb2 .GetLocationRequest
1044
+ self , response : locations_pb2 .Location
1045
1045
) -> locations_pb2 .Location :
1046
1046
"""Post-rpc interceptor for get_location
1047
1047
@@ -1055,7 +1055,7 @@ def pre_list_locations(
1055
1055
self ,
1056
1056
request : locations_pb2 .ListLocationsRequest ,
1057
1057
metadata : Sequence [Tuple [str , str ]],
1058
- ) -> locations_pb2 .ListLocationsResponse :
1058
+ ) -> Tuple [ locations_pb2 .ListLocationsRequest , Sequence [ Tuple [ str , str ]]] :
1059
1059
"""Pre-rpc interceptor for list_locations
1060
1060
1061
1061
Override in a subclass to manipulate the request or metadata
@@ -1064,7 +1064,7 @@ def pre_list_locations(
1064
1064
return request , metadata
1065
1065
1066
1066
def post_list_locations (
1067
- self , response : locations_pb2 .ListLocationsRequest
1067
+ self , response : locations_pb2 .ListLocationsResponse
1068
1068
) -> locations_pb2 .ListLocationsResponse :
1069
1069
"""Post-rpc interceptor for list_locations
1070
1070
@@ -1176,7 +1176,7 @@ class _CancelWorkflowInvocation(DataformRestStub):
1176
1176
def __hash__ (self ):
1177
1177
return hash ("CancelWorkflowInvocation" )
1178
1178
1179
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1179
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1180
1180
1181
1181
@classmethod
1182
1182
def _get_unset_required_fields (cls , message_dict ):
@@ -1262,7 +1262,7 @@ class _CommitWorkspaceChanges(DataformRestStub):
1262
1262
def __hash__ (self ):
1263
1263
return hash ("CommitWorkspaceChanges" )
1264
1264
1265
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1265
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1266
1266
1267
1267
@classmethod
1268
1268
def _get_unset_required_fields (cls , message_dict ):
@@ -1347,7 +1347,7 @@ class _CreateCompilationResult(DataformRestStub):
1347
1347
def __hash__ (self ):
1348
1348
return hash ("CreateCompilationResult" )
1349
1349
1350
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1350
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1351
1351
1352
1352
@classmethod
1353
1353
def _get_unset_required_fields (cls , message_dict ):
@@ -1446,7 +1446,7 @@ class _CreateRepository(DataformRestStub):
1446
1446
def __hash__ (self ):
1447
1447
return hash ("CreateRepository" )
1448
1448
1449
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
1449
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
1450
1450
"repositoryId" : "" ,
1451
1451
}
1452
1452
@@ -1545,7 +1545,7 @@ class _CreateWorkflowInvocation(DataformRestStub):
1545
1545
def __hash__ (self ):
1546
1546
return hash ("CreateWorkflowInvocation" )
1547
1547
1548
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1548
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1549
1549
1550
1550
@classmethod
1551
1551
def _get_unset_required_fields (cls , message_dict ):
@@ -1645,7 +1645,7 @@ class _CreateWorkspace(DataformRestStub):
1645
1645
def __hash__ (self ):
1646
1646
return hash ("CreateWorkspace" )
1647
1647
1648
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
1648
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
1649
1649
"workspaceId" : "" ,
1650
1650
}
1651
1651
@@ -1744,7 +1744,7 @@ class _DeleteRepository(DataformRestStub):
1744
1744
def __hash__ (self ):
1745
1745
return hash ("DeleteRepository" )
1746
1746
1747
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1747
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1748
1748
1749
1749
@classmethod
1750
1750
def _get_unset_required_fields (cls , message_dict ):
@@ -1820,7 +1820,7 @@ class _DeleteWorkflowInvocation(DataformRestStub):
1820
1820
def __hash__ (self ):
1821
1821
return hash ("DeleteWorkflowInvocation" )
1822
1822
1823
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1823
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1824
1824
1825
1825
@classmethod
1826
1826
def _get_unset_required_fields (cls , message_dict ):
@@ -1897,7 +1897,7 @@ class _DeleteWorkspace(DataformRestStub):
1897
1897
def __hash__ (self ):
1898
1898
return hash ("DeleteWorkspace" )
1899
1899
1900
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1900
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
1901
1901
1902
1902
@classmethod
1903
1903
def _get_unset_required_fields (cls , message_dict ):
@@ -1973,7 +1973,7 @@ class _FetchFileDiff(DataformRestStub):
1973
1973
def __hash__ (self ):
1974
1974
return hash ("FetchFileDiff" )
1975
1975
1976
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
1976
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
1977
1977
"path" : "" ,
1978
1978
}
1979
1979
@@ -2061,7 +2061,7 @@ class _FetchFileGitStatuses(DataformRestStub):
2061
2061
def __hash__ (self ):
2062
2062
return hash ("FetchFileGitStatuses" )
2063
2063
2064
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2064
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2065
2065
2066
2066
@classmethod
2067
2067
def _get_unset_required_fields (cls , message_dict ):
@@ -2149,7 +2149,7 @@ class _FetchGitAheadBehind(DataformRestStub):
2149
2149
def __hash__ (self ):
2150
2150
return hash ("FetchGitAheadBehind" )
2151
2151
2152
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2152
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2153
2153
2154
2154
@classmethod
2155
2155
def _get_unset_required_fields (cls , message_dict ):
@@ -2237,7 +2237,7 @@ class _FetchRemoteBranches(DataformRestStub):
2237
2237
def __hash__ (self ):
2238
2238
return hash ("FetchRemoteBranches" )
2239
2239
2240
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2240
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2241
2241
2242
2242
@classmethod
2243
2243
def _get_unset_required_fields (cls , message_dict ):
@@ -2325,7 +2325,7 @@ class _GetCompilationResult(DataformRestStub):
2325
2325
def __hash__ (self ):
2326
2326
return hash ("GetCompilationResult" )
2327
2327
2328
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2328
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2329
2329
2330
2330
@classmethod
2331
2331
def _get_unset_required_fields (cls , message_dict ):
@@ -2415,7 +2415,7 @@ class _GetRepository(DataformRestStub):
2415
2415
def __hash__ (self ):
2416
2416
return hash ("GetRepository" )
2417
2417
2418
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2418
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2419
2419
2420
2420
@classmethod
2421
2421
def _get_unset_required_fields (cls , message_dict ):
@@ -2501,7 +2501,7 @@ class _GetWorkflowInvocation(DataformRestStub):
2501
2501
def __hash__ (self ):
2502
2502
return hash ("GetWorkflowInvocation" )
2503
2503
2504
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2504
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2505
2505
2506
2506
@classmethod
2507
2507
def _get_unset_required_fields (cls , message_dict ):
@@ -2591,7 +2591,7 @@ class _GetWorkspace(DataformRestStub):
2591
2591
def __hash__ (self ):
2592
2592
return hash ("GetWorkspace" )
2593
2593
2594
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2594
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2595
2595
2596
2596
@classmethod
2597
2597
def _get_unset_required_fields (cls , message_dict ):
@@ -2677,7 +2677,7 @@ class _InstallNpmPackages(DataformRestStub):
2677
2677
def __hash__ (self ):
2678
2678
return hash ("InstallNpmPackages" )
2679
2679
2680
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2680
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2681
2681
2682
2682
@classmethod
2683
2683
def _get_unset_required_fields (cls , message_dict ):
@@ -2774,7 +2774,7 @@ class _ListCompilationResults(DataformRestStub):
2774
2774
def __hash__ (self ):
2775
2775
return hash ("ListCompilationResults" )
2776
2776
2777
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2777
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2778
2778
2779
2779
@classmethod
2780
2780
def _get_unset_required_fields (cls , message_dict ):
@@ -2862,7 +2862,7 @@ class _ListRepositories(DataformRestStub):
2862
2862
def __hash__ (self ):
2863
2863
return hash ("ListRepositories" )
2864
2864
2865
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2865
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2866
2866
2867
2867
@classmethod
2868
2868
def _get_unset_required_fields (cls , message_dict ):
@@ -2950,7 +2950,7 @@ class _ListWorkflowInvocations(DataformRestStub):
2950
2950
def __hash__ (self ):
2951
2951
return hash ("ListWorkflowInvocations" )
2952
2952
2953
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2953
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
2954
2954
2955
2955
@classmethod
2956
2956
def _get_unset_required_fields (cls , message_dict ):
@@ -3038,7 +3038,7 @@ class _ListWorkspaces(DataformRestStub):
3038
3038
def __hash__ (self ):
3039
3039
return hash ("ListWorkspaces" )
3040
3040
3041
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3041
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3042
3042
3043
3043
@classmethod
3044
3044
def _get_unset_required_fields (cls , message_dict ):
@@ -3124,7 +3124,7 @@ class _MakeDirectory(DataformRestStub):
3124
3124
def __hash__ (self ):
3125
3125
return hash ("MakeDirectory" )
3126
3126
3127
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3127
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3128
3128
3129
3129
@classmethod
3130
3130
def _get_unset_required_fields (cls , message_dict ):
@@ -3219,7 +3219,7 @@ class _MoveDirectory(DataformRestStub):
3219
3219
def __hash__ (self ):
3220
3220
return hash ("MoveDirectory" )
3221
3221
3222
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3222
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3223
3223
3224
3224
@classmethod
3225
3225
def _get_unset_required_fields (cls , message_dict ):
@@ -3314,7 +3314,7 @@ class _MoveFile(DataformRestStub):
3314
3314
def __hash__ (self ):
3315
3315
return hash ("MoveFile" )
3316
3316
3317
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3317
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3318
3318
3319
3319
@classmethod
3320
3320
def _get_unset_required_fields (cls , message_dict ):
@@ -3409,7 +3409,7 @@ class _PullGitCommits(DataformRestStub):
3409
3409
def __hash__ (self ):
3410
3410
return hash ("PullGitCommits" )
3411
3411
3412
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3412
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3413
3413
3414
3414
@classmethod
3415
3415
def _get_unset_required_fields (cls , message_dict ):
@@ -3494,7 +3494,7 @@ class _PushGitCommits(DataformRestStub):
3494
3494
def __hash__ (self ):
3495
3495
return hash ("PushGitCommits" )
3496
3496
3497
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3497
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3498
3498
3499
3499
@classmethod
3500
3500
def _get_unset_required_fields (cls , message_dict ):
@@ -3579,7 +3579,7 @@ class _QueryCompilationResultActions(DataformRestStub):
3579
3579
def __hash__ (self ):
3580
3580
return hash ("QueryCompilationResultActions" )
3581
3581
3582
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3582
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3583
3583
3584
3584
@classmethod
3585
3585
def _get_unset_required_fields (cls , message_dict ):
@@ -3668,7 +3668,7 @@ class _QueryDirectoryContents(DataformRestStub):
3668
3668
def __hash__ (self ):
3669
3669
return hash ("QueryDirectoryContents" )
3670
3670
3671
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3671
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3672
3672
3673
3673
@classmethod
3674
3674
def _get_unset_required_fields (cls , message_dict ):
@@ -3756,7 +3756,7 @@ class _QueryWorkflowInvocationActions(DataformRestStub):
3756
3756
def __hash__ (self ):
3757
3757
return hash ("QueryWorkflowInvocationActions" )
3758
3758
3759
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3759
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3760
3760
3761
3761
@classmethod
3762
3762
def _get_unset_required_fields (cls , message_dict ):
@@ -3845,7 +3845,7 @@ class _ReadFile(DataformRestStub):
3845
3845
def __hash__ (self ):
3846
3846
return hash ("ReadFile" )
3847
3847
3848
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
3848
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
3849
3849
"path" : "" ,
3850
3850
}
3851
3851
@@ -3933,7 +3933,7 @@ class _RemoveDirectory(DataformRestStub):
3933
3933
def __hash__ (self ):
3934
3934
return hash ("RemoveDirectory" )
3935
3935
3936
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3936
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
3937
3937
3938
3938
@classmethod
3939
3939
def _get_unset_required_fields (cls , message_dict ):
@@ -4018,7 +4018,7 @@ class _RemoveFile(DataformRestStub):
4018
4018
def __hash__ (self ):
4019
4019
return hash ("RemoveFile" )
4020
4020
4021
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4021
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
4022
4022
4023
4023
@classmethod
4024
4024
def _get_unset_required_fields (cls , message_dict ):
@@ -4101,7 +4101,7 @@ class _ResetWorkspaceChanges(DataformRestStub):
4101
4101
def __hash__ (self ):
4102
4102
return hash ("ResetWorkspaceChanges" )
4103
4103
4104
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4104
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
4105
4105
4106
4106
@classmethod
4107
4107
def _get_unset_required_fields (cls , message_dict ):
@@ -4186,7 +4186,7 @@ class _UpdateRepository(DataformRestStub):
4186
4186
def __hash__ (self ):
4187
4187
return hash ("UpdateRepository" )
4188
4188
4189
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4189
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
4190
4190
4191
4191
@classmethod
4192
4192
def _get_unset_required_fields (cls , message_dict ):
@@ -4283,7 +4283,7 @@ class _WriteFile(DataformRestStub):
4283
4283
def __hash__ (self ):
4284
4284
return hash ("WriteFile" )
4285
4285
4286
- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4286
+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
4287
4287
4288
4288
@classmethod
4289
4289
def _get_unset_required_fields (cls , message_dict ):
0 commit comments