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,304 +1,95 @@
|
|
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, List, Optional
|
24
|
+
from pydantic import BaseModel, StrictInt, StrictStr, conlist
|
25
|
+
from polyaxon_sdk.models.v1_environment import V1Environment
|
26
|
+
from polyaxon_sdk.models.v1_init import V1Init
|
40
27
|
|
41
|
-
class V1KFReplica(
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
|
-
|
45
|
-
Do not edit the class manually.
|
28
|
+
class V1KFReplica(BaseModel):
|
46
29
|
"""
|
47
|
-
|
48
|
-
"""
|
49
|
-
Attributes:
|
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
|
+
V1KFReplica
|
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
|
-
self.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
self.
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
if
|
93
|
-
self.
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
:param replicas: The replicas of this V1KFReplica. # noqa: E501
|
121
|
-
:type replicas: int
|
122
|
-
"""
|
123
|
-
|
124
|
-
self._replicas = replicas
|
125
|
-
|
126
|
-
@property
|
127
|
-
def environment(self):
|
128
|
-
"""Gets the environment of this V1KFReplica. # noqa: E501
|
129
|
-
|
130
|
-
|
131
|
-
:return: The environment of this V1KFReplica. # noqa: E501
|
132
|
-
:rtype: V1Environment
|
133
|
-
"""
|
134
|
-
return self._environment
|
135
|
-
|
136
|
-
@environment.setter
|
137
|
-
def environment(self, environment):
|
138
|
-
"""Sets the environment of this V1KFReplica.
|
139
|
-
|
140
|
-
|
141
|
-
:param environment: The environment of this V1KFReplica. # noqa: E501
|
142
|
-
:type environment: V1Environment
|
143
|
-
"""
|
144
|
-
|
145
|
-
self._environment = environment
|
146
|
-
|
147
|
-
@property
|
148
|
-
def connections(self):
|
149
|
-
"""Gets the connections of this V1KFReplica. # noqa: E501
|
150
|
-
|
151
|
-
|
152
|
-
:return: The connections of this V1KFReplica. # noqa: E501
|
153
|
-
:rtype: list[str]
|
154
|
-
"""
|
155
|
-
return self._connections
|
156
|
-
|
157
|
-
@connections.setter
|
158
|
-
def connections(self, connections):
|
159
|
-
"""Sets the connections of this V1KFReplica.
|
160
|
-
|
161
|
-
|
162
|
-
:param connections: The connections of this V1KFReplica. # noqa: E501
|
163
|
-
:type connections: list[str]
|
164
|
-
"""
|
165
|
-
|
166
|
-
self._connections = connections
|
167
|
-
|
168
|
-
@property
|
169
|
-
def volumes(self):
|
170
|
-
"""Gets the volumes of this V1KFReplica. # noqa: E501
|
171
|
-
|
172
|
-
|
173
|
-
:return: The volumes of this V1KFReplica. # noqa: E501
|
174
|
-
:rtype: list[V1Volume]
|
175
|
-
"""
|
176
|
-
return self._volumes
|
177
|
-
|
178
|
-
@volumes.setter
|
179
|
-
def volumes(self, volumes):
|
180
|
-
"""Sets the volumes of this V1KFReplica.
|
181
|
-
|
182
|
-
|
183
|
-
:param volumes: The volumes of this V1KFReplica. # noqa: E501
|
184
|
-
:type volumes: list[V1Volume]
|
185
|
-
"""
|
186
|
-
|
187
|
-
self._volumes = volumes
|
188
|
-
|
189
|
-
@property
|
190
|
-
def init(self):
|
191
|
-
"""Gets the init of this V1KFReplica. # noqa: E501
|
192
|
-
|
193
|
-
|
194
|
-
:return: The init of this V1KFReplica. # noqa: E501
|
195
|
-
:rtype: list[V1Init]
|
196
|
-
"""
|
197
|
-
return self._init
|
198
|
-
|
199
|
-
@init.setter
|
200
|
-
def init(self, init):
|
201
|
-
"""Sets the init of this V1KFReplica.
|
202
|
-
|
203
|
-
|
204
|
-
:param init: The init of this V1KFReplica. # noqa: E501
|
205
|
-
:type init: list[V1Init]
|
206
|
-
"""
|
207
|
-
|
208
|
-
self._init = init
|
209
|
-
|
210
|
-
@property
|
211
|
-
def sidecars(self):
|
212
|
-
"""Gets the sidecars of this V1KFReplica. # noqa: E501
|
213
|
-
|
214
|
-
|
215
|
-
:return: The sidecars of this V1KFReplica. # noqa: E501
|
216
|
-
:rtype: list[V1Container]
|
217
|
-
"""
|
218
|
-
return self._sidecars
|
219
|
-
|
220
|
-
@sidecars.setter
|
221
|
-
def sidecars(self, sidecars):
|
222
|
-
"""Sets the sidecars of this V1KFReplica.
|
223
|
-
|
224
|
-
|
225
|
-
:param sidecars: The sidecars of this V1KFReplica. # noqa: E501
|
226
|
-
:type sidecars: list[V1Container]
|
227
|
-
"""
|
228
|
-
|
229
|
-
self._sidecars = sidecars
|
230
|
-
|
231
|
-
@property
|
232
|
-
def container(self):
|
233
|
-
"""Gets the container of this V1KFReplica. # noqa: E501
|
234
|
-
|
235
|
-
|
236
|
-
:return: The container of this V1KFReplica. # noqa: E501
|
237
|
-
:rtype: V1Container
|
238
|
-
"""
|
239
|
-
return self._container
|
240
|
-
|
241
|
-
@container.setter
|
242
|
-
def container(self, container):
|
243
|
-
"""Sets the container of this V1KFReplica.
|
244
|
-
|
245
|
-
|
246
|
-
:param container: The container of this V1KFReplica. # noqa: E501
|
247
|
-
:type container: V1Container
|
248
|
-
"""
|
249
|
-
|
250
|
-
self._container = container
|
251
|
-
|
252
|
-
def to_dict(self, serialize=False):
|
253
|
-
"""Returns the model properties as a dict"""
|
254
|
-
result = {}
|
255
|
-
|
256
|
-
def convert(x):
|
257
|
-
if hasattr(x, "to_dict"):
|
258
|
-
args = getfullargspec(x.to_dict).args
|
259
|
-
if len(args) == 1:
|
260
|
-
return x.to_dict()
|
261
|
-
else:
|
262
|
-
return x.to_dict(serialize)
|
263
|
-
else:
|
264
|
-
return x
|
265
|
-
|
266
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
267
|
-
value = getattr(self, attr)
|
268
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
269
|
-
if isinstance(value, list):
|
270
|
-
result[attr] = list(map(
|
271
|
-
lambda x: convert(x),
|
272
|
-
value
|
273
|
-
))
|
274
|
-
elif isinstance(value, dict):
|
275
|
-
result[attr] = dict(map(
|
276
|
-
lambda item: (item[0], convert(item[1])),
|
277
|
-
value.items()
|
278
|
-
))
|
279
|
-
else:
|
280
|
-
result[attr] = convert(value)
|
281
|
-
|
282
|
-
return result
|
283
|
-
|
284
|
-
def to_str(self):
|
285
|
-
"""Returns the string representation of the model"""
|
286
|
-
return pprint.pformat(self.to_dict())
|
287
|
-
|
288
|
-
def __repr__(self):
|
289
|
-
"""For `print` and `pprint`"""
|
290
|
-
return self.to_str()
|
291
|
-
|
292
|
-
def __eq__(self, other):
|
293
|
-
"""Returns true if both objects are equal"""
|
294
|
-
if not isinstance(other, V1KFReplica):
|
295
|
-
return False
|
296
|
-
|
297
|
-
return self.to_dict() == other.to_dict()
|
298
|
-
|
299
|
-
def __ne__(self, other):
|
300
|
-
"""Returns true if both objects are not equal"""
|
301
|
-
if not isinstance(other, V1KFReplica):
|
302
|
-
return True
|
32
|
+
replicas: Optional[StrictInt] = None
|
33
|
+
environment: Optional[V1Environment] = None
|
34
|
+
connections: Optional[conlist(StrictStr)] = None
|
35
|
+
volumes: Optional[conlist(Dict[str, Any])] = None
|
36
|
+
init: Optional[conlist(V1Init)] = None
|
37
|
+
sidecars: Optional[conlist(Dict[str, Any])] = None
|
38
|
+
container: Optional[Dict[str, Any]] = None
|
39
|
+
__properties = ["replicas", "environment", "connections", "volumes", "init", "sidecars", "container"]
|
40
|
+
|
41
|
+
class Config:
|
42
|
+
allow_population_by_field_name = True
|
43
|
+
validate_assignment = True
|
44
|
+
|
45
|
+
def to_str(self) -> str:
|
46
|
+
"""Returns the string representation of the model using alias"""
|
47
|
+
return pprint.pformat(self.dict(by_alias=True))
|
48
|
+
|
49
|
+
def to_json(self) -> str:
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> V1KFReplica:
|
55
|
+
"""Create an instance of V1KFReplica from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self):
|
59
|
+
"""Returns the dictionary representation of the model using alias"""
|
60
|
+
_dict = self.dict(by_alias=True,
|
61
|
+
exclude={
|
62
|
+
},
|
63
|
+
exclude_none=True)
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of environment
|
65
|
+
if self.environment:
|
66
|
+
_dict['environment'] = self.environment.to_dict()
|
67
|
+
# override the default output from pydantic by calling `to_dict()` of each item in init (list)
|
68
|
+
_items = []
|
69
|
+
if self.init:
|
70
|
+
for _item in self.init:
|
71
|
+
if _item:
|
72
|
+
_items.append(_item.to_dict())
|
73
|
+
_dict['init'] = _items
|
74
|
+
return _dict
|
75
|
+
|
76
|
+
@classmethod
|
77
|
+
def from_dict(cls, obj: dict) -> V1KFReplica:
|
78
|
+
"""Create an instance of V1KFReplica from a dict"""
|
79
|
+
if obj is None:
|
80
|
+
return None
|
81
|
+
|
82
|
+
if type(obj) is not dict:
|
83
|
+
return V1KFReplica.parse_obj(obj)
|
84
|
+
|
85
|
+
_obj = V1KFReplica.parse_obj({
|
86
|
+
"replicas": obj.get("replicas"),
|
87
|
+
"environment": V1Environment.from_dict(obj.get("environment")) if obj.get("environment") is not None else None,
|
88
|
+
"connections": obj.get("connections"),
|
89
|
+
"volumes": obj.get("volumes"),
|
90
|
+
"init": [V1Init.from_dict(_item) for _item in obj.get("init")] if obj.get("init") is not None else None,
|
91
|
+
"sidecars": obj.get("sidecars"),
|
92
|
+
"container": obj.get("container")
|
93
|
+
})
|
94
|
+
return _obj
|
303
95
|
|
304
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,226 +1,85 @@
|
|
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
|
|
40
22
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
Do not edit the class manually.
|
46
|
-
"""
|
23
|
+
from typing import List, Optional
|
24
|
+
from pydantic import BaseModel, StrictInt, StrictStr, conlist
|
25
|
+
from polyaxon_sdk.models.v1_activity import V1Activity
|
47
26
|
|
27
|
+
class V1ListActivitiesResponse(BaseModel):
|
48
28
|
"""
|
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.
|
29
|
+
V1ListActivitiesResponse
|
54
30
|
"""
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
def
|
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
|
-
self._count = count
|
110
|
-
|
111
|
-
@property
|
112
|
-
def results(self):
|
113
|
-
"""Gets the results of this V1ListActivitiesResponse. # noqa: E501
|
114
|
-
|
115
|
-
|
116
|
-
:return: The results of this V1ListActivitiesResponse. # noqa: E501
|
117
|
-
:rtype: list[V1Activity]
|
118
|
-
"""
|
119
|
-
return self._results
|
120
|
-
|
121
|
-
@results.setter
|
122
|
-
def results(self, results):
|
123
|
-
"""Sets the results of this V1ListActivitiesResponse.
|
124
|
-
|
125
|
-
|
126
|
-
:param results: The results of this V1ListActivitiesResponse. # noqa: E501
|
127
|
-
:type results: list[V1Activity]
|
128
|
-
"""
|
129
|
-
|
130
|
-
self._results = results
|
131
|
-
|
132
|
-
@property
|
133
|
-
def previous(self):
|
134
|
-
"""Gets the previous of this V1ListActivitiesResponse. # noqa: E501
|
135
|
-
|
136
|
-
|
137
|
-
:return: The previous of this V1ListActivitiesResponse. # noqa: E501
|
138
|
-
:rtype: str
|
139
|
-
"""
|
140
|
-
return self._previous
|
141
|
-
|
142
|
-
@previous.setter
|
143
|
-
def previous(self, previous):
|
144
|
-
"""Sets the previous of this V1ListActivitiesResponse.
|
145
|
-
|
146
|
-
|
147
|
-
:param previous: The previous of this V1ListActivitiesResponse. # noqa: E501
|
148
|
-
:type previous: str
|
149
|
-
"""
|
150
|
-
|
151
|
-
self._previous = previous
|
152
|
-
|
153
|
-
@property
|
154
|
-
def next(self):
|
155
|
-
"""Gets the next of this V1ListActivitiesResponse. # noqa: E501
|
156
|
-
|
157
|
-
|
158
|
-
:return: The next of this V1ListActivitiesResponse. # noqa: E501
|
159
|
-
:rtype: str
|
160
|
-
"""
|
161
|
-
return self._next
|
162
|
-
|
163
|
-
@next.setter
|
164
|
-
def next(self, next):
|
165
|
-
"""Sets the next of this V1ListActivitiesResponse.
|
166
|
-
|
167
|
-
|
168
|
-
:param next: The next of this V1ListActivitiesResponse. # noqa: E501
|
169
|
-
:type next: str
|
170
|
-
"""
|
171
|
-
|
172
|
-
self._next = next
|
173
|
-
|
174
|
-
def to_dict(self, serialize=False):
|
175
|
-
"""Returns the model properties as a dict"""
|
176
|
-
result = {}
|
177
|
-
|
178
|
-
def convert(x):
|
179
|
-
if hasattr(x, "to_dict"):
|
180
|
-
args = getfullargspec(x.to_dict).args
|
181
|
-
if len(args) == 1:
|
182
|
-
return x.to_dict()
|
183
|
-
else:
|
184
|
-
return x.to_dict(serialize)
|
185
|
-
else:
|
186
|
-
return x
|
187
|
-
|
188
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
189
|
-
value = getattr(self, attr)
|
190
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
191
|
-
if isinstance(value, list):
|
192
|
-
result[attr] = list(map(
|
193
|
-
lambda x: convert(x),
|
194
|
-
value
|
195
|
-
))
|
196
|
-
elif isinstance(value, dict):
|
197
|
-
result[attr] = dict(map(
|
198
|
-
lambda item: (item[0], convert(item[1])),
|
199
|
-
value.items()
|
200
|
-
))
|
201
|
-
else:
|
202
|
-
result[attr] = convert(value)
|
203
|
-
|
204
|
-
return result
|
205
|
-
|
206
|
-
def to_str(self):
|
207
|
-
"""Returns the string representation of the model"""
|
208
|
-
return pprint.pformat(self.to_dict())
|
209
|
-
|
210
|
-
def __repr__(self):
|
211
|
-
"""For `print` and `pprint`"""
|
212
|
-
return self.to_str()
|
213
|
-
|
214
|
-
def __eq__(self, other):
|
215
|
-
"""Returns true if both objects are equal"""
|
216
|
-
if not isinstance(other, V1ListActivitiesResponse):
|
217
|
-
return False
|
218
|
-
|
219
|
-
return self.to_dict() == other.to_dict()
|
220
|
-
|
221
|
-
def __ne__(self, other):
|
222
|
-
"""Returns true if both objects are not equal"""
|
223
|
-
if not isinstance(other, V1ListActivitiesResponse):
|
224
|
-
return True
|
31
|
+
count: Optional[StrictInt] = None
|
32
|
+
results: Optional[conlist(V1Activity)] = None
|
33
|
+
previous: Optional[StrictStr] = None
|
34
|
+
next: Optional[StrictStr] = None
|
35
|
+
__properties = ["count", "results", "previous", "next"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
allow_population_by_field_name = True
|
39
|
+
validate_assignment = True
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.dict(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> V1ListActivitiesResponse:
|
51
|
+
"""Create an instance of V1ListActivitiesResponse from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self):
|
55
|
+
"""Returns the dictionary representation of the model using alias"""
|
56
|
+
_dict = self.dict(by_alias=True,
|
57
|
+
exclude={
|
58
|
+
},
|
59
|
+
exclude_none=True)
|
60
|
+
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
|
61
|
+
_items = []
|
62
|
+
if self.results:
|
63
|
+
for _item in self.results:
|
64
|
+
if _item:
|
65
|
+
_items.append(_item.to_dict())
|
66
|
+
_dict['results'] = _items
|
67
|
+
return _dict
|
68
|
+
|
69
|
+
@classmethod
|
70
|
+
def from_dict(cls, obj: dict) -> V1ListActivitiesResponse:
|
71
|
+
"""Create an instance of V1ListActivitiesResponse from a dict"""
|
72
|
+
if obj is None:
|
73
|
+
return None
|
74
|
+
|
75
|
+
if type(obj) is not dict:
|
76
|
+
return V1ListActivitiesResponse.parse_obj(obj)
|
77
|
+
|
78
|
+
_obj = V1ListActivitiesResponse.parse_obj({
|
79
|
+
"count": obj.get("count"),
|
80
|
+
"results": [V1Activity.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None,
|
81
|
+
"previous": obj.get("previous"),
|
82
|
+
"next": obj.get("next")
|
83
|
+
})
|
84
|
+
return _obj
|
225
85
|
|
226
|
-
return self.to_dict() != other.to_dict()
|