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,1058 +1,173 @@
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 V1Run(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
+ from datetime import datetime
23
+ from typing import Any, Dict, List, Optional
24
+ from pydantic import BaseModel, StrictBool, StrictFloat, StrictInt, StrictStr, conlist
25
+ from polyaxon_sdk.models.v1_cloning import V1Cloning
26
+ from polyaxon_sdk.models.v1_managed_by import V1ManagedBy
27
+ from polyaxon_sdk.models.v1_pipeline import V1Pipeline
28
+ from polyaxon_sdk.models.v1_run_kind import V1RunKind
29
+ from polyaxon_sdk.models.v1_run_pending import V1RunPending
30
+ from polyaxon_sdk.models.v1_run_resources import V1RunResources
31
+ from polyaxon_sdk.models.v1_run_settings import V1RunSettings
32
+ from polyaxon_sdk.models.v1_status_condition import V1StatusCondition
33
+ from polyaxon_sdk.models.v1_statuses import V1Statuses
34
+
35
+ class V1Run(BaseModel):
48
36
  """
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.
37
+ V1Run
54
38
  """
55
- openapi_types = {
56
- 'uuid': 'str',
57
- 'name': 'str',
58
- 'description': 'str',
59
- 'tags': 'list[str]',
60
- 'user': 'str',
61
- 'owner': 'str',
62
- 'project': 'str',
63
- 'schedule_at': 'datetime',
64
- 'created_at': 'datetime',
65
- 'updated_at': 'datetime',
66
- 'started_at': 'datetime',
67
- 'finished_at': 'datetime',
68
- 'wait_time': 'int',
69
- 'duration': 'int',
70
- 'is_managed': 'bool',
71
- 'is_approved': 'bool',
72
- 'pending': 'V1RunPending',
73
- 'content': 'str',
74
- 'raw_content': 'str',
75
- 'status': 'V1Statuses',
76
- 'bookmarked': 'bool',
77
- 'live_state': 'int',
78
- 'readme': 'str',
79
- 'meta_info': 'object',
80
- 'kind': 'V1RunKind',
81
- 'runtime': 'V1RunKind',
82
- 'inputs': 'object',
83
- 'outputs': 'object',
84
- 'original': 'V1Cloning',
85
- 'pipeline': 'V1Pipeline',
86
- 'status_conditions': 'list[V1StatusCondition]',
87
- 'role': 'str',
88
- 'settings': 'V1RunSettings',
89
- 'resources': 'V1RunResources',
90
- 'graph': 'object',
91
- 'merge': 'bool'
92
- }
93
-
94
- attribute_map = {
95
- 'uuid': 'uuid',
96
- 'name': 'name',
97
- 'description': 'description',
98
- 'tags': 'tags',
99
- 'user': 'user',
100
- 'owner': 'owner',
101
- 'project': 'project',
102
- 'schedule_at': 'schedule_at',
103
- 'created_at': 'created_at',
104
- 'updated_at': 'updated_at',
105
- 'started_at': 'started_at',
106
- 'finished_at': 'finished_at',
107
- 'wait_time': 'wait_time',
108
- 'duration': 'duration',
109
- 'is_managed': 'is_managed',
110
- 'is_approved': 'is_approved',
111
- 'pending': 'pending',
112
- 'content': 'content',
113
- 'raw_content': 'raw_content',
114
- 'status': 'status',
115
- 'bookmarked': 'bookmarked',
116
- 'live_state': 'live_state',
117
- 'readme': 'readme',
118
- 'meta_info': 'meta_info',
119
- 'kind': 'kind',
120
- 'runtime': 'runtime',
121
- 'inputs': 'inputs',
122
- 'outputs': 'outputs',
123
- 'original': 'original',
124
- 'pipeline': 'pipeline',
125
- 'status_conditions': 'status_conditions',
126
- 'role': 'role',
127
- 'settings': 'settings',
128
- 'resources': 'resources',
129
- 'graph': 'graph',
130
- 'merge': 'merge'
131
- }
132
-
133
- def __init__(self, uuid=None, name=None, description=None, tags=None, user=None, owner=None, project=None, schedule_at=None, created_at=None, updated_at=None, started_at=None, finished_at=None, wait_time=None, duration=None, is_managed=None, is_approved=None, pending=None, content=None, raw_content=None, status=None, bookmarked=None, live_state=None, readme=None, meta_info=None, kind=None, runtime=None, inputs=None, outputs=None, original=None, pipeline=None, status_conditions=None, role=None, settings=None, resources=None, graph=None, merge=None, local_vars_configuration=None): # noqa: E501
134
- """V1Run - a model defined in OpenAPI""" # noqa: E501
135
- if local_vars_configuration is None:
136
- local_vars_configuration = Configuration.get_default_copy()
137
- self.local_vars_configuration = local_vars_configuration
138
-
139
- self._uuid = None
140
- self._name = None
141
- self._description = None
142
- self._tags = None
143
- self._user = None
144
- self._owner = None
145
- self._project = None
146
- self._schedule_at = None
147
- self._created_at = None
148
- self._updated_at = None
149
- self._started_at = None
150
- self._finished_at = None
151
- self._wait_time = None
152
- self._duration = None
153
- self._is_managed = None
154
- self._is_approved = None
155
- self._pending = None
156
- self._content = None
157
- self._raw_content = None
158
- self._status = None
159
- self._bookmarked = None
160
- self._live_state = None
161
- self._readme = None
162
- self._meta_info = None
163
- self._kind = None
164
- self._runtime = None
165
- self._inputs = None
166
- self._outputs = None
167
- self._original = None
168
- self._pipeline = None
169
- self._status_conditions = None
170
- self._role = None
171
- self._settings = None
172
- self._resources = None
173
- self._graph = None
174
- self._merge = None
175
- self.discriminator = None
176
-
177
- if uuid is not None:
178
- self.uuid = uuid
179
- if name is not None:
180
- self.name = name
181
- if description is not None:
182
- self.description = description
183
- if tags is not None:
184
- self.tags = tags
185
- if user is not None:
186
- self.user = user
187
- if owner is not None:
188
- self.owner = owner
189
- if project is not None:
190
- self.project = project
191
- if schedule_at is not None:
192
- self.schedule_at = schedule_at
193
- if created_at is not None:
194
- self.created_at = created_at
195
- if updated_at is not None:
196
- self.updated_at = updated_at
197
- if started_at is not None:
198
- self.started_at = started_at
199
- if finished_at is not None:
200
- self.finished_at = finished_at
201
- if wait_time is not None:
202
- self.wait_time = wait_time
203
- if duration is not None:
204
- self.duration = duration
205
- if is_managed is not None:
206
- self.is_managed = is_managed
207
- if is_approved is not None:
208
- self.is_approved = is_approved
209
- if pending is not None:
210
- self.pending = pending
211
- if content is not None:
212
- self.content = content
213
- if raw_content is not None:
214
- self.raw_content = raw_content
215
- if status is not None:
216
- self.status = status
217
- if bookmarked is not None:
218
- self.bookmarked = bookmarked
219
- if live_state is not None:
220
- self.live_state = live_state
221
- if readme is not None:
222
- self.readme = readme
223
- if meta_info is not None:
224
- self.meta_info = meta_info
225
- if kind is not None:
226
- self.kind = kind
227
- if runtime is not None:
228
- self.runtime = runtime
229
- if inputs is not None:
230
- self.inputs = inputs
231
- if outputs is not None:
232
- self.outputs = outputs
233
- if original is not None:
234
- self.original = original
235
- if pipeline is not None:
236
- self.pipeline = pipeline
237
- if status_conditions is not None:
238
- self.status_conditions = status_conditions
239
- if role is not None:
240
- self.role = role
241
- if settings is not None:
242
- self.settings = settings
243
- if resources is not None:
244
- self.resources = resources
245
- if graph is not None:
246
- self.graph = graph
247
- if merge is not None:
248
- self.merge = merge
249
-
250
- @property
251
- def uuid(self):
252
- """Gets the uuid of this V1Run. # noqa: E501
253
-
254
-
255
- :return: The uuid of this V1Run. # noqa: E501
256
- :rtype: str
257
- """
258
- return self._uuid
259
-
260
- @uuid.setter
261
- def uuid(self, uuid):
262
- """Sets the uuid of this V1Run.
263
-
264
-
265
- :param uuid: The uuid of this V1Run. # noqa: E501
266
- :type uuid: str
267
- """
268
-
269
- self._uuid = uuid
270
-
271
- @property
272
- def name(self):
273
- """Gets the name of this V1Run. # noqa: E501
274
-
275
-
276
- :return: The name of this V1Run. # noqa: E501
277
- :rtype: str
278
- """
279
- return self._name
280
-
281
- @name.setter
282
- def name(self, name):
283
- """Sets the name of this V1Run.
284
-
285
-
286
- :param name: The name of this V1Run. # noqa: E501
287
- :type name: str
288
- """
289
-
290
- self._name = name
291
-
292
- @property
293
- def description(self):
294
- """Gets the description of this V1Run. # noqa: E501
295
-
296
-
297
- :return: The description of this V1Run. # noqa: E501
298
- :rtype: str
299
- """
300
- return self._description
301
-
302
- @description.setter
303
- def description(self, description):
304
- """Sets the description of this V1Run.
305
-
306
-
307
- :param description: The description of this V1Run. # noqa: E501
308
- :type description: str
309
- """
310
-
311
- self._description = description
312
-
313
- @property
314
- def tags(self):
315
- """Gets the tags of this V1Run. # noqa: E501
316
-
317
-
318
- :return: The tags of this V1Run. # noqa: E501
319
- :rtype: list[str]
320
- """
321
- return self._tags
322
-
323
- @tags.setter
324
- def tags(self, tags):
325
- """Sets the tags of this V1Run.
326
-
327
-
328
- :param tags: The tags of this V1Run. # noqa: E501
329
- :type tags: list[str]
330
- """
331
-
332
- self._tags = tags
333
-
334
- @property
335
- def user(self):
336
- """Gets the user of this V1Run. # noqa: E501
337
-
338
-
339
- :return: The user of this V1Run. # noqa: E501
340
- :rtype: str
341
- """
342
- return self._user
343
-
344
- @user.setter
345
- def user(self, user):
346
- """Sets the user of this V1Run.
347
-
348
-
349
- :param user: The user of this V1Run. # noqa: E501
350
- :type user: str
351
- """
352
-
353
- self._user = user
354
-
355
- @property
356
- def owner(self):
357
- """Gets the owner of this V1Run. # noqa: E501
358
-
359
-
360
- :return: The owner of this V1Run. # noqa: E501
361
- :rtype: str
362
- """
363
- return self._owner
364
-
365
- @owner.setter
366
- def owner(self, owner):
367
- """Sets the owner of this V1Run.
368
-
369
-
370
- :param owner: The owner of this V1Run. # noqa: E501
371
- :type owner: str
372
- """
373
-
374
- self._owner = owner
375
-
376
- @property
377
- def project(self):
378
- """Gets the project of this V1Run. # noqa: E501
379
-
380
-
381
- :return: The project of this V1Run. # noqa: E501
382
- :rtype: str
383
- """
384
- return self._project
385
-
386
- @project.setter
387
- def project(self, project):
388
- """Sets the project of this V1Run.
389
-
390
-
391
- :param project: The project of this V1Run. # noqa: E501
392
- :type project: str
393
- """
394
-
395
- self._project = project
396
-
397
- @property
398
- def schedule_at(self):
399
- """Gets the schedule_at of this V1Run. # noqa: E501
400
-
401
-
402
- :return: The schedule_at of this V1Run. # noqa: E501
403
- :rtype: datetime
404
- """
405
- return self._schedule_at
406
-
407
- @schedule_at.setter
408
- def schedule_at(self, schedule_at):
409
- """Sets the schedule_at of this V1Run.
410
-
411
-
412
- :param schedule_at: The schedule_at of this V1Run. # noqa: E501
413
- :type schedule_at: datetime
414
- """
415
-
416
- self._schedule_at = schedule_at
417
-
418
- @property
419
- def created_at(self):
420
- """Gets the created_at of this V1Run. # noqa: E501
421
-
422
-
423
- :return: The created_at of this V1Run. # noqa: E501
424
- :rtype: datetime
425
- """
426
- return self._created_at
427
-
428
- @created_at.setter
429
- def created_at(self, created_at):
430
- """Sets the created_at of this V1Run.
431
-
432
-
433
- :param created_at: The created_at of this V1Run. # noqa: E501
434
- :type created_at: datetime
435
- """
436
-
437
- self._created_at = created_at
438
-
439
- @property
440
- def updated_at(self):
441
- """Gets the updated_at of this V1Run. # noqa: E501
442
-
443
-
444
- :return: The updated_at of this V1Run. # noqa: E501
445
- :rtype: datetime
446
- """
447
- return self._updated_at
448
-
449
- @updated_at.setter
450
- def updated_at(self, updated_at):
451
- """Sets the updated_at of this V1Run.
452
-
453
-
454
- :param updated_at: The updated_at of this V1Run. # noqa: E501
455
- :type updated_at: datetime
456
- """
457
-
458
- self._updated_at = updated_at
459
-
460
- @property
461
- def started_at(self):
462
- """Gets the started_at of this V1Run. # noqa: E501
463
-
464
-
465
- :return: The started_at of this V1Run. # noqa: E501
466
- :rtype: datetime
467
- """
468
- return self._started_at
469
-
470
- @started_at.setter
471
- def started_at(self, started_at):
472
- """Sets the started_at of this V1Run.
473
-
474
-
475
- :param started_at: The started_at of this V1Run. # noqa: E501
476
- :type started_at: datetime
477
- """
478
-
479
- self._started_at = started_at
480
-
481
- @property
482
- def finished_at(self):
483
- """Gets the finished_at of this V1Run. # noqa: E501
484
-
485
-
486
- :return: The finished_at of this V1Run. # noqa: E501
487
- :rtype: datetime
488
- """
489
- return self._finished_at
490
-
491
- @finished_at.setter
492
- def finished_at(self, finished_at):
493
- """Sets the finished_at of this V1Run.
494
-
495
-
496
- :param finished_at: The finished_at of this V1Run. # noqa: E501
497
- :type finished_at: datetime
498
- """
499
-
500
- self._finished_at = finished_at
501
-
502
- @property
503
- def wait_time(self):
504
- """Gets the wait_time of this V1Run. # noqa: E501
505
-
506
-
507
- :return: The wait_time of this V1Run. # noqa: E501
508
- :rtype: int
509
- """
510
- return self._wait_time
511
-
512
- @wait_time.setter
513
- def wait_time(self, wait_time):
514
- """Sets the wait_time of this V1Run.
515
-
516
-
517
- :param wait_time: The wait_time of this V1Run. # noqa: E501
518
- :type wait_time: int
519
- """
520
-
521
- self._wait_time = wait_time
522
-
523
- @property
524
- def duration(self):
525
- """Gets the duration of this V1Run. # noqa: E501
526
-
527
-
528
- :return: The duration of this V1Run. # noqa: E501
529
- :rtype: int
530
- """
531
- return self._duration
532
-
533
- @duration.setter
534
- def duration(self, duration):
535
- """Sets the duration of this V1Run.
536
-
537
-
538
- :param duration: The duration of this V1Run. # noqa: E501
539
- :type duration: int
540
- """
541
-
542
- self._duration = duration
543
-
544
- @property
545
- def is_managed(self):
546
- """Gets the is_managed of this V1Run. # noqa: E501
547
-
548
-
549
- :return: The is_managed of this V1Run. # noqa: E501
550
- :rtype: bool
551
- """
552
- return self._is_managed
553
-
554
- @is_managed.setter
555
- def is_managed(self, is_managed):
556
- """Sets the is_managed of this V1Run.
557
-
558
-
559
- :param is_managed: The is_managed of this V1Run. # noqa: E501
560
- :type is_managed: bool
561
- """
562
-
563
- self._is_managed = is_managed
564
-
565
- @property
566
- def is_approved(self):
567
- """Gets the is_approved of this V1Run. # noqa: E501
568
-
569
-
570
- :return: The is_approved of this V1Run. # noqa: E501
571
- :rtype: bool
572
- """
573
- return self._is_approved
574
-
575
- @is_approved.setter
576
- def is_approved(self, is_approved):
577
- """Sets the is_approved of this V1Run.
578
-
579
-
580
- :param is_approved: The is_approved of this V1Run. # noqa: E501
581
- :type is_approved: bool
582
- """
583
-
584
- self._is_approved = is_approved
585
-
586
- @property
587
- def pending(self):
588
- """Gets the pending of this V1Run. # noqa: E501
589
-
590
-
591
- :return: The pending of this V1Run. # noqa: E501
592
- :rtype: V1RunPending
593
- """
594
- return self._pending
595
-
596
- @pending.setter
597
- def pending(self, pending):
598
- """Sets the pending of this V1Run.
599
-
600
-
601
- :param pending: The pending of this V1Run. # noqa: E501
602
- :type pending: V1RunPending
603
- """
604
-
605
- self._pending = pending
606
-
607
- @property
608
- def content(self):
609
- """Gets the content of this V1Run. # noqa: E501
610
-
611
-
612
- :return: The content of this V1Run. # noqa: E501
613
- :rtype: str
614
- """
615
- return self._content
616
-
617
- @content.setter
618
- def content(self, content):
619
- """Sets the content of this V1Run.
620
-
621
-
622
- :param content: The content of this V1Run. # noqa: E501
623
- :type content: str
624
- """
625
-
626
- self._content = content
627
-
628
- @property
629
- def raw_content(self):
630
- """Gets the raw_content of this V1Run. # noqa: E501
631
-
632
-
633
- :return: The raw_content of this V1Run. # noqa: E501
634
- :rtype: str
635
- """
636
- return self._raw_content
637
-
638
- @raw_content.setter
639
- def raw_content(self, raw_content):
640
- """Sets the raw_content of this V1Run.
641
-
642
-
643
- :param raw_content: The raw_content of this V1Run. # noqa: E501
644
- :type raw_content: str
645
- """
646
-
647
- self._raw_content = raw_content
648
-
649
- @property
650
- def status(self):
651
- """Gets the status of this V1Run. # noqa: E501
652
-
653
-
654
- :return: The status of this V1Run. # noqa: E501
655
- :rtype: V1Statuses
656
- """
657
- return self._status
658
-
659
- @status.setter
660
- def status(self, status):
661
- """Sets the status of this V1Run.
662
-
663
-
664
- :param status: The status of this V1Run. # noqa: E501
665
- :type status: V1Statuses
666
- """
667
-
668
- self._status = status
669
-
670
- @property
671
- def bookmarked(self):
672
- """Gets the bookmarked of this V1Run. # noqa: E501
673
-
674
-
675
- :return: The bookmarked of this V1Run. # noqa: E501
676
- :rtype: bool
677
- """
678
- return self._bookmarked
679
-
680
- @bookmarked.setter
681
- def bookmarked(self, bookmarked):
682
- """Sets the bookmarked of this V1Run.
683
-
684
-
685
- :param bookmarked: The bookmarked of this V1Run. # noqa: E501
686
- :type bookmarked: bool
687
- """
688
-
689
- self._bookmarked = bookmarked
690
-
691
- @property
692
- def live_state(self):
693
- """Gets the live_state of this V1Run. # noqa: E501
694
-
695
-
696
- :return: The live_state of this V1Run. # noqa: E501
697
- :rtype: int
698
- """
699
- return self._live_state
700
-
701
- @live_state.setter
702
- def live_state(self, live_state):
703
- """Sets the live_state of this V1Run.
704
-
705
-
706
- :param live_state: The live_state of this V1Run. # noqa: E501
707
- :type live_state: int
708
- """
709
-
710
- self._live_state = live_state
711
-
712
- @property
713
- def readme(self):
714
- """Gets the readme of this V1Run. # noqa: E501
715
-
716
-
717
- :return: The readme of this V1Run. # noqa: E501
718
- :rtype: str
719
- """
720
- return self._readme
721
-
722
- @readme.setter
723
- def readme(self, readme):
724
- """Sets the readme of this V1Run.
725
-
726
-
727
- :param readme: The readme of this V1Run. # noqa: E501
728
- :type readme: str
729
- """
730
-
731
- self._readme = readme
732
-
733
- @property
734
- def meta_info(self):
735
- """Gets the meta_info of this V1Run. # noqa: E501
736
-
737
-
738
- :return: The meta_info of this V1Run. # noqa: E501
739
- :rtype: object
740
- """
741
- return self._meta_info
742
-
743
- @meta_info.setter
744
- def meta_info(self, meta_info):
745
- """Sets the meta_info of this V1Run.
746
-
747
-
748
- :param meta_info: The meta_info of this V1Run. # noqa: E501
749
- :type meta_info: object
750
- """
751
-
752
- self._meta_info = meta_info
753
-
754
- @property
755
- def kind(self):
756
- """Gets the kind of this V1Run. # noqa: E501
757
-
758
-
759
- :return: The kind of this V1Run. # noqa: E501
760
- :rtype: V1RunKind
761
- """
762
- return self._kind
763
-
764
- @kind.setter
765
- def kind(self, kind):
766
- """Sets the kind of this V1Run.
767
-
768
-
769
- :param kind: The kind of this V1Run. # noqa: E501
770
- :type kind: V1RunKind
771
- """
772
-
773
- self._kind = kind
774
-
775
- @property
776
- def runtime(self):
777
- """Gets the runtime of this V1Run. # noqa: E501
778
-
779
-
780
- :return: The runtime of this V1Run. # noqa: E501
781
- :rtype: V1RunKind
782
- """
783
- return self._runtime
784
-
785
- @runtime.setter
786
- def runtime(self, runtime):
787
- """Sets the runtime of this V1Run.
788
-
789
-
790
- :param runtime: The runtime of this V1Run. # noqa: E501
791
- :type runtime: V1RunKind
792
- """
793
-
794
- self._runtime = runtime
795
-
796
- @property
797
- def inputs(self):
798
- """Gets the inputs of this V1Run. # noqa: E501
799
-
800
-
801
- :return: The inputs of this V1Run. # noqa: E501
802
- :rtype: object
803
- """
804
- return self._inputs
805
-
806
- @inputs.setter
807
- def inputs(self, inputs):
808
- """Sets the inputs of this V1Run.
809
-
810
-
811
- :param inputs: The inputs of this V1Run. # noqa: E501
812
- :type inputs: object
813
- """
814
-
815
- self._inputs = inputs
816
-
817
- @property
818
- def outputs(self):
819
- """Gets the outputs of this V1Run. # noqa: E501
820
-
821
-
822
- :return: The outputs of this V1Run. # noqa: E501
823
- :rtype: object
824
- """
825
- return self._outputs
826
-
827
- @outputs.setter
828
- def outputs(self, outputs):
829
- """Sets the outputs of this V1Run.
830
-
831
-
832
- :param outputs: The outputs of this V1Run. # noqa: E501
833
- :type outputs: object
834
- """
835
-
836
- self._outputs = outputs
837
-
838
- @property
839
- def original(self):
840
- """Gets the original of this V1Run. # noqa: E501
841
-
842
-
843
- :return: The original of this V1Run. # noqa: E501
844
- :rtype: V1Cloning
845
- """
846
- return self._original
847
-
848
- @original.setter
849
- def original(self, original):
850
- """Sets the original of this V1Run.
851
-
852
-
853
- :param original: The original of this V1Run. # noqa: E501
854
- :type original: V1Cloning
855
- """
856
-
857
- self._original = original
858
-
859
- @property
860
- def pipeline(self):
861
- """Gets the pipeline of this V1Run. # noqa: E501
862
-
863
-
864
- :return: The pipeline of this V1Run. # noqa: E501
865
- :rtype: V1Pipeline
866
- """
867
- return self._pipeline
868
-
869
- @pipeline.setter
870
- def pipeline(self, pipeline):
871
- """Sets the pipeline of this V1Run.
872
-
873
-
874
- :param pipeline: The pipeline of this V1Run. # noqa: E501
875
- :type pipeline: V1Pipeline
876
- """
877
-
878
- self._pipeline = pipeline
879
-
880
- @property
881
- def status_conditions(self):
882
- """Gets the status_conditions of this V1Run. # noqa: E501
883
-
884
-
885
- :return: The status_conditions of this V1Run. # noqa: E501
886
- :rtype: list[V1StatusCondition]
887
- """
888
- return self._status_conditions
889
-
890
- @status_conditions.setter
891
- def status_conditions(self, status_conditions):
892
- """Sets the status_conditions of this V1Run.
893
-
894
-
895
- :param status_conditions: The status_conditions of this V1Run. # noqa: E501
896
- :type status_conditions: list[V1StatusCondition]
897
- """
898
-
899
- self._status_conditions = status_conditions
900
-
901
- @property
902
- def role(self):
903
- """Gets the role of this V1Run. # noqa: E501
904
-
905
-
906
- :return: The role of this V1Run. # noqa: E501
907
- :rtype: str
908
- """
909
- return self._role
910
-
911
- @role.setter
912
- def role(self, role):
913
- """Sets the role of this V1Run.
914
-
915
-
916
- :param role: The role of this V1Run. # noqa: E501
917
- :type role: str
918
- """
919
-
920
- self._role = role
921
-
922
- @property
923
- def settings(self):
924
- """Gets the settings of this V1Run. # noqa: E501
925
-
926
-
927
- :return: The settings of this V1Run. # noqa: E501
928
- :rtype: V1RunSettings
929
- """
930
- return self._settings
931
-
932
- @settings.setter
933
- def settings(self, settings):
934
- """Sets the settings of this V1Run.
935
-
936
-
937
- :param settings: The settings of this V1Run. # noqa: E501
938
- :type settings: V1RunSettings
939
- """
940
-
941
- self._settings = settings
942
-
943
- @property
944
- def resources(self):
945
- """Gets the resources of this V1Run. # noqa: E501
946
-
947
-
948
- :return: The resources of this V1Run. # noqa: E501
949
- :rtype: V1RunResources
950
- """
951
- return self._resources
952
-
953
- @resources.setter
954
- def resources(self, resources):
955
- """Sets the resources of this V1Run.
956
-
957
-
958
- :param resources: The resources of this V1Run. # noqa: E501
959
- :type resources: V1RunResources
960
- """
961
-
962
- self._resources = resources
963
-
964
- @property
965
- def graph(self):
966
- """Gets the graph of this V1Run. # noqa: E501
967
-
968
-
969
- :return: The graph of this V1Run. # noqa: E501
970
- :rtype: object
971
- """
972
- return self._graph
973
-
974
- @graph.setter
975
- def graph(self, graph):
976
- """Sets the graph of this V1Run.
977
-
978
-
979
- :param graph: The graph of this V1Run. # noqa: E501
980
- :type graph: object
981
- """
982
-
983
- self._graph = graph
984
-
985
- @property
986
- def merge(self):
987
- """Gets the merge of this V1Run. # noqa: E501
988
-
989
-
990
- :return: The merge of this V1Run. # noqa: E501
991
- :rtype: bool
992
- """
993
- return self._merge
994
-
995
- @merge.setter
996
- def merge(self, merge):
997
- """Sets the merge of this V1Run.
998
-
999
-
1000
- :param merge: The merge of this V1Run. # noqa: E501
1001
- :type merge: bool
1002
- """
1003
-
1004
- self._merge = merge
1005
-
1006
- def to_dict(self, serialize=False):
1007
- """Returns the model properties as a dict"""
1008
- result = {}
1009
-
1010
- def convert(x):
1011
- if hasattr(x, "to_dict"):
1012
- args = getfullargspec(x.to_dict).args
1013
- if len(args) == 1:
1014
- return x.to_dict()
1015
- else:
1016
- return x.to_dict(serialize)
1017
- else:
1018
- return x
1019
-
1020
- for attr, _ in six.iteritems(self.openapi_types):
1021
- value = getattr(self, attr)
1022
- attr = self.attribute_map.get(attr, attr) if serialize else attr
1023
- if isinstance(value, list):
1024
- result[attr] = list(map(
1025
- lambda x: convert(x),
1026
- value
1027
- ))
1028
- elif isinstance(value, dict):
1029
- result[attr] = dict(map(
1030
- lambda item: (item[0], convert(item[1])),
1031
- value.items()
1032
- ))
1033
- else:
1034
- result[attr] = convert(value)
1035
-
1036
- return result
1037
-
1038
- def to_str(self):
1039
- """Returns the string representation of the model"""
1040
- return pprint.pformat(self.to_dict())
1041
-
1042
- def __repr__(self):
1043
- """For `print` and `pprint`"""
1044
- return self.to_str()
1045
-
1046
- def __eq__(self, other):
1047
- """Returns true if both objects are equal"""
1048
- if not isinstance(other, V1Run):
1049
- return False
1050
-
1051
- return self.to_dict() == other.to_dict()
1052
-
1053
- def __ne__(self, other):
1054
- """Returns true if both objects are not equal"""
1055
- if not isinstance(other, V1Run):
1056
- return True
39
+ uuid: Optional[StrictStr] = None
40
+ name: Optional[StrictStr] = None
41
+ description: Optional[StrictStr] = None
42
+ tags: Optional[conlist(StrictStr)] = None
43
+ user: Optional[StrictStr] = None
44
+ owner: Optional[StrictStr] = None
45
+ project: Optional[StrictStr] = None
46
+ schedule_at: Optional[datetime] = None
47
+ created_at: Optional[datetime] = None
48
+ updated_at: Optional[datetime] = None
49
+ started_at: Optional[datetime] = None
50
+ finished_at: Optional[datetime] = None
51
+ wait_time: Optional[StrictFloat] = None
52
+ duration: Optional[StrictFloat] = None
53
+ managed_by: Optional[V1ManagedBy] = None
54
+ is_managed: Optional[StrictBool] = None
55
+ is_approved: Optional[StrictBool] = None
56
+ pending: Optional[V1RunPending] = None
57
+ content: Optional[StrictStr] = None
58
+ raw_content: Optional[StrictStr] = None
59
+ status: Optional[V1Statuses] = None
60
+ bookmarked: Optional[StrictBool] = None
61
+ live_state: Optional[StrictInt] = None
62
+ readme: Optional[StrictStr] = None
63
+ meta_info: Optional[Dict[str, Any]] = None
64
+ kind: Optional[V1RunKind] = None
65
+ runtime: Optional[V1RunKind] = None
66
+ inputs: Optional[Dict[str, Any]] = None
67
+ outputs: Optional[Dict[str, Any]] = None
68
+ original: Optional[V1Cloning] = None
69
+ pipeline: Optional[V1Pipeline] = None
70
+ status_conditions: Optional[conlist(V1StatusCondition)] = None
71
+ role: Optional[StrictStr] = None
72
+ contributors: Optional[conlist(Dict[str, Any])] = None
73
+ settings: Optional[V1RunSettings] = None
74
+ resources: Optional[V1RunResources] = None
75
+ graph: Optional[Dict[str, Any]] = None
76
+ merge: Optional[StrictBool] = None
77
+ __properties = ["uuid", "name", "description", "tags", "user", "owner", "project", "schedule_at", "created_at", "updated_at", "started_at", "finished_at", "wait_time", "duration", "managed_by", "is_managed", "is_approved", "pending", "content", "raw_content", "status", "bookmarked", "live_state", "readme", "meta_info", "kind", "runtime", "inputs", "outputs", "original", "pipeline", "status_conditions", "role", "contributors", "settings", "resources", "graph", "merge"]
78
+
79
+ class Config:
80
+ allow_population_by_field_name = True
81
+ validate_assignment = True
82
+
83
+ def to_str(self) -> str:
84
+ """Returns the string representation of the model using alias"""
85
+ return pprint.pformat(self.dict(by_alias=True))
86
+
87
+ def to_json(self) -> str:
88
+ """Returns the JSON representation of the model using alias"""
89
+ return json.dumps(self.to_dict())
90
+
91
+ @classmethod
92
+ def from_json(cls, json_str: str) -> V1Run:
93
+ """Create an instance of V1Run from a JSON string"""
94
+ return cls.from_dict(json.loads(json_str))
95
+
96
+ def to_dict(self):
97
+ """Returns the dictionary representation of the model using alias"""
98
+ _dict = self.dict(by_alias=True,
99
+ exclude={
100
+ },
101
+ exclude_none=True)
102
+ # override the default output from pydantic by calling `to_dict()` of original
103
+ if self.original:
104
+ _dict['original'] = self.original.to_dict()
105
+ # override the default output from pydantic by calling `to_dict()` of pipeline
106
+ if self.pipeline:
107
+ _dict['pipeline'] = self.pipeline.to_dict()
108
+ # override the default output from pydantic by calling `to_dict()` of each item in status_conditions (list)
109
+ _items = []
110
+ if self.status_conditions:
111
+ for _item in self.status_conditions:
112
+ if _item:
113
+ _items.append(_item.to_dict())
114
+ _dict['status_conditions'] = _items
115
+ # override the default output from pydantic by calling `to_dict()` of settings
116
+ if self.settings:
117
+ _dict['settings'] = self.settings.to_dict()
118
+ # override the default output from pydantic by calling `to_dict()` of resources
119
+ if self.resources:
120
+ _dict['resources'] = self.resources.to_dict()
121
+ return _dict
122
+
123
+ @classmethod
124
+ def from_dict(cls, obj: dict) -> V1Run:
125
+ """Create an instance of V1Run from a dict"""
126
+ if obj is None:
127
+ return None
128
+
129
+ if type(obj) is not dict:
130
+ return V1Run.parse_obj(obj)
131
+
132
+ _obj = V1Run.parse_obj({
133
+ "uuid": obj.get("uuid"),
134
+ "name": obj.get("name"),
135
+ "description": obj.get("description"),
136
+ "tags": obj.get("tags"),
137
+ "user": obj.get("user"),
138
+ "owner": obj.get("owner"),
139
+ "project": obj.get("project"),
140
+ "schedule_at": obj.get("schedule_at"),
141
+ "created_at": obj.get("created_at"),
142
+ "updated_at": obj.get("updated_at"),
143
+ "started_at": obj.get("started_at"),
144
+ "finished_at": obj.get("finished_at"),
145
+ "wait_time": obj.get("wait_time"),
146
+ "duration": obj.get("duration"),
147
+ "managed_by": obj.get("managed_by"),
148
+ "is_managed": obj.get("is_managed"),
149
+ "is_approved": obj.get("is_approved"),
150
+ "pending": obj.get("pending"),
151
+ "content": obj.get("content"),
152
+ "raw_content": obj.get("raw_content"),
153
+ "status": obj.get("status"),
154
+ "bookmarked": obj.get("bookmarked"),
155
+ "live_state": obj.get("live_state"),
156
+ "readme": obj.get("readme"),
157
+ "meta_info": obj.get("meta_info"),
158
+ "kind": obj.get("kind"),
159
+ "runtime": obj.get("runtime"),
160
+ "inputs": obj.get("inputs"),
161
+ "outputs": obj.get("outputs"),
162
+ "original": V1Cloning.from_dict(obj.get("original")) if obj.get("original") is not None else None,
163
+ "pipeline": V1Pipeline.from_dict(obj.get("pipeline")) if obj.get("pipeline") is not None else None,
164
+ "status_conditions": [V1StatusCondition.from_dict(_item) for _item in obj.get("status_conditions")] if obj.get("status_conditions") is not None else None,
165
+ "role": obj.get("role"),
166
+ "contributors": obj.get("contributors"),
167
+ "settings": V1RunSettings.from_dict(obj.get("settings")) if obj.get("settings") is not None else None,
168
+ "resources": V1RunResources.from_dict(obj.get("resources")) if obj.get("resources") is not None else None,
169
+ "graph": obj.get("graph"),
170
+ "merge": obj.get("merge")
171
+ })
172
+ return _obj
1057
173
 
1058
- return self.to_dict() != other.to_dict()