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,590 +1,150 @@
|
|
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
|
39
|
-
|
20
|
+
import json
|
40
21
|
|
41
|
-
class V1Component(object):
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
22
|
|
45
|
-
|
46
|
-
|
23
|
+
from typing import Any, Dict, List, Optional
|
24
|
+
from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictStr, conlist
|
25
|
+
from polyaxon_sdk.models.v1_build import V1Build
|
26
|
+
from polyaxon_sdk.models.v1_cache import V1Cache
|
27
|
+
from polyaxon_sdk.models.v1_hook import V1Hook
|
28
|
+
from polyaxon_sdk.models.v1_io import V1IO
|
29
|
+
from polyaxon_sdk.models.v1_plugins import V1Plugins
|
30
|
+
from polyaxon_sdk.models.v1_template import V1Template
|
31
|
+
from polyaxon_sdk.models.v1_termination import V1Termination
|
47
32
|
|
33
|
+
class V1Component(BaseModel):
|
48
34
|
"""
|
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.
|
35
|
+
V1Component
|
54
36
|
"""
|
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
|
-
self.
|
104
|
-
|
105
|
-
|
106
|
-
self.
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
self.
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
self.
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
if
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
if
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
return self._version
|
169
|
-
|
170
|
-
@version.setter
|
171
|
-
def version(self, version):
|
172
|
-
"""Sets the version of this V1Component.
|
173
|
-
|
174
|
-
|
175
|
-
:param version: The version of this V1Component. # noqa: E501
|
176
|
-
:type version: float
|
177
|
-
"""
|
178
|
-
|
179
|
-
self._version = version
|
180
|
-
|
181
|
-
@property
|
182
|
-
def kind(self):
|
183
|
-
"""Gets the kind of this V1Component. # noqa: E501
|
184
|
-
|
185
|
-
|
186
|
-
:return: The kind of this V1Component. # noqa: E501
|
187
|
-
:rtype: str
|
188
|
-
"""
|
189
|
-
return self._kind
|
190
|
-
|
191
|
-
@kind.setter
|
192
|
-
def kind(self, kind):
|
193
|
-
"""Sets the kind of this V1Component.
|
194
|
-
|
195
|
-
|
196
|
-
:param kind: The kind of this V1Component. # noqa: E501
|
197
|
-
:type kind: str
|
198
|
-
"""
|
199
|
-
|
200
|
-
self._kind = kind
|
201
|
-
|
202
|
-
@property
|
203
|
-
def name(self):
|
204
|
-
"""Gets the name of this V1Component. # noqa: E501
|
205
|
-
|
206
|
-
|
207
|
-
:return: The name of this V1Component. # noqa: E501
|
208
|
-
:rtype: str
|
209
|
-
"""
|
210
|
-
return self._name
|
211
|
-
|
212
|
-
@name.setter
|
213
|
-
def name(self, name):
|
214
|
-
"""Sets the name of this V1Component.
|
215
|
-
|
216
|
-
|
217
|
-
:param name: The name of this V1Component. # noqa: E501
|
218
|
-
:type name: str
|
219
|
-
"""
|
220
|
-
|
221
|
-
self._name = name
|
222
|
-
|
223
|
-
@property
|
224
|
-
def description(self):
|
225
|
-
"""Gets the description of this V1Component. # noqa: E501
|
226
|
-
|
227
|
-
|
228
|
-
:return: The description of this V1Component. # noqa: E501
|
229
|
-
:rtype: str
|
230
|
-
"""
|
231
|
-
return self._description
|
232
|
-
|
233
|
-
@description.setter
|
234
|
-
def description(self, description):
|
235
|
-
"""Sets the description of this V1Component.
|
236
|
-
|
237
|
-
|
238
|
-
:param description: The description of this V1Component. # noqa: E501
|
239
|
-
:type description: str
|
240
|
-
"""
|
241
|
-
|
242
|
-
self._description = description
|
243
|
-
|
244
|
-
@property
|
245
|
-
def tags(self):
|
246
|
-
"""Gets the tags of this V1Component. # noqa: E501
|
247
|
-
|
248
|
-
|
249
|
-
:return: The tags of this V1Component. # noqa: E501
|
250
|
-
:rtype: list[str]
|
251
|
-
"""
|
252
|
-
return self._tags
|
253
|
-
|
254
|
-
@tags.setter
|
255
|
-
def tags(self, tags):
|
256
|
-
"""Sets the tags of this V1Component.
|
257
|
-
|
258
|
-
|
259
|
-
:param tags: The tags of this V1Component. # noqa: E501
|
260
|
-
:type tags: list[str]
|
261
|
-
"""
|
262
|
-
|
263
|
-
self._tags = tags
|
264
|
-
|
265
|
-
@property
|
266
|
-
def presets(self):
|
267
|
-
"""Gets the presets of this V1Component. # noqa: E501
|
268
|
-
|
269
|
-
|
270
|
-
:return: The presets of this V1Component. # noqa: E501
|
271
|
-
:rtype: list[str]
|
272
|
-
"""
|
273
|
-
return self._presets
|
274
|
-
|
275
|
-
@presets.setter
|
276
|
-
def presets(self, presets):
|
277
|
-
"""Sets the presets of this V1Component.
|
278
|
-
|
279
|
-
|
280
|
-
:param presets: The presets of this V1Component. # noqa: E501
|
281
|
-
:type presets: list[str]
|
282
|
-
"""
|
283
|
-
|
284
|
-
self._presets = presets
|
285
|
-
|
286
|
-
@property
|
287
|
-
def queue(self):
|
288
|
-
"""Gets the queue of this V1Component. # noqa: E501
|
289
|
-
|
290
|
-
|
291
|
-
:return: The queue of this V1Component. # noqa: E501
|
292
|
-
:rtype: str
|
293
|
-
"""
|
294
|
-
return self._queue
|
295
|
-
|
296
|
-
@queue.setter
|
297
|
-
def queue(self, queue):
|
298
|
-
"""Sets the queue of this V1Component.
|
299
|
-
|
300
|
-
|
301
|
-
:param queue: The queue of this V1Component. # noqa: E501
|
302
|
-
:type queue: str
|
303
|
-
"""
|
304
|
-
|
305
|
-
self._queue = queue
|
306
|
-
|
307
|
-
@property
|
308
|
-
def cache(self):
|
309
|
-
"""Gets the cache of this V1Component. # noqa: E501
|
310
|
-
|
311
|
-
|
312
|
-
:return: The cache of this V1Component. # noqa: E501
|
313
|
-
:rtype: V1Cache
|
314
|
-
"""
|
315
|
-
return self._cache
|
316
|
-
|
317
|
-
@cache.setter
|
318
|
-
def cache(self, cache):
|
319
|
-
"""Sets the cache of this V1Component.
|
320
|
-
|
321
|
-
|
322
|
-
:param cache: The cache of this V1Component. # noqa: E501
|
323
|
-
:type cache: V1Cache
|
324
|
-
"""
|
325
|
-
|
326
|
-
self._cache = cache
|
327
|
-
|
328
|
-
@property
|
329
|
-
def termination(self):
|
330
|
-
"""Gets the termination of this V1Component. # noqa: E501
|
331
|
-
|
332
|
-
|
333
|
-
:return: The termination of this V1Component. # noqa: E501
|
334
|
-
:rtype: V1Termination
|
335
|
-
"""
|
336
|
-
return self._termination
|
337
|
-
|
338
|
-
@termination.setter
|
339
|
-
def termination(self, termination):
|
340
|
-
"""Sets the termination of this V1Component.
|
341
|
-
|
342
|
-
|
343
|
-
:param termination: The termination of this V1Component. # noqa: E501
|
344
|
-
:type termination: V1Termination
|
345
|
-
"""
|
346
|
-
|
347
|
-
self._termination = termination
|
348
|
-
|
349
|
-
@property
|
350
|
-
def plugins(self):
|
351
|
-
"""Gets the plugins of this V1Component. # noqa: E501
|
352
|
-
|
353
|
-
|
354
|
-
:return: The plugins of this V1Component. # noqa: E501
|
355
|
-
:rtype: V1Plugins
|
356
|
-
"""
|
357
|
-
return self._plugins
|
358
|
-
|
359
|
-
@plugins.setter
|
360
|
-
def plugins(self, plugins):
|
361
|
-
"""Sets the plugins of this V1Component.
|
362
|
-
|
363
|
-
|
364
|
-
:param plugins: The plugins of this V1Component. # noqa: E501
|
365
|
-
:type plugins: V1Plugins
|
366
|
-
"""
|
367
|
-
|
368
|
-
self._plugins = plugins
|
369
|
-
|
370
|
-
@property
|
371
|
-
def hooks(self):
|
372
|
-
"""Gets the hooks of this V1Component. # noqa: E501
|
373
|
-
|
374
|
-
|
375
|
-
:return: The hooks of this V1Component. # noqa: E501
|
376
|
-
:rtype: list[V1Hook]
|
377
|
-
"""
|
378
|
-
return self._hooks
|
379
|
-
|
380
|
-
@hooks.setter
|
381
|
-
def hooks(self, hooks):
|
382
|
-
"""Sets the hooks of this V1Component.
|
383
|
-
|
384
|
-
|
385
|
-
:param hooks: The hooks of this V1Component. # noqa: E501
|
386
|
-
:type hooks: list[V1Hook]
|
387
|
-
"""
|
388
|
-
|
389
|
-
self._hooks = hooks
|
390
|
-
|
391
|
-
@property
|
392
|
-
def inputs(self):
|
393
|
-
"""Gets the inputs of this V1Component. # noqa: E501
|
394
|
-
|
395
|
-
|
396
|
-
:return: The inputs of this V1Component. # noqa: E501
|
397
|
-
:rtype: list[V1IO]
|
398
|
-
"""
|
399
|
-
return self._inputs
|
400
|
-
|
401
|
-
@inputs.setter
|
402
|
-
def inputs(self, inputs):
|
403
|
-
"""Sets the inputs of this V1Component.
|
404
|
-
|
405
|
-
|
406
|
-
:param inputs: The inputs of this V1Component. # noqa: E501
|
407
|
-
:type inputs: list[V1IO]
|
408
|
-
"""
|
409
|
-
|
410
|
-
self._inputs = inputs
|
411
|
-
|
412
|
-
@property
|
413
|
-
def outputs(self):
|
414
|
-
"""Gets the outputs of this V1Component. # noqa: E501
|
415
|
-
|
416
|
-
|
417
|
-
:return: The outputs of this V1Component. # noqa: E501
|
418
|
-
:rtype: list[V1IO]
|
419
|
-
"""
|
420
|
-
return self._outputs
|
421
|
-
|
422
|
-
@outputs.setter
|
423
|
-
def outputs(self, outputs):
|
424
|
-
"""Sets the outputs of this V1Component.
|
425
|
-
|
426
|
-
|
427
|
-
:param outputs: The outputs of this V1Component. # noqa: E501
|
428
|
-
:type outputs: list[V1IO]
|
429
|
-
"""
|
430
|
-
|
431
|
-
self._outputs = outputs
|
432
|
-
|
433
|
-
@property
|
434
|
-
def build(self):
|
435
|
-
"""Gets the build of this V1Component. # noqa: E501
|
436
|
-
|
437
|
-
|
438
|
-
:return: The build of this V1Component. # noqa: E501
|
439
|
-
:rtype: V1Build
|
440
|
-
"""
|
441
|
-
return self._build
|
442
|
-
|
443
|
-
@build.setter
|
444
|
-
def build(self, build):
|
445
|
-
"""Sets the build of this V1Component.
|
446
|
-
|
447
|
-
|
448
|
-
:param build: The build of this V1Component. # noqa: E501
|
449
|
-
:type build: V1Build
|
450
|
-
"""
|
451
|
-
|
452
|
-
self._build = build
|
453
|
-
|
454
|
-
@property
|
455
|
-
def run(self):
|
456
|
-
"""Gets the run of this V1Component. # noqa: E501
|
457
|
-
|
458
|
-
|
459
|
-
:return: The run of this V1Component. # noqa: E501
|
460
|
-
:rtype: object
|
461
|
-
"""
|
462
|
-
return self._run
|
463
|
-
|
464
|
-
@run.setter
|
465
|
-
def run(self, run):
|
466
|
-
"""Sets the run of this V1Component.
|
467
|
-
|
468
|
-
|
469
|
-
:param run: The run of this V1Component. # noqa: E501
|
470
|
-
:type run: object
|
471
|
-
"""
|
472
|
-
|
473
|
-
self._run = run
|
474
|
-
|
475
|
-
@property
|
476
|
-
def template(self):
|
477
|
-
"""Gets the template of this V1Component. # noqa: E501
|
478
|
-
|
479
|
-
|
480
|
-
:return: The template of this V1Component. # noqa: E501
|
481
|
-
:rtype: V1Template
|
482
|
-
"""
|
483
|
-
return self._template
|
484
|
-
|
485
|
-
@template.setter
|
486
|
-
def template(self, template):
|
487
|
-
"""Sets the template of this V1Component.
|
488
|
-
|
489
|
-
|
490
|
-
:param template: The template of this V1Component. # noqa: E501
|
491
|
-
:type template: V1Template
|
492
|
-
"""
|
493
|
-
|
494
|
-
self._template = template
|
495
|
-
|
496
|
-
@property
|
497
|
-
def is_approved(self):
|
498
|
-
"""Gets the is_approved of this V1Component. # noqa: E501
|
499
|
-
|
500
|
-
|
501
|
-
:return: The is_approved of this V1Component. # noqa: E501
|
502
|
-
:rtype: bool
|
503
|
-
"""
|
504
|
-
return self._is_approved
|
505
|
-
|
506
|
-
@is_approved.setter
|
507
|
-
def is_approved(self, is_approved):
|
508
|
-
"""Sets the is_approved of this V1Component.
|
509
|
-
|
510
|
-
|
511
|
-
:param is_approved: The is_approved of this V1Component. # noqa: E501
|
512
|
-
:type is_approved: bool
|
513
|
-
"""
|
514
|
-
|
515
|
-
self._is_approved = is_approved
|
516
|
-
|
517
|
-
@property
|
518
|
-
def cost(self):
|
519
|
-
"""Gets the cost of this V1Component. # noqa: E501
|
520
|
-
|
521
|
-
|
522
|
-
:return: The cost of this V1Component. # noqa: E501
|
523
|
-
:rtype: float
|
524
|
-
"""
|
525
|
-
return self._cost
|
526
|
-
|
527
|
-
@cost.setter
|
528
|
-
def cost(self, cost):
|
529
|
-
"""Sets the cost of this V1Component.
|
530
|
-
|
531
|
-
|
532
|
-
:param cost: The cost of this V1Component. # noqa: E501
|
533
|
-
:type cost: float
|
534
|
-
"""
|
535
|
-
|
536
|
-
self._cost = cost
|
537
|
-
|
538
|
-
def to_dict(self, serialize=False):
|
539
|
-
"""Returns the model properties as a dict"""
|
540
|
-
result = {}
|
541
|
-
|
542
|
-
def convert(x):
|
543
|
-
if hasattr(x, "to_dict"):
|
544
|
-
args = getfullargspec(x.to_dict).args
|
545
|
-
if len(args) == 1:
|
546
|
-
return x.to_dict()
|
547
|
-
else:
|
548
|
-
return x.to_dict(serialize)
|
549
|
-
else:
|
550
|
-
return x
|
551
|
-
|
552
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
553
|
-
value = getattr(self, attr)
|
554
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
555
|
-
if isinstance(value, list):
|
556
|
-
result[attr] = list(map(
|
557
|
-
lambda x: convert(x),
|
558
|
-
value
|
559
|
-
))
|
560
|
-
elif isinstance(value, dict):
|
561
|
-
result[attr] = dict(map(
|
562
|
-
lambda item: (item[0], convert(item[1])),
|
563
|
-
value.items()
|
564
|
-
))
|
565
|
-
else:
|
566
|
-
result[attr] = convert(value)
|
567
|
-
|
568
|
-
return result
|
569
|
-
|
570
|
-
def to_str(self):
|
571
|
-
"""Returns the string representation of the model"""
|
572
|
-
return pprint.pformat(self.to_dict())
|
573
|
-
|
574
|
-
def __repr__(self):
|
575
|
-
"""For `print` and `pprint`"""
|
576
|
-
return self.to_str()
|
577
|
-
|
578
|
-
def __eq__(self, other):
|
579
|
-
"""Returns true if both objects are equal"""
|
580
|
-
if not isinstance(other, V1Component):
|
581
|
-
return False
|
582
|
-
|
583
|
-
return self.to_dict() == other.to_dict()
|
584
|
-
|
585
|
-
def __ne__(self, other):
|
586
|
-
"""Returns true if both objects are not equal"""
|
587
|
-
if not isinstance(other, V1Component):
|
588
|
-
return True
|
37
|
+
version: Optional[StrictFloat] = None
|
38
|
+
kind: Optional[StrictStr] = None
|
39
|
+
name: Optional[StrictStr] = None
|
40
|
+
description: Optional[StrictStr] = None
|
41
|
+
tags: Optional[conlist(StrictStr)] = None
|
42
|
+
presets: Optional[conlist(StrictStr)] = None
|
43
|
+
queue: Optional[StrictStr] = None
|
44
|
+
cache: Optional[V1Cache] = None
|
45
|
+
namespace: Optional[StrictStr] = None
|
46
|
+
termination: Optional[V1Termination] = None
|
47
|
+
plugins: Optional[V1Plugins] = None
|
48
|
+
hooks: Optional[conlist(V1Hook)] = None
|
49
|
+
inputs: Optional[conlist(V1IO)] = None
|
50
|
+
outputs: Optional[conlist(V1IO)] = None
|
51
|
+
build: Optional[V1Build] = None
|
52
|
+
run: Optional[Dict[str, Any]] = None
|
53
|
+
template: Optional[V1Template] = None
|
54
|
+
is_approved: Optional[StrictBool] = Field(None, alias="isApproved")
|
55
|
+
cost: Optional[StrictFloat] = None
|
56
|
+
__properties = ["version", "kind", "name", "description", "tags", "presets", "queue", "cache", "namespace", "termination", "plugins", "hooks", "inputs", "outputs", "build", "run", "template", "isApproved", "cost"]
|
57
|
+
|
58
|
+
class Config:
|
59
|
+
allow_population_by_field_name = True
|
60
|
+
validate_assignment = True
|
61
|
+
|
62
|
+
def to_str(self) -> str:
|
63
|
+
"""Returns the string representation of the model using alias"""
|
64
|
+
return pprint.pformat(self.dict(by_alias=True))
|
65
|
+
|
66
|
+
def to_json(self) -> str:
|
67
|
+
"""Returns the JSON representation of the model using alias"""
|
68
|
+
return json.dumps(self.to_dict())
|
69
|
+
|
70
|
+
@classmethod
|
71
|
+
def from_json(cls, json_str: str) -> V1Component:
|
72
|
+
"""Create an instance of V1Component from a JSON string"""
|
73
|
+
return cls.from_dict(json.loads(json_str))
|
74
|
+
|
75
|
+
def to_dict(self):
|
76
|
+
"""Returns the dictionary representation of the model using alias"""
|
77
|
+
_dict = self.dict(by_alias=True,
|
78
|
+
exclude={
|
79
|
+
},
|
80
|
+
exclude_none=True)
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of cache
|
82
|
+
if self.cache:
|
83
|
+
_dict['cache'] = self.cache.to_dict()
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of termination
|
85
|
+
if self.termination:
|
86
|
+
_dict['termination'] = self.termination.to_dict()
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of plugins
|
88
|
+
if self.plugins:
|
89
|
+
_dict['plugins'] = self.plugins.to_dict()
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of each item in hooks (list)
|
91
|
+
_items = []
|
92
|
+
if self.hooks:
|
93
|
+
for _item in self.hooks:
|
94
|
+
if _item:
|
95
|
+
_items.append(_item.to_dict())
|
96
|
+
_dict['hooks'] = _items
|
97
|
+
# override the default output from pydantic by calling `to_dict()` of each item in inputs (list)
|
98
|
+
_items = []
|
99
|
+
if self.inputs:
|
100
|
+
for _item in self.inputs:
|
101
|
+
if _item:
|
102
|
+
_items.append(_item.to_dict())
|
103
|
+
_dict['inputs'] = _items
|
104
|
+
# override the default output from pydantic by calling `to_dict()` of each item in outputs (list)
|
105
|
+
_items = []
|
106
|
+
if self.outputs:
|
107
|
+
for _item in self.outputs:
|
108
|
+
if _item:
|
109
|
+
_items.append(_item.to_dict())
|
110
|
+
_dict['outputs'] = _items
|
111
|
+
# override the default output from pydantic by calling `to_dict()` of build
|
112
|
+
if self.build:
|
113
|
+
_dict['build'] = self.build.to_dict()
|
114
|
+
# override the default output from pydantic by calling `to_dict()` of template
|
115
|
+
if self.template:
|
116
|
+
_dict['template'] = self.template.to_dict()
|
117
|
+
return _dict
|
118
|
+
|
119
|
+
@classmethod
|
120
|
+
def from_dict(cls, obj: dict) -> V1Component:
|
121
|
+
"""Create an instance of V1Component from a dict"""
|
122
|
+
if obj is None:
|
123
|
+
return None
|
124
|
+
|
125
|
+
if type(obj) is not dict:
|
126
|
+
return V1Component.parse_obj(obj)
|
127
|
+
|
128
|
+
_obj = V1Component.parse_obj({
|
129
|
+
"version": obj.get("version"),
|
130
|
+
"kind": obj.get("kind"),
|
131
|
+
"name": obj.get("name"),
|
132
|
+
"description": obj.get("description"),
|
133
|
+
"tags": obj.get("tags"),
|
134
|
+
"presets": obj.get("presets"),
|
135
|
+
"queue": obj.get("queue"),
|
136
|
+
"cache": V1Cache.from_dict(obj.get("cache")) if obj.get("cache") is not None else None,
|
137
|
+
"namespace": obj.get("namespace"),
|
138
|
+
"termination": V1Termination.from_dict(obj.get("termination")) if obj.get("termination") is not None else None,
|
139
|
+
"plugins": V1Plugins.from_dict(obj.get("plugins")) if obj.get("plugins") is not None else None,
|
140
|
+
"hooks": [V1Hook.from_dict(_item) for _item in obj.get("hooks")] if obj.get("hooks") is not None else None,
|
141
|
+
"inputs": [V1IO.from_dict(_item) for _item in obj.get("inputs")] if obj.get("inputs") is not None else None,
|
142
|
+
"outputs": [V1IO.from_dict(_item) for _item in obj.get("outputs")] if obj.get("outputs") is not None else None,
|
143
|
+
"build": V1Build.from_dict(obj.get("build")) if obj.get("build") is not None else None,
|
144
|
+
"run": obj.get("run"),
|
145
|
+
"template": V1Template.from_dict(obj.get("template")) if obj.get("template") is not None else None,
|
146
|
+
"is_approved": obj.get("isApproved"),
|
147
|
+
"cost": obj.get("cost")
|
148
|
+
})
|
149
|
+
return _obj
|
589
150
|
|
590
|
-
return self.to_dict() != other.to_dict()
|