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,278 +1,89 @@
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 V1Join(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 Dict, Optional
24
+ from pydantic import BaseModel, StrictInt, StrictStr
25
+ from polyaxon_sdk.models.v1_join_param import V1JoinParam
47
26
 
27
+ class V1Join(BaseModel):
48
28
  """
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.
29
+ V1Join
54
30
  """
55
- openapi_types = {
56
- 'ref': 'str',
57
- 'query': 'str',
58
- 'sort': 'str',
59
- 'limit': 'int',
60
- 'offset': 'int',
61
- 'params': 'dict(str, V1JoinParam)'
62
- }
63
-
64
- attribute_map = {
65
- 'ref': 'ref',
66
- 'query': 'query',
67
- 'sort': 'sort',
68
- 'limit': 'limit',
69
- 'offset': 'offset',
70
- 'params': 'params'
71
- }
72
-
73
- def __init__(self, ref=None, query=None, sort=None, limit=None, offset=None, params=None, local_vars_configuration=None): # noqa: E501
74
- """V1Join - a model defined in OpenAPI""" # noqa: E501
75
- if local_vars_configuration is None:
76
- local_vars_configuration = Configuration.get_default_copy()
77
- self.local_vars_configuration = local_vars_configuration
78
-
79
- self._ref = None
80
- self._query = None
81
- self._sort = None
82
- self._limit = None
83
- self._offset = None
84
- self._params = None
85
- self.discriminator = None
86
-
87
- if ref is not None:
88
- self.ref = ref
89
- if query is not None:
90
- self.query = query
91
- if sort is not None:
92
- self.sort = sort
93
- if limit is not None:
94
- self.limit = limit
95
- if offset is not None:
96
- self.offset = offset
97
- if params is not None:
98
- self.params = params
99
-
100
- @property
101
- def ref(self):
102
- """Gets the ref of this V1Join. # noqa: E501
103
-
104
-
105
- :return: The ref of this V1Join. # noqa: E501
106
- :rtype: str
107
- """
108
- return self._ref
109
-
110
- @ref.setter
111
- def ref(self, ref):
112
- """Sets the ref of this V1Join.
113
-
114
-
115
- :param ref: The ref of this V1Join. # noqa: E501
116
- :type ref: str
117
- """
118
-
119
- self._ref = ref
120
-
121
- @property
122
- def query(self):
123
- """Gets the query of this V1Join. # noqa: E501
124
-
125
-
126
- :return: The query of this V1Join. # noqa: E501
127
- :rtype: str
128
- """
129
- return self._query
130
-
131
- @query.setter
132
- def query(self, query):
133
- """Sets the query of this V1Join.
134
-
135
-
136
- :param query: The query of this V1Join. # noqa: E501
137
- :type query: str
138
- """
139
-
140
- self._query = query
141
-
142
- @property
143
- def sort(self):
144
- """Gets the sort of this V1Join. # noqa: E501
145
-
146
-
147
- :return: The sort of this V1Join. # noqa: E501
148
- :rtype: str
149
- """
150
- return self._sort
151
-
152
- @sort.setter
153
- def sort(self, sort):
154
- """Sets the sort of this V1Join.
155
-
156
-
157
- :param sort: The sort of this V1Join. # noqa: E501
158
- :type sort: str
159
- """
160
-
161
- self._sort = sort
162
-
163
- @property
164
- def limit(self):
165
- """Gets the limit of this V1Join. # noqa: E501
166
-
167
-
168
- :return: The limit of this V1Join. # noqa: E501
169
- :rtype: int
170
- """
171
- return self._limit
172
-
173
- @limit.setter
174
- def limit(self, limit):
175
- """Sets the limit of this V1Join.
176
-
177
-
178
- :param limit: The limit of this V1Join. # noqa: E501
179
- :type limit: int
180
- """
181
-
182
- self._limit = limit
183
-
184
- @property
185
- def offset(self):
186
- """Gets the offset of this V1Join. # noqa: E501
187
-
188
-
189
- :return: The offset of this V1Join. # noqa: E501
190
- :rtype: int
191
- """
192
- return self._offset
193
-
194
- @offset.setter
195
- def offset(self, offset):
196
- """Sets the offset of this V1Join.
197
-
198
-
199
- :param offset: The offset of this V1Join. # noqa: E501
200
- :type offset: int
201
- """
202
-
203
- self._offset = offset
204
-
205
- @property
206
- def params(self):
207
- """Gets the params of this V1Join. # noqa: E501
208
-
209
-
210
- :return: The params of this V1Join. # noqa: E501
211
- :rtype: dict(str, V1JoinParam)
212
- """
213
- return self._params
214
-
215
- @params.setter
216
- def params(self, params):
217
- """Sets the params of this V1Join.
218
-
219
-
220
- :param params: The params of this V1Join. # noqa: E501
221
- :type params: dict(str, V1JoinParam)
222
- """
223
-
224
- self._params = params
225
-
226
- def to_dict(self, serialize=False):
227
- """Returns the model properties as a dict"""
228
- result = {}
229
-
230
- def convert(x):
231
- if hasattr(x, "to_dict"):
232
- args = getfullargspec(x.to_dict).args
233
- if len(args) == 1:
234
- return x.to_dict()
235
- else:
236
- return x.to_dict(serialize)
237
- else:
238
- return x
239
-
240
- for attr, _ in six.iteritems(self.openapi_types):
241
- value = getattr(self, attr)
242
- attr = self.attribute_map.get(attr, attr) if serialize else attr
243
- if isinstance(value, list):
244
- result[attr] = list(map(
245
- lambda x: convert(x),
246
- value
247
- ))
248
- elif isinstance(value, dict):
249
- result[attr] = dict(map(
250
- lambda item: (item[0], convert(item[1])),
251
- value.items()
252
- ))
253
- else:
254
- result[attr] = convert(value)
255
-
256
- return result
257
-
258
- def to_str(self):
259
- """Returns the string representation of the model"""
260
- return pprint.pformat(self.to_dict())
261
-
262
- def __repr__(self):
263
- """For `print` and `pprint`"""
264
- return self.to_str()
265
-
266
- def __eq__(self, other):
267
- """Returns true if both objects are equal"""
268
- if not isinstance(other, V1Join):
269
- return False
270
-
271
- return self.to_dict() == other.to_dict()
272
-
273
- def __ne__(self, other):
274
- """Returns true if both objects are not equal"""
275
- if not isinstance(other, V1Join):
276
- return True
31
+ ref: Optional[StrictStr] = None
32
+ query: Optional[StrictStr] = None
33
+ sort: Optional[StrictStr] = None
34
+ limit: Optional[StrictInt] = None
35
+ offset: Optional[StrictInt] = None
36
+ params: Optional[Dict[str, V1JoinParam]] = None
37
+ __properties = ["ref", "query", "sort", "limit", "offset", "params"]
38
+
39
+ class Config:
40
+ allow_population_by_field_name = True
41
+ validate_assignment = True
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.dict(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> V1Join:
53
+ """Create an instance of V1Join from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self):
57
+ """Returns the dictionary representation of the model using alias"""
58
+ _dict = self.dict(by_alias=True,
59
+ exclude={
60
+ },
61
+ exclude_none=True)
62
+ # override the default output from pydantic by calling `to_dict()` of each value in params (dict)
63
+ _field_dict = {}
64
+ if self.params:
65
+ for _key in self.params:
66
+ if self.params[_key]:
67
+ _field_dict[_key] = self.params[_key].to_dict()
68
+ _dict['params'] = _field_dict
69
+ return _dict
70
+
71
+ @classmethod
72
+ def from_dict(cls, obj: dict) -> V1Join:
73
+ """Create an instance of V1Join from a dict"""
74
+ if obj is None:
75
+ return None
76
+
77
+ if type(obj) is not dict:
78
+ return V1Join.parse_obj(obj)
79
+
80
+ _obj = V1Join.parse_obj({
81
+ "ref": obj.get("ref"),
82
+ "query": obj.get("query"),
83
+ "sort": obj.get("sort"),
84
+ "limit": obj.get("limit"),
85
+ "offset": obj.get("offset"),
86
+ "params": dict((_k, V1JoinParam.from_dict(_v)) for _k, _v in obj.get("params").items()) if obj.get("params") is not None else None
87
+ })
88
+ return _obj
277
89
 
278
- return self.to_dict() != other.to_dict()
@@ -1,252 +1,79 @@
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 V1JoinParam(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 Optional
24
+ from pydantic import BaseModel, Field, StrictBool, StrictStr
47
25
 
26
+ class V1JoinParam(BaseModel):
48
27
  """
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.
28
+ V1JoinParam
54
29
  """
55
- openapi_types = {
56
- 'value': 'str',
57
- 'connection': 'str',
58
- 'to_init': 'bool',
59
- 'to_env': 'str',
60
- 'context_only': 'bool'
61
- }
62
-
63
- attribute_map = {
64
- 'value': 'value',
65
- 'connection': 'connection',
66
- 'to_init': 'toInit',
67
- 'to_env': 'toEnv',
68
- 'context_only': 'contextOnly'
69
- }
70
-
71
- def __init__(self, value=None, connection=None, to_init=None, to_env=None, context_only=None, local_vars_configuration=None): # noqa: E501
72
- """V1JoinParam - a model defined in OpenAPI""" # noqa: E501
73
- if local_vars_configuration is None:
74
- local_vars_configuration = Configuration.get_default_copy()
75
- self.local_vars_configuration = local_vars_configuration
76
-
77
- self._value = None
78
- self._connection = None
79
- self._to_init = None
80
- self._to_env = None
81
- self._context_only = None
82
- self.discriminator = None
83
-
84
- if value is not None:
85
- self.value = value
86
- if connection is not None:
87
- self.connection = connection
88
- if to_init is not None:
89
- self.to_init = to_init
90
- if to_env is not None:
91
- self.to_env = to_env
92
- if context_only is not None:
93
- self.context_only = context_only
94
-
95
- @property
96
- def value(self):
97
- """Gets the value of this V1JoinParam. # noqa: E501
98
-
99
-
100
- :return: The value of this V1JoinParam. # noqa: E501
101
- :rtype: str
102
- """
103
- return self._value
104
-
105
- @value.setter
106
- def value(self, value):
107
- """Sets the value of this V1JoinParam.
108
-
109
-
110
- :param value: The value of this V1JoinParam. # noqa: E501
111
- :type value: str
112
- """
113
-
114
- self._value = value
115
-
116
- @property
117
- def connection(self):
118
- """Gets the connection of this V1JoinParam. # noqa: E501
119
-
120
-
121
- :return: The connection of this V1JoinParam. # noqa: E501
122
- :rtype: str
123
- """
124
- return self._connection
125
-
126
- @connection.setter
127
- def connection(self, connection):
128
- """Sets the connection of this V1JoinParam.
129
-
130
-
131
- :param connection: The connection of this V1JoinParam. # noqa: E501
132
- :type connection: str
133
- """
134
-
135
- self._connection = connection
136
-
137
- @property
138
- def to_init(self):
139
- """Gets the to_init of this V1JoinParam. # noqa: E501
140
-
141
-
142
- :return: The to_init of this V1JoinParam. # noqa: E501
143
- :rtype: bool
144
- """
145
- return self._to_init
146
-
147
- @to_init.setter
148
- def to_init(self, to_init):
149
- """Sets the to_init of this V1JoinParam.
150
-
151
-
152
- :param to_init: The to_init of this V1JoinParam. # noqa: E501
153
- :type to_init: bool
154
- """
155
-
156
- self._to_init = to_init
157
-
158
- @property
159
- def to_env(self):
160
- """Gets the to_env of this V1JoinParam. # noqa: E501
161
-
162
-
163
- :return: The to_env of this V1JoinParam. # noqa: E501
164
- :rtype: str
165
- """
166
- return self._to_env
167
-
168
- @to_env.setter
169
- def to_env(self, to_env):
170
- """Sets the to_env of this V1JoinParam.
171
-
172
-
173
- :param to_env: The to_env of this V1JoinParam. # noqa: E501
174
- :type to_env: str
175
- """
176
-
177
- self._to_env = to_env
178
-
179
- @property
180
- def context_only(self):
181
- """Gets the context_only of this V1JoinParam. # noqa: E501
182
-
183
-
184
- :return: The context_only of this V1JoinParam. # noqa: E501
185
- :rtype: bool
186
- """
187
- return self._context_only
188
-
189
- @context_only.setter
190
- def context_only(self, context_only):
191
- """Sets the context_only of this V1JoinParam.
192
-
193
-
194
- :param context_only: The context_only of this V1JoinParam. # noqa: E501
195
- :type context_only: bool
196
- """
197
-
198
- self._context_only = context_only
199
-
200
- def to_dict(self, serialize=False):
201
- """Returns the model properties as a dict"""
202
- result = {}
203
-
204
- def convert(x):
205
- if hasattr(x, "to_dict"):
206
- args = getfullargspec(x.to_dict).args
207
- if len(args) == 1:
208
- return x.to_dict()
209
- else:
210
- return x.to_dict(serialize)
211
- else:
212
- return x
213
-
214
- for attr, _ in six.iteritems(self.openapi_types):
215
- value = getattr(self, attr)
216
- attr = self.attribute_map.get(attr, attr) if serialize else attr
217
- if isinstance(value, list):
218
- result[attr] = list(map(
219
- lambda x: convert(x),
220
- value
221
- ))
222
- elif isinstance(value, dict):
223
- result[attr] = dict(map(
224
- lambda item: (item[0], convert(item[1])),
225
- value.items()
226
- ))
227
- else:
228
- result[attr] = convert(value)
229
-
230
- return result
231
-
232
- def to_str(self):
233
- """Returns the string representation of the model"""
234
- return pprint.pformat(self.to_dict())
235
-
236
- def __repr__(self):
237
- """For `print` and `pprint`"""
238
- return self.to_str()
239
-
240
- def __eq__(self, other):
241
- """Returns true if both objects are equal"""
242
- if not isinstance(other, V1JoinParam):
243
- return False
244
-
245
- return self.to_dict() == other.to_dict()
246
-
247
- def __ne__(self, other):
248
- """Returns true if both objects are not equal"""
249
- if not isinstance(other, V1JoinParam):
250
- return True
30
+ value: Optional[StrictStr] = None
31
+ connection: Optional[StrictStr] = None
32
+ to_init: Optional[StrictBool] = Field(None, alias="toInit")
33
+ to_env: Optional[StrictStr] = Field(None, alias="toEnv")
34
+ context_only: Optional[StrictBool] = Field(None, alias="contextOnly")
35
+ __properties = ["value", "connection", "toInit", "toEnv", "contextOnly"]
36
+
37
+ class Config:
38
+ allow_population_by_field_name = True
39
+ validate_assignment = True
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.dict(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> V1JoinParam:
51
+ """Create an instance of V1JoinParam from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self):
55
+ """Returns the dictionary representation of the model using alias"""
56
+ _dict = self.dict(by_alias=True,
57
+ exclude={
58
+ },
59
+ exclude_none=True)
60
+ return _dict
61
+
62
+ @classmethod
63
+ def from_dict(cls, obj: dict) -> V1JoinParam:
64
+ """Create an instance of V1JoinParam from a dict"""
65
+ if obj is None:
66
+ return None
67
+
68
+ if type(obj) is not dict:
69
+ return V1JoinParam.parse_obj(obj)
70
+
71
+ _obj = V1JoinParam.parse_obj({
72
+ "value": obj.get("value"),
73
+ "connection": obj.get("connection"),
74
+ "to_init": obj.get("toInit"),
75
+ "to_env": obj.get("toEnv"),
76
+ "context_only": obj.get("contextOnly")
77
+ })
78
+ return _obj
251
79
 
252
- return self.to_dict() != other.to_dict()