zenml-nightly 0.80.1.dev20250404__py3-none-any.whl → 0.80.1.dev20250406__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.
- zenml/VERSION +1 -1
- zenml/models/v2/core/service_connector.py +0 -6
- zenml/pipelines/run_utils.py +16 -1
- zenml/zen_server/routers/service_connectors_endpoints.py +44 -44
- zenml/zen_stores/rest_zen_store.py +1 -1
- {zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/METADATA +1 -1
- {zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/RECORD +10 -10
- {zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.80.1.
|
1
|
+
0.80.1.dev20250406
|
@@ -784,21 +784,15 @@ class ServiceConnectorFilter(UserScopedFilter):
|
|
784
784
|
|
785
785
|
FILTER_EXCLUDE_FIELDS: ClassVar[List[str]] = [
|
786
786
|
*UserScopedFilter.FILTER_EXCLUDE_FIELDS,
|
787
|
-
"scope_type",
|
788
787
|
"resource_type",
|
789
788
|
"labels_str",
|
790
789
|
"labels",
|
791
790
|
]
|
792
791
|
CLI_EXCLUDE_FIELDS: ClassVar[List[str]] = [
|
793
792
|
*UserScopedFilter.CLI_EXCLUDE_FIELDS,
|
794
|
-
"scope_type",
|
795
793
|
"labels_str",
|
796
794
|
"labels",
|
797
795
|
]
|
798
|
-
scope_type: Optional[str] = Field(
|
799
|
-
default=None,
|
800
|
-
description="The type to scope this query to.",
|
801
|
-
)
|
802
796
|
name: Optional[str] = Field(
|
803
797
|
default=None,
|
804
798
|
description="The name to filter by",
|
zenml/pipelines/run_utils.py
CHANGED
@@ -237,7 +237,22 @@ def validate_run_config_is_runnable_from_server(
|
|
237
237
|
"""
|
238
238
|
if run_configuration.parameters:
|
239
239
|
raise ValueError(
|
240
|
-
"Can't set parameters when running pipeline via Rest API."
|
240
|
+
"Can't set pipeline parameters when running pipeline via Rest API. "
|
241
|
+
"This likely requires refactoring your pipeline code to use step parameters "
|
242
|
+
"instead of pipeline parameters. For example, instead of: "
|
243
|
+
"```yaml "
|
244
|
+
"parameters: "
|
245
|
+
" param1: 1 "
|
246
|
+
" param2: 2 "
|
247
|
+
"``` "
|
248
|
+
"You'll need to modify your pipeline code to pass parameters directly to steps: "
|
249
|
+
"```yaml "
|
250
|
+
"steps: "
|
251
|
+
" step1: "
|
252
|
+
" parameters: "
|
253
|
+
" param1: 1 "
|
254
|
+
" param2: 2 "
|
255
|
+
"``` "
|
241
256
|
)
|
242
257
|
|
243
258
|
if run_configuration.build:
|
@@ -186,6 +186,50 @@ def list_service_connectors(
|
|
186
186
|
return connectors
|
187
187
|
|
188
188
|
|
189
|
+
@router.get(
|
190
|
+
SERVICE_CONNECTOR_RESOURCES,
|
191
|
+
responses={401: error_response, 404: error_response, 422: error_response},
|
192
|
+
)
|
193
|
+
# TODO: the workspace scoped endpoint is only kept for dashboard compatibility
|
194
|
+
# and can be removed after the migration
|
195
|
+
@workspace_router.get(
|
196
|
+
"/{project_name_or_id}" + SERVICE_CONNECTOR_RESOURCES,
|
197
|
+
responses={401: error_response, 404: error_response, 422: error_response},
|
198
|
+
deprecated=True,
|
199
|
+
tags=["service_connectors"],
|
200
|
+
)
|
201
|
+
@handle_exceptions
|
202
|
+
def list_service_connector_resources(
|
203
|
+
filter_model: ServiceConnectorFilter = Depends(
|
204
|
+
make_dependable(ServiceConnectorFilter)
|
205
|
+
),
|
206
|
+
project_name_or_id: Optional[Union[str, UUID]] = None,
|
207
|
+
auth_context: AuthContext = Security(authorize),
|
208
|
+
) -> List[ServiceConnectorResourcesModel]:
|
209
|
+
"""List resources that can be accessed by service connectors.
|
210
|
+
|
211
|
+
Args:
|
212
|
+
filter_model: The filter model to use when fetching service
|
213
|
+
connectors.
|
214
|
+
project_name_or_id: Optional name or ID of the project.
|
215
|
+
auth_context: Authentication context.
|
216
|
+
|
217
|
+
Returns:
|
218
|
+
The matching list of resources that available service
|
219
|
+
connectors have access to.
|
220
|
+
"""
|
221
|
+
allowed_ids = get_allowed_resource_ids(
|
222
|
+
resource_type=ResourceType.SERVICE_CONNECTOR
|
223
|
+
)
|
224
|
+
filter_model.configure_rbac(
|
225
|
+
authenticated_user_id=auth_context.user.id, id=allowed_ids
|
226
|
+
)
|
227
|
+
|
228
|
+
return zen_store().list_service_connector_resources(
|
229
|
+
filter_model=filter_model,
|
230
|
+
)
|
231
|
+
|
232
|
+
|
189
233
|
@router.get(
|
190
234
|
"/{connector_id}",
|
191
235
|
responses={401: error_response, 404: error_response, 422: error_response},
|
@@ -309,50 +353,6 @@ def validate_and_verify_service_connector_config(
|
|
309
353
|
)
|
310
354
|
|
311
355
|
|
312
|
-
@router.get(
|
313
|
-
SERVICE_CONNECTOR_RESOURCES,
|
314
|
-
responses={401: error_response, 404: error_response, 422: error_response},
|
315
|
-
)
|
316
|
-
# TODO: the workspace scoped endpoint is only kept for dashboard compatibility
|
317
|
-
# and can be removed after the migration
|
318
|
-
@workspace_router.get(
|
319
|
-
"/{project_name_or_id}" + SERVICE_CONNECTOR_RESOURCES,
|
320
|
-
responses={401: error_response, 404: error_response, 422: error_response},
|
321
|
-
deprecated=True,
|
322
|
-
tags=["service_connectors"],
|
323
|
-
)
|
324
|
-
@handle_exceptions
|
325
|
-
def list_service_connector_resources(
|
326
|
-
filter_model: ServiceConnectorFilter = Depends(
|
327
|
-
make_dependable(ServiceConnectorFilter)
|
328
|
-
),
|
329
|
-
project_name_or_id: Optional[Union[str, UUID]] = None,
|
330
|
-
auth_context: AuthContext = Security(authorize),
|
331
|
-
) -> List[ServiceConnectorResourcesModel]:
|
332
|
-
"""List resources that can be accessed by service connectors.
|
333
|
-
|
334
|
-
Args:
|
335
|
-
filter_model: The filter model to use when fetching service
|
336
|
-
connectors.
|
337
|
-
project_name_or_id: Optional name or ID of the project.
|
338
|
-
auth_context: Authentication context.
|
339
|
-
|
340
|
-
Returns:
|
341
|
-
The matching list of resources that available service
|
342
|
-
connectors have access to.
|
343
|
-
"""
|
344
|
-
allowed_ids = get_allowed_resource_ids(
|
345
|
-
resource_type=ResourceType.SERVICE_CONNECTOR
|
346
|
-
)
|
347
|
-
filter_model.configure_rbac(
|
348
|
-
authenticated_user_id=auth_context.user.id, id=allowed_ids
|
349
|
-
)
|
350
|
-
|
351
|
-
return zen_store().list_service_connector_resources(
|
352
|
-
filter_model=filter_model,
|
353
|
-
)
|
354
|
-
|
355
|
-
|
356
356
|
@router.put(
|
357
357
|
"/{connector_id}" + SERVICE_CONNECTOR_VERIFY,
|
358
358
|
responses={401: error_response, 404: error_response, 422: error_response},
|
@@ -2653,7 +2653,7 @@ class RestZenStore(BaseZenStore):
|
|
2653
2653
|
connectors have access to.
|
2654
2654
|
"""
|
2655
2655
|
response_body = self.get(
|
2656
|
-
SERVICE_CONNECTOR_RESOURCES,
|
2656
|
+
SERVICE_CONNECTORS + SERVICE_CONNECTOR_RESOURCES,
|
2657
2657
|
params=filter_model.model_dump(exclude_none=True),
|
2658
2658
|
timeout=max(
|
2659
2659
|
self.config.http_timeout,
|
{zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/RECORD
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
zenml/README.md,sha256=827dekbOWAs1BpW7VF1a4d7EbwPbjwccX-2zdXBENZo,1777
|
2
|
-
zenml/VERSION,sha256=
|
2
|
+
zenml/VERSION,sha256=KuyoP-WHB8ddgval-dbAACiDnw8X8wzYrSePLpENp_s,19
|
3
3
|
zenml/__init__.py,sha256=CKEyepFK-7akXYiMrNVh92Nb01Cjs23w4_YyI6sgdc8,2242
|
4
4
|
zenml/actions/__init__.py,sha256=mrt6wPo73iKRxK754_NqsGyJ3buW7RnVeIGXr1xEw8Y,681
|
5
5
|
zenml/actions/base_action.py,sha256=UcaHev6BTuLDwuswnyaPjdA8AgUqB5xPZ-lRtuvf2FU,25553
|
@@ -655,7 +655,7 @@ zenml/models/v2/core/secret.py,sha256=t2SneCxe60OSvWznWPl2Z-VerUbBsTlm8SVKwaw6Pl
|
|
655
655
|
zenml/models/v2/core/server_settings.py,sha256=NNNsYM2AwfsPmA2kfTMwqxn0__9WDoii52n2DNxrcq0,6263
|
656
656
|
zenml/models/v2/core/service.py,sha256=PeI036PIVG0zX5EiYPsx7h5LTRC8hlmfdeClKff-IaU,16106
|
657
657
|
zenml/models/v2/core/service_account.py,sha256=-1c9Et9Ma4_OHOZxIHjVnLJAaLLxhpoLEyGKkwc1Yx8,6619
|
658
|
-
zenml/models/v2/core/service_connector.py,sha256=
|
658
|
+
zenml/models/v2/core/service_connector.py,sha256=5JBRqd3iL0SFnupUO8fSgbsAZY9u2FDkMaY44azV5FQ,37048
|
659
659
|
zenml/models/v2/core/stack.py,sha256=z5PWFLsyfGi_eOpiOo6Qca98rzAf8_DIfagaXPcy3P0,11829
|
660
660
|
zenml/models/v2/core/step_run.py,sha256=9hbfOBzUkFLygUucqPzw_I6U3oB4qqYRKX0ARaiifqE,18333
|
661
661
|
zenml/models/v2/core/tag.py,sha256=eS9Xzuay91OURfKfNa_fE1CtGmlmPkFDIr6T_QWFZ34,7095
|
@@ -700,7 +700,7 @@ zenml/pipelines/build_utils.py,sha256=FYflpfK8i9jLgy8Ybr2dhQZarUDA1_0shvEARPkBMY
|
|
700
700
|
zenml/pipelines/pipeline_context.py,sha256=V_p-F9W7cBIlTjS0iv5-uJYMzaOj8bAUkc_uNhQgBms,3579
|
701
701
|
zenml/pipelines/pipeline_decorator.py,sha256=orqaMkblC880pLlh0PhiW5yI7CkohRneK-awCffbWW4,4363
|
702
702
|
zenml/pipelines/pipeline_definition.py,sha256=vcFn3b1ZQstLGOrwFLPUauPKvYOMS9t5gSVCjwkSa58,57224
|
703
|
-
zenml/pipelines/run_utils.py,sha256=
|
703
|
+
zenml/pipelines/run_utils.py,sha256=nhtv8igEEGLjPjicaZvIexzIb2czJXoctJa948gqirQ,12168
|
704
704
|
zenml/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
705
705
|
zenml/plugins/base_plugin_flavor.py,sha256=88IxFW91UB_rQ8xPlfRnIhIJh7A308NEq2epMMdlOng,2530
|
706
706
|
zenml/plugins/plugin_flavor_registry.py,sha256=LsN2Q0K-7EQ9H4uvlEG62Y0C1_Ro1UwppX4cnGbEcOA,10862
|
@@ -1047,7 +1047,7 @@ zenml/zen_server/routers/schedule_endpoints.py,sha256=UXt6TIEX0PYhLoBgU-n5kIvWck
|
|
1047
1047
|
zenml/zen_server/routers/secrets_endpoints.py,sha256=diYTC-jl6Hxd_BHVaNsPf2ZcWUwC99naWHsM1xRjR-g,9198
|
1048
1048
|
zenml/zen_server/routers/server_endpoints.py,sha256=4KHL11w0pPEjs1ZE1SYNb80eojhou3Q5AabnpaWmYS0,8006
|
1049
1049
|
zenml/zen_server/routers/service_accounts_endpoints.py,sha256=egShMu776yf0jmoMLmdEnC29HQ7glHV8-MwWflcOcak,11930
|
1050
|
-
zenml/zen_server/routers/service_connectors_endpoints.py,sha256=
|
1050
|
+
zenml/zen_server/routers/service_connectors_endpoints.py,sha256=e3iarrmjalEhL1ErXc9ZemqksPsEJ01o6xlZPgL2AKQ,17401
|
1051
1051
|
zenml/zen_server/routers/service_endpoints.py,sha256=VmcmTXXkW2K6-_WC-Te8679Dr5uY0nsbIQUapUvrUfc,5488
|
1052
1052
|
zenml/zen_server/routers/stack_components_endpoints.py,sha256=8g8CA88uxOnWDMN4tZgZpSzkyThfDEhJiyJB16bjb9A,8143
|
1053
1053
|
zenml/zen_server/routers/stack_deployment_endpoints.py,sha256=dzSGkX8bnQAhdS5cfjN6dyklCporIo6cun0B4evEnII,5329
|
@@ -1264,7 +1264,7 @@ zenml/zen_stores/migrations/versions/f3b3964e3a0f_add_oauth_devices.py,sha256=2C
|
|
1264
1264
|
zenml/zen_stores/migrations/versions/f49904a80aa7_increase_length_of_artifact_table_sources.py,sha256=kLgfDUnQdAb5_SyFx3VKXDLC0YbuBKf9iXRDNeBin7Q,1618
|
1265
1265
|
zenml/zen_stores/migrations/versions/f76a368a25a5_add_stack_description.py,sha256=u8fRomaasFeGhxvM2zU-Ab-AEpVsWm5zRcixxKFXdRw,904
|
1266
1266
|
zenml/zen_stores/migrations/versions/fbd7f18ced1e_increase_step_run_field_lengths.py,sha256=kn-ng5EHe_mmLfffIFbz7T59z-to3oMx8III_4wOsz4,1956
|
1267
|
-
zenml/zen_stores/rest_zen_store.py,sha256=
|
1267
|
+
zenml/zen_stores/rest_zen_store.py,sha256=zo0OnNZuiC8EWR-P9-oz7VdEFYPimnikERtvpEJjEgs,158091
|
1268
1268
|
zenml/zen_stores/schemas/__init__.py,sha256=4EXqExiVyxdnGxhQ_Hz79mOdRuMD0LsGlw0PaP2Ef6o,4333
|
1269
1269
|
zenml/zen_stores/schemas/action_schemas.py,sha256=2OiUiskFSg5qXGxA6AFq71bWzUczxA563LGFokLZmac,6456
|
1270
1270
|
zenml/zen_stores/schemas/api_key_schemas.py,sha256=0pK7b9HlJuQL3DuKT4eGjFb87tyd4x-E2VyxJLpRv3o,7459
|
@@ -1310,8 +1310,8 @@ zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=nEO0bAPlULBLxLVk-UTR
|
|
1310
1310
|
zenml/zen_stores/sql_zen_store.py,sha256=ldyC1uhMnmX5ojnqY9d_L2S-iC-eaNUwsexTkdPtqr4,440204
|
1311
1311
|
zenml/zen_stores/template_utils.py,sha256=GWBP5QEOyvhzndS_MLPmvh28sQaOPpPoZFXCIX9CRL4,9065
|
1312
1312
|
zenml/zen_stores/zen_store_interface.py,sha256=fF_uL_FplnvGvM5o3jOQ8i1zHXhuhKLL2n4nvIKSR7E,92090
|
1313
|
-
zenml_nightly-0.80.1.
|
1314
|
-
zenml_nightly-0.80.1.
|
1315
|
-
zenml_nightly-0.80.1.
|
1316
|
-
zenml_nightly-0.80.1.
|
1317
|
-
zenml_nightly-0.80.1.
|
1313
|
+
zenml_nightly-0.80.1.dev20250406.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1314
|
+
zenml_nightly-0.80.1.dev20250406.dist-info/METADATA,sha256=IWOoMhxmhxpm2uVRNGjUlMxKXw3UmktNY81LMT1jPIQ,24230
|
1315
|
+
zenml_nightly-0.80.1.dev20250406.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
1316
|
+
zenml_nightly-0.80.1.dev20250406.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1317
|
+
zenml_nightly-0.80.1.dev20250406.dist-info/RECORD,,
|
{zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.80.1.dev20250404.dist-info → zenml_nightly-0.80.1.dev20250406.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|