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
polyaxon_sdk/models/v1_agent.py
CHANGED
@@ -1,512 +1,110 @@
|
|
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
|
37
|
-
|
38
|
-
from polyaxon_sdk.configuration import Configuration
|
20
|
+
import json
|
39
21
|
|
22
|
+
from datetime import datetime
|
23
|
+
from typing import Any, Dict, List, Optional
|
24
|
+
from pydantic import BaseModel, StrictBool, StrictInt, StrictStr, conlist
|
25
|
+
from polyaxon_sdk.models.v1_status_condition import V1StatusCondition
|
26
|
+
from polyaxon_sdk.models.v1_statuses import V1Statuses
|
40
27
|
|
41
|
-
class V1Agent(
|
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
|
-
|
28
|
+
class V1Agent(BaseModel):
|
48
29
|
"""
|
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.
|
30
|
+
V1Agent
|
54
31
|
"""
|
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
|
-
self.
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
self.created_at = created_at
|
134
|
-
if updated_at is not None:
|
135
|
-
self.updated_at = updated_at
|
136
|
-
if status is not None:
|
137
|
-
self.status = status
|
138
|
-
if is_replica is not None:
|
139
|
-
self.is_replica = is_replica
|
140
|
-
if is_ui_managed is not None:
|
141
|
-
self.is_ui_managed = is_ui_managed
|
142
|
-
if settings is not None:
|
143
|
-
self.settings = settings
|
144
|
-
|
145
|
-
@property
|
146
|
-
def uuid(self):
|
147
|
-
"""Gets the uuid of this V1Agent. # noqa: E501
|
148
|
-
|
149
|
-
|
150
|
-
:return: The uuid of this V1Agent. # noqa: E501
|
151
|
-
:rtype: str
|
152
|
-
"""
|
153
|
-
return self._uuid
|
154
|
-
|
155
|
-
@uuid.setter
|
156
|
-
def uuid(self, uuid):
|
157
|
-
"""Sets the uuid of this V1Agent.
|
158
|
-
|
159
|
-
|
160
|
-
:param uuid: The uuid of this V1Agent. # noqa: E501
|
161
|
-
:type uuid: str
|
162
|
-
"""
|
163
|
-
|
164
|
-
self._uuid = uuid
|
165
|
-
|
166
|
-
@property
|
167
|
-
def name(self):
|
168
|
-
"""Gets the name of this V1Agent. # noqa: E501
|
169
|
-
|
170
|
-
|
171
|
-
:return: The name of this V1Agent. # noqa: E501
|
172
|
-
:rtype: str
|
173
|
-
"""
|
174
|
-
return self._name
|
175
|
-
|
176
|
-
@name.setter
|
177
|
-
def name(self, name):
|
178
|
-
"""Sets the name of this V1Agent.
|
179
|
-
|
180
|
-
|
181
|
-
:param name: The name of this V1Agent. # noqa: E501
|
182
|
-
:type name: str
|
183
|
-
"""
|
184
|
-
|
185
|
-
self._name = name
|
186
|
-
|
187
|
-
@property
|
188
|
-
def description(self):
|
189
|
-
"""Gets the description of this V1Agent. # noqa: E501
|
190
|
-
|
191
|
-
|
192
|
-
:return: The description of this V1Agent. # noqa: E501
|
193
|
-
:rtype: str
|
194
|
-
"""
|
195
|
-
return self._description
|
196
|
-
|
197
|
-
@description.setter
|
198
|
-
def description(self, description):
|
199
|
-
"""Sets the description of this V1Agent.
|
200
|
-
|
201
|
-
|
202
|
-
:param description: The description of this V1Agent. # noqa: E501
|
203
|
-
:type description: str
|
204
|
-
"""
|
205
|
-
|
206
|
-
self._description = description
|
207
|
-
|
208
|
-
@property
|
209
|
-
def tags(self):
|
210
|
-
"""Gets the tags of this V1Agent. # noqa: E501
|
211
|
-
|
212
|
-
|
213
|
-
:return: The tags of this V1Agent. # noqa: E501
|
214
|
-
:rtype: list[str]
|
215
|
-
"""
|
216
|
-
return self._tags
|
217
|
-
|
218
|
-
@tags.setter
|
219
|
-
def tags(self, tags):
|
220
|
-
"""Sets the tags of this V1Agent.
|
221
|
-
|
222
|
-
|
223
|
-
:param tags: The tags of this V1Agent. # noqa: E501
|
224
|
-
:type tags: list[str]
|
225
|
-
"""
|
226
|
-
|
227
|
-
self._tags = tags
|
228
|
-
|
229
|
-
@property
|
230
|
-
def live_state(self):
|
231
|
-
"""Gets the live_state of this V1Agent. # noqa: E501
|
232
|
-
|
233
|
-
|
234
|
-
:return: The live_state of this V1Agent. # noqa: E501
|
235
|
-
:rtype: int
|
236
|
-
"""
|
237
|
-
return self._live_state
|
238
|
-
|
239
|
-
@live_state.setter
|
240
|
-
def live_state(self, live_state):
|
241
|
-
"""Sets the live_state of this V1Agent.
|
242
|
-
|
243
|
-
|
244
|
-
:param live_state: The live_state of this V1Agent. # noqa: E501
|
245
|
-
:type live_state: int
|
246
|
-
"""
|
247
|
-
|
248
|
-
self._live_state = live_state
|
249
|
-
|
250
|
-
@property
|
251
|
-
def namespace(self):
|
252
|
-
"""Gets the namespace of this V1Agent. # noqa: E501
|
253
|
-
|
254
|
-
|
255
|
-
:return: The namespace of this V1Agent. # noqa: E501
|
256
|
-
:rtype: str
|
257
|
-
"""
|
258
|
-
return self._namespace
|
259
|
-
|
260
|
-
@namespace.setter
|
261
|
-
def namespace(self, namespace):
|
262
|
-
"""Sets the namespace of this V1Agent.
|
263
|
-
|
264
|
-
|
265
|
-
:param namespace: The namespace of this V1Agent. # noqa: E501
|
266
|
-
:type namespace: str
|
267
|
-
"""
|
268
|
-
|
269
|
-
self._namespace = namespace
|
270
|
-
|
271
|
-
@property
|
272
|
-
def version_api(self):
|
273
|
-
"""Gets the version_api of this V1Agent. # noqa: E501
|
274
|
-
|
275
|
-
|
276
|
-
:return: The version_api of this V1Agent. # noqa: E501
|
277
|
-
:rtype: object
|
278
|
-
"""
|
279
|
-
return self._version_api
|
280
|
-
|
281
|
-
@version_api.setter
|
282
|
-
def version_api(self, version_api):
|
283
|
-
"""Sets the version_api of this V1Agent.
|
284
|
-
|
285
|
-
|
286
|
-
:param version_api: The version_api of this V1Agent. # noqa: E501
|
287
|
-
:type version_api: object
|
288
|
-
"""
|
289
|
-
|
290
|
-
self._version_api = version_api
|
291
|
-
|
292
|
-
@property
|
293
|
-
def version(self):
|
294
|
-
"""Gets the version of this V1Agent. # noqa: E501
|
295
|
-
|
296
|
-
|
297
|
-
:return: The version of this V1Agent. # noqa: E501
|
298
|
-
:rtype: str
|
299
|
-
"""
|
300
|
-
return self._version
|
301
|
-
|
302
|
-
@version.setter
|
303
|
-
def version(self, version):
|
304
|
-
"""Sets the version of this V1Agent.
|
305
|
-
|
306
|
-
|
307
|
-
:param version: The version of this V1Agent. # noqa: E501
|
308
|
-
:type version: str
|
309
|
-
"""
|
310
|
-
|
311
|
-
self._version = version
|
312
|
-
|
313
|
-
@property
|
314
|
-
def content(self):
|
315
|
-
"""Gets the content of this V1Agent. # noqa: E501
|
316
|
-
|
317
|
-
|
318
|
-
:return: The content of this V1Agent. # noqa: E501
|
319
|
-
:rtype: str
|
320
|
-
"""
|
321
|
-
return self._content
|
322
|
-
|
323
|
-
@content.setter
|
324
|
-
def content(self, content):
|
325
|
-
"""Sets the content of this V1Agent.
|
326
|
-
|
327
|
-
|
328
|
-
:param content: The content of this V1Agent. # noqa: E501
|
329
|
-
:type content: str
|
330
|
-
"""
|
331
|
-
|
332
|
-
self._content = content
|
333
|
-
|
334
|
-
@property
|
335
|
-
def created_at(self):
|
336
|
-
"""Gets the created_at of this V1Agent. # noqa: E501
|
337
|
-
|
338
|
-
|
339
|
-
:return: The created_at of this V1Agent. # noqa: E501
|
340
|
-
:rtype: datetime
|
341
|
-
"""
|
342
|
-
return self._created_at
|
343
|
-
|
344
|
-
@created_at.setter
|
345
|
-
def created_at(self, created_at):
|
346
|
-
"""Sets the created_at of this V1Agent.
|
347
|
-
|
348
|
-
|
349
|
-
:param created_at: The created_at of this V1Agent. # noqa: E501
|
350
|
-
:type created_at: datetime
|
351
|
-
"""
|
352
|
-
|
353
|
-
self._created_at = created_at
|
354
|
-
|
355
|
-
@property
|
356
|
-
def updated_at(self):
|
357
|
-
"""Gets the updated_at of this V1Agent. # noqa: E501
|
358
|
-
|
359
|
-
|
360
|
-
:return: The updated_at of this V1Agent. # noqa: E501
|
361
|
-
:rtype: datetime
|
362
|
-
"""
|
363
|
-
return self._updated_at
|
364
|
-
|
365
|
-
@updated_at.setter
|
366
|
-
def updated_at(self, updated_at):
|
367
|
-
"""Sets the updated_at of this V1Agent.
|
368
|
-
|
369
|
-
|
370
|
-
:param updated_at: The updated_at of this V1Agent. # noqa: E501
|
371
|
-
:type updated_at: datetime
|
372
|
-
"""
|
373
|
-
|
374
|
-
self._updated_at = updated_at
|
375
|
-
|
376
|
-
@property
|
377
|
-
def status(self):
|
378
|
-
"""Gets the status of this V1Agent. # noqa: E501
|
379
|
-
|
380
|
-
|
381
|
-
:return: The status of this V1Agent. # noqa: E501
|
382
|
-
:rtype: V1Statuses
|
383
|
-
"""
|
384
|
-
return self._status
|
385
|
-
|
386
|
-
@status.setter
|
387
|
-
def status(self, status):
|
388
|
-
"""Sets the status of this V1Agent.
|
389
|
-
|
390
|
-
|
391
|
-
:param status: The status of this V1Agent. # noqa: E501
|
392
|
-
:type status: V1Statuses
|
393
|
-
"""
|
394
|
-
|
395
|
-
self._status = status
|
396
|
-
|
397
|
-
@property
|
398
|
-
def is_replica(self):
|
399
|
-
"""Gets the is_replica of this V1Agent. # noqa: E501
|
400
|
-
|
401
|
-
|
402
|
-
:return: The is_replica of this V1Agent. # noqa: E501
|
403
|
-
:rtype: bool
|
404
|
-
"""
|
405
|
-
return self._is_replica
|
406
|
-
|
407
|
-
@is_replica.setter
|
408
|
-
def is_replica(self, is_replica):
|
409
|
-
"""Sets the is_replica of this V1Agent.
|
410
|
-
|
411
|
-
|
412
|
-
:param is_replica: The is_replica of this V1Agent. # noqa: E501
|
413
|
-
:type is_replica: bool
|
414
|
-
"""
|
415
|
-
|
416
|
-
self._is_replica = is_replica
|
417
|
-
|
418
|
-
@property
|
419
|
-
def is_ui_managed(self):
|
420
|
-
"""Gets the is_ui_managed of this V1Agent. # noqa: E501
|
421
|
-
|
422
|
-
|
423
|
-
:return: The is_ui_managed of this V1Agent. # noqa: E501
|
424
|
-
:rtype: bool
|
425
|
-
"""
|
426
|
-
return self._is_ui_managed
|
427
|
-
|
428
|
-
@is_ui_managed.setter
|
429
|
-
def is_ui_managed(self, is_ui_managed):
|
430
|
-
"""Sets the is_ui_managed of this V1Agent.
|
431
|
-
|
432
|
-
|
433
|
-
:param is_ui_managed: The is_ui_managed of this V1Agent. # noqa: E501
|
434
|
-
:type is_ui_managed: bool
|
435
|
-
"""
|
436
|
-
|
437
|
-
self._is_ui_managed = is_ui_managed
|
438
|
-
|
439
|
-
@property
|
440
|
-
def settings(self):
|
441
|
-
"""Gets the settings of this V1Agent. # noqa: E501
|
442
|
-
|
443
|
-
|
444
|
-
:return: The settings of this V1Agent. # noqa: E501
|
445
|
-
:rtype: object
|
446
|
-
"""
|
447
|
-
return self._settings
|
448
|
-
|
449
|
-
@settings.setter
|
450
|
-
def settings(self, settings):
|
451
|
-
"""Sets the settings of this V1Agent.
|
452
|
-
|
453
|
-
|
454
|
-
:param settings: The settings of this V1Agent. # noqa: E501
|
455
|
-
:type settings: object
|
456
|
-
"""
|
457
|
-
|
458
|
-
self._settings = settings
|
459
|
-
|
460
|
-
def to_dict(self, serialize=False):
|
461
|
-
"""Returns the model properties as a dict"""
|
462
|
-
result = {}
|
463
|
-
|
464
|
-
def convert(x):
|
465
|
-
if hasattr(x, "to_dict"):
|
466
|
-
args = getfullargspec(x.to_dict).args
|
467
|
-
if len(args) == 1:
|
468
|
-
return x.to_dict()
|
469
|
-
else:
|
470
|
-
return x.to_dict(serialize)
|
471
|
-
else:
|
472
|
-
return x
|
473
|
-
|
474
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
475
|
-
value = getattr(self, attr)
|
476
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
477
|
-
if isinstance(value, list):
|
478
|
-
result[attr] = list(map(
|
479
|
-
lambda x: convert(x),
|
480
|
-
value
|
481
|
-
))
|
482
|
-
elif isinstance(value, dict):
|
483
|
-
result[attr] = dict(map(
|
484
|
-
lambda item: (item[0], convert(item[1])),
|
485
|
-
value.items()
|
486
|
-
))
|
487
|
-
else:
|
488
|
-
result[attr] = convert(value)
|
489
|
-
|
490
|
-
return result
|
491
|
-
|
492
|
-
def to_str(self):
|
493
|
-
"""Returns the string representation of the model"""
|
494
|
-
return pprint.pformat(self.to_dict())
|
495
|
-
|
496
|
-
def __repr__(self):
|
497
|
-
"""For `print` and `pprint`"""
|
498
|
-
return self.to_str()
|
499
|
-
|
500
|
-
def __eq__(self, other):
|
501
|
-
"""Returns true if both objects are equal"""
|
502
|
-
if not isinstance(other, V1Agent):
|
503
|
-
return False
|
504
|
-
|
505
|
-
return self.to_dict() == other.to_dict()
|
506
|
-
|
507
|
-
def __ne__(self, other):
|
508
|
-
"""Returns true if both objects are not equal"""
|
509
|
-
if not isinstance(other, V1Agent):
|
510
|
-
return True
|
32
|
+
uuid: Optional[StrictStr] = None
|
33
|
+
name: Optional[StrictStr] = None
|
34
|
+
description: Optional[StrictStr] = None
|
35
|
+
tags: Optional[conlist(StrictStr)] = None
|
36
|
+
live_state: Optional[StrictInt] = None
|
37
|
+
namespace: Optional[StrictStr] = None
|
38
|
+
version_api: Optional[Dict[str, Any]] = None
|
39
|
+
version: Optional[StrictStr] = None
|
40
|
+
content: Optional[StrictStr] = None
|
41
|
+
created_at: Optional[datetime] = None
|
42
|
+
updated_at: Optional[datetime] = None
|
43
|
+
status: Optional[V1Statuses] = None
|
44
|
+
status_conditions: Optional[conlist(V1StatusCondition)] = None
|
45
|
+
is_replica: Optional[StrictBool] = None
|
46
|
+
is_ui_managed: Optional[StrictBool] = None
|
47
|
+
settings: Optional[Dict[str, Any]] = None
|
48
|
+
__properties = ["uuid", "name", "description", "tags", "live_state", "namespace", "version_api", "version", "content", "created_at", "updated_at", "status", "status_conditions", "is_replica", "is_ui_managed", "settings"]
|
49
|
+
|
50
|
+
class Config:
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
validate_assignment = True
|
53
|
+
|
54
|
+
def to_str(self) -> str:
|
55
|
+
"""Returns the string representation of the model using alias"""
|
56
|
+
return pprint.pformat(self.dict(by_alias=True))
|
57
|
+
|
58
|
+
def to_json(self) -> str:
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
60
|
+
return json.dumps(self.to_dict())
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_json(cls, json_str: str) -> V1Agent:
|
64
|
+
"""Create an instance of V1Agent from a JSON string"""
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the dictionary representation of the model using alias"""
|
69
|
+
_dict = self.dict(by_alias=True,
|
70
|
+
exclude={
|
71
|
+
},
|
72
|
+
exclude_none=True)
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of each item in status_conditions (list)
|
74
|
+
_items = []
|
75
|
+
if self.status_conditions:
|
76
|
+
for _item in self.status_conditions:
|
77
|
+
if _item:
|
78
|
+
_items.append(_item.to_dict())
|
79
|
+
_dict['status_conditions'] = _items
|
80
|
+
return _dict
|
81
|
+
|
82
|
+
@classmethod
|
83
|
+
def from_dict(cls, obj: dict) -> V1Agent:
|
84
|
+
"""Create an instance of V1Agent from a dict"""
|
85
|
+
if obj is None:
|
86
|
+
return None
|
87
|
+
|
88
|
+
if type(obj) is not dict:
|
89
|
+
return V1Agent.parse_obj(obj)
|
90
|
+
|
91
|
+
_obj = V1Agent.parse_obj({
|
92
|
+
"uuid": obj.get("uuid"),
|
93
|
+
"name": obj.get("name"),
|
94
|
+
"description": obj.get("description"),
|
95
|
+
"tags": obj.get("tags"),
|
96
|
+
"live_state": obj.get("live_state"),
|
97
|
+
"namespace": obj.get("namespace"),
|
98
|
+
"version_api": obj.get("version_api"),
|
99
|
+
"version": obj.get("version"),
|
100
|
+
"content": obj.get("content"),
|
101
|
+
"created_at": obj.get("created_at"),
|
102
|
+
"updated_at": obj.get("updated_at"),
|
103
|
+
"status": obj.get("status"),
|
104
|
+
"status_conditions": [V1StatusCondition.from_dict(_item) for _item in obj.get("status_conditions")] if obj.get("status_conditions") is not None else None,
|
105
|
+
"is_replica": obj.get("is_replica"),
|
106
|
+
"is_ui_managed": obj.get("is_ui_managed"),
|
107
|
+
"settings": obj.get("settings")
|
108
|
+
})
|
109
|
+
return _obj
|
511
110
|
|
512
|
-
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Polyaxon SDKs and REST API specification.
|
5
|
+
|
6
|
+
# noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
9
|
+
Contact: contact@polyaxon.com
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
from inspect import getfullargspec
|
18
|
+
import pprint
|
19
|
+
import re # noqa: F401
|
20
|
+
import json
|
21
|
+
|
22
|
+
|
23
|
+
from typing import Any, Dict, Optional
|
24
|
+
from pydantic import BaseModel, StrictStr
|
25
|
+
|
26
|
+
class V1AgentReconcileBodyRequest(BaseModel):
|
27
|
+
"""
|
28
|
+
V1AgentReconcileBodyRequest
|
29
|
+
"""
|
30
|
+
owner: Optional[StrictStr] = None
|
31
|
+
uuid: Optional[StrictStr] = None
|
32
|
+
reconcile: Optional[Dict[str, Any]] = None
|
33
|
+
__properties = ["owner", "uuid", "reconcile"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> V1AgentReconcileBodyRequest:
|
49
|
+
"""Create an instance of V1AgentReconcileBodyRequest from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
return _dict
|
59
|
+
|
60
|
+
@classmethod
|
61
|
+
def from_dict(cls, obj: dict) -> V1AgentReconcileBodyRequest:
|
62
|
+
"""Create an instance of V1AgentReconcileBodyRequest from a dict"""
|
63
|
+
if obj is None:
|
64
|
+
return None
|
65
|
+
|
66
|
+
if type(obj) is not dict:
|
67
|
+
return V1AgentReconcileBodyRequest.parse_obj(obj)
|
68
|
+
|
69
|
+
_obj = V1AgentReconcileBodyRequest.parse_obj({
|
70
|
+
"owner": obj.get("owner"),
|
71
|
+
"uuid": obj.get("uuid"),
|
72
|
+
"reconcile": obj.get("reconcile")
|
73
|
+
})
|
74
|
+
return _obj
|
75
|
+
|