polyaxon 2.0.0rc49__py3-none-any.whl → 2.4.0rc1__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 (177) hide show
  1. polyaxon/_auxiliaries/cleaner.py +8 -3
  2. polyaxon/_auxiliaries/init.py +7 -2
  3. polyaxon/_auxiliaries/notifier.py +8 -2
  4. polyaxon/_auxiliaries/sidecar.py +30 -2
  5. polyaxon/_cli/artifacts.py +96 -11
  6. polyaxon/_cli/components.py +96 -11
  7. polyaxon/_cli/config.py +118 -22
  8. polyaxon/_cli/dashboard.py +15 -2
  9. polyaxon/_cli/init.py +1 -1
  10. polyaxon/_cli/models.py +96 -11
  11. polyaxon/_cli/operations.py +267 -90
  12. polyaxon/_cli/project_versions.py +139 -6
  13. polyaxon/_cli/projects.py +23 -9
  14. polyaxon/_cli/run.py +37 -9
  15. polyaxon/_cli/services/agent.py +2 -2
  16. polyaxon/_cli/services/clean_artifacts.py +1 -1
  17. polyaxon/_cli/services/sidecar.py +8 -1
  18. polyaxon/_client/client.py +17 -0
  19. polyaxon/_client/mixin.py +39 -0
  20. polyaxon/_client/project.py +218 -23
  21. polyaxon/_client/run.py +131 -33
  22. polyaxon/_compiler/contexts/contexts.py +2 -2
  23. polyaxon/_compiler/contexts/ray_job.py +4 -2
  24. polyaxon/_compiler/resolver/agent.py +12 -2
  25. polyaxon/_compiler/resolver/runtime.py +2 -2
  26. polyaxon/_contexts/paths.py +4 -7
  27. polyaxon/_deploy/operators/compose.py +1 -27
  28. polyaxon/_deploy/schemas/deployment.py +4 -1
  29. polyaxon/_deploy/schemas/intervals.py +0 -7
  30. polyaxon/_deploy/schemas/proxy.py +1 -0
  31. polyaxon/_deploy/schemas/service.py +11 -1
  32. polyaxon/_docker/converter/base/base.py +8 -0
  33. polyaxon/_docker/executor.py +10 -4
  34. polyaxon/_env_vars/getters/owner_entity.py +4 -2
  35. polyaxon/_env_vars/getters/project.py +4 -2
  36. polyaxon/_env_vars/getters/run.py +5 -2
  37. polyaxon/_env_vars/keys.py +7 -1
  38. polyaxon/_flow/__init__.py +2 -0
  39. polyaxon/_flow/builds/__init__.py +19 -6
  40. polyaxon/_flow/component/base.py +1 -0
  41. polyaxon/_flow/component/component.py +14 -0
  42. polyaxon/_flow/environment/__init__.py +8 -8
  43. polyaxon/_flow/hooks/__init__.py +19 -6
  44. polyaxon/_flow/init/__init__.py +6 -6
  45. polyaxon/_flow/matrix/iterative.py +0 -1
  46. polyaxon/_flow/matrix/tuner.py +18 -6
  47. polyaxon/_flow/operations/operation.py +44 -17
  48. polyaxon/_flow/plugins/__init__.py +6 -0
  49. polyaxon/_flow/run/__init__.py +2 -2
  50. polyaxon/_flow/run/dag.py +2 -2
  51. polyaxon/_flow/run/dask/dask.py +0 -1
  52. polyaxon/_flow/run/dask/replica.py +3 -3
  53. polyaxon/_flow/run/enums.py +5 -0
  54. polyaxon/_flow/run/job.py +4 -4
  55. polyaxon/_flow/run/kubeflow/mpi_job.py +1 -2
  56. polyaxon/_flow/run/kubeflow/mx_job.py +1 -2
  57. polyaxon/_flow/run/kubeflow/paddle_job.py +35 -4
  58. polyaxon/_flow/run/kubeflow/pytorch_job.py +51 -5
  59. polyaxon/_flow/run/kubeflow/replica.py +4 -4
  60. polyaxon/_flow/run/kubeflow/scheduling_policy.py +12 -0
  61. polyaxon/_flow/run/kubeflow/tf_job.py +3 -3
  62. polyaxon/_flow/run/kubeflow/xgboost_job.py +1 -2
  63. polyaxon/_flow/run/ray/ray.py +2 -3
  64. polyaxon/_flow/run/ray/replica.py +3 -3
  65. polyaxon/_flow/run/service.py +4 -4
  66. polyaxon/_fs/fs.py +7 -2
  67. polyaxon/_fs/utils.py +3 -2
  68. polyaxon/_k8s/converter/base/base.py +2 -1
  69. polyaxon/_k8s/converter/base/main.py +1 -0
  70. polyaxon/_k8s/converter/base/sidecar.py +16 -1
  71. polyaxon/_k8s/converter/common/accelerators.py +7 -4
  72. polyaxon/_k8s/converter/converters/job.py +1 -1
  73. polyaxon/_k8s/converter/converters/kubeflow/paddle_job.py +1 -0
  74. polyaxon/_k8s/converter/converters/kubeflow/pytroch_job.py +2 -0
  75. polyaxon/_k8s/converter/converters/kubeflow/tf_job.py +1 -0
  76. polyaxon/_k8s/converter/converters/ray_job.py +4 -2
  77. polyaxon/_k8s/custom_resources/dask_job.py +3 -0
  78. polyaxon/_k8s/custom_resources/kubeflow/common.py +4 -1
  79. polyaxon/_k8s/custom_resources/kubeflow/paddle_job.py +10 -1
  80. polyaxon/_k8s/custom_resources/kubeflow/pytorch_job.py +14 -1
  81. polyaxon/_k8s/custom_resources/kubeflow/tf_job.py +4 -0
  82. polyaxon/_k8s/custom_resources/ray_job.py +3 -0
  83. polyaxon/_k8s/custom_resources/setter.py +1 -1
  84. polyaxon/_k8s/executor/async_executor.py +2 -0
  85. polyaxon/_k8s/executor/base.py +23 -6
  86. polyaxon/_k8s/logging/async_monitor.py +150 -5
  87. polyaxon/_k8s/manager/async_manager.py +96 -23
  88. polyaxon/_k8s/manager/base.py +4 -0
  89. polyaxon/_k8s/manager/manager.py +282 -134
  90. polyaxon/_local_process/__init__.py +0 -0
  91. polyaxon/_local_process/agent.py +6 -0
  92. polyaxon/_local_process/converter/__init__.py +1 -0
  93. polyaxon/_local_process/converter/base/__init__.py +1 -0
  94. polyaxon/_local_process/converter/base/base.py +140 -0
  95. polyaxon/_local_process/converter/base/containers.py +69 -0
  96. polyaxon/_local_process/converter/base/env_vars.py +253 -0
  97. polyaxon/_local_process/converter/base/init.py +414 -0
  98. polyaxon/_local_process/converter/base/main.py +74 -0
  99. polyaxon/_local_process/converter/base/mounts.py +82 -0
  100. polyaxon/_local_process/converter/converters/__init__.py +8 -0
  101. polyaxon/_local_process/converter/converters/job.py +40 -0
  102. polyaxon/_local_process/converter/converters/service.py +41 -0
  103. polyaxon/_local_process/converter/mixins.py +38 -0
  104. polyaxon/_local_process/executor.py +132 -0
  105. polyaxon/_local_process/process_types.py +39 -0
  106. polyaxon/_managers/agent.py +2 -0
  107. polyaxon/_managers/home.py +2 -1
  108. polyaxon/_operations/tuner.py +1 -0
  109. polyaxon/_polyaxonfile/check.py +2 -0
  110. polyaxon/_polyaxonfile/manager/operations.py +3 -0
  111. polyaxon/_polyaxonfile/manager/workflows.py +2 -0
  112. polyaxon/_polyaxonfile/specs/compiled_operation.py +1 -0
  113. polyaxon/_polyaxonfile/specs/operation.py +1 -0
  114. polyaxon/_polyaxonfile/specs/sections.py +3 -0
  115. polyaxon/_pql/manager.py +1 -1
  116. polyaxon/_runner/agent/async_agent.py +97 -21
  117. polyaxon/_runner/agent/base_agent.py +27 -9
  118. polyaxon/_runner/agent/client.py +15 -1
  119. polyaxon/_runner/agent/sync_agent.py +85 -20
  120. polyaxon/_runner/converter/converter.py +6 -2
  121. polyaxon/_runner/executor.py +13 -7
  122. polyaxon/_schemas/agent.py +27 -1
  123. polyaxon/_schemas/client.py +30 -3
  124. polyaxon/_schemas/installation.py +4 -3
  125. polyaxon/_schemas/lifecycle.py +10 -5
  126. polyaxon/_schemas/log_handler.py +2 -3
  127. polyaxon/_schemas/types/artifacts.py +3 -3
  128. polyaxon/_schemas/types/dockerfile.py +3 -3
  129. polyaxon/_schemas/types/file.py +3 -3
  130. polyaxon/_schemas/types/git.py +3 -3
  131. polyaxon/_schemas/types/tensorboard.py +3 -3
  132. polyaxon/_sdk/api/agents_v1_api.py +1076 -73
  133. polyaxon/_sdk/api/organizations_v1_api.py +371 -10
  134. polyaxon/_sdk/api/project_dashboards_v1_api.py +12 -12
  135. polyaxon/_sdk/api/project_searches_v1_api.py +12 -12
  136. polyaxon/_sdk/api/projects_v1_api.py +221 -44
  137. polyaxon/_sdk/api/runs_v1_api.py +917 -445
  138. polyaxon/_sdk/api/service_accounts_v1_api.py +16 -16
  139. polyaxon/_sdk/api/teams_v1_api.py +2827 -375
  140. polyaxon/_sdk/api/users_v1_api.py +231 -55
  141. polyaxon/_sdk/async_client/api_client.py +4 -0
  142. polyaxon/_sdk/schemas/__init__.py +10 -2
  143. polyaxon/_sdk/schemas/v1_agent.py +2 -1
  144. polyaxon/_sdk/schemas/v1_agent_reconcile_body_request.py +14 -0
  145. polyaxon/_sdk/schemas/v1_artifact_tree.py +1 -1
  146. polyaxon/_sdk/schemas/v1_dashboard_spec.py +4 -0
  147. polyaxon/_sdk/schemas/v1_events_response.py +4 -0
  148. polyaxon/_sdk/schemas/v1_organization.py +1 -0
  149. polyaxon/_sdk/schemas/v1_preset.py +8 -0
  150. polyaxon/_sdk/schemas/v1_project.py +1 -0
  151. polyaxon/_sdk/schemas/v1_project_settings.py +4 -2
  152. polyaxon/_sdk/schemas/v1_run.py +2 -2
  153. polyaxon/_sdk/schemas/v1_run_edge_lineage.py +14 -0
  154. polyaxon/_sdk/schemas/v1_run_edges_graph.py +9 -0
  155. polyaxon/_sdk/schemas/v1_section_spec.py +7 -2
  156. polyaxon/_sdk/schemas/v1_settings_catalog.py +1 -0
  157. polyaxon/_sdk/schemas/v1_team.py +3 -0
  158. polyaxon/_sdk/schemas/v1_user.py +1 -2
  159. polyaxon/_sdk/schemas/v1_user_access.py +17 -0
  160. polyaxon/_services/values.py +1 -0
  161. polyaxon/_sidecar/container/__init__.py +39 -18
  162. polyaxon/_sidecar/container/monitors/__init__.py +1 -0
  163. polyaxon/_sidecar/container/monitors/logs.py +10 -13
  164. polyaxon/_sidecar/container/monitors/spec.py +24 -0
  165. polyaxon/_sidecar/ignore.py +0 -1
  166. polyaxon/_utils/fqn_utils.py +25 -2
  167. polyaxon/client.py +1 -1
  168. polyaxon/pkg.py +1 -1
  169. polyaxon/schemas.py +8 -1
  170. polyaxon/settings.py +6 -0
  171. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/METADATA +43 -43
  172. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/RECORD +176 -155
  173. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/WHEEL +1 -1
  174. polyaxon/_sdk/schemas/v1_project_user_access.py +0 -10
  175. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/LICENSE +0 -0
  176. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/entry_points.txt +0 -0
  177. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/top_level.txt +0 -0
@@ -15,7 +15,7 @@ class ProjectSearchesV1Api(BaseApi):
15
15
  self,
16
16
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
17
17
  project: Annotated[
18
- StrictStr, Field(..., description="Project under namesapce")
18
+ StrictStr, Field(..., description="Project under namespace")
19
19
  ],
20
20
  body: Annotated[V1Search, Field(..., description="Search body")],
21
21
  **kwargs
@@ -30,7 +30,7 @@ class ProjectSearchesV1Api(BaseApi):
30
30
 
31
31
  :param owner: Owner of the namespace (required)
32
32
  :type owner: str
33
- :param project: Project under namesapce (required)
33
+ :param project: Project under namespace (required)
34
34
  :type project: str
35
35
  :param body: Search body (required)
36
36
  :type body: V1Search
@@ -59,7 +59,7 @@ class ProjectSearchesV1Api(BaseApi):
59
59
  self,
60
60
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
61
61
  project: Annotated[
62
- StrictStr, Field(..., description="Project under namesapce")
62
+ StrictStr, Field(..., description="Project under namespace")
63
63
  ],
64
64
  body: Annotated[V1Search, Field(..., description="Search body")],
65
65
  **kwargs
@@ -74,7 +74,7 @@ class ProjectSearchesV1Api(BaseApi):
74
74
 
75
75
  :param owner: Owner of the namespace (required)
76
76
  :type owner: str
77
- :param project: Project under namesapce (required)
77
+ :param project: Project under namespace (required)
78
78
  :type project: str
79
79
  :param body: Search body (required)
80
80
  :type body: V1Search
@@ -1069,7 +1069,7 @@ class ProjectSearchesV1Api(BaseApi):
1069
1069
  self,
1070
1070
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1071
1071
  project: Annotated[
1072
- StrictStr, Field(..., description="Project under namesapce")
1072
+ StrictStr, Field(..., description="Project under namespace")
1073
1073
  ],
1074
1074
  search_uuid: Annotated[StrictStr, Field(..., description="UUID")],
1075
1075
  body: Annotated[V1Search, Field(..., description="Search body")],
@@ -1085,7 +1085,7 @@ class ProjectSearchesV1Api(BaseApi):
1085
1085
 
1086
1086
  :param owner: Owner of the namespace (required)
1087
1087
  :type owner: str
1088
- :param project: Project under namesapce (required)
1088
+ :param project: Project under namespace (required)
1089
1089
  :type project: str
1090
1090
  :param search_uuid: UUID (required)
1091
1091
  :type search_uuid: str
@@ -1116,7 +1116,7 @@ class ProjectSearchesV1Api(BaseApi):
1116
1116
  self,
1117
1117
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1118
1118
  project: Annotated[
1119
- StrictStr, Field(..., description="Project under namesapce")
1119
+ StrictStr, Field(..., description="Project under namespace")
1120
1120
  ],
1121
1121
  search_uuid: Annotated[StrictStr, Field(..., description="UUID")],
1122
1122
  body: Annotated[V1Search, Field(..., description="Search body")],
@@ -1132,7 +1132,7 @@ class ProjectSearchesV1Api(BaseApi):
1132
1132
 
1133
1133
  :param owner: Owner of the namespace (required)
1134
1134
  :type owner: str
1135
- :param project: Project under namesapce (required)
1135
+ :param project: Project under namespace (required)
1136
1136
  :type project: str
1137
1137
  :param search_uuid: UUID (required)
1138
1138
  :type search_uuid: str
@@ -1440,7 +1440,7 @@ class ProjectSearchesV1Api(BaseApi):
1440
1440
  self,
1441
1441
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1442
1442
  project: Annotated[
1443
- StrictStr, Field(..., description="Project under namesapce")
1443
+ StrictStr, Field(..., description="Project under namespace")
1444
1444
  ],
1445
1445
  search_uuid: Annotated[StrictStr, Field(..., description="UUID")],
1446
1446
  body: Annotated[V1Search, Field(..., description="Search body")],
@@ -1456,7 +1456,7 @@ class ProjectSearchesV1Api(BaseApi):
1456
1456
 
1457
1457
  :param owner: Owner of the namespace (required)
1458
1458
  :type owner: str
1459
- :param project: Project under namesapce (required)
1459
+ :param project: Project under namespace (required)
1460
1460
  :type project: str
1461
1461
  :param search_uuid: UUID (required)
1462
1462
  :type search_uuid: str
@@ -1487,7 +1487,7 @@ class ProjectSearchesV1Api(BaseApi):
1487
1487
  self,
1488
1488
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1489
1489
  project: Annotated[
1490
- StrictStr, Field(..., description="Project under namesapce")
1490
+ StrictStr, Field(..., description="Project under namespace")
1491
1491
  ],
1492
1492
  search_uuid: Annotated[StrictStr, Field(..., description="UUID")],
1493
1493
  body: Annotated[V1Search, Field(..., description="Search body")],
@@ -1503,7 +1503,7 @@ class ProjectSearchesV1Api(BaseApi):
1503
1503
 
1504
1504
  :param owner: Owner of the namespace (required)
1505
1505
  :type owner: str
1506
- :param project: Project under namesapce (required)
1506
+ :param project: Project under namespace (required)
1507
1507
  :type project: str
1508
1508
  :param search_uuid: UUID (required)
1509
1509
  :type search_uuid: str
@@ -23,7 +23,7 @@ class ProjectsV1Api(BaseApi):
23
23
  def archive_project(
24
24
  self,
25
25
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
26
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
26
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
27
27
  **kwargs
28
28
  ) -> None:
29
29
  """Archive project
@@ -36,7 +36,7 @@ class ProjectsV1Api(BaseApi):
36
36
 
37
37
  :param owner: Owner of the namespace (required)
38
38
  :type owner: str
39
- :param name: Component under namesapce (required)
39
+ :param name: Component under namespace (required)
40
40
  :type name: str
41
41
  :param async_req: Whether to execute the request asynchronously.
42
42
  :type async_req: bool, optional
@@ -60,7 +60,7 @@ class ProjectsV1Api(BaseApi):
60
60
  def archive_project_with_http_info(
61
61
  self,
62
62
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
63
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
63
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
64
64
  **kwargs
65
65
  ):
66
66
  """Archive project
@@ -73,7 +73,7 @@ class ProjectsV1Api(BaseApi):
73
73
 
74
74
  :param owner: Owner of the namespace (required)
75
75
  :type owner: str
76
- :param name: Component under namesapce (required)
76
+ :param name: Component under namespace (required)
77
77
  :type name: str
78
78
  :param async_req: Whether to execute the request asynchronously.
79
79
  :type async_req: bool, optional
@@ -179,7 +179,7 @@ class ProjectsV1Api(BaseApi):
179
179
  def bookmark_project(
180
180
  self,
181
181
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
182
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
182
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
183
183
  **kwargs
184
184
  ) -> None: # noqa: E501
185
185
  """Bookmark project # noqa: E501
@@ -192,7 +192,7 @@ class ProjectsV1Api(BaseApi):
192
192
 
193
193
  :param owner: Owner of the namespace (required)
194
194
  :type owner: str
195
- :param name: Component under namesapce (required)
195
+ :param name: Component under namespace (required)
196
196
  :type name: str
197
197
  :param async_req: Whether to execute the request asynchronously.
198
198
  :type async_req: bool, optional
@@ -216,7 +216,7 @@ class ProjectsV1Api(BaseApi):
216
216
  def bookmark_project_with_http_info(
217
217
  self,
218
218
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
219
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
219
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
220
220
  **kwargs
221
221
  ): # noqa: E501
222
222
  """Bookmark project # noqa: E501
@@ -229,7 +229,7 @@ class ProjectsV1Api(BaseApi):
229
229
 
230
230
  :param owner: Owner of the namespace (required)
231
231
  :type owner: str
232
- :param name: Component under namesapce (required)
232
+ :param name: Component under namespace (required)
233
233
  :type name: str
234
234
  :param async_req: Whether to execute the request asynchronously.
235
235
  :type async_req: bool, optional
@@ -500,6 +500,183 @@ class ProjectsV1Api(BaseApi):
500
500
  _request_auth=_params.get("_request_auth"),
501
501
  )
502
502
 
503
+ @validate_arguments
504
+ def create_team_project(
505
+ self,
506
+ owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
507
+ team: Annotated[StrictStr, Field(..., description="Team")],
508
+ body: Annotated[V1Project, Field(..., description="Project body")],
509
+ **kwargs
510
+ ) -> V1Project: # noqa: E501
511
+ """Create new project via team space # noqa: E501
512
+
513
+ This method makes a synchronous HTTP request by default. To make an
514
+ asynchronous HTTP request, please pass async_req=True
515
+
516
+ >>> thread = api.create_team_project(owner, team, body, async_req=True)
517
+ >>> result = thread.get()
518
+
519
+ :param owner: Owner of the namespace (required)
520
+ :type owner: str
521
+ :param team: Team (required)
522
+ :type team: str
523
+ :param body: Project body (required)
524
+ :type body: V1Project
525
+ :param async_req: Whether to execute the request asynchronously.
526
+ :type async_req: bool, optional
527
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
528
+ be returned without reading/decoding response
529
+ data. Default is True.
530
+ :type _preload_content: bool, optional
531
+ :param _request_timeout: timeout setting for this request. If one
532
+ number provided, it will be total request
533
+ timeout. It can also be a pair (tuple) of
534
+ (connection, read) timeouts.
535
+ :return: Returns the result object.
536
+ If the method is called asynchronously,
537
+ returns the request thread.
538
+ :rtype: V1Project
539
+ """
540
+ kwargs["_return_http_data_only"] = True
541
+ return self.create_team_project_with_http_info(
542
+ owner, team, body, **kwargs
543
+ ) # noqa: E501
544
+
545
+ @validate_arguments
546
+ def create_team_project_with_http_info(
547
+ self,
548
+ owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
549
+ team: Annotated[StrictStr, Field(..., description="Team")],
550
+ body: Annotated[V1Project, Field(..., description="Project body")],
551
+ **kwargs
552
+ ): # noqa: E501
553
+ """Create new project via team space # noqa: E501
554
+
555
+ This method makes a synchronous HTTP request by default. To make an
556
+ asynchronous HTTP request, please pass async_req=True
557
+
558
+ >>> thread = api.create_team_project_with_http_info(owner, team, body, async_req=True)
559
+ >>> result = thread.get()
560
+
561
+ :param owner: Owner of the namespace (required)
562
+ :type owner: str
563
+ :param team: Team (required)
564
+ :type team: str
565
+ :param body: Project body (required)
566
+ :type body: V1Project
567
+ :param async_req: Whether to execute the request asynchronously.
568
+ :type async_req: bool, optional
569
+ :param _return_http_data_only: response data without head status code
570
+ and headers
571
+ :type _return_http_data_only: bool, optional
572
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
573
+ be returned without reading/decoding response
574
+ data. Default is True.
575
+ :type _preload_content: bool, optional
576
+ :param _request_timeout: timeout setting for this request. If one
577
+ number provided, it will be total request
578
+ timeout. It can also be a pair (tuple) of
579
+ (connection, read) timeouts.
580
+ :param _request_auth: set to override the auth_settings for an a single
581
+ request; this effectively ignores the authentication
582
+ in the spec for a single request.
583
+ :type _request_auth: dict, optional
584
+ :type _content_type: string, optional: force content-type for the request
585
+ :return: Returns the result object.
586
+ If the method is called asynchronously,
587
+ returns the request thread.
588
+ :rtype: tuple(V1Project, status_code(int), headers(HTTPHeaderDict))
589
+ """
590
+
591
+ _params = locals()
592
+
593
+ _all_params = ["owner", "team", "body"]
594
+ _all_params.extend(
595
+ [
596
+ "async_req",
597
+ "_return_http_data_only",
598
+ "_preload_content",
599
+ "_request_timeout",
600
+ "_request_auth",
601
+ "_content_type",
602
+ "_headers",
603
+ ]
604
+ )
605
+
606
+ # validate the arguments
607
+ for _key, _val in _params["kwargs"].items():
608
+ if _key not in _all_params:
609
+ raise ApiTypeError(
610
+ "Got an unexpected keyword argument '%s'"
611
+ " to method create_team_project" % _key
612
+ )
613
+ _params[_key] = _val
614
+ del _params["kwargs"]
615
+
616
+ _collection_formats = {}
617
+
618
+ # process the path parameters
619
+ _path_params = {}
620
+ if _params["owner"]:
621
+ _path_params["owner"] = _params["owner"]
622
+
623
+ if _params["team"]:
624
+ _path_params["team"] = _params["team"]
625
+
626
+ # process the query parameters
627
+ _query_params = []
628
+ # process the header parameters
629
+ _header_params = dict(_params.get("_headers", {}))
630
+ # process the form parameters
631
+ _form_params = []
632
+ _files = {}
633
+ # process the body parameter
634
+ _body_params = None
635
+ if _params["body"]:
636
+ _body_params = _params["body"]
637
+
638
+ # set the HTTP header `Accept`
639
+ _header_params["Accept"] = self.api_client.select_header_accept(
640
+ ["application/json"]
641
+ ) # noqa: E501
642
+
643
+ # set the HTTP header `Content-Type`
644
+ _content_types_list = _params.get(
645
+ "_content_type",
646
+ self.api_client.select_header_content_type(["application/json"]),
647
+ )
648
+ if _content_types_list:
649
+ _header_params["Content-Type"] = _content_types_list
650
+
651
+ # authentication setting
652
+ _auth_settings = ["ApiKey"] # noqa: E501
653
+
654
+ _response_types_map = {
655
+ "200": "V1Project",
656
+ "204": "object",
657
+ "403": "object",
658
+ "404": "object",
659
+ }
660
+
661
+ return self.api_client.call_api(
662
+ "/api/v1/{owner}/{team}/projects/create",
663
+ "POST",
664
+ _path_params,
665
+ _query_params,
666
+ _header_params,
667
+ body=_body_params,
668
+ post_params=_form_params,
669
+ files=_files,
670
+ response_types_map=_response_types_map,
671
+ auth_settings=_auth_settings,
672
+ async_req=_params.get("async_req"),
673
+ _return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
674
+ _preload_content=_params.get("_preload_content", True),
675
+ _request_timeout=_params.get("_request_timeout"),
676
+ collection_formats=_collection_formats,
677
+ _request_auth=_params.get("_request_auth"),
678
+ )
679
+
503
680
  @validate_arguments
504
681
  def create_version(
505
682
  self,
@@ -912,7 +1089,7 @@ class ProjectsV1Api(BaseApi):
912
1089
  def delete_project(
913
1090
  self,
914
1091
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
915
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1092
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
916
1093
  **kwargs
917
1094
  ) -> None: # noqa: E501
918
1095
  """Delete project # noqa: E501
@@ -925,7 +1102,7 @@ class ProjectsV1Api(BaseApi):
925
1102
 
926
1103
  :param owner: Owner of the namespace (required)
927
1104
  :type owner: str
928
- :param name: Component under namesapce (required)
1105
+ :param name: Component under namespace (required)
929
1106
  :type name: str
930
1107
  :param async_req: Whether to execute the request asynchronously.
931
1108
  :type async_req: bool, optional
@@ -949,7 +1126,7 @@ class ProjectsV1Api(BaseApi):
949
1126
  def delete_project_with_http_info(
950
1127
  self,
951
1128
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
952
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1129
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
953
1130
  **kwargs
954
1131
  ): # noqa: E501
955
1132
  """Delete project # noqa: E501
@@ -962,7 +1139,7 @@ class ProjectsV1Api(BaseApi):
962
1139
 
963
1140
  :param owner: Owner of the namespace (required)
964
1141
  :type owner: str
965
- :param name: Component under namesapce (required)
1142
+ :param name: Component under namespace (required)
966
1143
  :type name: str
967
1144
  :param async_req: Whether to execute the request asynchronously.
968
1145
  :type async_req: bool, optional
@@ -1252,7 +1429,7 @@ class ProjectsV1Api(BaseApi):
1252
1429
  def disable_project_ci(
1253
1430
  self,
1254
1431
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1255
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1432
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1256
1433
  **kwargs
1257
1434
  ) -> None: # noqa: E501
1258
1435
  """Disbale project CI # noqa: E501
@@ -1265,7 +1442,7 @@ class ProjectsV1Api(BaseApi):
1265
1442
 
1266
1443
  :param owner: Owner of the namespace (required)
1267
1444
  :type owner: str
1268
- :param name: Component under namesapce (required)
1445
+ :param name: Component under namespace (required)
1269
1446
  :type name: str
1270
1447
  :param async_req: Whether to execute the request asynchronously.
1271
1448
  :type async_req: bool, optional
@@ -1291,7 +1468,7 @@ class ProjectsV1Api(BaseApi):
1291
1468
  def disable_project_ci_with_http_info(
1292
1469
  self,
1293
1470
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1294
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1471
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1295
1472
  **kwargs
1296
1473
  ): # noqa: E501
1297
1474
  """Disbale project CI # noqa: E501
@@ -1304,7 +1481,7 @@ class ProjectsV1Api(BaseApi):
1304
1481
 
1305
1482
  :param owner: Owner of the namespace (required)
1306
1483
  :type owner: str
1307
- :param name: Component under namesapce (required)
1484
+ :param name: Component under namespace (required)
1308
1485
  :type name: str
1309
1486
  :param async_req: Whether to execute the request asynchronously.
1310
1487
  :type async_req: bool, optional
@@ -1410,7 +1587,7 @@ class ProjectsV1Api(BaseApi):
1410
1587
  def enable_project_ci(
1411
1588
  self,
1412
1589
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1413
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1590
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1414
1591
  **kwargs
1415
1592
  ) -> None: # noqa: E501
1416
1593
  """Enable project CI # noqa: E501
@@ -1423,7 +1600,7 @@ class ProjectsV1Api(BaseApi):
1423
1600
 
1424
1601
  :param owner: Owner of the namespace (required)
1425
1602
  :type owner: str
1426
- :param name: Component under namesapce (required)
1603
+ :param name: Component under namespace (required)
1427
1604
  :type name: str
1428
1605
  :param async_req: Whether to execute the request asynchronously.
1429
1606
  :type async_req: bool, optional
@@ -1449,7 +1626,7 @@ class ProjectsV1Api(BaseApi):
1449
1626
  def enable_project_ci_with_http_info(
1450
1627
  self,
1451
1628
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1452
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1629
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1453
1630
  **kwargs
1454
1631
  ): # noqa: E501
1455
1632
  """Enable project CI # noqa: E501
@@ -1462,7 +1639,7 @@ class ProjectsV1Api(BaseApi):
1462
1639
 
1463
1640
  :param owner: Owner of the namespace (required)
1464
1641
  :type owner: str
1465
- :param name: Component under namesapce (required)
1642
+ :param name: Component under namespace (required)
1466
1643
  :type name: str
1467
1644
  :param async_req: Whether to execute the request asynchronously.
1468
1645
  :type async_req: bool, optional
@@ -1568,7 +1745,7 @@ class ProjectsV1Api(BaseApi):
1568
1745
  def get_project(
1569
1746
  self,
1570
1747
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1571
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1748
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1572
1749
  **kwargs
1573
1750
  ) -> V1Project: # noqa: E501
1574
1751
  """Get project # noqa: E501
@@ -1581,7 +1758,7 @@ class ProjectsV1Api(BaseApi):
1581
1758
 
1582
1759
  :param owner: Owner of the namespace (required)
1583
1760
  :type owner: str
1584
- :param name: Component under namesapce (required)
1761
+ :param name: Component under namespace (required)
1585
1762
  :type name: str
1586
1763
  :param async_req: Whether to execute the request asynchronously.
1587
1764
  :type async_req: bool, optional
@@ -1605,7 +1782,7 @@ class ProjectsV1Api(BaseApi):
1605
1782
  def get_project_with_http_info(
1606
1783
  self,
1607
1784
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1608
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
1785
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1609
1786
  **kwargs
1610
1787
  ): # noqa: E501
1611
1788
  """Get project # noqa: E501
@@ -1618,7 +1795,7 @@ class ProjectsV1Api(BaseApi):
1618
1795
 
1619
1796
  :param owner: Owner of the namespace (required)
1620
1797
  :type owner: str
1621
- :param name: Component under namesapce (required)
1798
+ :param name: Component under namespace (required)
1622
1799
  :type name: str
1623
1800
  :param async_req: Whether to execute the request asynchronously.
1624
1801
  :type async_req: bool, optional
@@ -1982,7 +2159,7 @@ class ProjectsV1Api(BaseApi):
1982
2159
  def get_project_settings(
1983
2160
  self,
1984
2161
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1985
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
2162
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
1986
2163
  **kwargs
1987
2164
  ) -> V1ProjectSettings: # noqa: E501
1988
2165
  """Get Project settings # noqa: E501
@@ -1995,7 +2172,7 @@ class ProjectsV1Api(BaseApi):
1995
2172
 
1996
2173
  :param owner: Owner of the namespace (required)
1997
2174
  :type owner: str
1998
- :param name: Component under namesapce (required)
2175
+ :param name: Component under namespace (required)
1999
2176
  :type name: str
2000
2177
  :param async_req: Whether to execute the request asynchronously.
2001
2178
  :type async_req: bool, optional
@@ -2021,7 +2198,7 @@ class ProjectsV1Api(BaseApi):
2021
2198
  def get_project_settings_with_http_info(
2022
2199
  self,
2023
2200
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
2024
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
2201
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
2025
2202
  **kwargs
2026
2203
  ): # noqa: E501
2027
2204
  """Get Project settings # noqa: E501
@@ -2034,7 +2211,7 @@ class ProjectsV1Api(BaseApi):
2034
2211
 
2035
2212
  :param owner: Owner of the namespace (required)
2036
2213
  :type owner: str
2037
- :param name: Component under namesapce (required)
2214
+ :param name: Component under namespace (required)
2038
2215
  :type name: str
2039
2216
  :param async_req: Whether to execute the request asynchronously.
2040
2217
  :type async_req: bool, optional
@@ -3714,7 +3891,7 @@ class ProjectsV1Api(BaseApi):
3714
3891
  self,
3715
3892
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
3716
3893
  entity: Annotated[
3717
- StrictStr, Field(..., description="Entity name under namesapce")
3894
+ StrictStr, Field(..., description="Entity name under namespace")
3718
3895
  ],
3719
3896
  kind: Annotated[str, Field(..., description="Version Kind")],
3720
3897
  offset: Annotated[
@@ -3740,7 +3917,7 @@ class ProjectsV1Api(BaseApi):
3740
3917
 
3741
3918
  :param owner: Owner of the namespace (required)
3742
3919
  :type owner: str
3743
- :param entity: Entity name under namesapce (required)
3920
+ :param entity: Entity name under namespace (required)
3744
3921
  :type entity: str
3745
3922
  :param kind: Version Kind (required)
3746
3923
  :type kind: str
@@ -3779,7 +3956,7 @@ class ProjectsV1Api(BaseApi):
3779
3956
  self,
3780
3957
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
3781
3958
  entity: Annotated[
3782
- StrictStr, Field(..., description="Entity name under namesapce")
3959
+ StrictStr, Field(..., description="Entity name under namespace")
3783
3960
  ],
3784
3961
  kind: Annotated[str, Field(..., description="Version Kind")],
3785
3962
  offset: Annotated[
@@ -3805,7 +3982,7 @@ class ProjectsV1Api(BaseApi):
3805
3982
 
3806
3983
  :param owner: Owner of the namespace (required)
3807
3984
  :type owner: str
3808
- :param entity: Entity name under namesapce (required)
3985
+ :param entity: Entity name under namespace (required)
3809
3986
  :type entity: str
3810
3987
  :param kind: Version Kind (required)
3811
3988
  :type kind: str
@@ -3950,7 +4127,7 @@ class ProjectsV1Api(BaseApi):
3950
4127
  self,
3951
4128
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
3952
4129
  entity: Annotated[
3953
- StrictStr, Field(..., description="Entity name under namesapce")
4130
+ StrictStr, Field(..., description="Entity name under namespace")
3954
4131
  ],
3955
4132
  kind: Annotated[str, Field(..., description="Version Kind")],
3956
4133
  offset: Annotated[
@@ -3976,7 +4153,7 @@ class ProjectsV1Api(BaseApi):
3976
4153
 
3977
4154
  :param owner: Owner of the namespace (required)
3978
4155
  :type owner: str
3979
- :param entity: Entity name under namesapce (required)
4156
+ :param entity: Entity name under namespace (required)
3980
4157
  :type entity: str
3981
4158
  :param kind: Version Kind (required)
3982
4159
  :type kind: str
@@ -4015,7 +4192,7 @@ class ProjectsV1Api(BaseApi):
4015
4192
  self,
4016
4193
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
4017
4194
  entity: Annotated[
4018
- StrictStr, Field(..., description="Entity name under namesapce")
4195
+ StrictStr, Field(..., description="Entity name under namespace")
4019
4196
  ],
4020
4197
  kind: Annotated[str, Field(..., description="Version Kind")],
4021
4198
  offset: Annotated[
@@ -4041,7 +4218,7 @@ class ProjectsV1Api(BaseApi):
4041
4218
 
4042
4219
  :param owner: Owner of the namespace (required)
4043
4220
  :type owner: str
4044
- :param entity: Entity name under namesapce (required)
4221
+ :param entity: Entity name under namespace (required)
4045
4222
  :type entity: str
4046
4223
  :param kind: Version Kind (required)
4047
4224
  :type kind: str
@@ -4764,7 +4941,7 @@ class ProjectsV1Api(BaseApi):
4764
4941
  def restore_project(
4765
4942
  self,
4766
4943
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
4767
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
4944
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
4768
4945
  **kwargs
4769
4946
  ) -> None: # noqa: E501
4770
4947
  """Restore project # noqa: E501
@@ -4777,7 +4954,7 @@ class ProjectsV1Api(BaseApi):
4777
4954
 
4778
4955
  :param owner: Owner of the namespace (required)
4779
4956
  :type owner: str
4780
- :param name: Component under namesapce (required)
4957
+ :param name: Component under namespace (required)
4781
4958
  :type name: str
4782
4959
  :param async_req: Whether to execute the request asynchronously.
4783
4960
  :type async_req: bool, optional
@@ -4801,7 +4978,7 @@ class ProjectsV1Api(BaseApi):
4801
4978
  def restore_project_with_http_info(
4802
4979
  self,
4803
4980
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
4804
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
4981
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
4805
4982
  **kwargs
4806
4983
  ): # noqa: E501
4807
4984
  """Restore project # noqa: E501
@@ -4814,7 +4991,7 @@ class ProjectsV1Api(BaseApi):
4814
4991
 
4815
4992
  :param owner: Owner of the namespace (required)
4816
4993
  :type owner: str
4817
- :param name: Component under namesapce (required)
4994
+ :param name: Component under namespace (required)
4818
4995
  :type name: str
4819
4996
  :param async_req: Whether to execute the request asynchronously.
4820
4997
  :type async_req: bool, optional
@@ -5132,7 +5309,7 @@ class ProjectsV1Api(BaseApi):
5132
5309
  def unbookmark_project(
5133
5310
  self,
5134
5311
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
5135
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
5312
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
5136
5313
  **kwargs
5137
5314
  ) -> None: # noqa: E501
5138
5315
  """Unbookmark project # noqa: E501
@@ -5145,7 +5322,7 @@ class ProjectsV1Api(BaseApi):
5145
5322
 
5146
5323
  :param owner: Owner of the namespace (required)
5147
5324
  :type owner: str
5148
- :param name: Component under namesapce (required)
5325
+ :param name: Component under namespace (required)
5149
5326
  :type name: str
5150
5327
  :param async_req: Whether to execute the request asynchronously.
5151
5328
  :type async_req: bool, optional
@@ -5171,7 +5348,7 @@ class ProjectsV1Api(BaseApi):
5171
5348
  def unbookmark_project_with_http_info(
5172
5349
  self,
5173
5350
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
5174
- name: Annotated[StrictStr, Field(..., description="Component under namesapce")],
5351
+ name: Annotated[StrictStr, Field(..., description="Component under namespace")],
5175
5352
  **kwargs
5176
5353
  ): # noqa: E501
5177
5354
  """Unbookmark project # noqa: E501
@@ -5184,7 +5361,7 @@ class ProjectsV1Api(BaseApi):
5184
5361
 
5185
5362
  :param owner: Owner of the namespace (required)
5186
5363
  :type owner: str
5187
- :param name: Component under namesapce (required)
5364
+ :param name: Component under namespace (required)
5188
5365
  :type name: str
5189
5366
  :param async_req: Whether to execute the request asynchronously.
5190
5367
  :type async_req: bool, optional