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,434 +1,113 @@
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
20
+ import json
39
21
 
40
22
 
41
- class V1Init(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
- """
23
+ from typing import Any, Dict, List, Optional
24
+ from pydantic import BaseModel, Field, StrictStr, conlist
25
+ from polyaxon_sdk.models.v1_artifacts_type import V1ArtifactsType
26
+ from polyaxon_sdk.models.v1_dockerfile_type import V1DockerfileType
27
+ from polyaxon_sdk.models.v1_file_type import V1FileType
28
+ from polyaxon_sdk.models.v1_git_type import V1GitType
29
+ from polyaxon_sdk.models.v1_tensorboard_type import V1TensorboardType
47
30
 
31
+ class V1Init(BaseModel):
48
32
  """
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.
33
+ V1Init
54
34
  """
55
- openapi_types = {
56
- 'artifacts': 'V1ArtifactsType',
57
- 'paths': 'list[object]',
58
- 'git': 'V1GitType',
59
- 'dockerfile': 'V1DockerfileType',
60
- 'file': 'V1FileType',
61
- 'tensorboard': 'V1TensorboardType',
62
- 'lineage_ref': 'str',
63
- 'artifact_ref': 'str',
64
- 'model_ref': 'str',
65
- 'connection': 'str',
66
- 'path': 'str',
67
- 'container': 'V1Container'
68
- }
69
-
70
- attribute_map = {
71
- 'artifacts': 'artifacts',
72
- 'paths': 'paths',
73
- 'git': 'git',
74
- 'dockerfile': 'dockerfile',
75
- 'file': 'file',
76
- 'tensorboard': 'tensorboard',
77
- 'lineage_ref': 'lineageRef',
78
- 'artifact_ref': 'artifactRef',
79
- 'model_ref': 'modelRef',
80
- 'connection': 'connection',
81
- 'path': 'path',
82
- 'container': 'container'
83
- }
84
-
85
- def __init__(self, artifacts=None, paths=None, git=None, dockerfile=None, file=None, tensorboard=None, lineage_ref=None, artifact_ref=None, model_ref=None, connection=None, path=None, container=None, local_vars_configuration=None): # noqa: E501
86
- """V1Init - a model defined in OpenAPI""" # noqa: E501
87
- if local_vars_configuration is None:
88
- local_vars_configuration = Configuration.get_default_copy()
89
- self.local_vars_configuration = local_vars_configuration
90
-
91
- self._artifacts = None
92
- self._paths = None
93
- self._git = None
94
- self._dockerfile = None
95
- self._file = None
96
- self._tensorboard = None
97
- self._lineage_ref = None
98
- self._artifact_ref = None
99
- self._model_ref = None
100
- self._connection = None
101
- self._path = None
102
- self._container = None
103
- self.discriminator = None
104
-
105
- if artifacts is not None:
106
- self.artifacts = artifacts
107
- if paths is not None:
108
- self.paths = paths
109
- if git is not None:
110
- self.git = git
111
- if dockerfile is not None:
112
- self.dockerfile = dockerfile
113
- if file is not None:
114
- self.file = file
115
- if tensorboard is not None:
116
- self.tensorboard = tensorboard
117
- if lineage_ref is not None:
118
- self.lineage_ref = lineage_ref
119
- if artifact_ref is not None:
120
- self.artifact_ref = artifact_ref
121
- if model_ref is not None:
122
- self.model_ref = model_ref
123
- if connection is not None:
124
- self.connection = connection
125
- if path is not None:
126
- self.path = path
127
- if container is not None:
128
- self.container = container
129
-
130
- @property
131
- def artifacts(self):
132
- """Gets the artifacts of this V1Init. # noqa: E501
133
-
134
-
135
- :return: The artifacts of this V1Init. # noqa: E501
136
- :rtype: V1ArtifactsType
137
- """
138
- return self._artifacts
139
-
140
- @artifacts.setter
141
- def artifacts(self, artifacts):
142
- """Sets the artifacts of this V1Init.
143
-
144
-
145
- :param artifacts: The artifacts of this V1Init. # noqa: E501
146
- :type artifacts: V1ArtifactsType
147
- """
148
-
149
- self._artifacts = artifacts
150
-
151
- @property
152
- def paths(self):
153
- """Gets the paths of this V1Init. # noqa: E501
154
-
155
-
156
- :return: The paths of this V1Init. # noqa: E501
157
- :rtype: list[object]
158
- """
159
- return self._paths
160
-
161
- @paths.setter
162
- def paths(self, paths):
163
- """Sets the paths of this V1Init.
164
-
165
-
166
- :param paths: The paths of this V1Init. # noqa: E501
167
- :type paths: list[object]
168
- """
169
-
170
- self._paths = paths
171
-
172
- @property
173
- def git(self):
174
- """Gets the git of this V1Init. # noqa: E501
175
-
176
-
177
- :return: The git of this V1Init. # noqa: E501
178
- :rtype: V1GitType
179
- """
180
- return self._git
181
-
182
- @git.setter
183
- def git(self, git):
184
- """Sets the git of this V1Init.
185
-
186
-
187
- :param git: The git of this V1Init. # noqa: E501
188
- :type git: V1GitType
189
- """
190
-
191
- self._git = git
192
-
193
- @property
194
- def dockerfile(self):
195
- """Gets the dockerfile of this V1Init. # noqa: E501
196
-
197
-
198
- :return: The dockerfile of this V1Init. # noqa: E501
199
- :rtype: V1DockerfileType
200
- """
201
- return self._dockerfile
202
-
203
- @dockerfile.setter
204
- def dockerfile(self, dockerfile):
205
- """Sets the dockerfile of this V1Init.
206
-
207
-
208
- :param dockerfile: The dockerfile of this V1Init. # noqa: E501
209
- :type dockerfile: V1DockerfileType
210
- """
211
-
212
- self._dockerfile = dockerfile
213
-
214
- @property
215
- def file(self):
216
- """Gets the file of this V1Init. # noqa: E501
217
-
218
-
219
- :return: The file of this V1Init. # noqa: E501
220
- :rtype: V1FileType
221
- """
222
- return self._file
223
-
224
- @file.setter
225
- def file(self, file):
226
- """Sets the file of this V1Init.
227
-
228
-
229
- :param file: The file of this V1Init. # noqa: E501
230
- :type file: V1FileType
231
- """
232
-
233
- self._file = file
234
-
235
- @property
236
- def tensorboard(self):
237
- """Gets the tensorboard of this V1Init. # noqa: E501
238
-
239
-
240
- :return: The tensorboard of this V1Init. # noqa: E501
241
- :rtype: V1TensorboardType
242
- """
243
- return self._tensorboard
244
-
245
- @tensorboard.setter
246
- def tensorboard(self, tensorboard):
247
- """Sets the tensorboard of this V1Init.
248
-
249
-
250
- :param tensorboard: The tensorboard of this V1Init. # noqa: E501
251
- :type tensorboard: V1TensorboardType
252
- """
253
-
254
- self._tensorboard = tensorboard
255
-
256
- @property
257
- def lineage_ref(self):
258
- """Gets the lineage_ref of this V1Init. # noqa: E501
259
-
260
-
261
- :return: The lineage_ref of this V1Init. # noqa: E501
262
- :rtype: str
263
- """
264
- return self._lineage_ref
265
-
266
- @lineage_ref.setter
267
- def lineage_ref(self, lineage_ref):
268
- """Sets the lineage_ref of this V1Init.
269
-
270
-
271
- :param lineage_ref: The lineage_ref of this V1Init. # noqa: E501
272
- :type lineage_ref: str
273
- """
274
-
275
- self._lineage_ref = lineage_ref
276
-
277
- @property
278
- def artifact_ref(self):
279
- """Gets the artifact_ref of this V1Init. # noqa: E501
280
-
281
-
282
- :return: The artifact_ref of this V1Init. # noqa: E501
283
- :rtype: str
284
- """
285
- return self._artifact_ref
286
-
287
- @artifact_ref.setter
288
- def artifact_ref(self, artifact_ref):
289
- """Sets the artifact_ref of this V1Init.
290
-
291
-
292
- :param artifact_ref: The artifact_ref of this V1Init. # noqa: E501
293
- :type artifact_ref: str
294
- """
295
-
296
- self._artifact_ref = artifact_ref
297
-
298
- @property
299
- def model_ref(self):
300
- """Gets the model_ref of this V1Init. # noqa: E501
301
-
302
-
303
- :return: The model_ref of this V1Init. # noqa: E501
304
- :rtype: str
305
- """
306
- return self._model_ref
307
-
308
- @model_ref.setter
309
- def model_ref(self, model_ref):
310
- """Sets the model_ref of this V1Init.
311
-
312
-
313
- :param model_ref: The model_ref of this V1Init. # noqa: E501
314
- :type model_ref: str
315
- """
316
-
317
- self._model_ref = model_ref
318
-
319
- @property
320
- def connection(self):
321
- """Gets the connection of this V1Init. # noqa: E501
322
-
323
-
324
- :return: The connection of this V1Init. # noqa: E501
325
- :rtype: str
326
- """
327
- return self._connection
328
-
329
- @connection.setter
330
- def connection(self, connection):
331
- """Sets the connection of this V1Init.
332
-
333
-
334
- :param connection: The connection of this V1Init. # noqa: E501
335
- :type connection: str
336
- """
337
-
338
- self._connection = connection
339
-
340
- @property
341
- def path(self):
342
- """Gets the path of this V1Init. # noqa: E501
343
-
344
-
345
- :return: The path of this V1Init. # noqa: E501
346
- :rtype: str
347
- """
348
- return self._path
349
-
350
- @path.setter
351
- def path(self, path):
352
- """Sets the path of this V1Init.
353
-
354
-
355
- :param path: The path of this V1Init. # noqa: E501
356
- :type path: str
357
- """
358
-
359
- self._path = path
360
-
361
- @property
362
- def container(self):
363
- """Gets the container of this V1Init. # noqa: E501
364
-
365
-
366
- :return: The container of this V1Init. # noqa: E501
367
- :rtype: V1Container
368
- """
369
- return self._container
370
-
371
- @container.setter
372
- def container(self, container):
373
- """Sets the container of this V1Init.
374
-
375
-
376
- :param container: The container of this V1Init. # noqa: E501
377
- :type container: V1Container
378
- """
379
-
380
- self._container = container
381
-
382
- def to_dict(self, serialize=False):
383
- """Returns the model properties as a dict"""
384
- result = {}
385
-
386
- def convert(x):
387
- if hasattr(x, "to_dict"):
388
- args = getfullargspec(x.to_dict).args
389
- if len(args) == 1:
390
- return x.to_dict()
391
- else:
392
- return x.to_dict(serialize)
393
- else:
394
- return x
395
-
396
- for attr, _ in six.iteritems(self.openapi_types):
397
- value = getattr(self, attr)
398
- attr = self.attribute_map.get(attr, attr) if serialize else attr
399
- if isinstance(value, list):
400
- result[attr] = list(map(
401
- lambda x: convert(x),
402
- value
403
- ))
404
- elif isinstance(value, dict):
405
- result[attr] = dict(map(
406
- lambda item: (item[0], convert(item[1])),
407
- value.items()
408
- ))
409
- else:
410
- result[attr] = convert(value)
411
-
412
- return result
413
-
414
- def to_str(self):
415
- """Returns the string representation of the model"""
416
- return pprint.pformat(self.to_dict())
417
-
418
- def __repr__(self):
419
- """For `print` and `pprint`"""
420
- return self.to_str()
421
-
422
- def __eq__(self, other):
423
- """Returns true if both objects are equal"""
424
- if not isinstance(other, V1Init):
425
- return False
426
-
427
- return self.to_dict() == other.to_dict()
428
-
429
- def __ne__(self, other):
430
- """Returns true if both objects are not equal"""
431
- if not isinstance(other, V1Init):
432
- return True
35
+ artifacts: Optional[V1ArtifactsType] = None
36
+ paths: Optional[conlist(Dict[str, Any])] = None
37
+ git: Optional[V1GitType] = None
38
+ dockerfile: Optional[V1DockerfileType] = None
39
+ file: Optional[V1FileType] = None
40
+ tensorboard: Optional[V1TensorboardType] = None
41
+ lineage_ref: Optional[StrictStr] = Field(None, alias="lineageRef")
42
+ artifact_ref: Optional[StrictStr] = Field(None, alias="artifactRef")
43
+ model_ref: Optional[StrictStr] = Field(None, alias="modelRef")
44
+ connection: Optional[StrictStr] = None
45
+ path: Optional[StrictStr] = None
46
+ container: Optional[Dict[str, Any]] = None
47
+ __properties = ["artifacts", "paths", "git", "dockerfile", "file", "tensorboard", "lineageRef", "artifactRef", "modelRef", "connection", "path", "container"]
48
+
49
+ class Config:
50
+ allow_population_by_field_name = True
51
+ validate_assignment = True
52
+
53
+ def to_str(self) -> str:
54
+ """Returns the string representation of the model using alias"""
55
+ return pprint.pformat(self.dict(by_alias=True))
56
+
57
+ def to_json(self) -> str:
58
+ """Returns the JSON representation of the model using alias"""
59
+ return json.dumps(self.to_dict())
60
+
61
+ @classmethod
62
+ def from_json(cls, json_str: str) -> V1Init:
63
+ """Create an instance of V1Init from a JSON string"""
64
+ return cls.from_dict(json.loads(json_str))
65
+
66
+ def to_dict(self):
67
+ """Returns the dictionary representation of the model using alias"""
68
+ _dict = self.dict(by_alias=True,
69
+ exclude={
70
+ },
71
+ exclude_none=True)
72
+ # override the default output from pydantic by calling `to_dict()` of artifacts
73
+ if self.artifacts:
74
+ _dict['artifacts'] = self.artifacts.to_dict()
75
+ # override the default output from pydantic by calling `to_dict()` of git
76
+ if self.git:
77
+ _dict['git'] = self.git.to_dict()
78
+ # override the default output from pydantic by calling `to_dict()` of dockerfile
79
+ if self.dockerfile:
80
+ _dict['dockerfile'] = self.dockerfile.to_dict()
81
+ # override the default output from pydantic by calling `to_dict()` of file
82
+ if self.file:
83
+ _dict['file'] = self.file.to_dict()
84
+ # override the default output from pydantic by calling `to_dict()` of tensorboard
85
+ if self.tensorboard:
86
+ _dict['tensorboard'] = self.tensorboard.to_dict()
87
+ return _dict
88
+
89
+ @classmethod
90
+ def from_dict(cls, obj: dict) -> V1Init:
91
+ """Create an instance of V1Init from a dict"""
92
+ if obj is None:
93
+ return None
94
+
95
+ if type(obj) is not dict:
96
+ return V1Init.parse_obj(obj)
97
+
98
+ _obj = V1Init.parse_obj({
99
+ "artifacts": V1ArtifactsType.from_dict(obj.get("artifacts")) if obj.get("artifacts") is not None else None,
100
+ "paths": obj.get("paths"),
101
+ "git": V1GitType.from_dict(obj.get("git")) if obj.get("git") is not None else None,
102
+ "dockerfile": V1DockerfileType.from_dict(obj.get("dockerfile")) if obj.get("dockerfile") is not None else None,
103
+ "file": V1FileType.from_dict(obj.get("file")) if obj.get("file") is not None else None,
104
+ "tensorboard": V1TensorboardType.from_dict(obj.get("tensorboard")) if obj.get("tensorboard") is not None else None,
105
+ "lineage_ref": obj.get("lineageRef"),
106
+ "artifact_ref": obj.get("artifactRef"),
107
+ "model_ref": obj.get("modelRef"),
108
+ "connection": obj.get("connection"),
109
+ "path": obj.get("path"),
110
+ "container": obj.get("container")
111
+ })
112
+ return _obj
433
113
 
434
- return self.to_dict() != other.to_dict()