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,514 +1,145 @@
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 V1Event(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.
20
+ import json
21
+
22
+ from datetime import datetime
23
+ from typing import Optional
24
+ from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr
25
+ from polyaxon_sdk.models.v1_event_artifact import V1EventArtifact
26
+ from polyaxon_sdk.models.v1_event_audio import V1EventAudio
27
+ from polyaxon_sdk.models.v1_event_chart import V1EventChart
28
+ from polyaxon_sdk.models.v1_event_confusion_matrix import V1EventConfusionMatrix
29
+ from polyaxon_sdk.models.v1_event_curve import V1EventCurve
30
+ from polyaxon_sdk.models.v1_event_dataframe import V1EventDataframe
31
+ from polyaxon_sdk.models.v1_event_histogram import V1EventHistogram
32
+ from polyaxon_sdk.models.v1_event_image import V1EventImage
33
+ from polyaxon_sdk.models.v1_event_model import V1EventModel
34
+ from polyaxon_sdk.models.v1_event_span import V1EventSpan
35
+ from polyaxon_sdk.models.v1_event_video import V1EventVideo
36
+
37
+ class V1Event(BaseModel):
46
38
  """
47
-
48
- """
49
- Attributes:
50
- openapi_types (dict): The key is attribute name
51
- and the value is attribute type.
52
- attribute_map (dict): The key is attribute name
53
- and the value is json key in definition.
39
+ V1Event
54
40
  """
55
- openapi_types = {
56
- 'timestamp': 'datetime',
57
- 'step': 'int',
58
- 'metric': 'float',
59
- 'image': 'V1EventImage',
60
- 'histogram': 'V1EventHistogram',
61
- 'audio': 'V1EventAudio',
62
- 'video': 'V1EventVideo',
63
- 'html': 'str',
64
- 'text': 'str',
65
- 'chart': 'V1EventChart',
66
- 'model': 'V1EventModel',
67
- 'artifact': 'V1EventArtifact',
68
- 'dataframe': 'V1EventDataframe',
69
- 'curve': 'V1EventCurve',
70
- 'confusion': 'V1EventConfusionMatrix'
71
- }
72
-
73
- attribute_map = {
74
- 'timestamp': 'timestamp',
75
- 'step': 'step',
76
- 'metric': 'metric',
77
- 'image': 'image',
78
- 'histogram': 'histogram',
79
- 'audio': 'audio',
80
- 'video': 'video',
81
- 'html': 'html',
82
- 'text': 'text',
83
- 'chart': 'chart',
84
- 'model': 'model',
85
- 'artifact': 'artifact',
86
- 'dataframe': 'dataframe',
87
- 'curve': 'curve',
88
- 'confusion': 'confusion'
89
- }
90
-
91
- def __init__(self, timestamp=None, step=None, metric=None, image=None, histogram=None, audio=None, video=None, html=None, text=None, chart=None, model=None, artifact=None, dataframe=None, curve=None, confusion=None, local_vars_configuration=None): # noqa: E501
92
- """V1Event - a model defined in OpenAPI""" # noqa: E501
93
- if local_vars_configuration is None:
94
- local_vars_configuration = Configuration.get_default_copy()
95
- self.local_vars_configuration = local_vars_configuration
96
-
97
- self._timestamp = None
98
- self._step = None
99
- self._metric = None
100
- self._image = None
101
- self._histogram = None
102
- self._audio = None
103
- self._video = None
104
- self._html = None
105
- self._text = None
106
- self._chart = None
107
- self._model = None
108
- self._artifact = None
109
- self._dataframe = None
110
- self._curve = None
111
- self._confusion = None
112
- self.discriminator = None
113
-
114
- if timestamp is not None:
115
- self.timestamp = timestamp
116
- if step is not None:
117
- self.step = step
118
- if metric is not None:
119
- self.metric = metric
120
- if image is not None:
121
- self.image = image
122
- if histogram is not None:
123
- self.histogram = histogram
124
- if audio is not None:
125
- self.audio = audio
126
- if video is not None:
127
- self.video = video
128
- if html is not None:
129
- self.html = html
130
- if text is not None:
131
- self.text = text
132
- if chart is not None:
133
- self.chart = chart
134
- if model is not None:
135
- self.model = model
136
- if artifact is not None:
137
- self.artifact = artifact
138
- if dataframe is not None:
139
- self.dataframe = dataframe
140
- if curve is not None:
141
- self.curve = curve
142
- if confusion is not None:
143
- self.confusion = confusion
144
-
145
- @property
146
- def timestamp(self):
147
- """Gets the timestamp of this V1Event. # noqa: E501
148
-
149
-
150
- :return: The timestamp of this V1Event. # noqa: E501
151
- :rtype: datetime
152
- """
153
- return self._timestamp
154
-
155
- @timestamp.setter
156
- def timestamp(self, timestamp):
157
- """Sets the timestamp of this V1Event.
158
-
159
-
160
- :param timestamp: The timestamp of this V1Event. # noqa: E501
161
- :type timestamp: datetime
162
- """
163
-
164
- self._timestamp = timestamp
165
-
166
- @property
167
- def step(self):
168
- """Gets the step of this V1Event. # noqa: E501
169
-
170
- Global step of the event. # noqa: E501
171
-
172
- :return: The step of this V1Event. # noqa: E501
173
- :rtype: int
174
- """
175
- return self._step
176
-
177
- @step.setter
178
- def step(self, step):
179
- """Sets the step of this V1Event.
180
-
181
- Global step of the event. # noqa: E501
182
-
183
- :param step: The step of this V1Event. # noqa: E501
184
- :type step: int
185
- """
186
-
187
- self._step = step
188
-
189
- @property
190
- def metric(self):
191
- """Gets the metric of this V1Event. # noqa: E501
192
-
193
-
194
- :return: The metric of this V1Event. # noqa: E501
195
- :rtype: float
196
- """
197
- return self._metric
198
-
199
- @metric.setter
200
- def metric(self, metric):
201
- """Sets the metric of this V1Event.
202
-
203
-
204
- :param metric: The metric of this V1Event. # noqa: E501
205
- :type metric: float
206
- """
207
-
208
- self._metric = metric
209
-
210
- @property
211
- def image(self):
212
- """Gets the image of this V1Event. # noqa: E501
213
-
214
-
215
- :return: The image of this V1Event. # noqa: E501
216
- :rtype: V1EventImage
217
- """
218
- return self._image
219
-
220
- @image.setter
221
- def image(self, image):
222
- """Sets the image of this V1Event.
223
-
224
-
225
- :param image: The image of this V1Event. # noqa: E501
226
- :type image: V1EventImage
227
- """
228
-
229
- self._image = image
230
-
231
- @property
232
- def histogram(self):
233
- """Gets the histogram of this V1Event. # noqa: E501
234
-
235
-
236
- :return: The histogram of this V1Event. # noqa: E501
237
- :rtype: V1EventHistogram
238
- """
239
- return self._histogram
240
-
241
- @histogram.setter
242
- def histogram(self, histogram):
243
- """Sets the histogram of this V1Event.
244
-
245
-
246
- :param histogram: The histogram of this V1Event. # noqa: E501
247
- :type histogram: V1EventHistogram
248
- """
249
-
250
- self._histogram = histogram
251
-
252
- @property
253
- def audio(self):
254
- """Gets the audio of this V1Event. # noqa: E501
255
-
256
-
257
- :return: The audio of this V1Event. # noqa: E501
258
- :rtype: V1EventAudio
259
- """
260
- return self._audio
261
-
262
- @audio.setter
263
- def audio(self, audio):
264
- """Sets the audio of this V1Event.
265
-
266
-
267
- :param audio: The audio of this V1Event. # noqa: E501
268
- :type audio: V1EventAudio
269
- """
270
-
271
- self._audio = audio
272
-
273
- @property
274
- def video(self):
275
- """Gets the video of this V1Event. # noqa: E501
276
-
277
-
278
- :return: The video of this V1Event. # noqa: E501
279
- :rtype: V1EventVideo
280
- """
281
- return self._video
282
-
283
- @video.setter
284
- def video(self, video):
285
- """Sets the video of this V1Event.
286
-
287
-
288
- :param video: The video of this V1Event. # noqa: E501
289
- :type video: V1EventVideo
290
- """
291
-
292
- self._video = video
293
-
294
- @property
295
- def html(self):
296
- """Gets the html of this V1Event. # noqa: E501
297
-
298
-
299
- :return: The html of this V1Event. # noqa: E501
300
- :rtype: str
301
- """
302
- return self._html
303
-
304
- @html.setter
305
- def html(self, html):
306
- """Sets the html of this V1Event.
307
-
308
-
309
- :param html: The html of this V1Event. # noqa: E501
310
- :type html: str
311
- """
312
-
313
- self._html = html
314
-
315
- @property
316
- def text(self):
317
- """Gets the text of this V1Event. # noqa: E501
318
-
319
-
320
- :return: The text of this V1Event. # noqa: E501
321
- :rtype: str
322
- """
323
- return self._text
324
-
325
- @text.setter
326
- def text(self, text):
327
- """Sets the text of this V1Event.
328
-
329
-
330
- :param text: The text of this V1Event. # noqa: E501
331
- :type text: str
332
- """
333
-
334
- self._text = text
335
-
336
- @property
337
- def chart(self):
338
- """Gets the chart of this V1Event. # noqa: E501
339
-
340
-
341
- :return: The chart of this V1Event. # noqa: E501
342
- :rtype: V1EventChart
343
- """
344
- return self._chart
345
-
346
- @chart.setter
347
- def chart(self, chart):
348
- """Sets the chart of this V1Event.
349
-
350
-
351
- :param chart: The chart of this V1Event. # noqa: E501
352
- :type chart: V1EventChart
353
- """
354
-
355
- self._chart = chart
356
-
357
- @property
358
- def model(self):
359
- """Gets the model of this V1Event. # noqa: E501
360
-
361
-
362
- :return: The model of this V1Event. # noqa: E501
363
- :rtype: V1EventModel
364
- """
365
- return self._model
366
-
367
- @model.setter
368
- def model(self, model):
369
- """Sets the model of this V1Event.
370
-
371
-
372
- :param model: The model of this V1Event. # noqa: E501
373
- :type model: V1EventModel
374
- """
375
-
376
- self._model = model
377
-
378
- @property
379
- def artifact(self):
380
- """Gets the artifact of this V1Event. # noqa: E501
381
-
382
-
383
- :return: The artifact of this V1Event. # noqa: E501
384
- :rtype: V1EventArtifact
385
- """
386
- return self._artifact
387
-
388
- @artifact.setter
389
- def artifact(self, artifact):
390
- """Sets the artifact of this V1Event.
391
-
392
-
393
- :param artifact: The artifact of this V1Event. # noqa: E501
394
- :type artifact: V1EventArtifact
395
- """
396
-
397
- self._artifact = artifact
398
-
399
- @property
400
- def dataframe(self):
401
- """Gets the dataframe of this V1Event. # noqa: E501
402
-
403
-
404
- :return: The dataframe of this V1Event. # noqa: E501
405
- :rtype: V1EventDataframe
406
- """
407
- return self._dataframe
408
-
409
- @dataframe.setter
410
- def dataframe(self, dataframe):
411
- """Sets the dataframe of this V1Event.
412
-
413
-
414
- :param dataframe: The dataframe of this V1Event. # noqa: E501
415
- :type dataframe: V1EventDataframe
416
- """
417
-
418
- self._dataframe = dataframe
419
-
420
- @property
421
- def curve(self):
422
- """Gets the curve of this V1Event. # noqa: E501
423
-
424
-
425
- :return: The curve of this V1Event. # noqa: E501
426
- :rtype: V1EventCurve
427
- """
428
- return self._curve
429
-
430
- @curve.setter
431
- def curve(self, curve):
432
- """Sets the curve of this V1Event.
433
-
434
-
435
- :param curve: The curve of this V1Event. # noqa: E501
436
- :type curve: V1EventCurve
437
- """
438
-
439
- self._curve = curve
440
-
441
- @property
442
- def confusion(self):
443
- """Gets the confusion of this V1Event. # noqa: E501
444
-
445
-
446
- :return: The confusion of this V1Event. # noqa: E501
447
- :rtype: V1EventConfusionMatrix
448
- """
449
- return self._confusion
450
-
451
- @confusion.setter
452
- def confusion(self, confusion):
453
- """Sets the confusion of this V1Event.
454
-
455
-
456
- :param confusion: The confusion of this V1Event. # noqa: E501
457
- :type confusion: V1EventConfusionMatrix
458
- """
459
-
460
- self._confusion = confusion
461
-
462
- def to_dict(self, serialize=False):
463
- """Returns the model properties as a dict"""
464
- result = {}
465
-
466
- def convert(x):
467
- if hasattr(x, "to_dict"):
468
- args = getfullargspec(x.to_dict).args
469
- if len(args) == 1:
470
- return x.to_dict()
471
- else:
472
- return x.to_dict(serialize)
473
- else:
474
- return x
475
-
476
- for attr, _ in six.iteritems(self.openapi_types):
477
- value = getattr(self, attr)
478
- attr = self.attribute_map.get(attr, attr) if serialize else attr
479
- if isinstance(value, list):
480
- result[attr] = list(map(
481
- lambda x: convert(x),
482
- value
483
- ))
484
- elif isinstance(value, dict):
485
- result[attr] = dict(map(
486
- lambda item: (item[0], convert(item[1])),
487
- value.items()
488
- ))
489
- else:
490
- result[attr] = convert(value)
491
-
492
- return result
493
-
494
- def to_str(self):
495
- """Returns the string representation of the model"""
496
- return pprint.pformat(self.to_dict())
497
-
498
- def __repr__(self):
499
- """For `print` and `pprint`"""
500
- return self.to_str()
501
-
502
- def __eq__(self, other):
503
- """Returns true if both objects are equal"""
504
- if not isinstance(other, V1Event):
505
- return False
506
-
507
- return self.to_dict() == other.to_dict()
508
-
509
- def __ne__(self, other):
510
- """Returns true if both objects are not equal"""
511
- if not isinstance(other, V1Event):
512
- return True
41
+ timestamp: Optional[datetime] = None
42
+ step: Optional[StrictInt] = Field(None, description="Global step of the event.")
43
+ metric: Optional[StrictFloat] = None
44
+ image: Optional[V1EventImage] = None
45
+ histogram: Optional[V1EventHistogram] = None
46
+ audio: Optional[V1EventAudio] = None
47
+ video: Optional[V1EventVideo] = None
48
+ html: Optional[StrictStr] = None
49
+ text: Optional[StrictStr] = None
50
+ chart: Optional[V1EventChart] = None
51
+ model: Optional[V1EventModel] = None
52
+ artifact: Optional[V1EventArtifact] = None
53
+ dataframe: Optional[V1EventDataframe] = None
54
+ curve: Optional[V1EventCurve] = None
55
+ confusion: Optional[V1EventConfusionMatrix] = None
56
+ span: Optional[V1EventSpan] = None
57
+ __properties = ["timestamp", "step", "metric", "image", "histogram", "audio", "video", "html", "text", "chart", "model", "artifact", "dataframe", "curve", "confusion", "span"]
58
+
59
+ class Config:
60
+ allow_population_by_field_name = True
61
+ validate_assignment = True
62
+
63
+ def to_str(self) -> str:
64
+ """Returns the string representation of the model using alias"""
65
+ return pprint.pformat(self.dict(by_alias=True))
66
+
67
+ def to_json(self) -> str:
68
+ """Returns the JSON representation of the model using alias"""
69
+ return json.dumps(self.to_dict())
70
+
71
+ @classmethod
72
+ def from_json(cls, json_str: str) -> V1Event:
73
+ """Create an instance of V1Event from a JSON string"""
74
+ return cls.from_dict(json.loads(json_str))
75
+
76
+ def to_dict(self):
77
+ """Returns the dictionary representation of the model using alias"""
78
+ _dict = self.dict(by_alias=True,
79
+ exclude={
80
+ },
81
+ exclude_none=True)
82
+ # override the default output from pydantic by calling `to_dict()` of image
83
+ if self.image:
84
+ _dict['image'] = self.image.to_dict()
85
+ # override the default output from pydantic by calling `to_dict()` of histogram
86
+ if self.histogram:
87
+ _dict['histogram'] = self.histogram.to_dict()
88
+ # override the default output from pydantic by calling `to_dict()` of audio
89
+ if self.audio:
90
+ _dict['audio'] = self.audio.to_dict()
91
+ # override the default output from pydantic by calling `to_dict()` of video
92
+ if self.video:
93
+ _dict['video'] = self.video.to_dict()
94
+ # override the default output from pydantic by calling `to_dict()` of chart
95
+ if self.chart:
96
+ _dict['chart'] = self.chart.to_dict()
97
+ # override the default output from pydantic by calling `to_dict()` of model
98
+ if self.model:
99
+ _dict['model'] = self.model.to_dict()
100
+ # override the default output from pydantic by calling `to_dict()` of artifact
101
+ if self.artifact:
102
+ _dict['artifact'] = self.artifact.to_dict()
103
+ # override the default output from pydantic by calling `to_dict()` of dataframe
104
+ if self.dataframe:
105
+ _dict['dataframe'] = self.dataframe.to_dict()
106
+ # override the default output from pydantic by calling `to_dict()` of curve
107
+ if self.curve:
108
+ _dict['curve'] = self.curve.to_dict()
109
+ # override the default output from pydantic by calling `to_dict()` of confusion
110
+ if self.confusion:
111
+ _dict['confusion'] = self.confusion.to_dict()
112
+ # override the default output from pydantic by calling `to_dict()` of span
113
+ if self.span:
114
+ _dict['span'] = self.span.to_dict()
115
+ return _dict
116
+
117
+ @classmethod
118
+ def from_dict(cls, obj: dict) -> V1Event:
119
+ """Create an instance of V1Event from a dict"""
120
+ if obj is None:
121
+ return None
122
+
123
+ if type(obj) is not dict:
124
+ return V1Event.parse_obj(obj)
125
+
126
+ _obj = V1Event.parse_obj({
127
+ "timestamp": obj.get("timestamp"),
128
+ "step": obj.get("step"),
129
+ "metric": obj.get("metric"),
130
+ "image": V1EventImage.from_dict(obj.get("image")) if obj.get("image") is not None else None,
131
+ "histogram": V1EventHistogram.from_dict(obj.get("histogram")) if obj.get("histogram") is not None else None,
132
+ "audio": V1EventAudio.from_dict(obj.get("audio")) if obj.get("audio") is not None else None,
133
+ "video": V1EventVideo.from_dict(obj.get("video")) if obj.get("video") is not None else None,
134
+ "html": obj.get("html"),
135
+ "text": obj.get("text"),
136
+ "chart": V1EventChart.from_dict(obj.get("chart")) if obj.get("chart") is not None else None,
137
+ "model": V1EventModel.from_dict(obj.get("model")) if obj.get("model") is not None else None,
138
+ "artifact": V1EventArtifact.from_dict(obj.get("artifact")) if obj.get("artifact") is not None else None,
139
+ "dataframe": V1EventDataframe.from_dict(obj.get("dataframe")) if obj.get("dataframe") is not None else None,
140
+ "curve": V1EventCurve.from_dict(obj.get("curve")) if obj.get("curve") is not None else None,
141
+ "confusion": V1EventConfusionMatrix.from_dict(obj.get("confusion")) if obj.get("confusion") is not None else None,
142
+ "span": V1EventSpan.from_dict(obj.get("span")) if obj.get("span") is not None else None
143
+ })
144
+ return _obj
513
145
 
514
- return self.to_dict() != other.to_dict()