polyaxon 2.1.0rc2__py3-none-any.whl → 2.1.0rc3__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.
- polyaxon/_sdk/api/agents_v1_api.py +21 -5
- polyaxon/pkg.py +1 -1
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/METADATA +1 -1
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/RECORD +8 -8
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/LICENSE +0 -0
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/WHEEL +0 -0
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.1.0rc2.dist-info → polyaxon-2.1.0rc3.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
from typing import Optional
|
1
|
+
from typing import Dict, Optional
|
2
2
|
from typing_extensions import Annotated
|
3
3
|
|
4
4
|
from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
|
@@ -2399,6 +2399,7 @@ class AgentsV1Api(BaseApi):
|
|
2399
2399
|
def cron_agent(
|
2400
2400
|
self,
|
2401
2401
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2402
|
+
body: Annotated[Optional[Dict], Field(..., description="Cron body")] = None,
|
2402
2403
|
**kwargs
|
2403
2404
|
) -> V1AgentStateResponse: # noqa: E501
|
2404
2405
|
"""Global Cron agent # noqa: E501
|
@@ -2406,11 +2407,13 @@ class AgentsV1Api(BaseApi):
|
|
2406
2407
|
This method makes a synchronous HTTP request by default. To make an
|
2407
2408
|
asynchronous HTTP request, please pass async_req=True
|
2408
2409
|
|
2409
|
-
>>> thread = api.cron_agent(owner, async_req=True)
|
2410
|
+
>>> thread = api.cron_agent(owner, body, async_req=True)
|
2410
2411
|
>>> result = thread.get()
|
2411
2412
|
|
2412
2413
|
:param owner: Owner of the namespace (required)
|
2413
2414
|
:type owner: str
|
2415
|
+
:param body: Cron body (required)
|
2416
|
+
:type body: object
|
2414
2417
|
:param async_req: Whether to execute the request asynchronously.
|
2415
2418
|
:type async_req: bool, optional
|
2416
2419
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -2427,12 +2430,13 @@ class AgentsV1Api(BaseApi):
|
|
2427
2430
|
:rtype: V1AgentStateResponse
|
2428
2431
|
"""
|
2429
2432
|
kwargs["_return_http_data_only"] = True
|
2430
|
-
return self.cron_agent_with_http_info(owner, **kwargs) # noqa: E501
|
2433
|
+
return self.cron_agent_with_http_info(owner, body, **kwargs) # noqa: E501
|
2431
2434
|
|
2432
2435
|
@validate_arguments
|
2433
2436
|
def cron_agent_with_http_info(
|
2434
2437
|
self,
|
2435
2438
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2439
|
+
body: Annotated[Optional[Dict], Field(..., description="Cron body")] = None,
|
2436
2440
|
**kwargs
|
2437
2441
|
): # noqa: E501
|
2438
2442
|
"""Cron agent # noqa: E501
|
@@ -2440,11 +2444,13 @@ class AgentsV1Api(BaseApi):
|
|
2440
2444
|
This method makes a synchronous HTTP request by default. To make an
|
2441
2445
|
asynchronous HTTP request, please pass async_req=True
|
2442
2446
|
|
2443
|
-
>>> thread = api.cron_agent_with_http_info(owner, async_req=True)
|
2447
|
+
>>> thread = api.cron_agent_with_http_info(owner, body, async_req=True)
|
2444
2448
|
>>> result = thread.get()
|
2445
2449
|
|
2446
2450
|
:param owner: Owner of the namespace (required)
|
2447
2451
|
:type owner: str
|
2452
|
+
:param body: Cron body (required)
|
2453
|
+
:type body: object
|
2448
2454
|
:param async_req: Whether to execute the request asynchronously.
|
2449
2455
|
:type async_req: bool, optional
|
2450
2456
|
:param _return_http_data_only: response data without head status code
|
@@ -2471,7 +2477,7 @@ class AgentsV1Api(BaseApi):
|
|
2471
2477
|
|
2472
2478
|
_params = locals()
|
2473
2479
|
|
2474
|
-
_all_params = ["owner"]
|
2480
|
+
_all_params = ["owner", "body"]
|
2475
2481
|
_all_params.extend(
|
2476
2482
|
[
|
2477
2483
|
"async_req",
|
@@ -2510,11 +2516,21 @@ class AgentsV1Api(BaseApi):
|
|
2510
2516
|
_files = {}
|
2511
2517
|
# process the body parameter
|
2512
2518
|
_body_params = None
|
2519
|
+
if _params["body"]:
|
2520
|
+
_body_params = _params["body"]
|
2513
2521
|
# set the HTTP header `Accept`
|
2514
2522
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
2515
2523
|
["application/json"]
|
2516
2524
|
) # noqa: E501
|
2517
2525
|
|
2526
|
+
# set the HTTP header `Content-Type`
|
2527
|
+
_content_types_list = _params.get(
|
2528
|
+
"_content_type",
|
2529
|
+
self.api_client.select_header_content_type(["application/json"]),
|
2530
|
+
)
|
2531
|
+
if _content_types_list:
|
2532
|
+
_header_params["Content-Type"] = _content_types_list
|
2533
|
+
|
2518
2534
|
# authentication setting
|
2519
2535
|
_auth_settings = ["ApiKey"] # noqa: E501
|
2520
2536
|
|
polyaxon/pkg.py
CHANGED
@@ -9,7 +9,7 @@ polyaxon/exceptions.py,sha256=ujvG9p1Pn2KHYbHqB3-faadW46dEuULUQXNtfkd2zk8,10236
|
|
9
9
|
polyaxon/fs.py,sha256=RS8XmVrrfXfIJXN6cTCCRRYwesCLHVVfC01Vi56lecs,246
|
10
10
|
polyaxon/k8s.py,sha256=nI5oPCSlqU4aaeVShM6SlYS9eqYiYUL4GDXIZ4bnq-I,1051
|
11
11
|
polyaxon/logger.py,sha256=gdZQms37Pe5G2j-Ear5jbSAJeGgX6fnvg7oE8_9MSlc,2309
|
12
|
-
polyaxon/pkg.py,sha256=
|
12
|
+
polyaxon/pkg.py,sha256=pp7j7yEBC1bpoS3D0J4SHsSAGUZ9E6GGygvSHN_FPvk,266
|
13
13
|
polyaxon/polyaxonfile.py,sha256=xHmHT_cHomfuAQm82Jhnp71YNN5mQ-Lod7EbonjY4b4,429
|
14
14
|
polyaxon/schemas.py,sha256=l5Lg1IGP6FM_pO8eToY0RUCzVD1kn3Dk5CNM_nsAf60,5877
|
15
15
|
polyaxon/settings.py,sha256=Pxx1-T2oeJ5XmvGFN0YgnVzum_9FyTPaQtl68aQvYc4,4116
|
@@ -441,7 +441,7 @@ polyaxon/_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
441
441
|
polyaxon/_sdk/base_api.py,sha256=7LXnjh3jGHWqIMFj81Df21Z0nAhDIQqm5TALvMj15eU,393
|
442
442
|
polyaxon/_sdk/configuration.py,sha256=QDZ9grJjtHuL7TQhWZqbAcBFlh9674go6kxaQ10XCWo,15103
|
443
443
|
polyaxon/_sdk/api/__init__.py,sha256=ABYkNzoTkFk83AGh5eHBuNtwUdbJt9kNURKr9wzYSzk,1118
|
444
|
-
polyaxon/_sdk/api/agents_v1_api.py,sha256=
|
444
|
+
polyaxon/_sdk/api/agents_v1_api.py,sha256=CeDSPKK0T8VytyElAQUny39HXkR0F7PrLmuBg9xFzQ4,123150
|
445
445
|
polyaxon/_sdk/api/artifacts_stores_v1_api.py,sha256=VuBdfwKi0URQQCuh9GeHceRPMc7fOlJYl7-K-okJtH4,8403
|
446
446
|
polyaxon/_sdk/api/auth_v1_api.py,sha256=Bov8wCCYmv8r1cZyodmIyDC_SahUpMsTKQsOa-vbuyg,35802
|
447
447
|
polyaxon/_sdk/api/connections_v1_api.py,sha256=PPTGX7FrmD1zls1lWBukCWgNuRn7Eui365Ji5t_Sz0A,54365
|
@@ -593,9 +593,9 @@ polyaxon/tuners/hyperopt.py,sha256=zd6MblMGkooqLGDFJVo5kClqYnBoMwGj-opqqj8FDzQ,7
|
|
593
593
|
polyaxon/tuners/mapping.py,sha256=pOdHCiwEufTk-QT7pNyjBjAEWNTM-lMC17WNTCk7C24,69
|
594
594
|
polyaxon/tuners/random_search.py,sha256=6VEekM3N9h6E1lbpVTTUGKFPJlGMY2u-GkG615_nQcI,80
|
595
595
|
polyaxon_sdk/__init__.py,sha256=HWvFdGWESyVG3f26K_szewiG-McMOHFkXKTfZcBlHsM,92
|
596
|
-
polyaxon-2.1.
|
597
|
-
polyaxon-2.1.
|
598
|
-
polyaxon-2.1.
|
599
|
-
polyaxon-2.1.
|
600
|
-
polyaxon-2.1.
|
601
|
-
polyaxon-2.1.
|
596
|
+
polyaxon-2.1.0rc3.dist-info/LICENSE,sha256=86kroZbQUDsmSWOomB7dpceG65UXiVSPob4581tStBc,11349
|
597
|
+
polyaxon-2.1.0rc3.dist-info/METADATA,sha256=jwaUieEKgXxyP1je6ESxeF-xqdTLq9LHgW_Xw1ghnqw,11716
|
598
|
+
polyaxon-2.1.0rc3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
599
|
+
polyaxon-2.1.0rc3.dist-info/entry_points.txt,sha256=aFbUMjkg9vzRBVAFhqvR1m92yG8Cov7UAF0zViGfoQw,70
|
600
|
+
polyaxon-2.1.0rc3.dist-info/top_level.txt,sha256=I_2e_Vv8rdcqWcMMdZocbrHiKPNGqoSMBqIObrw00Rg,22
|
601
|
+
polyaxon-2.1.0rc3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|