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.
- polyaxon/_auxiliaries/cleaner.py +8 -3
- polyaxon/_auxiliaries/init.py +7 -2
- polyaxon/_auxiliaries/notifier.py +8 -2
- polyaxon/_auxiliaries/sidecar.py +30 -2
- polyaxon/_cli/artifacts.py +96 -11
- polyaxon/_cli/components.py +96 -11
- polyaxon/_cli/config.py +118 -22
- polyaxon/_cli/dashboard.py +15 -2
- polyaxon/_cli/init.py +1 -1
- polyaxon/_cli/models.py +96 -11
- polyaxon/_cli/operations.py +267 -90
- polyaxon/_cli/project_versions.py +139 -6
- polyaxon/_cli/projects.py +23 -9
- polyaxon/_cli/run.py +37 -9
- polyaxon/_cli/services/agent.py +2 -2
- polyaxon/_cli/services/clean_artifacts.py +1 -1
- polyaxon/_cli/services/sidecar.py +8 -1
- polyaxon/_client/client.py +17 -0
- polyaxon/_client/mixin.py +39 -0
- polyaxon/_client/project.py +218 -23
- polyaxon/_client/run.py +131 -33
- polyaxon/_compiler/contexts/contexts.py +2 -2
- polyaxon/_compiler/contexts/ray_job.py +4 -2
- polyaxon/_compiler/resolver/agent.py +12 -2
- polyaxon/_compiler/resolver/runtime.py +2 -2
- polyaxon/_contexts/paths.py +4 -7
- polyaxon/_deploy/operators/compose.py +1 -27
- polyaxon/_deploy/schemas/deployment.py +4 -1
- polyaxon/_deploy/schemas/intervals.py +0 -7
- polyaxon/_deploy/schemas/proxy.py +1 -0
- polyaxon/_deploy/schemas/service.py +11 -1
- polyaxon/_docker/converter/base/base.py +8 -0
- polyaxon/_docker/executor.py +10 -4
- polyaxon/_env_vars/getters/owner_entity.py +4 -2
- polyaxon/_env_vars/getters/project.py +4 -2
- polyaxon/_env_vars/getters/run.py +5 -2
- polyaxon/_env_vars/keys.py +7 -1
- polyaxon/_flow/__init__.py +2 -0
- polyaxon/_flow/builds/__init__.py +19 -6
- polyaxon/_flow/component/base.py +1 -0
- polyaxon/_flow/component/component.py +14 -0
- polyaxon/_flow/environment/__init__.py +8 -8
- polyaxon/_flow/hooks/__init__.py +19 -6
- polyaxon/_flow/init/__init__.py +6 -6
- polyaxon/_flow/matrix/iterative.py +0 -1
- polyaxon/_flow/matrix/tuner.py +18 -6
- polyaxon/_flow/operations/operation.py +44 -17
- polyaxon/_flow/plugins/__init__.py +6 -0
- polyaxon/_flow/run/__init__.py +2 -2
- polyaxon/_flow/run/dag.py +2 -2
- polyaxon/_flow/run/dask/dask.py +0 -1
- polyaxon/_flow/run/dask/replica.py +3 -3
- polyaxon/_flow/run/enums.py +5 -0
- polyaxon/_flow/run/job.py +4 -4
- polyaxon/_flow/run/kubeflow/mpi_job.py +1 -2
- polyaxon/_flow/run/kubeflow/mx_job.py +1 -2
- polyaxon/_flow/run/kubeflow/paddle_job.py +35 -4
- polyaxon/_flow/run/kubeflow/pytorch_job.py +51 -5
- polyaxon/_flow/run/kubeflow/replica.py +4 -4
- polyaxon/_flow/run/kubeflow/scheduling_policy.py +12 -0
- polyaxon/_flow/run/kubeflow/tf_job.py +3 -3
- polyaxon/_flow/run/kubeflow/xgboost_job.py +1 -2
- polyaxon/_flow/run/ray/ray.py +2 -3
- polyaxon/_flow/run/ray/replica.py +3 -3
- polyaxon/_flow/run/service.py +4 -4
- polyaxon/_fs/fs.py +7 -2
- polyaxon/_fs/utils.py +3 -2
- polyaxon/_k8s/converter/base/base.py +2 -1
- polyaxon/_k8s/converter/base/main.py +1 -0
- polyaxon/_k8s/converter/base/sidecar.py +16 -1
- polyaxon/_k8s/converter/common/accelerators.py +7 -4
- polyaxon/_k8s/converter/converters/job.py +1 -1
- polyaxon/_k8s/converter/converters/kubeflow/paddle_job.py +1 -0
- polyaxon/_k8s/converter/converters/kubeflow/pytroch_job.py +2 -0
- polyaxon/_k8s/converter/converters/kubeflow/tf_job.py +1 -0
- polyaxon/_k8s/converter/converters/ray_job.py +4 -2
- polyaxon/_k8s/custom_resources/dask_job.py +3 -0
- polyaxon/_k8s/custom_resources/kubeflow/common.py +4 -1
- polyaxon/_k8s/custom_resources/kubeflow/paddle_job.py +10 -1
- polyaxon/_k8s/custom_resources/kubeflow/pytorch_job.py +14 -1
- polyaxon/_k8s/custom_resources/kubeflow/tf_job.py +4 -0
- polyaxon/_k8s/custom_resources/ray_job.py +3 -0
- polyaxon/_k8s/custom_resources/setter.py +1 -1
- polyaxon/_k8s/executor/async_executor.py +2 -0
- polyaxon/_k8s/executor/base.py +23 -6
- polyaxon/_k8s/logging/async_monitor.py +150 -5
- polyaxon/_k8s/manager/async_manager.py +96 -23
- polyaxon/_k8s/manager/base.py +4 -0
- polyaxon/_k8s/manager/manager.py +282 -134
- polyaxon/_local_process/__init__.py +0 -0
- polyaxon/_local_process/agent.py +6 -0
- polyaxon/_local_process/converter/__init__.py +1 -0
- polyaxon/_local_process/converter/base/__init__.py +1 -0
- polyaxon/_local_process/converter/base/base.py +140 -0
- polyaxon/_local_process/converter/base/containers.py +69 -0
- polyaxon/_local_process/converter/base/env_vars.py +253 -0
- polyaxon/_local_process/converter/base/init.py +414 -0
- polyaxon/_local_process/converter/base/main.py +74 -0
- polyaxon/_local_process/converter/base/mounts.py +82 -0
- polyaxon/_local_process/converter/converters/__init__.py +8 -0
- polyaxon/_local_process/converter/converters/job.py +40 -0
- polyaxon/_local_process/converter/converters/service.py +41 -0
- polyaxon/_local_process/converter/mixins.py +38 -0
- polyaxon/_local_process/executor.py +132 -0
- polyaxon/_local_process/process_types.py +39 -0
- polyaxon/_managers/agent.py +2 -0
- polyaxon/_managers/home.py +2 -1
- polyaxon/_operations/tuner.py +1 -0
- polyaxon/_polyaxonfile/check.py +2 -0
- polyaxon/_polyaxonfile/manager/operations.py +3 -0
- polyaxon/_polyaxonfile/manager/workflows.py +2 -0
- polyaxon/_polyaxonfile/specs/compiled_operation.py +1 -0
- polyaxon/_polyaxonfile/specs/operation.py +1 -0
- polyaxon/_polyaxonfile/specs/sections.py +3 -0
- polyaxon/_pql/manager.py +1 -1
- polyaxon/_runner/agent/async_agent.py +97 -21
- polyaxon/_runner/agent/base_agent.py +27 -9
- polyaxon/_runner/agent/client.py +15 -1
- polyaxon/_runner/agent/sync_agent.py +85 -20
- polyaxon/_runner/converter/converter.py +6 -2
- polyaxon/_runner/executor.py +13 -7
- polyaxon/_schemas/agent.py +27 -1
- polyaxon/_schemas/client.py +30 -3
- polyaxon/_schemas/installation.py +4 -3
- polyaxon/_schemas/lifecycle.py +10 -5
- polyaxon/_schemas/log_handler.py +2 -3
- polyaxon/_schemas/types/artifacts.py +3 -3
- polyaxon/_schemas/types/dockerfile.py +3 -3
- polyaxon/_schemas/types/file.py +3 -3
- polyaxon/_schemas/types/git.py +3 -3
- polyaxon/_schemas/types/tensorboard.py +3 -3
- polyaxon/_sdk/api/agents_v1_api.py +1076 -73
- polyaxon/_sdk/api/organizations_v1_api.py +371 -10
- polyaxon/_sdk/api/project_dashboards_v1_api.py +12 -12
- polyaxon/_sdk/api/project_searches_v1_api.py +12 -12
- polyaxon/_sdk/api/projects_v1_api.py +221 -44
- polyaxon/_sdk/api/runs_v1_api.py +917 -445
- polyaxon/_sdk/api/service_accounts_v1_api.py +16 -16
- polyaxon/_sdk/api/teams_v1_api.py +2827 -375
- polyaxon/_sdk/api/users_v1_api.py +231 -55
- polyaxon/_sdk/async_client/api_client.py +4 -0
- polyaxon/_sdk/schemas/__init__.py +10 -2
- polyaxon/_sdk/schemas/v1_agent.py +2 -1
- polyaxon/_sdk/schemas/v1_agent_reconcile_body_request.py +14 -0
- polyaxon/_sdk/schemas/v1_artifact_tree.py +1 -1
- polyaxon/_sdk/schemas/v1_dashboard_spec.py +4 -0
- polyaxon/_sdk/schemas/v1_events_response.py +4 -0
- polyaxon/_sdk/schemas/v1_organization.py +1 -0
- polyaxon/_sdk/schemas/v1_preset.py +8 -0
- polyaxon/_sdk/schemas/v1_project.py +1 -0
- polyaxon/_sdk/schemas/v1_project_settings.py +4 -2
- polyaxon/_sdk/schemas/v1_run.py +2 -2
- polyaxon/_sdk/schemas/v1_run_edge_lineage.py +14 -0
- polyaxon/_sdk/schemas/v1_run_edges_graph.py +9 -0
- polyaxon/_sdk/schemas/v1_section_spec.py +7 -2
- polyaxon/_sdk/schemas/v1_settings_catalog.py +1 -0
- polyaxon/_sdk/schemas/v1_team.py +3 -0
- polyaxon/_sdk/schemas/v1_user.py +1 -2
- polyaxon/_sdk/schemas/v1_user_access.py +17 -0
- polyaxon/_services/values.py +1 -0
- polyaxon/_sidecar/container/__init__.py +39 -18
- polyaxon/_sidecar/container/monitors/__init__.py +1 -0
- polyaxon/_sidecar/container/monitors/logs.py +10 -13
- polyaxon/_sidecar/container/monitors/spec.py +24 -0
- polyaxon/_sidecar/ignore.py +0 -1
- polyaxon/_utils/fqn_utils.py +25 -2
- polyaxon/client.py +1 -1
- polyaxon/pkg.py +1 -1
- polyaxon/schemas.py +8 -1
- polyaxon/settings.py +6 -0
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/METADATA +43 -43
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/RECORD +176 -155
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/WHEEL +1 -1
- polyaxon/_sdk/schemas/v1_project_user_access.py +0 -10
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/LICENSE +0 -0
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/top_level.txt +0 -0
@@ -1270,7 +1270,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1270
1270
|
def delete_organization_member(
|
1271
1271
|
self,
|
1272
1272
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1273
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
1273
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
1274
1274
|
**kwargs
|
1275
1275
|
) -> None: # noqa: E501
|
1276
1276
|
"""Delete organization member details # noqa: E501
|
@@ -1283,7 +1283,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1283
1283
|
|
1284
1284
|
:param owner: Owner of the namespace (required)
|
1285
1285
|
:type owner: str
|
1286
|
-
:param name: Component under
|
1286
|
+
:param name: Component under namespace (required)
|
1287
1287
|
:type name: str
|
1288
1288
|
:param async_req: Whether to execute the request asynchronously.
|
1289
1289
|
:type async_req: bool, optional
|
@@ -1309,7 +1309,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1309
1309
|
def delete_organization_member_with_http_info(
|
1310
1310
|
self,
|
1311
1311
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1312
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
1312
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
1313
1313
|
**kwargs
|
1314
1314
|
): # noqa: E501
|
1315
1315
|
"""Delete organization member details # noqa: E501
|
@@ -1322,7 +1322,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1322
1322
|
|
1323
1323
|
:param owner: Owner of the namespace (required)
|
1324
1324
|
:type owner: str
|
1325
|
-
:param name: Component under
|
1325
|
+
:param name: Component under namespace (required)
|
1326
1326
|
:type name: str
|
1327
1327
|
:param async_req: Whether to execute the request asynchronously.
|
1328
1328
|
:type async_req: bool, optional
|
@@ -2249,7 +2249,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2249
2249
|
def get_organization_member(
|
2250
2250
|
self,
|
2251
2251
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2252
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
2252
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
2253
2253
|
**kwargs
|
2254
2254
|
) -> V1OrganizationMember: # noqa: E501
|
2255
2255
|
"""Get organization member details # noqa: E501
|
@@ -2262,7 +2262,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2262
2262
|
|
2263
2263
|
:param owner: Owner of the namespace (required)
|
2264
2264
|
:type owner: str
|
2265
|
-
:param name: Component under
|
2265
|
+
:param name: Component under namespace (required)
|
2266
2266
|
:type name: str
|
2267
2267
|
:param async_req: Whether to execute the request asynchronously.
|
2268
2268
|
:type async_req: bool, optional
|
@@ -2288,7 +2288,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2288
2288
|
def get_organization_member_with_http_info(
|
2289
2289
|
self,
|
2290
2290
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2291
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
2291
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
2292
2292
|
**kwargs
|
2293
2293
|
): # noqa: E501
|
2294
2294
|
"""Get organization member details # noqa: E501
|
@@ -2301,7 +2301,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2301
2301
|
|
2302
2302
|
:param owner: Owner of the namespace (required)
|
2303
2303
|
:type owner: str
|
2304
|
-
:param name: Component under
|
2304
|
+
:param name: Component under namespace (required)
|
2305
2305
|
:type name: str
|
2306
2306
|
:param async_req: Whether to execute the request asynchronously.
|
2307
2307
|
:type async_req: bool, optional
|
@@ -2860,6 +2860,12 @@ class OrganizationsV1Api(BaseApi):
|
|
2860
2860
|
Optional[bool],
|
2861
2861
|
Field(description="Setting to enable viewable metadata on cloud."),
|
2862
2862
|
] = None,
|
2863
|
+
organization_archived_deletion_interval: Annotated[
|
2864
|
+
Optional[StrictInt],
|
2865
|
+
Field(
|
2866
|
+
description="Setting to configure default archived deletion interval."
|
2867
|
+
),
|
2868
|
+
] = None,
|
2863
2869
|
**kwargs
|
2864
2870
|
) -> V1Organization: # noqa: E501
|
2865
2871
|
"""Get organization settings # noqa: E501
|
@@ -2867,7 +2873,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2867
2873
|
This method makes a synchronous HTTP request by default. To make an
|
2868
2874
|
asynchronous HTTP request, please pass async_req=True
|
2869
2875
|
|
2870
|
-
>>> thread = api.get_organization_settings(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_preset, organization_is_cloud_viewable, async_req=True)
|
2876
|
+
>>> thread = api.get_organization_settings(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_preset, organization_is_cloud_viewable, organization_archived_deletion_interval, async_req=True)
|
2871
2877
|
>>> result = thread.get()
|
2872
2878
|
|
2873
2879
|
:param owner: Owner of the namespace (required)
|
@@ -2896,6 +2902,8 @@ class OrganizationsV1Api(BaseApi):
|
|
2896
2902
|
:type organization_preset: str
|
2897
2903
|
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
2898
2904
|
:type organization_is_cloud_viewable: bool
|
2905
|
+
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
2906
|
+
:type organization_archived_deletion_interval: int
|
2899
2907
|
:param async_req: Whether to execute the request asynchronously.
|
2900
2908
|
:type async_req: bool, optional
|
2901
2909
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -2926,6 +2934,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2926
2934
|
organization_queue,
|
2927
2935
|
organization_preset,
|
2928
2936
|
organization_is_cloud_viewable,
|
2937
|
+
organization_archived_deletion_interval,
|
2929
2938
|
**kwargs
|
2930
2939
|
) # noqa: E501
|
2931
2940
|
|
@@ -2974,6 +2983,12 @@ class OrganizationsV1Api(BaseApi):
|
|
2974
2983
|
Optional[bool],
|
2975
2984
|
Field(description="Setting to enable viewable metadata on cloud."),
|
2976
2985
|
] = None,
|
2986
|
+
organization_archived_deletion_interval: Annotated[
|
2987
|
+
Optional[StrictInt],
|
2988
|
+
Field(
|
2989
|
+
description="Setting to configure default archived deletion interval."
|
2990
|
+
),
|
2991
|
+
] = None,
|
2977
2992
|
**kwargs
|
2978
2993
|
): # noqa: E501
|
2979
2994
|
"""Get organization settings # noqa: E501
|
@@ -2981,7 +2996,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2981
2996
|
This method makes a synchronous HTTP request by default. To make an
|
2982
2997
|
asynchronous HTTP request, please pass async_req=True
|
2983
2998
|
|
2984
|
-
>>> thread = api.get_organization_settings_with_http_info(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_preset, organization_is_cloud_viewable, async_req=True)
|
2999
|
+
>>> thread = api.get_organization_settings_with_http_info(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_preset, organization_is_cloud_viewable, organization_archived_deletion_interval, async_req=True)
|
2985
3000
|
>>> result = thread.get()
|
2986
3001
|
|
2987
3002
|
:param owner: Owner of the namespace (required)
|
@@ -3010,6 +3025,8 @@ class OrganizationsV1Api(BaseApi):
|
|
3010
3025
|
:type organization_preset: str
|
3011
3026
|
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
3012
3027
|
:type organization_is_cloud_viewable: bool
|
3028
|
+
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
3029
|
+
:type organization_archived_deletion_interval: int
|
3013
3030
|
:param async_req: Whether to execute the request asynchronously.
|
3014
3031
|
:type async_req: bool, optional
|
3015
3032
|
:param _return_http_data_only: response data without head status code
|
@@ -3050,6 +3067,7 @@ class OrganizationsV1Api(BaseApi):
|
|
3050
3067
|
"organization_queue",
|
3051
3068
|
"organization_preset",
|
3052
3069
|
"organization_is_cloud_viewable",
|
3070
|
+
"organization_archived_deletion_interval",
|
3053
3071
|
]
|
3054
3072
|
_all_params.extend(
|
3055
3073
|
[
|
@@ -3128,6 +3146,15 @@ class OrganizationsV1Api(BaseApi):
|
|
3128
3146
|
_params["organization_is_cloud_viewable"],
|
3129
3147
|
)
|
3130
3148
|
)
|
3149
|
+
if (
|
3150
|
+
_params.get("organization_archived_deletion_interval") is not None
|
3151
|
+
): # noqa: E501
|
3152
|
+
_query_params.append(
|
3153
|
+
(
|
3154
|
+
"organization.archived_deletion_interval",
|
3155
|
+
_params["organization_archived_deletion_interval"],
|
3156
|
+
)
|
3157
|
+
)
|
3131
3158
|
|
3132
3159
|
# process the header parameters
|
3133
3160
|
_header_params = dict(_params.get("_headers", {}))
|
@@ -4552,6 +4579,177 @@ class OrganizationsV1Api(BaseApi):
|
|
4552
4579
|
_request_auth=_params.get("_request_auth"),
|
4553
4580
|
)
|
4554
4581
|
|
4582
|
+
@validate_arguments
|
4583
|
+
def organization_license(
|
4584
|
+
self,
|
4585
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4586
|
+
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4587
|
+
**kwargs
|
4588
|
+
) -> V1Organization: # noqa: E501
|
4589
|
+
"""Organization license # noqa: E501
|
4590
|
+
|
4591
|
+
This method makes a synchronous HTTP request by default. To make an
|
4592
|
+
asynchronous HTTP request, please pass async_req=True
|
4593
|
+
|
4594
|
+
>>> thread = api.organization_license(owner, body, async_req=True)
|
4595
|
+
>>> result = thread.get()
|
4596
|
+
|
4597
|
+
:param owner: Owner of the namespace (required)
|
4598
|
+
:type owner: str
|
4599
|
+
:param body: Organization body (required)
|
4600
|
+
:type body: V1Organization
|
4601
|
+
:param async_req: Whether to execute the request asynchronously.
|
4602
|
+
:type async_req: bool, optional
|
4603
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4604
|
+
be returned without reading/decoding response
|
4605
|
+
data. Default is True.
|
4606
|
+
:type _preload_content: bool, optional
|
4607
|
+
:param _request_timeout: timeout setting for this request. If one
|
4608
|
+
number provided, it will be total request
|
4609
|
+
timeout. It can also be a pair (tuple) of
|
4610
|
+
(connection, read) timeouts.
|
4611
|
+
:return: Returns the result object.
|
4612
|
+
If the method is called asynchronously,
|
4613
|
+
returns the request thread.
|
4614
|
+
:rtype: V1Organization
|
4615
|
+
"""
|
4616
|
+
kwargs["_return_http_data_only"] = True
|
4617
|
+
return self.organization_license_with_http_info(
|
4618
|
+
owner, body, **kwargs
|
4619
|
+
) # noqa: E501
|
4620
|
+
|
4621
|
+
@validate_arguments
|
4622
|
+
def organization_license_with_http_info(
|
4623
|
+
self,
|
4624
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4625
|
+
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4626
|
+
**kwargs
|
4627
|
+
): # noqa: E501
|
4628
|
+
"""Organization license # noqa: E501
|
4629
|
+
|
4630
|
+
This method makes a synchronous HTTP request by default. To make an
|
4631
|
+
asynchronous HTTP request, please pass async_req=True
|
4632
|
+
|
4633
|
+
>>> thread = api.organization_license_with_http_info(owner, body, async_req=True)
|
4634
|
+
>>> result = thread.get()
|
4635
|
+
|
4636
|
+
:param owner: Owner of the namespace (required)
|
4637
|
+
:type owner: str
|
4638
|
+
:param body: Organization body (required)
|
4639
|
+
:type body: V1Organization
|
4640
|
+
:param async_req: Whether to execute the request asynchronously.
|
4641
|
+
:type async_req: bool, optional
|
4642
|
+
:param _return_http_data_only: response data without head status code
|
4643
|
+
and headers
|
4644
|
+
:type _return_http_data_only: bool, optional
|
4645
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4646
|
+
be returned without reading/decoding response
|
4647
|
+
data. Default is True.
|
4648
|
+
:type _preload_content: bool, optional
|
4649
|
+
:param _request_timeout: timeout setting for this request. If one
|
4650
|
+
number provided, it will be total request
|
4651
|
+
timeout. It can also be a pair (tuple) of
|
4652
|
+
(connection, read) timeouts.
|
4653
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4654
|
+
request; this effectively ignores the authentication
|
4655
|
+
in the spec for a single request.
|
4656
|
+
:type _request_auth: dict, optional
|
4657
|
+
:type _content_type: string, optional: force content-type for the request
|
4658
|
+
:return: Returns the result object.
|
4659
|
+
If the method is called asynchronously,
|
4660
|
+
returns the request thread.
|
4661
|
+
:rtype: tuple(V1Organization, status_code(int), headers(HTTPHeaderDict))
|
4662
|
+
"""
|
4663
|
+
|
4664
|
+
_params = locals()
|
4665
|
+
|
4666
|
+
_all_params = ["owner", "body"]
|
4667
|
+
_all_params.extend(
|
4668
|
+
[
|
4669
|
+
"async_req",
|
4670
|
+
"_return_http_data_only",
|
4671
|
+
"_preload_content",
|
4672
|
+
"_request_timeout",
|
4673
|
+
"_request_auth",
|
4674
|
+
"_content_type",
|
4675
|
+
"_headers",
|
4676
|
+
]
|
4677
|
+
)
|
4678
|
+
|
4679
|
+
# validate the arguments
|
4680
|
+
for _key, _val in _params["kwargs"].items():
|
4681
|
+
if _key not in _all_params:
|
4682
|
+
raise ApiTypeError(
|
4683
|
+
"Got an unexpected keyword argument '%s'"
|
4684
|
+
" to method organization_license" % _key
|
4685
|
+
)
|
4686
|
+
_params[_key] = _val
|
4687
|
+
del _params["kwargs"]
|
4688
|
+
|
4689
|
+
_collection_formats = {}
|
4690
|
+
|
4691
|
+
# process the path parameters
|
4692
|
+
_path_params = {}
|
4693
|
+
if _params["owner"]:
|
4694
|
+
_path_params["owner"] = _params["owner"]
|
4695
|
+
|
4696
|
+
# process the query parameters
|
4697
|
+
_query_params = []
|
4698
|
+
|
4699
|
+
# process the header parameters
|
4700
|
+
_header_params = dict(_params.get("_headers", {}))
|
4701
|
+
|
4702
|
+
# process the form parameters
|
4703
|
+
_form_params = []
|
4704
|
+
_files = {}
|
4705
|
+
|
4706
|
+
# process the body parameter
|
4707
|
+
_body_params = None
|
4708
|
+
if _params["body"]:
|
4709
|
+
_body_params = _params["body"]
|
4710
|
+
|
4711
|
+
# set the HTTP header `Accept`
|
4712
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
4713
|
+
["application/json"]
|
4714
|
+
) # noqa: E501
|
4715
|
+
|
4716
|
+
# set the HTTP header `Content-Type`
|
4717
|
+
_content_types_list = _params.get(
|
4718
|
+
"_content_type",
|
4719
|
+
self.api_client.select_header_content_type(["application/json"]),
|
4720
|
+
)
|
4721
|
+
if _content_types_list:
|
4722
|
+
_header_params["Content-Type"] = _content_types_list
|
4723
|
+
|
4724
|
+
# authentication setting
|
4725
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
4726
|
+
|
4727
|
+
_response_types_map = {
|
4728
|
+
"200": "V1Organization",
|
4729
|
+
"204": "object",
|
4730
|
+
"403": "object",
|
4731
|
+
"404": "object",
|
4732
|
+
}
|
4733
|
+
|
4734
|
+
return self.api_client.call_api(
|
4735
|
+
"/api/v1/orgs/{owner}/license",
|
4736
|
+
"POST",
|
4737
|
+
_path_params,
|
4738
|
+
_query_params,
|
4739
|
+
_header_params,
|
4740
|
+
body=_body_params,
|
4741
|
+
post_params=_form_params,
|
4742
|
+
files=_files,
|
4743
|
+
response_types_map=_response_types_map,
|
4744
|
+
auth_settings=_auth_settings,
|
4745
|
+
async_req=_params.get("async_req"),
|
4746
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
4747
|
+
_preload_content=_params.get("_preload_content", True),
|
4748
|
+
_request_timeout=_params.get("_request_timeout"),
|
4749
|
+
collection_formats=_collection_formats,
|
4750
|
+
_request_auth=_params.get("_request_auth"),
|
4751
|
+
)
|
4752
|
+
|
4555
4753
|
@validate_arguments
|
4556
4754
|
def patch_organization(
|
4557
4755
|
self,
|
@@ -5629,6 +5827,169 @@ class OrganizationsV1Api(BaseApi):
|
|
5629
5827
|
_request_auth=_params.get("_request_auth"),
|
5630
5828
|
)
|
5631
5829
|
|
5830
|
+
@validate_arguments
|
5831
|
+
def skip_organization_runs(
|
5832
|
+
self,
|
5833
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
5834
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
5835
|
+
**kwargs
|
5836
|
+
) -> None: # noqa: E501
|
5837
|
+
"""Skip cross-project runs selection # noqa: E501
|
5838
|
+
|
5839
|
+
This method makes a synchronous HTTP request by default. To make an
|
5840
|
+
asynchronous HTTP request, please pass async_req=True
|
5841
|
+
|
5842
|
+
>>> thread = api.skip_organization_runs(owner, body, async_req=True)
|
5843
|
+
>>> result = thread.get()
|
5844
|
+
|
5845
|
+
:param owner: Owner of the namespace (required)
|
5846
|
+
:type owner: str
|
5847
|
+
:param body: Uuids of the entities (required)
|
5848
|
+
:type body: V1Uuids
|
5849
|
+
:param async_req: Whether to execute the request asynchronously.
|
5850
|
+
:type async_req: bool, optional
|
5851
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5852
|
+
be returned without reading/decoding response
|
5853
|
+
data. Default is True.
|
5854
|
+
:type _preload_content: bool, optional
|
5855
|
+
:param _request_timeout: timeout setting for this request. If one
|
5856
|
+
number provided, it will be total request
|
5857
|
+
timeout. It can also be a pair (tuple) of
|
5858
|
+
(connection, read) timeouts.
|
5859
|
+
:return: Returns the result object.
|
5860
|
+
If the method is called asynchronously,
|
5861
|
+
returns the request thread.
|
5862
|
+
:rtype: None
|
5863
|
+
"""
|
5864
|
+
kwargs["_return_http_data_only"] = True
|
5865
|
+
return self.skip_organization_runs_with_http_info(
|
5866
|
+
owner, body, **kwargs
|
5867
|
+
) # noqa: E501
|
5868
|
+
|
5869
|
+
@validate_arguments
|
5870
|
+
def skip_organization_runs_with_http_info(
|
5871
|
+
self,
|
5872
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
5873
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
5874
|
+
**kwargs
|
5875
|
+
): # noqa: E501
|
5876
|
+
"""Skip cross-project runs selection # noqa: E501
|
5877
|
+
|
5878
|
+
This method makes a synchronous HTTP request by default. To make an
|
5879
|
+
asynchronous HTTP request, please pass async_req=True
|
5880
|
+
|
5881
|
+
>>> thread = api.skip_organization_runs_with_http_info(owner, body, async_req=True)
|
5882
|
+
>>> result = thread.get()
|
5883
|
+
|
5884
|
+
:param owner: Owner of the namespace (required)
|
5885
|
+
:type owner: str
|
5886
|
+
:param body: Uuids of the entities (required)
|
5887
|
+
:type body: V1Uuids
|
5888
|
+
:param async_req: Whether to execute the request asynchronously.
|
5889
|
+
:type async_req: bool, optional
|
5890
|
+
:param _return_http_data_only: response data without head status code
|
5891
|
+
and headers
|
5892
|
+
:type _return_http_data_only: bool, optional
|
5893
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5894
|
+
be returned without reading/decoding response
|
5895
|
+
data. Default is True.
|
5896
|
+
:type _preload_content: bool, optional
|
5897
|
+
:param _request_timeout: timeout setting for this request. If one
|
5898
|
+
number provided, it will be total request
|
5899
|
+
timeout. It can also be a pair (tuple) of
|
5900
|
+
(connection, read) timeouts.
|
5901
|
+
:param _request_auth: set to override the auth_settings for an a single
|
5902
|
+
request; this effectively ignores the authentication
|
5903
|
+
in the spec for a single request.
|
5904
|
+
:type _request_auth: dict, optional
|
5905
|
+
:type _content_type: string, optional: force content-type for the request
|
5906
|
+
:return: Returns the result object.
|
5907
|
+
If the method is called asynchronously,
|
5908
|
+
returns the request thread.
|
5909
|
+
:rtype: None
|
5910
|
+
"""
|
5911
|
+
|
5912
|
+
_params = locals()
|
5913
|
+
|
5914
|
+
_all_params = ["owner", "body"]
|
5915
|
+
_all_params.extend(
|
5916
|
+
[
|
5917
|
+
"async_req",
|
5918
|
+
"_return_http_data_only",
|
5919
|
+
"_preload_content",
|
5920
|
+
"_request_timeout",
|
5921
|
+
"_request_auth",
|
5922
|
+
"_content_type",
|
5923
|
+
"_headers",
|
5924
|
+
]
|
5925
|
+
)
|
5926
|
+
|
5927
|
+
# validate the arguments
|
5928
|
+
for _key, _val in _params["kwargs"].items():
|
5929
|
+
if _key not in _all_params:
|
5930
|
+
raise ApiTypeError(
|
5931
|
+
"Got an unexpected keyword argument '%s'"
|
5932
|
+
" to method skip_organization_runs" % _key
|
5933
|
+
)
|
5934
|
+
_params[_key] = _val
|
5935
|
+
del _params["kwargs"]
|
5936
|
+
|
5937
|
+
_collection_formats = {}
|
5938
|
+
|
5939
|
+
# process the path parameters
|
5940
|
+
_path_params = {}
|
5941
|
+
if _params["owner"]:
|
5942
|
+
_path_params["owner"] = _params["owner"]
|
5943
|
+
|
5944
|
+
# process the query parameters
|
5945
|
+
_query_params = []
|
5946
|
+
# process the header parameters
|
5947
|
+
_header_params = dict(_params.get("_headers", {}))
|
5948
|
+
# process the form parameters
|
5949
|
+
_form_params = []
|
5950
|
+
_files = {}
|
5951
|
+
# process the body parameter
|
5952
|
+
_body_params = None
|
5953
|
+
if _params["body"]:
|
5954
|
+
_body_params = _params["body"]
|
5955
|
+
|
5956
|
+
# set the HTTP header `Accept`
|
5957
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
5958
|
+
["application/json"]
|
5959
|
+
) # noqa: E501
|
5960
|
+
|
5961
|
+
# set the HTTP header `Content-Type`
|
5962
|
+
_content_types_list = _params.get(
|
5963
|
+
"_content_type",
|
5964
|
+
self.api_client.select_header_content_type(["application/json"]),
|
5965
|
+
)
|
5966
|
+
if _content_types_list:
|
5967
|
+
_header_params["Content-Type"] = _content_types_list
|
5968
|
+
|
5969
|
+
# authentication setting
|
5970
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
5971
|
+
|
5972
|
+
_response_types_map = {}
|
5973
|
+
|
5974
|
+
return self.api_client.call_api(
|
5975
|
+
"/api/v1/orgs/{owner}/runs/Skip",
|
5976
|
+
"POST",
|
5977
|
+
_path_params,
|
5978
|
+
_query_params,
|
5979
|
+
_header_params,
|
5980
|
+
body=_body_params,
|
5981
|
+
post_params=_form_params,
|
5982
|
+
files=_files,
|
5983
|
+
response_types_map=_response_types_map,
|
5984
|
+
auth_settings=_auth_settings,
|
5985
|
+
async_req=_params.get("async_req"),
|
5986
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
5987
|
+
_preload_content=_params.get("_preload_content", True),
|
5988
|
+
_request_timeout=_params.get("_request_timeout"),
|
5989
|
+
collection_formats=_collection_formats,
|
5990
|
+
_request_auth=_params.get("_request_auth"),
|
5991
|
+
)
|
5992
|
+
|
5632
5993
|
@validate_arguments
|
5633
5994
|
def stop_organization_runs(
|
5634
5995
|
self,
|
@@ -15,7 +15,7 @@ class ProjectDashboardsV1Api(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
|
18
|
+
StrictStr, Field(..., description="Project under namespace")
|
19
19
|
],
|
20
20
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
21
21
|
**kwargs
|
@@ -30,7 +30,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
30
30
|
|
31
31
|
:param owner: Owner of the namespace (required)
|
32
32
|
:type owner: str
|
33
|
-
:param project: Project under
|
33
|
+
:param project: Project under namespace (required)
|
34
34
|
:type project: str
|
35
35
|
:param body: Dashboard body (required)
|
36
36
|
:type body: V1Dashboard
|
@@ -59,7 +59,7 @@ class ProjectDashboardsV1Api(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
|
62
|
+
StrictStr, Field(..., description="Project under namespace")
|
63
63
|
],
|
64
64
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
65
65
|
**kwargs
|
@@ -74,7 +74,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
74
74
|
|
75
75
|
:param owner: Owner of the namespace (required)
|
76
76
|
:type owner: str
|
77
|
-
:param project: Project under
|
77
|
+
:param project: Project under namespace (required)
|
78
78
|
:type project: str
|
79
79
|
:param body: Dashboard body (required)
|
80
80
|
:type body: V1Dashboard
|
@@ -1069,7 +1069,7 @@ class ProjectDashboardsV1Api(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
|
1072
|
+
StrictStr, Field(..., description="Project under namespace")
|
1073
1073
|
],
|
1074
1074
|
dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")],
|
1075
1075
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
@@ -1085,7 +1085,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
1085
1085
|
|
1086
1086
|
:param owner: Owner of the namespace (required)
|
1087
1087
|
:type owner: str
|
1088
|
-
:param project: Project under
|
1088
|
+
:param project: Project under namespace (required)
|
1089
1089
|
:type project: str
|
1090
1090
|
:param dashboard_uuid: UUID (required)
|
1091
1091
|
:type dashboard_uuid: str
|
@@ -1116,7 +1116,7 @@ class ProjectDashboardsV1Api(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
|
1119
|
+
StrictStr, Field(..., description="Project under namespace")
|
1120
1120
|
],
|
1121
1121
|
dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")],
|
1122
1122
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
@@ -1132,7 +1132,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
1132
1132
|
|
1133
1133
|
:param owner: Owner of the namespace (required)
|
1134
1134
|
:type owner: str
|
1135
|
-
:param project: Project under
|
1135
|
+
:param project: Project under namespace (required)
|
1136
1136
|
:type project: str
|
1137
1137
|
:param dashboard_uuid: UUID (required)
|
1138
1138
|
:type dashboard_uuid: str
|
@@ -1440,7 +1440,7 @@ class ProjectDashboardsV1Api(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
|
1443
|
+
StrictStr, Field(..., description="Project under namespace")
|
1444
1444
|
],
|
1445
1445
|
dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")],
|
1446
1446
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
@@ -1456,7 +1456,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
1456
1456
|
|
1457
1457
|
:param owner: Owner of the namespace (required)
|
1458
1458
|
:type owner: str
|
1459
|
-
:param project: Project under
|
1459
|
+
:param project: Project under namespace (required)
|
1460
1460
|
:type project: str
|
1461
1461
|
:param dashboard_uuid: UUID (required)
|
1462
1462
|
:type dashboard_uuid: str
|
@@ -1487,7 +1487,7 @@ class ProjectDashboardsV1Api(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
|
1490
|
+
StrictStr, Field(..., description="Project under namespace")
|
1491
1491
|
],
|
1492
1492
|
dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")],
|
1493
1493
|
body: Annotated[V1Dashboard, Field(..., description="Dashboard body")],
|
@@ -1503,7 +1503,7 @@ class ProjectDashboardsV1Api(BaseApi):
|
|
1503
1503
|
|
1504
1504
|
:param owner: Owner of the namespace (required)
|
1505
1505
|
:type owner: str
|
1506
|
-
:param project: Project under
|
1506
|
+
:param project: Project under namespace (required)
|
1507
1507
|
:type project: str
|
1508
1508
|
:param dashboard_uuid: UUID (required)
|
1509
1509
|
:type dashboard_uuid: str
|