scope-client 1.4.1007__py3-none-any.whl → 1.4.1008__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scope_client/api_bindings/api/tasks_v1_api.py +270 -0
- scope_client/api_bindings/models/permission_name.py +1 -0
- {scope_client-1.4.1007.dist-info → scope_client-1.4.1008.dist-info}/METADATA +1 -1
- {scope_client-1.4.1007.dist-info → scope_client-1.4.1008.dist-info}/RECORD +6 -6
- {scope_client-1.4.1007.dist-info → scope_client-1.4.1008.dist-info}/WHEEL +0 -0
- {scope_client-1.4.1007.dist-info → scope_client-1.4.1008.dist-info}/top_level.txt +0 -0
|
@@ -44,6 +44,276 @@ class TasksV1Api:
|
|
|
44
44
|
self.api_client = api_client
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
@validate_call
|
|
48
|
+
def delete_connection_info(
|
|
49
|
+
self,
|
|
50
|
+
model_id: StrictStr,
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> None:
|
|
64
|
+
"""Delete Connection Info.
|
|
65
|
+
|
|
66
|
+
Deletes connection information for a model. Requires model_task_delete_connection_info permission.
|
|
67
|
+
|
|
68
|
+
:param model_id: (required)
|
|
69
|
+
:type model_id: str
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._delete_connection_info_serialize(
|
|
93
|
+
model_id=model_id,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'204': None,
|
|
102
|
+
'500': "InternalServerError",
|
|
103
|
+
'404': "NotFoundError",
|
|
104
|
+
'422': "HTTPValidationError",
|
|
105
|
+
}
|
|
106
|
+
response_data = self.api_client.call_api(
|
|
107
|
+
*_param,
|
|
108
|
+
_request_timeout=_request_timeout
|
|
109
|
+
)
|
|
110
|
+
response_data.read()
|
|
111
|
+
return self.api_client.response_deserialize(
|
|
112
|
+
response_data=response_data,
|
|
113
|
+
response_types_map=_response_types_map,
|
|
114
|
+
).data
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@validate_call
|
|
118
|
+
def delete_connection_info_with_http_info(
|
|
119
|
+
self,
|
|
120
|
+
model_id: StrictStr,
|
|
121
|
+
_request_timeout: Union[
|
|
122
|
+
None,
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Tuple[
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
127
|
+
]
|
|
128
|
+
] = None,
|
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
133
|
+
) -> ApiResponse[None]:
|
|
134
|
+
"""Delete Connection Info.
|
|
135
|
+
|
|
136
|
+
Deletes connection information for a model. Requires model_task_delete_connection_info permission.
|
|
137
|
+
|
|
138
|
+
:param model_id: (required)
|
|
139
|
+
:type model_id: str
|
|
140
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
141
|
+
number provided, it will be total request
|
|
142
|
+
timeout. It can also be a pair (tuple) of
|
|
143
|
+
(connection, read) timeouts.
|
|
144
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
145
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
146
|
+
request; this effectively ignores the
|
|
147
|
+
authentication in the spec for a single request.
|
|
148
|
+
:type _request_auth: dict, optional
|
|
149
|
+
:param _content_type: force content-type for the request.
|
|
150
|
+
:type _content_type: str, Optional
|
|
151
|
+
:param _headers: set to override the headers for a single
|
|
152
|
+
request; this effectively ignores the headers
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _headers: dict, optional
|
|
155
|
+
:param _host_index: set to override the host_index for a single
|
|
156
|
+
request; this effectively ignores the host_index
|
|
157
|
+
in the spec for a single request.
|
|
158
|
+
:type _host_index: int, optional
|
|
159
|
+
:return: Returns the result object.
|
|
160
|
+
""" # noqa: E501
|
|
161
|
+
|
|
162
|
+
_param = self._delete_connection_info_serialize(
|
|
163
|
+
model_id=model_id,
|
|
164
|
+
_request_auth=_request_auth,
|
|
165
|
+
_content_type=_content_type,
|
|
166
|
+
_headers=_headers,
|
|
167
|
+
_host_index=_host_index
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
171
|
+
'204': None,
|
|
172
|
+
'500': "InternalServerError",
|
|
173
|
+
'404': "NotFoundError",
|
|
174
|
+
'422': "HTTPValidationError",
|
|
175
|
+
}
|
|
176
|
+
response_data = self.api_client.call_api(
|
|
177
|
+
*_param,
|
|
178
|
+
_request_timeout=_request_timeout
|
|
179
|
+
)
|
|
180
|
+
response_data.read()
|
|
181
|
+
return self.api_client.response_deserialize(
|
|
182
|
+
response_data=response_data,
|
|
183
|
+
response_types_map=_response_types_map,
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
@validate_call
|
|
188
|
+
def delete_connection_info_without_preload_content(
|
|
189
|
+
self,
|
|
190
|
+
model_id: StrictStr,
|
|
191
|
+
_request_timeout: Union[
|
|
192
|
+
None,
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
194
|
+
Tuple[
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
197
|
+
]
|
|
198
|
+
] = None,
|
|
199
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
200
|
+
_content_type: Optional[StrictStr] = None,
|
|
201
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
203
|
+
) -> RESTResponseType:
|
|
204
|
+
"""Delete Connection Info.
|
|
205
|
+
|
|
206
|
+
Deletes connection information for a model. Requires model_task_delete_connection_info permission.
|
|
207
|
+
|
|
208
|
+
:param model_id: (required)
|
|
209
|
+
:type model_id: str
|
|
210
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
211
|
+
number provided, it will be total request
|
|
212
|
+
timeout. It can also be a pair (tuple) of
|
|
213
|
+
(connection, read) timeouts.
|
|
214
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
215
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
216
|
+
request; this effectively ignores the
|
|
217
|
+
authentication in the spec for a single request.
|
|
218
|
+
:type _request_auth: dict, optional
|
|
219
|
+
:param _content_type: force content-type for the request.
|
|
220
|
+
:type _content_type: str, Optional
|
|
221
|
+
:param _headers: set to override the headers for a single
|
|
222
|
+
request; this effectively ignores the headers
|
|
223
|
+
in the spec for a single request.
|
|
224
|
+
:type _headers: dict, optional
|
|
225
|
+
:param _host_index: set to override the host_index for a single
|
|
226
|
+
request; this effectively ignores the host_index
|
|
227
|
+
in the spec for a single request.
|
|
228
|
+
:type _host_index: int, optional
|
|
229
|
+
:return: Returns the result object.
|
|
230
|
+
""" # noqa: E501
|
|
231
|
+
|
|
232
|
+
_param = self._delete_connection_info_serialize(
|
|
233
|
+
model_id=model_id,
|
|
234
|
+
_request_auth=_request_auth,
|
|
235
|
+
_content_type=_content_type,
|
|
236
|
+
_headers=_headers,
|
|
237
|
+
_host_index=_host_index
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
241
|
+
'204': None,
|
|
242
|
+
'500': "InternalServerError",
|
|
243
|
+
'404': "NotFoundError",
|
|
244
|
+
'422': "HTTPValidationError",
|
|
245
|
+
}
|
|
246
|
+
response_data = self.api_client.call_api(
|
|
247
|
+
*_param,
|
|
248
|
+
_request_timeout=_request_timeout
|
|
249
|
+
)
|
|
250
|
+
return response_data.response
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _delete_connection_info_serialize(
|
|
254
|
+
self,
|
|
255
|
+
model_id,
|
|
256
|
+
_request_auth,
|
|
257
|
+
_content_type,
|
|
258
|
+
_headers,
|
|
259
|
+
_host_index,
|
|
260
|
+
) -> RequestSerialized:
|
|
261
|
+
|
|
262
|
+
_host = None
|
|
263
|
+
|
|
264
|
+
_collection_formats: Dict[str, str] = {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
_path_params: Dict[str, str] = {}
|
|
268
|
+
_query_params: List[Tuple[str, str]] = []
|
|
269
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
270
|
+
_form_params: List[Tuple[str, str]] = []
|
|
271
|
+
_files: Dict[
|
|
272
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
273
|
+
] = {}
|
|
274
|
+
_body_params: Optional[bytes] = None
|
|
275
|
+
|
|
276
|
+
# process the path parameters
|
|
277
|
+
if model_id is not None:
|
|
278
|
+
_path_params['model_id'] = model_id
|
|
279
|
+
# process the query parameters
|
|
280
|
+
# process the header parameters
|
|
281
|
+
# process the form parameters
|
|
282
|
+
# process the body parameter
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# set the HTTP header `Accept`
|
|
286
|
+
if 'Accept' not in _header_params:
|
|
287
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
288
|
+
[
|
|
289
|
+
'application/json'
|
|
290
|
+
]
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
# authentication setting
|
|
295
|
+
_auth_settings: List[str] = [
|
|
296
|
+
'OAuth2AuthorizationCode'
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
return self.api_client.param_serialize(
|
|
300
|
+
method='DELETE',
|
|
301
|
+
resource_path='/api/v1/models/{model_id}/task/connection_info',
|
|
302
|
+
path_params=_path_params,
|
|
303
|
+
query_params=_query_params,
|
|
304
|
+
header_params=_header_params,
|
|
305
|
+
body=_body_params,
|
|
306
|
+
post_params=_form_params,
|
|
307
|
+
files=_files,
|
|
308
|
+
auth_settings=_auth_settings,
|
|
309
|
+
collection_formats=_collection_formats,
|
|
310
|
+
_host=_host,
|
|
311
|
+
_request_auth=_request_auth
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
47
317
|
@validate_call
|
|
48
318
|
def delete_task(
|
|
49
319
|
self,
|
|
@@ -107,6 +107,7 @@ class PermissionName(str, Enum):
|
|
|
107
107
|
MODEL_TASK_PUT_STATE_CACHE = 'model_task_put_state_cache'
|
|
108
108
|
MODEL_TASK_PUT_CONNECTION_INFO = 'model_task_put_connection_info'
|
|
109
109
|
MODEL_TASK_GET_CONNECTION_INFO = 'model_task_get_connection_info'
|
|
110
|
+
MODEL_TASK_DELETE_CONNECTION_INFO = 'model_task_delete_connection_info'
|
|
110
111
|
MODEL_TASK_REGENERATE_VALIDATION_KEY = 'model_task_regenerate_validation_key'
|
|
111
112
|
CONNECTOR_READ = 'connector_read'
|
|
112
113
|
CONNECTOR_UPDATE = 'connector_update'
|
|
@@ -27,7 +27,7 @@ scope_client/api_bindings/api/organizations_v1_api.py,sha256=qASaaC_sSMmY97VKhop
|
|
|
27
27
|
scope_client/api_bindings/api/projects_v1_api.py,sha256=wFqaLcwwxQDrF10VtOgaa8PbOE5VaC6ERNCSrRJaUFQ,59391
|
|
28
28
|
scope_client/api_bindings/api/registration_v1_api.py,sha256=cPmagSOgnne2cZNgYDKm2L7SZmy8tsaL_xZBFekmnH8,12175
|
|
29
29
|
scope_client/api_bindings/api/roles_v1_api.py,sha256=LnlGL0BhhNAsXpIIkCyoBV765rw2bcIwWPz3EsyQi18,11234
|
|
30
|
-
scope_client/api_bindings/api/tasks_v1_api.py,sha256=
|
|
30
|
+
scope_client/api_bindings/api/tasks_v1_api.py,sha256=S8OJq5hruP6ikL8i5OHTEqIaOOtgGXCxfgjl1eQn_0w,112279
|
|
31
31
|
scope_client/api_bindings/api/upsolve_v1_api.py,sha256=Vdep9x-_lIJq_kOwtsGqYqkssgSaCEy45_WDupKwrgA,12230
|
|
32
32
|
scope_client/api_bindings/api/users_v1_api.py,sha256=3DpuXoHuWZvN8hU409AuyltBBwfK1PEBTeF5kKnlaek,114510
|
|
33
33
|
scope_client/api_bindings/api/webhooks_v1_api.py,sha256=86tRi7pgwICshf8WVyYA1WrJggThpnsTaON9Mx8R-0M,71286
|
|
@@ -184,7 +184,7 @@ scope_client/api_bindings/models/patch_user.py,sha256=Q_RqYiqCFjWsHfTWK0RqpdKpJu
|
|
|
184
184
|
scope_client/api_bindings/models/patch_webhook.py,sha256=Nck18gezSVXn3Tsn2FgbmaVWvlajrm_rRY1Lt7XKRtU,3571
|
|
185
185
|
scope_client/api_bindings/models/patch_workspace.py,sha256=oX4U-aAgTlCZr5Xor8tyZWBZBll5BwgCeqNXyfC4rAc,2530
|
|
186
186
|
scope_client/api_bindings/models/permission.py,sha256=uxCnKjgZwGxr_-BidbwKWt_TVRnDhtliWd6uq9qI7yU,3002
|
|
187
|
-
scope_client/api_bindings/models/permission_name.py,sha256
|
|
187
|
+
scope_client/api_bindings/models/permission_name.py,sha256=-0d2_dg2tegSauxShTVsT48rWeR5QfP-8SJh9feZXtg,7968
|
|
188
188
|
scope_client/api_bindings/models/permission_request_item.py,sha256=czzZsHDgvFOyZe8mjnPJtYO-eDz42jzqjzPtGfPketc,3084
|
|
189
189
|
scope_client/api_bindings/models/permission_response_item.py,sha256=7D0mG1etQeYIYE9U6if8zIgJh0JEQOruk5aH6TtiNtw,3262
|
|
190
190
|
scope_client/api_bindings/models/permissions_request.py,sha256=dbh_2kJdTzuZzZ8UjQAdfxnDtOXwFeDIzvdflOaU_3A,3311
|
|
@@ -309,7 +309,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
|
|
|
309
309
|
scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
|
|
310
310
|
scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
|
|
311
311
|
scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
|
|
312
|
-
scope_client-1.4.
|
|
313
|
-
scope_client-1.4.
|
|
314
|
-
scope_client-1.4.
|
|
315
|
-
scope_client-1.4.
|
|
312
|
+
scope_client-1.4.1008.dist-info/METADATA,sha256=j7MMLjOzXVUurAB3ATyO5zacO7pTSsgDHavhoQGCua8,1777
|
|
313
|
+
scope_client-1.4.1008.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
314
|
+
scope_client-1.4.1008.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
|
|
315
|
+
scope_client-1.4.1008.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|