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.
Files changed (276) hide show
  1. polyaxon_sdk/__init__.py +26 -34
  2. polyaxon_sdk/api/__init__.py +2 -18
  3. polyaxon_sdk/api/agents_v1_api.py +2314 -1108
  4. polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
  5. polyaxon_sdk/api/auth_v1_api.py +398 -359
  6. polyaxon_sdk/api/connections_v1_api.py +516 -488
  7. polyaxon_sdk/api/dashboards_v1_api.py +516 -488
  8. polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
  9. polyaxon_sdk/api/policies_v1_api.py +1232 -0
  10. polyaxon_sdk/api/presets_v1_api.py +528 -498
  11. polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
  12. polyaxon_sdk/api/project_searches_v1_api.py +596 -590
  13. polyaxon_sdk/api/projects_v1_api.py +2248 -2167
  14. polyaxon_sdk/api/queues_v1_api.py +701 -670
  15. polyaxon_sdk/api/runs_v1_api.py +5136 -4477
  16. polyaxon_sdk/api/schemas_v1_api.py +64 -70
  17. polyaxon_sdk/api/searches_v1_api.py +516 -488
  18. polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
  19. polyaxon_sdk/api/tags_v1_api.py +587 -552
  20. polyaxon_sdk/api/teams_v1_api.py +953 -916
  21. polyaxon_sdk/api/users_v1_api.py +730 -646
  22. polyaxon_sdk/api/versions_v1_api.py +206 -190
  23. polyaxon_sdk/api_client.py +145 -101
  24. polyaxon_sdk/configuration.py +46 -79
  25. polyaxon_sdk/exceptions.py +6 -23
  26. polyaxon_sdk/models/__init__.py +24 -32
  27. polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
  28. polyaxon_sdk/models/mx_job_mode.py +12 -105
  29. polyaxon_sdk/models/protobuf_any.py +65 -164
  30. polyaxon_sdk/models/protobuf_null_value.py +11 -104
  31. polyaxon_sdk/models/runtime_error.py +67 -208
  32. polyaxon_sdk/models/search_view.py +18 -111
  33. polyaxon_sdk/models/v1_activity.py +68 -313
  34. polyaxon_sdk/models/v1_agent.py +93 -495
  35. polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
  36. polyaxon_sdk/models/v1_agent_state_response.py +64 -208
  37. polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
  38. polyaxon_sdk/models/v1_analytics_spec.py +59 -208
  39. polyaxon_sdk/models/v1_artifact_kind.py +42 -134
  40. polyaxon_sdk/models/v1_artifact_tree.py +57 -182
  41. polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
  42. polyaxon_sdk/models/v1_artifacts_type.py +57 -182
  43. polyaxon_sdk/models/v1_auth.py +54 -131
  44. polyaxon_sdk/models/v1_auth_type.py +55 -156
  45. polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
  46. polyaxon_sdk/models/v1_bayes.py +79 -364
  47. polyaxon_sdk/models/v1_bucket_connection.py +54 -131
  48. polyaxon_sdk/models/v1_build.py +82 -312
  49. polyaxon_sdk/models/v1_cache.py +59 -208
  50. polyaxon_sdk/models/v1_claim_connection.py +59 -208
  51. polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
  52. polyaxon_sdk/models/v1_cloning.py +58 -182
  53. polyaxon_sdk/models/v1_cloning_kind.py +13 -106
  54. polyaxon_sdk/models/v1_compatibility.py +72 -208
  55. polyaxon_sdk/models/v1_compiled_operation.py +171 -783
  56. polyaxon_sdk/models/v1_component.py +132 -572
  57. polyaxon_sdk/models/v1_connection_kind.py +53 -146
  58. polyaxon_sdk/models/v1_connection_resource.py +77 -0
  59. polyaxon_sdk/models/v1_connection_response.py +71 -339
  60. polyaxon_sdk/models/v1_connection_schema.py +81 -234
  61. polyaxon_sdk/models/v1_connection_type.py +77 -338
  62. polyaxon_sdk/models/v1_credentials.py +55 -156
  63. polyaxon_sdk/models/v1_cron_schedule.py +64 -261
  64. polyaxon_sdk/models/v1_dag.py +87 -314
  65. polyaxon_sdk/models/v1_dag_ref.py +55 -156
  66. polyaxon_sdk/models/v1_dashboard.py +74 -339
  67. polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
  68. polyaxon_sdk/models/v1_dask_job.py +87 -0
  69. polyaxon_sdk/models/v1_dask_replica.py +95 -0
  70. polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
  71. polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
  72. polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
  73. polyaxon_sdk/models/v1_early_stopping.py +81 -234
  74. polyaxon_sdk/models/v1_entities_tags.py +55 -156
  75. polyaxon_sdk/models/v1_entities_transfer.py +55 -156
  76. polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
  77. polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
  78. polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
  79. polyaxon_sdk/models/v1_environment.py +87 -588
  80. polyaxon_sdk/models/v1_event.py +130 -499
  81. polyaxon_sdk/models/v1_event_artifact.py +56 -156
  82. polyaxon_sdk/models/v1_event_audio.py +61 -240
  83. polyaxon_sdk/models/v1_event_chart.py +56 -156
  84. polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
  85. polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
  86. polyaxon_sdk/models/v1_event_curve.py +60 -208
  87. polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
  88. polyaxon_sdk/models/v1_event_dataframe.py +55 -156
  89. polyaxon_sdk/models/v1_event_histogram.py +55 -156
  90. polyaxon_sdk/models/v1_event_image.py +59 -212
  91. polyaxon_sdk/models/v1_event_kind.py +42 -135
  92. polyaxon_sdk/models/v1_event_model.py +57 -182
  93. polyaxon_sdk/models/v1_event_span.py +110 -0
  94. polyaxon_sdk/models/v1_event_span_kind.py +39 -0
  95. polyaxon_sdk/models/v1_event_trigger.py +56 -156
  96. polyaxon_sdk/models/v1_event_type.py +56 -156
  97. polyaxon_sdk/models/v1_event_video.py +61 -238
  98. polyaxon_sdk/models/v1_events_response.py +54 -131
  99. polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
  100. polyaxon_sdk/models/v1_file_type.py +59 -208
  101. polyaxon_sdk/models/v1_gcs_type.py +55 -156
  102. polyaxon_sdk/models/v1_git_connection.py +57 -182
  103. polyaxon_sdk/models/v1_git_type.py +57 -182
  104. polyaxon_sdk/models/v1_grid_search.py +63 -260
  105. polyaxon_sdk/models/v1_hook.py +78 -312
  106. polyaxon_sdk/models/v1_host_connection.py +55 -156
  107. polyaxon_sdk/models/v1_host_path_connection.py +59 -208
  108. polyaxon_sdk/models/v1_hp_choice.py +55 -156
  109. polyaxon_sdk/models/v1_hp_date_range.py +55 -156
  110. polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
  111. polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
  112. polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
  113. polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
  114. polyaxon_sdk/models/v1_hp_log_space.py +55 -156
  115. polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
  116. polyaxon_sdk/models/v1_hp_normal.py +55 -156
  117. polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
  118. polyaxon_sdk/models/v1_hp_params.py +150 -523
  119. polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
  120. polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
  121. polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
  122. polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
  123. polyaxon_sdk/models/v1_hp_range.py +55 -156
  124. polyaxon_sdk/models/v1_hp_uniform.py +55 -156
  125. polyaxon_sdk/models/v1_hub_ref.py +55 -156
  126. polyaxon_sdk/models/v1_hyperband.py +85 -390
  127. polyaxon_sdk/models/v1_hyperopt.py +80 -364
  128. polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
  129. polyaxon_sdk/models/v1_init.py +95 -416
  130. polyaxon_sdk/models/v1_installation.py +67 -260
  131. polyaxon_sdk/models/v1_interval_schedule.py +64 -261
  132. polyaxon_sdk/models/v1_io.py +83 -442
  133. polyaxon_sdk/models/v1_iterative.py +69 -286
  134. polyaxon_sdk/models/v1_job.py +77 -288
  135. polyaxon_sdk/models/v1_join.py +71 -260
  136. polyaxon_sdk/models/v1_join_param.py +61 -234
  137. polyaxon_sdk/models/v1_kf_replica.py +77 -286
  138. polyaxon_sdk/models/v1_list_activities_response.py +67 -208
  139. polyaxon_sdk/models/v1_list_agents_response.py +67 -208
  140. polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
  141. polyaxon_sdk/models/v1_list_connections_response.py +67 -208
  142. polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
  143. polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
  144. polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
  145. polyaxon_sdk/models/v1_list_policies_response.py +85 -0
  146. polyaxon_sdk/models/v1_list_presets_response.py +67 -208
  147. polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
  148. polyaxon_sdk/models/v1_list_projects_response.py +67 -208
  149. polyaxon_sdk/models/v1_list_queues_response.py +67 -208
  150. polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
  151. polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
  152. polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
  153. polyaxon_sdk/models/v1_list_runs_response.py +67 -208
  154. polyaxon_sdk/models/v1_list_searches_response.py +67 -208
  155. polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
  156. polyaxon_sdk/models/v1_list_tags_response.py +67 -208
  157. polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
  158. polyaxon_sdk/models/v1_list_teams_response.py +67 -208
  159. polyaxon_sdk/models/v1_list_token_response.py +67 -208
  160. polyaxon_sdk/models/v1_log.py +62 -235
  161. polyaxon_sdk/models/v1_log_handler.py +55 -156
  162. polyaxon_sdk/models/v1_logs.py +68 -209
  163. polyaxon_sdk/models/v1_managed_by.py +36 -0
  164. polyaxon_sdk/models/v1_mapping.py +59 -208
  165. polyaxon_sdk/models/v1_matrix.py +93 -286
  166. polyaxon_sdk/models/v1_matrix_kind.py +17 -110
  167. polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
  168. polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
  169. polyaxon_sdk/models/v1_mpi_job.py +75 -312
  170. polyaxon_sdk/models/v1_multi_events_response.py +71 -0
  171. polyaxon_sdk/models/v1_mx_job.py +96 -364
  172. polyaxon_sdk/models/v1_notification.py +56 -156
  173. polyaxon_sdk/models/v1_operation.py +178 -939
  174. polyaxon_sdk/models/v1_operation_body.py +69 -286
  175. polyaxon_sdk/models/v1_optimization.py +12 -105
  176. polyaxon_sdk/models/v1_optimization_metric.py +56 -156
  177. polyaxon_sdk/models/v1_optimization_resource.py +56 -156
  178. polyaxon_sdk/models/v1_organization.py +84 -495
  179. polyaxon_sdk/models/v1_organization_member.py +64 -261
  180. polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
  181. polyaxon_sdk/models/v1_paddle_job.py +97 -0
  182. polyaxon_sdk/models/v1_param.py +63 -260
  183. polyaxon_sdk/models/v1_password_change.py +57 -182
  184. polyaxon_sdk/models/v1_patch_strategy.py +14 -107
  185. polyaxon_sdk/models/v1_path_ref.py +55 -156
  186. polyaxon_sdk/models/v1_pipeline.py +58 -182
  187. polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
  188. polyaxon_sdk/models/v1_plugins.py +89 -442
  189. polyaxon_sdk/models/v1_policy.py +119 -0
  190. polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
  191. polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
  192. polyaxon_sdk/models/v1_preset.py +70 -339
  193. polyaxon_sdk/models/v1_project.py +90 -495
  194. polyaxon_sdk/models/v1_project_settings.py +81 -338
  195. polyaxon_sdk/models/v1_project_version.py +102 -601
  196. polyaxon_sdk/models/v1_project_version_kind.py +13 -106
  197. polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
  198. polyaxon_sdk/models/v1_pytorch_job.py +81 -234
  199. polyaxon_sdk/models/v1_queue.py +76 -417
  200. polyaxon_sdk/models/v1_random_search.py +63 -260
  201. polyaxon_sdk/models/v1_ray_job.py +94 -0
  202. polyaxon_sdk/models/v1_ray_replica.py +103 -0
  203. polyaxon_sdk/models/v1_reference.py +75 -208
  204. polyaxon_sdk/models/v1_resource_type.py +12 -105
  205. polyaxon_sdk/models/v1_run.py +158 -1043
  206. polyaxon_sdk/models/v1_run_artifact.py +70 -338
  207. polyaxon_sdk/models/v1_run_artifacts.py +62 -131
  208. polyaxon_sdk/models/v1_run_connection.py +57 -182
  209. polyaxon_sdk/models/v1_run_edge.py +70 -234
  210. polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
  211. polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
  212. polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
  213. polyaxon_sdk/models/v1_run_kind.py +28 -122
  214. polyaxon_sdk/models/v1_run_pending.py +14 -107
  215. polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
  216. polyaxon_sdk/models/v1_run_resources.py +61 -234
  217. polyaxon_sdk/models/v1_run_schema.py +120 -419
  218. polyaxon_sdk/models/v1_run_settings.py +94 -338
  219. polyaxon_sdk/models/v1_s3_type.py +55 -156
  220. polyaxon_sdk/models/v1_schedule.py +69 -182
  221. polyaxon_sdk/models/v1_schedule_kind.py +13 -106
  222. polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
  223. polyaxon_sdk/models/v1_schemas.py +192 -731
  224. polyaxon_sdk/models/v1_search.py +77 -365
  225. polyaxon_sdk/models/v1_search_spec.py +87 -468
  226. polyaxon_sdk/models/v1_section_spec.py +75 -286
  227. polyaxon_sdk/models/v1_service.py +85 -396
  228. polyaxon_sdk/models/v1_service_account.py +70 -339
  229. polyaxon_sdk/models/v1_settings_catalog.py +57 -156
  230. polyaxon_sdk/models/v1_stage.py +66 -182
  231. polyaxon_sdk/models/v1_stage_condition.py +67 -261
  232. polyaxon_sdk/models/v1_stages.py +14 -107
  233. polyaxon_sdk/models/v1_status.py +68 -208
  234. polyaxon_sdk/models/v1_status_condition.py +67 -261
  235. polyaxon_sdk/models/v1_statuses.py +30 -123
  236. polyaxon_sdk/models/v1_tag.py +63 -260
  237. polyaxon_sdk/models/v1_team.py +72 -313
  238. polyaxon_sdk/models/v1_team_member.py +64 -261
  239. polyaxon_sdk/models/v1_team_settings.py +79 -182
  240. polyaxon_sdk/models/v1_template.py +57 -182
  241. polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
  242. polyaxon_sdk/models/v1_termination.py +57 -182
  243. polyaxon_sdk/models/v1_tf_job.py +87 -286
  244. polyaxon_sdk/models/v1_token.py +72 -365
  245. polyaxon_sdk/models/v1_trial_start.py +63 -260
  246. polyaxon_sdk/models/v1_trigger_policy.py +16 -109
  247. polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
  248. polyaxon_sdk/models/v1_tuner.py +69 -208
  249. polyaxon_sdk/models/v1_uri_type.py +57 -182
  250. polyaxon_sdk/models/v1_url_ref.py +55 -156
  251. polyaxon_sdk/models/v1_user.py +63 -260
  252. polyaxon_sdk/models/v1_user_access.py +77 -0
  253. polyaxon_sdk/models/v1_user_email.py +54 -131
  254. polyaxon_sdk/models/v1_user_singup.py +61 -234
  255. polyaxon_sdk/models/v1_uuids.py +54 -131
  256. polyaxon_sdk/models/v1_validation.py +109 -0
  257. polyaxon_sdk/models/v1_version.py +55 -156
  258. polyaxon_sdk/models/v1_wasb_type.py +57 -182
  259. polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
  260. polyaxon_sdk/rest.py +23 -41
  261. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
  262. polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
  263. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
  264. polyaxon_sdk/models/mpi_job_implementation.py +0 -128
  265. polyaxon_sdk/models/spark_deploy_mode.py +0 -129
  266. polyaxon_sdk/models/v1_dask.py +0 -436
  267. polyaxon_sdk/models/v1_flink.py +0 -174
  268. polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
  269. polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
  270. polyaxon_sdk/models/v1_project_user_access.py +0 -200
  271. polyaxon_sdk/models/v1_ray.py +0 -174
  272. polyaxon_sdk/models/v1_spark.py +0 -558
  273. polyaxon_sdk/models/v1_spark_replica.py +0 -252
  274. polyaxon_sdk/models/v1_spark_type.py +0 -130
  275. polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
  276. {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,746 +1,207 @@
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
- Polyaxon SDKs and REST API specification. # noqa: E501
6
+ # noqa: E501
23
7
 
24
- The version of the OpenAPI document: 1.18.0
8
+ The version of the OpenAPI document: 2.1.6
25
9
  Contact: contact@polyaxon.com
26
- Generated by: https://openapi-generator.tech
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
27
13
  """
28
14
 
29
15
 
30
- try:
31
- from inspect import getfullargspec
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 six
37
-
38
- from polyaxon_sdk.configuration import Configuration
39
-
40
-
41
- class V1Schemas(object):
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
-
20
+ import json
21
+
22
+
23
+ from typing import Optional
24
+ from pydantic import BaseModel, Field
25
+ from polyaxon_sdk.models.v1_artifacts_mount import V1ArtifactsMount
26
+ from polyaxon_sdk.models.v1_artifacts_type import V1ArtifactsType
27
+ from polyaxon_sdk.models.v1_auth_type import V1AuthType
28
+ from polyaxon_sdk.models.v1_compiled_operation import V1CompiledOperation
29
+ from polyaxon_sdk.models.v1_connection_resource import V1ConnectionResource
30
+ from polyaxon_sdk.models.v1_connection_schema import V1ConnectionSchema
31
+ from polyaxon_sdk.models.v1_connection_type import V1ConnectionType
32
+ from polyaxon_sdk.models.v1_early_stopping import V1EarlyStopping
33
+ from polyaxon_sdk.models.v1_event import V1Event
34
+ from polyaxon_sdk.models.v1_event_type import V1EventType
35
+ from polyaxon_sdk.models.v1_gcs_type import V1GcsType
36
+ from polyaxon_sdk.models.v1_hp_params import V1HpParams
37
+ from polyaxon_sdk.models.v1_matrix import V1Matrix
38
+ from polyaxon_sdk.models.v1_matrix_kind import V1MatrixKind
39
+ from polyaxon_sdk.models.v1_operation import V1Operation
40
+ from polyaxon_sdk.models.v1_polyaxon_init_container import V1PolyaxonInitContainer
41
+ from polyaxon_sdk.models.v1_polyaxon_sidecar_container import V1PolyaxonSidecarContainer
42
+ from polyaxon_sdk.models.v1_reference import V1Reference
43
+ from polyaxon_sdk.models.v1_run_schema import V1RunSchema
44
+ from polyaxon_sdk.models.v1_s3_type import V1S3Type
45
+ from polyaxon_sdk.models.v1_schedule import V1Schedule
46
+ from polyaxon_sdk.models.v1_schedule_kind import V1ScheduleKind
47
+ from polyaxon_sdk.models.v1_uri_type import V1UriType
48
+ from polyaxon_sdk.models.v1_wasb_type import V1WasbType
49
+
50
+ class V1Schemas(BaseModel):
48
51
  """
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.
52
+ V1Schemas
54
53
  """
55
- openapi_types = {
56
- 'early_stopping': 'V1EarlyStopping',
57
- 'matrix': 'V1Matrix',
58
- 'run': 'V1RunSchema',
59
- 'operation': 'V1Operation',
60
- 'compiled_operation': 'V1CompiledOperation',
61
- 'schedule': 'V1Schedule',
62
- 'connection_schema': 'V1ConnectionSchema',
63
- 'hp_params': 'V1HpParams',
64
- 'reference': 'V1Reference',
65
- 'artifacts_mount': 'V1ArtifactsMount',
66
- 'polyaxon_sidecar_container': 'V1PolyaxonSidecarContainer',
67
- 'polyaxon_init_container': 'V1PolyaxonInitContainer',
68
- 'artifacs': 'V1ArtifactsType',
69
- 'wasb': 'V1WasbType',
70
- 'gcs': 'V1GcsType',
71
- 's3': 'V1S3Type',
72
- 'auth': 'V1AuthType',
73
- 'uri': 'V1UriType',
74
- 'k8s_resource': 'V1K8sResourceType',
75
- 'connection': 'V1ConnectionType',
76
- 'event_type': 'V1EventType',
77
- 'matrix_kind': 'V1MatrixKind',
78
- 'schedule_kind': 'V1ScheduleKind',
79
- 'event': 'V1Event'
80
- }
81
-
82
- attribute_map = {
83
- 'early_stopping': 'earlyStopping',
84
- 'matrix': 'matrix',
85
- 'run': 'run',
86
- 'operation': 'operation',
87
- 'compiled_operation': 'compiledOperation',
88
- 'schedule': 'schedule',
89
- 'connection_schema': 'connectionSchema',
90
- 'hp_params': 'hpParams',
91
- 'reference': 'reference',
92
- 'artifacts_mount': 'artifactsMount',
93
- 'polyaxon_sidecar_container': 'polyaxonSidecarContainer',
94
- 'polyaxon_init_container': 'polyaxonInitContainer',
95
- 'artifacs': 'artifacs',
96
- 'wasb': 'wasb',
97
- 'gcs': 'gcs',
98
- 's3': 's3',
99
- 'auth': 'auth',
100
- 'uri': 'uri',
101
- 'k8s_resource': 'k8sResource',
102
- 'connection': 'connection',
103
- 'event_type': 'eventType',
104
- 'matrix_kind': 'matrixKind',
105
- 'schedule_kind': 'scheduleKind',
106
- 'event': 'event'
107
- }
108
-
109
- def __init__(self, early_stopping=None, matrix=None, run=None, operation=None, compiled_operation=None, schedule=None, connection_schema=None, hp_params=None, reference=None, artifacts_mount=None, polyaxon_sidecar_container=None, polyaxon_init_container=None, artifacs=None, wasb=None, gcs=None, s3=None, auth=None, uri=None, k8s_resource=None, connection=None, event_type=None, matrix_kind=None, schedule_kind=None, event=None, local_vars_configuration=None): # noqa: E501
110
- """V1Schemas - a model defined in OpenAPI""" # noqa: E501
111
- if local_vars_configuration is None:
112
- local_vars_configuration = Configuration.get_default_copy()
113
- self.local_vars_configuration = local_vars_configuration
114
-
115
- self._early_stopping = None
116
- self._matrix = None
117
- self._run = None
118
- self._operation = None
119
- self._compiled_operation = None
120
- self._schedule = None
121
- self._connection_schema = None
122
- self._hp_params = None
123
- self._reference = None
124
- self._artifacts_mount = None
125
- self._polyaxon_sidecar_container = None
126
- self._polyaxon_init_container = None
127
- self._artifacs = None
128
- self._wasb = None
129
- self._gcs = None
130
- self._s3 = None
131
- self._auth = None
132
- self._uri = None
133
- self._k8s_resource = None
134
- self._connection = None
135
- self._event_type = None
136
- self._matrix_kind = None
137
- self._schedule_kind = None
138
- self._event = None
139
- self.discriminator = None
140
-
141
- if early_stopping is not None:
142
- self.early_stopping = early_stopping
143
- if matrix is not None:
144
- self.matrix = matrix
145
- if run is not None:
146
- self.run = run
147
- if operation is not None:
148
- self.operation = operation
149
- if compiled_operation is not None:
150
- self.compiled_operation = compiled_operation
151
- if schedule is not None:
152
- self.schedule = schedule
153
- if connection_schema is not None:
154
- self.connection_schema = connection_schema
155
- if hp_params is not None:
156
- self.hp_params = hp_params
157
- if reference is not None:
158
- self.reference = reference
159
- if artifacts_mount is not None:
160
- self.artifacts_mount = artifacts_mount
161
- if polyaxon_sidecar_container is not None:
162
- self.polyaxon_sidecar_container = polyaxon_sidecar_container
163
- if polyaxon_init_container is not None:
164
- self.polyaxon_init_container = polyaxon_init_container
165
- if artifacs is not None:
166
- self.artifacs = artifacs
167
- if wasb is not None:
168
- self.wasb = wasb
169
- if gcs is not None:
170
- self.gcs = gcs
171
- if s3 is not None:
172
- self.s3 = s3
173
- if auth is not None:
174
- self.auth = auth
175
- if uri is not None:
176
- self.uri = uri
177
- if k8s_resource is not None:
178
- self.k8s_resource = k8s_resource
179
- if connection is not None:
180
- self.connection = connection
181
- if event_type is not None:
182
- self.event_type = event_type
183
- if matrix_kind is not None:
184
- self.matrix_kind = matrix_kind
185
- if schedule_kind is not None:
186
- self.schedule_kind = schedule_kind
187
- if event is not None:
188
- self.event = event
189
-
190
- @property
191
- def early_stopping(self):
192
- """Gets the early_stopping of this V1Schemas. # noqa: E501
193
-
194
-
195
- :return: The early_stopping of this V1Schemas. # noqa: E501
196
- :rtype: V1EarlyStopping
197
- """
198
- return self._early_stopping
199
-
200
- @early_stopping.setter
201
- def early_stopping(self, early_stopping):
202
- """Sets the early_stopping of this V1Schemas.
203
-
204
-
205
- :param early_stopping: The early_stopping of this V1Schemas. # noqa: E501
206
- :type early_stopping: V1EarlyStopping
207
- """
208
-
209
- self._early_stopping = early_stopping
210
-
211
- @property
212
- def matrix(self):
213
- """Gets the matrix of this V1Schemas. # noqa: E501
214
-
215
-
216
- :return: The matrix of this V1Schemas. # noqa: E501
217
- :rtype: V1Matrix
218
- """
219
- return self._matrix
220
-
221
- @matrix.setter
222
- def matrix(self, matrix):
223
- """Sets the matrix of this V1Schemas.
224
-
225
-
226
- :param matrix: The matrix of this V1Schemas. # noqa: E501
227
- :type matrix: V1Matrix
228
- """
229
-
230
- self._matrix = matrix
231
-
232
- @property
233
- def run(self):
234
- """Gets the run of this V1Schemas. # noqa: E501
235
-
236
-
237
- :return: The run of this V1Schemas. # noqa: E501
238
- :rtype: V1RunSchema
239
- """
240
- return self._run
241
-
242
- @run.setter
243
- def run(self, run):
244
- """Sets the run of this V1Schemas.
245
-
246
-
247
- :param run: The run of this V1Schemas. # noqa: E501
248
- :type run: V1RunSchema
249
- """
250
-
251
- self._run = run
252
-
253
- @property
254
- def operation(self):
255
- """Gets the operation of this V1Schemas. # noqa: E501
256
-
257
-
258
- :return: The operation of this V1Schemas. # noqa: E501
259
- :rtype: V1Operation
260
- """
261
- return self._operation
262
-
263
- @operation.setter
264
- def operation(self, operation):
265
- """Sets the operation of this V1Schemas.
266
-
267
-
268
- :param operation: The operation of this V1Schemas. # noqa: E501
269
- :type operation: V1Operation
270
- """
271
-
272
- self._operation = operation
273
-
274
- @property
275
- def compiled_operation(self):
276
- """Gets the compiled_operation of this V1Schemas. # noqa: E501
277
-
278
-
279
- :return: The compiled_operation of this V1Schemas. # noqa: E501
280
- :rtype: V1CompiledOperation
281
- """
282
- return self._compiled_operation
283
-
284
- @compiled_operation.setter
285
- def compiled_operation(self, compiled_operation):
286
- """Sets the compiled_operation of this V1Schemas.
287
-
288
-
289
- :param compiled_operation: The compiled_operation of this V1Schemas. # noqa: E501
290
- :type compiled_operation: V1CompiledOperation
291
- """
292
-
293
- self._compiled_operation = compiled_operation
294
-
295
- @property
296
- def schedule(self):
297
- """Gets the schedule of this V1Schemas. # noqa: E501
298
-
299
-
300
- :return: The schedule of this V1Schemas. # noqa: E501
301
- :rtype: V1Schedule
302
- """
303
- return self._schedule
304
-
305
- @schedule.setter
306
- def schedule(self, schedule):
307
- """Sets the schedule of this V1Schemas.
308
-
309
-
310
- :param schedule: The schedule of this V1Schemas. # noqa: E501
311
- :type schedule: V1Schedule
312
- """
313
-
314
- self._schedule = schedule
315
-
316
- @property
317
- def connection_schema(self):
318
- """Gets the connection_schema of this V1Schemas. # noqa: E501
319
-
320
-
321
- :return: The connection_schema of this V1Schemas. # noqa: E501
322
- :rtype: V1ConnectionSchema
323
- """
324
- return self._connection_schema
325
-
326
- @connection_schema.setter
327
- def connection_schema(self, connection_schema):
328
- """Sets the connection_schema of this V1Schemas.
329
-
330
-
331
- :param connection_schema: The connection_schema of this V1Schemas. # noqa: E501
332
- :type connection_schema: V1ConnectionSchema
333
- """
334
-
335
- self._connection_schema = connection_schema
336
-
337
- @property
338
- def hp_params(self):
339
- """Gets the hp_params of this V1Schemas. # noqa: E501
340
-
341
-
342
- :return: The hp_params of this V1Schemas. # noqa: E501
343
- :rtype: V1HpParams
344
- """
345
- return self._hp_params
346
-
347
- @hp_params.setter
348
- def hp_params(self, hp_params):
349
- """Sets the hp_params of this V1Schemas.
350
-
351
-
352
- :param hp_params: The hp_params of this V1Schemas. # noqa: E501
353
- :type hp_params: V1HpParams
354
- """
355
-
356
- self._hp_params = hp_params
357
-
358
- @property
359
- def reference(self):
360
- """Gets the reference of this V1Schemas. # noqa: E501
361
-
362
-
363
- :return: The reference of this V1Schemas. # noqa: E501
364
- :rtype: V1Reference
365
- """
366
- return self._reference
367
-
368
- @reference.setter
369
- def reference(self, reference):
370
- """Sets the reference of this V1Schemas.
371
-
372
-
373
- :param reference: The reference of this V1Schemas. # noqa: E501
374
- :type reference: V1Reference
375
- """
376
-
377
- self._reference = reference
378
-
379
- @property
380
- def artifacts_mount(self):
381
- """Gets the artifacts_mount of this V1Schemas. # noqa: E501
382
-
383
-
384
- :return: The artifacts_mount of this V1Schemas. # noqa: E501
385
- :rtype: V1ArtifactsMount
386
- """
387
- return self._artifacts_mount
388
-
389
- @artifacts_mount.setter
390
- def artifacts_mount(self, artifacts_mount):
391
- """Sets the artifacts_mount of this V1Schemas.
392
-
393
-
394
- :param artifacts_mount: The artifacts_mount of this V1Schemas. # noqa: E501
395
- :type artifacts_mount: V1ArtifactsMount
396
- """
397
-
398
- self._artifacts_mount = artifacts_mount
399
-
400
- @property
401
- def polyaxon_sidecar_container(self):
402
- """Gets the polyaxon_sidecar_container of this V1Schemas. # noqa: E501
403
-
404
-
405
- :return: The polyaxon_sidecar_container of this V1Schemas. # noqa: E501
406
- :rtype: V1PolyaxonSidecarContainer
407
- """
408
- return self._polyaxon_sidecar_container
409
-
410
- @polyaxon_sidecar_container.setter
411
- def polyaxon_sidecar_container(self, polyaxon_sidecar_container):
412
- """Sets the polyaxon_sidecar_container of this V1Schemas.
413
-
414
-
415
- :param polyaxon_sidecar_container: The polyaxon_sidecar_container of this V1Schemas. # noqa: E501
416
- :type polyaxon_sidecar_container: V1PolyaxonSidecarContainer
417
- """
418
-
419
- self._polyaxon_sidecar_container = polyaxon_sidecar_container
420
-
421
- @property
422
- def polyaxon_init_container(self):
423
- """Gets the polyaxon_init_container of this V1Schemas. # noqa: E501
424
-
425
-
426
- :return: The polyaxon_init_container of this V1Schemas. # noqa: E501
427
- :rtype: V1PolyaxonInitContainer
428
- """
429
- return self._polyaxon_init_container
430
-
431
- @polyaxon_init_container.setter
432
- def polyaxon_init_container(self, polyaxon_init_container):
433
- """Sets the polyaxon_init_container of this V1Schemas.
434
-
435
-
436
- :param polyaxon_init_container: The polyaxon_init_container of this V1Schemas. # noqa: E501
437
- :type polyaxon_init_container: V1PolyaxonInitContainer
438
- """
439
-
440
- self._polyaxon_init_container = polyaxon_init_container
441
-
442
- @property
443
- def artifacs(self):
444
- """Gets the artifacs of this V1Schemas. # noqa: E501
445
-
446
-
447
- :return: The artifacs of this V1Schemas. # noqa: E501
448
- :rtype: V1ArtifactsType
449
- """
450
- return self._artifacs
451
-
452
- @artifacs.setter
453
- def artifacs(self, artifacs):
454
- """Sets the artifacs of this V1Schemas.
455
-
456
-
457
- :param artifacs: The artifacs of this V1Schemas. # noqa: E501
458
- :type artifacs: V1ArtifactsType
459
- """
460
-
461
- self._artifacs = artifacs
462
-
463
- @property
464
- def wasb(self):
465
- """Gets the wasb of this V1Schemas. # noqa: E501
466
-
467
-
468
- :return: The wasb of this V1Schemas. # noqa: E501
469
- :rtype: V1WasbType
470
- """
471
- return self._wasb
472
-
473
- @wasb.setter
474
- def wasb(self, wasb):
475
- """Sets the wasb of this V1Schemas.
476
-
477
-
478
- :param wasb: The wasb of this V1Schemas. # noqa: E501
479
- :type wasb: V1WasbType
480
- """
481
-
482
- self._wasb = wasb
483
-
484
- @property
485
- def gcs(self):
486
- """Gets the gcs of this V1Schemas. # noqa: E501
487
-
488
-
489
- :return: The gcs of this V1Schemas. # noqa: E501
490
- :rtype: V1GcsType
491
- """
492
- return self._gcs
493
-
494
- @gcs.setter
495
- def gcs(self, gcs):
496
- """Sets the gcs of this V1Schemas.
497
-
498
-
499
- :param gcs: The gcs of this V1Schemas. # noqa: E501
500
- :type gcs: V1GcsType
501
- """
502
-
503
- self._gcs = gcs
504
-
505
- @property
506
- def s3(self):
507
- """Gets the s3 of this V1Schemas. # noqa: E501
508
-
509
-
510
- :return: The s3 of this V1Schemas. # noqa: E501
511
- :rtype: V1S3Type
512
- """
513
- return self._s3
514
-
515
- @s3.setter
516
- def s3(self, s3):
517
- """Sets the s3 of this V1Schemas.
518
-
519
-
520
- :param s3: The s3 of this V1Schemas. # noqa: E501
521
- :type s3: V1S3Type
522
- """
523
-
524
- self._s3 = s3
525
-
526
- @property
527
- def auth(self):
528
- """Gets the auth of this V1Schemas. # noqa: E501
529
-
530
-
531
- :return: The auth of this V1Schemas. # noqa: E501
532
- :rtype: V1AuthType
533
- """
534
- return self._auth
535
-
536
- @auth.setter
537
- def auth(self, auth):
538
- """Sets the auth of this V1Schemas.
539
-
540
-
541
- :param auth: The auth of this V1Schemas. # noqa: E501
542
- :type auth: V1AuthType
543
- """
544
-
545
- self._auth = auth
546
-
547
- @property
548
- def uri(self):
549
- """Gets the uri of this V1Schemas. # noqa: E501
550
-
551
-
552
- :return: The uri of this V1Schemas. # noqa: E501
553
- :rtype: V1UriType
554
- """
555
- return self._uri
556
-
557
- @uri.setter
558
- def uri(self, uri):
559
- """Sets the uri of this V1Schemas.
560
-
561
-
562
- :param uri: The uri of this V1Schemas. # noqa: E501
563
- :type uri: V1UriType
564
- """
565
-
566
- self._uri = uri
567
-
568
- @property
569
- def k8s_resource(self):
570
- """Gets the k8s_resource of this V1Schemas. # noqa: E501
571
-
572
-
573
- :return: The k8s_resource of this V1Schemas. # noqa: E501
574
- :rtype: V1K8sResourceType
575
- """
576
- return self._k8s_resource
577
-
578
- @k8s_resource.setter
579
- def k8s_resource(self, k8s_resource):
580
- """Sets the k8s_resource of this V1Schemas.
581
-
582
-
583
- :param k8s_resource: The k8s_resource of this V1Schemas. # noqa: E501
584
- :type k8s_resource: V1K8sResourceType
585
- """
586
-
587
- self._k8s_resource = k8s_resource
588
-
589
- @property
590
- def connection(self):
591
- """Gets the connection of this V1Schemas. # noqa: E501
592
-
593
-
594
- :return: The connection of this V1Schemas. # noqa: E501
595
- :rtype: V1ConnectionType
596
- """
597
- return self._connection
598
-
599
- @connection.setter
600
- def connection(self, connection):
601
- """Sets the connection of this V1Schemas.
602
-
603
-
604
- :param connection: The connection of this V1Schemas. # noqa: E501
605
- :type connection: V1ConnectionType
606
- """
607
-
608
- self._connection = connection
609
-
610
- @property
611
- def event_type(self):
612
- """Gets the event_type of this V1Schemas. # noqa: E501
613
-
614
-
615
- :return: The event_type of this V1Schemas. # noqa: E501
616
- :rtype: V1EventType
617
- """
618
- return self._event_type
619
-
620
- @event_type.setter
621
- def event_type(self, event_type):
622
- """Sets the event_type of this V1Schemas.
623
-
624
-
625
- :param event_type: The event_type of this V1Schemas. # noqa: E501
626
- :type event_type: V1EventType
627
- """
628
-
629
- self._event_type = event_type
630
-
631
- @property
632
- def matrix_kind(self):
633
- """Gets the matrix_kind of this V1Schemas. # noqa: E501
634
-
635
-
636
- :return: The matrix_kind of this V1Schemas. # noqa: E501
637
- :rtype: V1MatrixKind
638
- """
639
- return self._matrix_kind
640
-
641
- @matrix_kind.setter
642
- def matrix_kind(self, matrix_kind):
643
- """Sets the matrix_kind of this V1Schemas.
644
-
645
-
646
- :param matrix_kind: The matrix_kind of this V1Schemas. # noqa: E501
647
- :type matrix_kind: V1MatrixKind
648
- """
649
-
650
- self._matrix_kind = matrix_kind
651
-
652
- @property
653
- def schedule_kind(self):
654
- """Gets the schedule_kind of this V1Schemas. # noqa: E501
655
-
656
-
657
- :return: The schedule_kind of this V1Schemas. # noqa: E501
658
- :rtype: V1ScheduleKind
659
- """
660
- return self._schedule_kind
661
-
662
- @schedule_kind.setter
663
- def schedule_kind(self, schedule_kind):
664
- """Sets the schedule_kind of this V1Schemas.
665
-
666
-
667
- :param schedule_kind: The schedule_kind of this V1Schemas. # noqa: E501
668
- :type schedule_kind: V1ScheduleKind
669
- """
670
-
671
- self._schedule_kind = schedule_kind
672
-
673
- @property
674
- def event(self):
675
- """Gets the event of this V1Schemas. # noqa: E501
676
-
677
-
678
- :return: The event of this V1Schemas. # noqa: E501
679
- :rtype: V1Event
680
- """
681
- return self._event
682
-
683
- @event.setter
684
- def event(self, event):
685
- """Sets the event of this V1Schemas.
686
-
687
-
688
- :param event: The event of this V1Schemas. # noqa: E501
689
- :type event: V1Event
690
- """
691
-
692
- self._event = event
693
-
694
- def to_dict(self, serialize=False):
695
- """Returns the model properties as a dict"""
696
- result = {}
697
-
698
- def convert(x):
699
- if hasattr(x, "to_dict"):
700
- args = getfullargspec(x.to_dict).args
701
- if len(args) == 1:
702
- return x.to_dict()
703
- else:
704
- return x.to_dict(serialize)
705
- else:
706
- return x
707
-
708
- for attr, _ in six.iteritems(self.openapi_types):
709
- value = getattr(self, attr)
710
- attr = self.attribute_map.get(attr, attr) if serialize else attr
711
- if isinstance(value, list):
712
- result[attr] = list(map(
713
- lambda x: convert(x),
714
- value
715
- ))
716
- elif isinstance(value, dict):
717
- result[attr] = dict(map(
718
- lambda item: (item[0], convert(item[1])),
719
- value.items()
720
- ))
721
- else:
722
- result[attr] = convert(value)
723
-
724
- return result
725
-
726
- def to_str(self):
727
- """Returns the string representation of the model"""
728
- return pprint.pformat(self.to_dict())
729
-
730
- def __repr__(self):
731
- """For `print` and `pprint`"""
732
- return self.to_str()
733
-
734
- def __eq__(self, other):
735
- """Returns true if both objects are equal"""
736
- if not isinstance(other, V1Schemas):
737
- return False
738
-
739
- return self.to_dict() == other.to_dict()
740
-
741
- def __ne__(self, other):
742
- """Returns true if both objects are not equal"""
743
- if not isinstance(other, V1Schemas):
744
- return True
54
+ early_stopping: Optional[V1EarlyStopping] = Field(None, alias="earlyStopping")
55
+ matrix: Optional[V1Matrix] = None
56
+ run: Optional[V1RunSchema] = None
57
+ operation: Optional[V1Operation] = None
58
+ compiled_operation: Optional[V1CompiledOperation] = Field(None, alias="compiledOperation")
59
+ schedule: Optional[V1Schedule] = None
60
+ connection_schema: Optional[V1ConnectionSchema] = Field(None, alias="connectionSchema")
61
+ hp_params: Optional[V1HpParams] = Field(None, alias="hpParams")
62
+ reference: Optional[V1Reference] = None
63
+ artifacts_mount: Optional[V1ArtifactsMount] = Field(None, alias="artifactsMount")
64
+ polyaxon_sidecar_container: Optional[V1PolyaxonSidecarContainer] = Field(None, alias="polyaxonSidecarContainer")
65
+ polyaxon_init_container: Optional[V1PolyaxonInitContainer] = Field(None, alias="polyaxonInitContainer")
66
+ artifacs: Optional[V1ArtifactsType] = None
67
+ wasb: Optional[V1WasbType] = None
68
+ gcs: Optional[V1GcsType] = None
69
+ s3: Optional[V1S3Type] = None
70
+ auth: Optional[V1AuthType] = None
71
+ uri: Optional[V1UriType] = None
72
+ resource: Optional[V1ConnectionResource] = None
73
+ connection: Optional[V1ConnectionType] = None
74
+ event_type: Optional[V1EventType] = Field(None, alias="eventType")
75
+ matrix_kind: Optional[V1MatrixKind] = Field(None, alias="matrixKind")
76
+ schedule_kind: Optional[V1ScheduleKind] = Field(None, alias="scheduleKind")
77
+ event: Optional[V1Event] = None
78
+ __properties = ["earlyStopping", "matrix", "run", "operation", "compiledOperation", "schedule", "connectionSchema", "hpParams", "reference", "artifactsMount", "polyaxonSidecarContainer", "polyaxonInitContainer", "artifacs", "wasb", "gcs", "s3", "auth", "uri", "resource", "connection", "eventType", "matrixKind", "scheduleKind", "event"]
79
+
80
+ class Config:
81
+ allow_population_by_field_name = True
82
+ validate_assignment = True
83
+
84
+ def to_str(self) -> str:
85
+ """Returns the string representation of the model using alias"""
86
+ return pprint.pformat(self.dict(by_alias=True))
87
+
88
+ def to_json(self) -> str:
89
+ """Returns the JSON representation of the model using alias"""
90
+ return json.dumps(self.to_dict())
91
+
92
+ @classmethod
93
+ def from_json(cls, json_str: str) -> V1Schemas:
94
+ """Create an instance of V1Schemas from a JSON string"""
95
+ return cls.from_dict(json.loads(json_str))
96
+
97
+ def to_dict(self):
98
+ """Returns the dictionary representation of the model using alias"""
99
+ _dict = self.dict(by_alias=True,
100
+ exclude={
101
+ },
102
+ exclude_none=True)
103
+ # override the default output from pydantic by calling `to_dict()` of early_stopping
104
+ if self.early_stopping:
105
+ _dict['earlyStopping'] = self.early_stopping.to_dict()
106
+ # override the default output from pydantic by calling `to_dict()` of matrix
107
+ if self.matrix:
108
+ _dict['matrix'] = self.matrix.to_dict()
109
+ # override the default output from pydantic by calling `to_dict()` of run
110
+ if self.run:
111
+ _dict['run'] = self.run.to_dict()
112
+ # override the default output from pydantic by calling `to_dict()` of operation
113
+ if self.operation:
114
+ _dict['operation'] = self.operation.to_dict()
115
+ # override the default output from pydantic by calling `to_dict()` of compiled_operation
116
+ if self.compiled_operation:
117
+ _dict['compiledOperation'] = self.compiled_operation.to_dict()
118
+ # override the default output from pydantic by calling `to_dict()` of schedule
119
+ if self.schedule:
120
+ _dict['schedule'] = self.schedule.to_dict()
121
+ # override the default output from pydantic by calling `to_dict()` of connection_schema
122
+ if self.connection_schema:
123
+ _dict['connectionSchema'] = self.connection_schema.to_dict()
124
+ # override the default output from pydantic by calling `to_dict()` of hp_params
125
+ if self.hp_params:
126
+ _dict['hpParams'] = self.hp_params.to_dict()
127
+ # override the default output from pydantic by calling `to_dict()` of reference
128
+ if self.reference:
129
+ _dict['reference'] = self.reference.to_dict()
130
+ # override the default output from pydantic by calling `to_dict()` of artifacts_mount
131
+ if self.artifacts_mount:
132
+ _dict['artifactsMount'] = self.artifacts_mount.to_dict()
133
+ # override the default output from pydantic by calling `to_dict()` of polyaxon_sidecar_container
134
+ if self.polyaxon_sidecar_container:
135
+ _dict['polyaxonSidecarContainer'] = self.polyaxon_sidecar_container.to_dict()
136
+ # override the default output from pydantic by calling `to_dict()` of polyaxon_init_container
137
+ if self.polyaxon_init_container:
138
+ _dict['polyaxonInitContainer'] = self.polyaxon_init_container.to_dict()
139
+ # override the default output from pydantic by calling `to_dict()` of artifacs
140
+ if self.artifacs:
141
+ _dict['artifacs'] = self.artifacs.to_dict()
142
+ # override the default output from pydantic by calling `to_dict()` of wasb
143
+ if self.wasb:
144
+ _dict['wasb'] = self.wasb.to_dict()
145
+ # override the default output from pydantic by calling `to_dict()` of gcs
146
+ if self.gcs:
147
+ _dict['gcs'] = self.gcs.to_dict()
148
+ # override the default output from pydantic by calling `to_dict()` of s3
149
+ if self.s3:
150
+ _dict['s3'] = self.s3.to_dict()
151
+ # override the default output from pydantic by calling `to_dict()` of auth
152
+ if self.auth:
153
+ _dict['auth'] = self.auth.to_dict()
154
+ # override the default output from pydantic by calling `to_dict()` of uri
155
+ if self.uri:
156
+ _dict['uri'] = self.uri.to_dict()
157
+ # override the default output from pydantic by calling `to_dict()` of resource
158
+ if self.resource:
159
+ _dict['resource'] = self.resource.to_dict()
160
+ # override the default output from pydantic by calling `to_dict()` of connection
161
+ if self.connection:
162
+ _dict['connection'] = self.connection.to_dict()
163
+ # override the default output from pydantic by calling `to_dict()` of event_type
164
+ if self.event_type:
165
+ _dict['eventType'] = self.event_type.to_dict()
166
+ # override the default output from pydantic by calling `to_dict()` of event
167
+ if self.event:
168
+ _dict['event'] = self.event.to_dict()
169
+ return _dict
170
+
171
+ @classmethod
172
+ def from_dict(cls, obj: dict) -> V1Schemas:
173
+ """Create an instance of V1Schemas from a dict"""
174
+ if obj is None:
175
+ return None
176
+
177
+ if type(obj) is not dict:
178
+ return V1Schemas.parse_obj(obj)
179
+
180
+ _obj = V1Schemas.parse_obj({
181
+ "early_stopping": V1EarlyStopping.from_dict(obj.get("earlyStopping")) if obj.get("earlyStopping") is not None else None,
182
+ "matrix": V1Matrix.from_dict(obj.get("matrix")) if obj.get("matrix") is not None else None,
183
+ "run": V1RunSchema.from_dict(obj.get("run")) if obj.get("run") is not None else None,
184
+ "operation": V1Operation.from_dict(obj.get("operation")) if obj.get("operation") is not None else None,
185
+ "compiled_operation": V1CompiledOperation.from_dict(obj.get("compiledOperation")) if obj.get("compiledOperation") is not None else None,
186
+ "schedule": V1Schedule.from_dict(obj.get("schedule")) if obj.get("schedule") is not None else None,
187
+ "connection_schema": V1ConnectionSchema.from_dict(obj.get("connectionSchema")) if obj.get("connectionSchema") is not None else None,
188
+ "hp_params": V1HpParams.from_dict(obj.get("hpParams")) if obj.get("hpParams") is not None else None,
189
+ "reference": V1Reference.from_dict(obj.get("reference")) if obj.get("reference") is not None else None,
190
+ "artifacts_mount": V1ArtifactsMount.from_dict(obj.get("artifactsMount")) if obj.get("artifactsMount") is not None else None,
191
+ "polyaxon_sidecar_container": V1PolyaxonSidecarContainer.from_dict(obj.get("polyaxonSidecarContainer")) if obj.get("polyaxonSidecarContainer") is not None else None,
192
+ "polyaxon_init_container": V1PolyaxonInitContainer.from_dict(obj.get("polyaxonInitContainer")) if obj.get("polyaxonInitContainer") is not None else None,
193
+ "artifacs": V1ArtifactsType.from_dict(obj.get("artifacs")) if obj.get("artifacs") is not None else None,
194
+ "wasb": V1WasbType.from_dict(obj.get("wasb")) if obj.get("wasb") is not None else None,
195
+ "gcs": V1GcsType.from_dict(obj.get("gcs")) if obj.get("gcs") is not None else None,
196
+ "s3": V1S3Type.from_dict(obj.get("s3")) if obj.get("s3") is not None else None,
197
+ "auth": V1AuthType.from_dict(obj.get("auth")) if obj.get("auth") is not None else None,
198
+ "uri": V1UriType.from_dict(obj.get("uri")) if obj.get("uri") is not None else None,
199
+ "resource": V1ConnectionResource.from_dict(obj.get("resource")) if obj.get("resource") is not None else None,
200
+ "connection": V1ConnectionType.from_dict(obj.get("connection")) if obj.get("connection") is not None else None,
201
+ "event_type": V1EventType.from_dict(obj.get("eventType")) if obj.get("eventType") is not None else None,
202
+ "matrix_kind": obj.get("matrixKind"),
203
+ "schedule_kind": obj.get("scheduleKind"),
204
+ "event": V1Event.from_dict(obj.get("event")) if obj.get("event") is not None else None
205
+ })
206
+ return _obj
745
207
 
746
- return self.to_dict() != other.to_dict()