5
5
6
6
from ... import errors
7
7
from ...client import AuthenticatedClient , Client
8
+ from ...models .check_type import CheckType
8
9
from ...models .column_list_model import ColumnListModel
9
- from ...types import Response
10
+ from ...types import UNSET , Response , Unset
10
11
11
12
12
13
def _get_kwargs (
13
14
connection_name : str ,
14
15
schema_name : str ,
15
16
table_name : str ,
17
+ * ,
18
+ data_quality_status : Union [Unset , None , bool ] = UNSET ,
19
+ check_type : Union [Unset , None , CheckType ] = UNSET ,
16
20
) -> Dict [str , Any ]:
17
21
pass
18
22
23
+ params : Dict [str , Any ] = {}
24
+ params ["dataQualityStatus" ] = data_quality_status
25
+
26
+ json_check_type : Union [Unset , None , str ] = UNSET
27
+ if not isinstance (check_type , Unset ):
28
+ json_check_type = check_type .value if check_type else None
29
+
30
+ params ["checkType" ] = json_check_type
31
+
32
+ params = {k : v for k , v in params .items () if v is not UNSET and v is not None }
33
+
19
34
return {
20
35
"method" : "get" ,
21
36
"url" : "api/connections/{connectionName}/schemas/{schemaName}/tables/{tableName}/columns" .format (
22
37
connectionName = connection_name ,
23
38
schemaName = schema_name ,
24
39
tableName = table_name ,
25
40
),
41
+ "params" : params ,
26
42
}
27
43
28
44
@@ -61,6 +77,8 @@ def sync_detailed(
61
77
table_name : str ,
62
78
* ,
63
79
client : AuthenticatedClient ,
80
+ data_quality_status : Union [Unset , None , bool ] = UNSET ,
81
+ check_type : Union [Unset , None , CheckType ] = UNSET ,
64
82
) -> Response [List ["ColumnListModel" ]]:
65
83
"""getColumns
66
84
@@ -70,6 +88,8 @@ def sync_detailed(
70
88
connection_name (str):
71
89
schema_name (str):
72
90
table_name (str):
91
+ data_quality_status (Union[Unset, None, bool]):
92
+ check_type (Union[Unset, None, CheckType]):
73
93
74
94
Raises:
75
95
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -83,6 +103,8 @@ def sync_detailed(
83
103
connection_name = connection_name ,
84
104
schema_name = schema_name ,
85
105
table_name = table_name ,
106
+ data_quality_status = data_quality_status ,
107
+ check_type = check_type ,
86
108
)
87
109
88
110
response = client .get_httpx_client ().request (
@@ -98,6 +120,8 @@ def sync(
98
120
table_name : str ,
99
121
* ,
100
122
client : AuthenticatedClient ,
123
+ data_quality_status : Union [Unset , None , bool ] = UNSET ,
124
+ check_type : Union [Unset , None , CheckType ] = UNSET ,
101
125
) -> Optional [List ["ColumnListModel" ]]:
102
126
"""getColumns
103
127
@@ -107,6 +131,8 @@ def sync(
107
131
connection_name (str):
108
132
schema_name (str):
109
133
table_name (str):
134
+ data_quality_status (Union[Unset, None, bool]):
135
+ check_type (Union[Unset, None, CheckType]):
110
136
111
137
Raises:
112
138
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -121,6 +147,8 @@ def sync(
121
147
schema_name = schema_name ,
122
148
table_name = table_name ,
123
149
client = client ,
150
+ data_quality_status = data_quality_status ,
151
+ check_type = check_type ,
124
152
).parsed
125
153
126
154
@@ -130,6 +158,8 @@ async def asyncio_detailed(
130
158
table_name : str ,
131
159
* ,
132
160
client : AuthenticatedClient ,
161
+ data_quality_status : Union [Unset , None , bool ] = UNSET ,
162
+ check_type : Union [Unset , None , CheckType ] = UNSET ,
133
163
) -> Response [List ["ColumnListModel" ]]:
134
164
"""getColumns
135
165
@@ -139,6 +169,8 @@ async def asyncio_detailed(
139
169
connection_name (str):
140
170
schema_name (str):
141
171
table_name (str):
172
+ data_quality_status (Union[Unset, None, bool]):
173
+ check_type (Union[Unset, None, CheckType]):
142
174
143
175
Raises:
144
176
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -152,6 +184,8 @@ async def asyncio_detailed(
152
184
connection_name = connection_name ,
153
185
schema_name = schema_name ,
154
186
table_name = table_name ,
187
+ data_quality_status = data_quality_status ,
188
+ check_type = check_type ,
155
189
)
156
190
157
191
response = await client .get_async_httpx_client ().request (** kwargs )
@@ -165,6 +199,8 @@ async def asyncio(
165
199
table_name : str ,
166
200
* ,
167
201
client : AuthenticatedClient ,
202
+ data_quality_status : Union [Unset , None , bool ] = UNSET ,
203
+ check_type : Union [Unset , None , CheckType ] = UNSET ,
168
204
) -> Optional [List ["ColumnListModel" ]]:
169
205
"""getColumns
170
206
@@ -174,6 +210,8 @@ async def asyncio(
174
210
connection_name (str):
175
211
schema_name (str):
176
212
table_name (str):
213
+ data_quality_status (Union[Unset, None, bool]):
214
+ check_type (Union[Unset, None, CheckType]):
177
215
178
216
Raises:
179
217
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -189,5 +227,7 @@ async def asyncio(
189
227
schema_name = schema_name ,
190
228
table_name = table_name ,
191
229
client = client ,
230
+ data_quality_status = data_quality_status ,
231
+ check_type = check_type ,
192
232
)
193
233
).parsed
0 commit comments