polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.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/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,382 +1,89 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
27
13
|
"""
|
28
14
|
|
29
15
|
|
30
|
-
|
31
|
-
|
32
|
-
except ImportError:
|
33
|
-
from inspect import getargspec as getfullargspec
|
16
|
+
from __future__ import annotations
|
17
|
+
from inspect import getfullargspec
|
34
18
|
import pprint
|
35
19
|
import re # noqa: F401
|
36
|
-
import
|
20
|
+
import json
|
37
21
|
|
38
|
-
from polyaxon_sdk.configuration import Configuration
|
39
22
|
|
23
|
+
from typing import Any, Dict, Optional
|
24
|
+
from pydantic import BaseModel, StrictBool
|
40
25
|
|
41
|
-
class AgentStateResponseAgentState(
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
|
-
|
45
|
-
Do not edit the class manually.
|
46
|
-
"""
|
47
|
-
|
26
|
+
class AgentStateResponseAgentState(BaseModel):
|
48
27
|
"""
|
49
|
-
|
50
|
-
openapi_types (dict): The key is attribute name
|
51
|
-
and the value is attribute type.
|
52
|
-
attribute_map (dict): The key is attribute name
|
53
|
-
and the value is json key in definition.
|
28
|
+
AgentStateResponseAgentState
|
54
29
|
"""
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
self.apply = apply
|
115
|
-
if checks is not None:
|
116
|
-
self.checks = checks
|
117
|
-
if full is not None:
|
118
|
-
self.full = full
|
119
|
-
|
120
|
-
@property
|
121
|
-
def schedules(self):
|
122
|
-
"""Gets the schedules of this AgentStateResponseAgentState. # noqa: E501
|
123
|
-
|
124
|
-
|
125
|
-
:return: The schedules of this AgentStateResponseAgentState. # noqa: E501
|
126
|
-
:rtype: object
|
127
|
-
"""
|
128
|
-
return self._schedules
|
129
|
-
|
130
|
-
@schedules.setter
|
131
|
-
def schedules(self, schedules):
|
132
|
-
"""Sets the schedules of this AgentStateResponseAgentState.
|
133
|
-
|
134
|
-
|
135
|
-
:param schedules: The schedules of this AgentStateResponseAgentState. # noqa: E501
|
136
|
-
:type schedules: object
|
137
|
-
"""
|
138
|
-
|
139
|
-
self._schedules = schedules
|
140
|
-
|
141
|
-
@property
|
142
|
-
def hooks(self):
|
143
|
-
"""Gets the hooks of this AgentStateResponseAgentState. # noqa: E501
|
144
|
-
|
145
|
-
|
146
|
-
:return: The hooks of this AgentStateResponseAgentState. # noqa: E501
|
147
|
-
:rtype: object
|
148
|
-
"""
|
149
|
-
return self._hooks
|
150
|
-
|
151
|
-
@hooks.setter
|
152
|
-
def hooks(self, hooks):
|
153
|
-
"""Sets the hooks of this AgentStateResponseAgentState.
|
154
|
-
|
155
|
-
|
156
|
-
:param hooks: The hooks of this AgentStateResponseAgentState. # noqa: E501
|
157
|
-
:type hooks: object
|
158
|
-
"""
|
159
|
-
|
160
|
-
self._hooks = hooks
|
161
|
-
|
162
|
-
@property
|
163
|
-
def watchdogs(self):
|
164
|
-
"""Gets the watchdogs of this AgentStateResponseAgentState. # noqa: E501
|
165
|
-
|
166
|
-
|
167
|
-
:return: The watchdogs of this AgentStateResponseAgentState. # noqa: E501
|
168
|
-
:rtype: object
|
169
|
-
"""
|
170
|
-
return self._watchdogs
|
171
|
-
|
172
|
-
@watchdogs.setter
|
173
|
-
def watchdogs(self, watchdogs):
|
174
|
-
"""Sets the watchdogs of this AgentStateResponseAgentState.
|
175
|
-
|
176
|
-
|
177
|
-
:param watchdogs: The watchdogs of this AgentStateResponseAgentState. # noqa: E501
|
178
|
-
:type watchdogs: object
|
179
|
-
"""
|
180
|
-
|
181
|
-
self._watchdogs = watchdogs
|
182
|
-
|
183
|
-
@property
|
184
|
-
def tuners(self):
|
185
|
-
"""Gets the tuners of this AgentStateResponseAgentState. # noqa: E501
|
186
|
-
|
187
|
-
|
188
|
-
:return: The tuners of this AgentStateResponseAgentState. # noqa: E501
|
189
|
-
:rtype: object
|
190
|
-
"""
|
191
|
-
return self._tuners
|
192
|
-
|
193
|
-
@tuners.setter
|
194
|
-
def tuners(self, tuners):
|
195
|
-
"""Sets the tuners of this AgentStateResponseAgentState.
|
196
|
-
|
197
|
-
|
198
|
-
:param tuners: The tuners of this AgentStateResponseAgentState. # noqa: E501
|
199
|
-
:type tuners: object
|
200
|
-
"""
|
201
|
-
|
202
|
-
self._tuners = tuners
|
203
|
-
|
204
|
-
@property
|
205
|
-
def queued(self):
|
206
|
-
"""Gets the queued of this AgentStateResponseAgentState. # noqa: E501
|
207
|
-
|
208
|
-
|
209
|
-
:return: The queued of this AgentStateResponseAgentState. # noqa: E501
|
210
|
-
:rtype: object
|
211
|
-
"""
|
212
|
-
return self._queued
|
213
|
-
|
214
|
-
@queued.setter
|
215
|
-
def queued(self, queued):
|
216
|
-
"""Sets the queued of this AgentStateResponseAgentState.
|
217
|
-
|
218
|
-
|
219
|
-
:param queued: The queued of this AgentStateResponseAgentState. # noqa: E501
|
220
|
-
:type queued: object
|
221
|
-
"""
|
222
|
-
|
223
|
-
self._queued = queued
|
224
|
-
|
225
|
-
@property
|
226
|
-
def stopping(self):
|
227
|
-
"""Gets the stopping of this AgentStateResponseAgentState. # noqa: E501
|
228
|
-
|
229
|
-
|
230
|
-
:return: The stopping of this AgentStateResponseAgentState. # noqa: E501
|
231
|
-
:rtype: object
|
232
|
-
"""
|
233
|
-
return self._stopping
|
234
|
-
|
235
|
-
@stopping.setter
|
236
|
-
def stopping(self, stopping):
|
237
|
-
"""Sets the stopping of this AgentStateResponseAgentState.
|
238
|
-
|
239
|
-
|
240
|
-
:param stopping: The stopping of this AgentStateResponseAgentState. # noqa: E501
|
241
|
-
:type stopping: object
|
242
|
-
"""
|
243
|
-
|
244
|
-
self._stopping = stopping
|
245
|
-
|
246
|
-
@property
|
247
|
-
def deleting(self):
|
248
|
-
"""Gets the deleting of this AgentStateResponseAgentState. # noqa: E501
|
249
|
-
|
250
|
-
|
251
|
-
:return: The deleting of this AgentStateResponseAgentState. # noqa: E501
|
252
|
-
:rtype: object
|
253
|
-
"""
|
254
|
-
return self._deleting
|
255
|
-
|
256
|
-
@deleting.setter
|
257
|
-
def deleting(self, deleting):
|
258
|
-
"""Sets the deleting of this AgentStateResponseAgentState.
|
259
|
-
|
260
|
-
|
261
|
-
:param deleting: The deleting of this AgentStateResponseAgentState. # noqa: E501
|
262
|
-
:type deleting: object
|
263
|
-
"""
|
264
|
-
|
265
|
-
self._deleting = deleting
|
266
|
-
|
267
|
-
@property
|
268
|
-
def apply(self):
|
269
|
-
"""Gets the apply of this AgentStateResponseAgentState. # noqa: E501
|
270
|
-
|
271
|
-
|
272
|
-
:return: The apply of this AgentStateResponseAgentState. # noqa: E501
|
273
|
-
:rtype: object
|
274
|
-
"""
|
275
|
-
return self._apply
|
276
|
-
|
277
|
-
@apply.setter
|
278
|
-
def apply(self, apply):
|
279
|
-
"""Sets the apply of this AgentStateResponseAgentState.
|
280
|
-
|
281
|
-
|
282
|
-
:param apply: The apply of this AgentStateResponseAgentState. # noqa: E501
|
283
|
-
:type apply: object
|
284
|
-
"""
|
285
|
-
|
286
|
-
self._apply = apply
|
287
|
-
|
288
|
-
@property
|
289
|
-
def checks(self):
|
290
|
-
"""Gets the checks of this AgentStateResponseAgentState. # noqa: E501
|
291
|
-
|
292
|
-
|
293
|
-
:return: The checks of this AgentStateResponseAgentState. # noqa: E501
|
294
|
-
:rtype: object
|
295
|
-
"""
|
296
|
-
return self._checks
|
297
|
-
|
298
|
-
@checks.setter
|
299
|
-
def checks(self, checks):
|
300
|
-
"""Sets the checks of this AgentStateResponseAgentState.
|
301
|
-
|
302
|
-
|
303
|
-
:param checks: The checks of this AgentStateResponseAgentState. # noqa: E501
|
304
|
-
:type checks: object
|
305
|
-
"""
|
306
|
-
|
307
|
-
self._checks = checks
|
308
|
-
|
309
|
-
@property
|
310
|
-
def full(self):
|
311
|
-
"""Gets the full of this AgentStateResponseAgentState. # noqa: E501
|
312
|
-
|
313
|
-
|
314
|
-
:return: The full of this AgentStateResponseAgentState. # noqa: E501
|
315
|
-
:rtype: bool
|
316
|
-
"""
|
317
|
-
return self._full
|
318
|
-
|
319
|
-
@full.setter
|
320
|
-
def full(self, full):
|
321
|
-
"""Sets the full of this AgentStateResponseAgentState.
|
322
|
-
|
323
|
-
|
324
|
-
:param full: The full of this AgentStateResponseAgentState. # noqa: E501
|
325
|
-
:type full: bool
|
326
|
-
"""
|
327
|
-
|
328
|
-
self._full = full
|
329
|
-
|
330
|
-
def to_dict(self, serialize=False):
|
331
|
-
"""Returns the model properties as a dict"""
|
332
|
-
result = {}
|
333
|
-
|
334
|
-
def convert(x):
|
335
|
-
if hasattr(x, "to_dict"):
|
336
|
-
args = getfullargspec(x.to_dict).args
|
337
|
-
if len(args) == 1:
|
338
|
-
return x.to_dict()
|
339
|
-
else:
|
340
|
-
return x.to_dict(serialize)
|
341
|
-
else:
|
342
|
-
return x
|
343
|
-
|
344
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
345
|
-
value = getattr(self, attr)
|
346
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
347
|
-
if isinstance(value, list):
|
348
|
-
result[attr] = list(map(
|
349
|
-
lambda x: convert(x),
|
350
|
-
value
|
351
|
-
))
|
352
|
-
elif isinstance(value, dict):
|
353
|
-
result[attr] = dict(map(
|
354
|
-
lambda item: (item[0], convert(item[1])),
|
355
|
-
value.items()
|
356
|
-
))
|
357
|
-
else:
|
358
|
-
result[attr] = convert(value)
|
359
|
-
|
360
|
-
return result
|
361
|
-
|
362
|
-
def to_str(self):
|
363
|
-
"""Returns the string representation of the model"""
|
364
|
-
return pprint.pformat(self.to_dict())
|
365
|
-
|
366
|
-
def __repr__(self):
|
367
|
-
"""For `print` and `pprint`"""
|
368
|
-
return self.to_str()
|
369
|
-
|
370
|
-
def __eq__(self, other):
|
371
|
-
"""Returns true if both objects are equal"""
|
372
|
-
if not isinstance(other, AgentStateResponseAgentState):
|
373
|
-
return False
|
374
|
-
|
375
|
-
return self.to_dict() == other.to_dict()
|
376
|
-
|
377
|
-
def __ne__(self, other):
|
378
|
-
"""Returns true if both objects are not equal"""
|
379
|
-
if not isinstance(other, AgentStateResponseAgentState):
|
380
|
-
return True
|
30
|
+
schedules: Optional[Dict[str, Any]] = None
|
31
|
+
hooks: Optional[Dict[str, Any]] = None
|
32
|
+
watchdogs: Optional[Dict[str, Any]] = None
|
33
|
+
tuners: Optional[Dict[str, Any]] = None
|
34
|
+
queued: Optional[Dict[str, Any]] = None
|
35
|
+
stopping: Optional[Dict[str, Any]] = None
|
36
|
+
deleting: Optional[Dict[str, Any]] = None
|
37
|
+
apply: Optional[Dict[str, Any]] = None
|
38
|
+
checks: Optional[Dict[str, Any]] = None
|
39
|
+
full: Optional[StrictBool] = None
|
40
|
+
__properties = ["schedules", "hooks", "watchdogs", "tuners", "queued", "stopping", "deleting", "apply", "checks", "full"]
|
41
|
+
|
42
|
+
class Config:
|
43
|
+
allow_population_by_field_name = True
|
44
|
+
validate_assignment = True
|
45
|
+
|
46
|
+
def to_str(self) -> str:
|
47
|
+
"""Returns the string representation of the model using alias"""
|
48
|
+
return pprint.pformat(self.dict(by_alias=True))
|
49
|
+
|
50
|
+
def to_json(self) -> str:
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
52
|
+
return json.dumps(self.to_dict())
|
53
|
+
|
54
|
+
@classmethod
|
55
|
+
def from_json(cls, json_str: str) -> AgentStateResponseAgentState:
|
56
|
+
"""Create an instance of AgentStateResponseAgentState from a JSON string"""
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
58
|
+
|
59
|
+
def to_dict(self):
|
60
|
+
"""Returns the dictionary representation of the model using alias"""
|
61
|
+
_dict = self.dict(by_alias=True,
|
62
|
+
exclude={
|
63
|
+
},
|
64
|
+
exclude_none=True)
|
65
|
+
return _dict
|
66
|
+
|
67
|
+
@classmethod
|
68
|
+
def from_dict(cls, obj: dict) -> AgentStateResponseAgentState:
|
69
|
+
"""Create an instance of AgentStateResponseAgentState from a dict"""
|
70
|
+
if obj is None:
|
71
|
+
return None
|
72
|
+
|
73
|
+
if type(obj) is not dict:
|
74
|
+
return AgentStateResponseAgentState.parse_obj(obj)
|
75
|
+
|
76
|
+
_obj = AgentStateResponseAgentState.parse_obj({
|
77
|
+
"schedules": obj.get("schedules"),
|
78
|
+
"hooks": obj.get("hooks"),
|
79
|
+
"watchdogs": obj.get("watchdogs"),
|
80
|
+
"tuners": obj.get("tuners"),
|
81
|
+
"queued": obj.get("queued"),
|
82
|
+
"stopping": obj.get("stopping"),
|
83
|
+
"deleting": obj.get("deleting"),
|
84
|
+
"apply": obj.get("apply"),
|
85
|
+
"checks": obj.get("checks"),
|
86
|
+
"full": obj.get("full")
|
87
|
+
})
|
88
|
+
return _obj
|
381
89
|
|
382
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,128 +1,35 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
27
13
|
"""
|
28
14
|
|
29
15
|
|
30
|
-
|
31
|
-
from inspect import getfullargspec
|
32
|
-
except ImportError:
|
33
|
-
from inspect import getargspec as getfullargspec
|
16
|
+
from inspect import getfullargspec
|
34
17
|
import pprint
|
35
18
|
import re # noqa: F401
|
36
|
-
import
|
19
|
+
from aenum import Enum, no_arg
|
37
20
|
|
38
|
-
from polyaxon_sdk.configuration import Configuration
|
39
21
|
|
40
22
|
|
41
|
-
class MXJobMode(object):
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
23
|
|
45
|
-
Do not edit the class manually.
|
46
|
-
"""
|
47
24
|
|
25
|
+
class MXJobMode(str, Enum):
|
48
26
|
"""
|
49
|
-
|
27
|
+
MXJobMode
|
50
28
|
"""
|
51
|
-
MXTRAIN = "MXTrain"
|
52
|
-
MXTUNE = "MXTune"
|
53
|
-
|
54
|
-
allowable_values = [MXTRAIN, MXTUNE] # noqa: E501
|
55
29
|
|
56
30
|
"""
|
57
|
-
|
58
|
-
openapi_types (dict): The key is attribute name
|
59
|
-
and the value is attribute type.
|
60
|
-
attribute_map (dict): The key is attribute name
|
61
|
-
and the value is json key in definition.
|
31
|
+
allowed enum values
|
62
32
|
"""
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
attribute_map = {
|
67
|
-
}
|
68
|
-
|
69
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
70
|
-
"""MXJobMode - a model defined in OpenAPI""" # noqa: E501
|
71
|
-
if local_vars_configuration is None:
|
72
|
-
local_vars_configuration = Configuration.get_default_copy()
|
73
|
-
self.local_vars_configuration = local_vars_configuration
|
74
|
-
self.discriminator = None
|
75
|
-
|
76
|
-
def to_dict(self, serialize=False):
|
77
|
-
"""Returns the model properties as a dict"""
|
78
|
-
result = {}
|
79
|
-
|
80
|
-
def convert(x):
|
81
|
-
if hasattr(x, "to_dict"):
|
82
|
-
args = getfullargspec(x.to_dict).args
|
83
|
-
if len(args) == 1:
|
84
|
-
return x.to_dict()
|
85
|
-
else:
|
86
|
-
return x.to_dict(serialize)
|
87
|
-
else:
|
88
|
-
return x
|
89
|
-
|
90
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
91
|
-
value = getattr(self, attr)
|
92
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
93
|
-
if isinstance(value, list):
|
94
|
-
result[attr] = list(map(
|
95
|
-
lambda x: convert(x),
|
96
|
-
value
|
97
|
-
))
|
98
|
-
elif isinstance(value, dict):
|
99
|
-
result[attr] = dict(map(
|
100
|
-
lambda item: (item[0], convert(item[1])),
|
101
|
-
value.items()
|
102
|
-
))
|
103
|
-
else:
|
104
|
-
result[attr] = convert(value)
|
105
|
-
|
106
|
-
return result
|
107
|
-
|
108
|
-
def to_str(self):
|
109
|
-
"""Returns the string representation of the model"""
|
110
|
-
return pprint.pformat(self.to_dict())
|
111
|
-
|
112
|
-
def __repr__(self):
|
113
|
-
"""For `print` and `pprint`"""
|
114
|
-
return self.to_str()
|
115
|
-
|
116
|
-
def __eq__(self, other):
|
117
|
-
"""Returns true if both objects are equal"""
|
118
|
-
if not isinstance(other, MXJobMode):
|
119
|
-
return False
|
120
|
-
|
121
|
-
return self.to_dict() == other.to_dict()
|
122
|
-
|
123
|
-
def __ne__(self, other):
|
124
|
-
"""Returns true if both objects are not equal"""
|
125
|
-
if not isinstance(other, MXJobMode):
|
126
|
-
return True
|
33
|
+
MXTRAIN = 'MXTrain'
|
34
|
+
MXTUNE = 'MXTune'
|
127
35
|
|
128
|
-
return self.to_dict() != other.to_dict()
|