From 5d3da4b351d5a3fba583560da422ff6bcf711b76 Mon Sep 17 00:00:00 2001 From: polyaxon-ci Date: Sat, 4 Jan 2025 18:15:11 +0100 Subject: [PATCH] Lint --- cli/polyaxon/_cli/operations.py | 2 +- cli/polyaxon/_cli/projects.py | 4 +- cli/polyaxon/_compiler/resolver/runtime.py | 2 +- .../_docker/converter/base/env_vars.py | 2 +- .../_docker/converter/converters/service.py | 2 +- cli/polyaxon/_flow/operations/operation.py | 1 - cli/polyaxon/_flow/params/params.py | 2 +- cli/polyaxon/_fs/fs.py | 2 +- .../_k8s/converter/base/containers.py | 2 +- .../_k8s/converter/converters/ray_job.py | 1 - .../_k8s/converter/converters/service.py | 2 +- cli/polyaxon/_k8s/k8s_validation.py | 32 +- cli/polyaxon/_k8s/manager/async_manager.py | 8 +- cli/polyaxon/_k8s/manager/manager.py | 12 +- .../_local_process/converter/base/env_vars.py | 2 +- .../_local_process/converter/base/init.py | 2 +- .../_local_process/converter/base/mounts.py | 2 - .../converter/converters/service.py | 2 +- cli/polyaxon/_managers/project.py | 5 +- cli/polyaxon/_polyaxonfile/check.py | 8 +- .../_polyaxonfile/specs/compiled_operation.py | 4 +- .../_polyaxonfile/specs/libs/parser.py | 4 +- cli/polyaxon/_pql/parser.py | 55 +-- cli/polyaxon/_runner/agent/base_agent.py | 5 +- .../_runner/converter/init/artifacts.py | 5 +- .../_runner/converter/init/tensorboard.py | 2 +- cli/polyaxon/_schemas/client.py | 2 +- cli/polyaxon/_sdk/api/agents_v1_api.py | 136 +++---- .../_sdk/api/artifacts_stores_v1_api.py | 4 +- cli/polyaxon/_sdk/api/auth_v1_api.py | 8 +- cli/polyaxon/_sdk/api/connections_v1_api.py | 36 +- cli/polyaxon/_sdk/api/dashboards_v1_api.py | 28 +- cli/polyaxon/_sdk/api/organizations_v1_api.py | 240 +++++------- cli/polyaxon/_sdk/api/presets_v1_api.py | 44 +-- .../_sdk/api/project_dashboards_v1_api.py | 36 +- .../_sdk/api/project_searches_v1_api.py | 48 +-- cli/polyaxon/_sdk/api/projects_v1_api.py | 166 ++++---- cli/polyaxon/_sdk/api/queues_v1_api.py | 52 ++- cli/polyaxon/_sdk/api/runs_v1_api.py | 364 ++++++++---------- cli/polyaxon/_sdk/api/searches_v1_api.py | 36 +- .../_sdk/api/service_accounts_v1_api.py | 68 ++-- cli/polyaxon/_sdk/api/tags_v1_api.py | 44 +-- cli/polyaxon/_sdk/api/teams_v1_api.py | 154 +++----- cli/polyaxon/_sdk/api/users_v1_api.py | 36 +- cli/polyaxon/_sdk/api/versions_v1_api.py | 8 +- cli/polyaxon/_sdk/async_client/rest.py | 4 +- cli/polyaxon/_sdk/schemas/v1_section_spec.py | 2 +- cli/polyaxon/_sdk/sync_client/api_client.py | 8 +- cli/polyaxon/_sdk/sync_client/rest.py | 12 +- .../test_base/test_init/test_init_store.py | 2 +- .../test_init/test_init_tensorboard.py | 2 +- cli/tests/test_fixtures/test_backfill.py | 2 +- .../test_base/test_main/test_main_env_vars.py | 16 +- .../test_sidecar/test_sidecar_container.py | 36 +- .../test_common/test_annotations.py | 2 +- .../test_polyaxonfile_typing.py | 2 - cli/tests/test_polyflow/test_io/test_io.py | 3 - .../test_io/test_io_transforms.py | 5 - 58 files changed, 756 insertions(+), 1020 deletions(-) diff --git a/cli/polyaxon/_cli/operations.py b/cli/polyaxon/_cli/operations.py index 25def75c..db84e2bc 100644 --- a/cli/polyaxon/_cli/operations.py +++ b/cli/polyaxon/_cli/operations.py @@ -1466,7 +1466,7 @@ def logs(ctx, project, uid, follow, hide_time, all_containers, all_info, offline ) try: - from traceml.logging.streamer import get_logs_streamer, load_logs_from_path + from traceml.logging.streamer import load_logs_from_path load_logs_from_path( logs_path=logs_path, diff --git a/cli/polyaxon/_cli/projects.py b/cli/polyaxon/_cli/projects.py index 49e239c5..3ddd32e1 100644 --- a/cli/polyaxon/_cli/projects.py +++ b/cli/polyaxon/_cli/projects.py @@ -46,7 +46,7 @@ def project(ctx, _project): # pylint:disable=redefined-outer-name @click.option( *OPTIONS_NAME["args"], type=str, - help="The project name, e.g. 'mnist' or 'acme/mnist'." + help="The project name, e.g. 'mnist' or 'acme/mnist'.", ) @click.option("--description", type=str, help="Description of the project.") @click.option("--tags", type=str, help="Tags of the project (comma separated values).") @@ -287,7 +287,7 @@ def delete(ctx, _project, yes): @click.option( *OPTIONS_NAME["args"], type=str, - help="Name of the project, must be unique for the same user." + help="Name of the project, must be unique for the same user.", ) @click.option("--description", type=str, help="Description of the project.") @click.option("--tags", type=str, help="Tags of the project (comma separated values).") diff --git a/cli/polyaxon/_compiler/resolver/runtime.py b/cli/polyaxon/_compiler/resolver/runtime.py index 9df22120..a6e97de4 100644 --- a/cli/polyaxon/_compiler/resolver/runtime.py +++ b/cli/polyaxon/_compiler/resolver/runtime.py @@ -1,5 +1,5 @@ from datetime import datetime -from typing import Any, Dict, List, Optional +from typing import Dict, List, Optional from polyaxon import settings from polyaxon._compiler.contexts import resolve_contexts, resolve_globals_contexts diff --git a/cli/polyaxon/_docker/converter/base/env_vars.py b/cli/polyaxon/_docker/converter/base/env_vars.py index d597cd2f..6f767520 100644 --- a/cli/polyaxon/_docker/converter/base/env_vars.py +++ b/cli/polyaxon/_docker/converter/base/env_vars.py @@ -98,7 +98,7 @@ def _get_items_from_json_resource( try: secret_value = orjson_loads(resource.name) - except orjson.JSONDecodeError as e: + except orjson.JSONDecodeError: return items_from for item in resource.items: diff --git a/cli/polyaxon/_docker/converter/converters/service.py b/cli/polyaxon/_docker/converter/converters/service.py index 111c43cd..1d8d3f53 100644 --- a/cli/polyaxon/_docker/converter/converters/service.py +++ b/cli/polyaxon/_docker/converter/converters/service.py @@ -4,7 +4,7 @@ from polyaxon._docker import docker_types from polyaxon._docker.converter.base import BaseConverter from polyaxon._docker.converter.mixins import ServiceMixin -from polyaxon._flow import V1CompiledOperation, V1Plugins, V1Service +from polyaxon._flow import V1CompiledOperation, V1Plugins class ServiceConverter(ServiceMixin, BaseConverter): diff --git a/cli/polyaxon/_flow/operations/operation.py b/cli/polyaxon/_flow/operations/operation.py index 1c34446b..75a5d9c7 100644 --- a/cli/polyaxon/_flow/operations/operation.py +++ b/cli/polyaxon/_flow/operations/operation.py @@ -8,7 +8,6 @@ field_validator, model_validator, validation_after, - validation_before, ) from clipped.config.patch_strategy import PatchStrategy from clipped.config.schema import skip_partial, to_partial diff --git a/cli/polyaxon/_flow/params/params.py b/cli/polyaxon/_flow/params/params.py index 85ca9db5..1985d2ac 100644 --- a/cli/polyaxon/_flow/params/params.py +++ b/cli/polyaxon/_flow/params/params.py @@ -479,7 +479,7 @@ def validate_to_init(self) -> bool: raise PolyaxonValidationError( "Param `{}` with type `{}`, " "cannot be turned to an init container automatically.".format( - self.name, self.type, self.param.ref + self.name, self.type ) ) diff --git a/cli/polyaxon/_fs/fs.py b/cli/polyaxon/_fs/fs.py index 3ef0235e..80989957 100644 --- a/cli/polyaxon/_fs/fs.py +++ b/cli/polyaxon/_fs/fs.py @@ -18,7 +18,7 @@ def _get_fs_from_connection( connection: Optional[V1Connection], asynchronous: bool = False, use_listings_cache: bool = False, - **kwargs + **kwargs, ): # We assume that `None` refers to local store as well if not connection or connection.kind in { diff --git a/cli/polyaxon/_k8s/converter/base/containers.py b/cli/polyaxon/_k8s/converter/base/containers.py index d2a8e384..d6891aae 100644 --- a/cli/polyaxon/_k8s/converter/base/containers.py +++ b/cli/polyaxon/_k8s/converter/base/containers.py @@ -73,7 +73,7 @@ def sanitize_env_dict(d: Dict): @staticmethod def _sanitize_resources( - resources: Union[k8s_schemas.V1ResourceRequirements, Dict] + resources: Union[k8s_schemas.V1ResourceRequirements, Dict], ) -> Optional[k8s_schemas.V1ResourceRequirements]: def validate_resources(r_field: Dict) -> Dict: if not r_field: diff --git a/cli/polyaxon/_k8s/converter/converters/ray_job.py b/cli/polyaxon/_k8s/converter/converters/ray_job.py index c5802c83..c1fdf1f2 100644 --- a/cli/polyaxon/_k8s/converter/converters/ray_job.py +++ b/cli/polyaxon/_k8s/converter/converters/ray_job.py @@ -1,6 +1,5 @@ from typing import Dict, Iterable, Optional -from clipped.utils.encoding import encode from clipped.utils.json import orjson_dumps from polyaxon import pkg diff --git a/cli/polyaxon/_k8s/converter/converters/service.py b/cli/polyaxon/_k8s/converter/converters/service.py index 5d60961d..c1fcaaa6 100644 --- a/cli/polyaxon/_k8s/converter/converters/service.py +++ b/cli/polyaxon/_k8s/converter/converters/service.py @@ -1,7 +1,7 @@ from typing import Dict, Iterable, Optional from polyaxon._connections import V1Connection, V1ConnectionResource -from polyaxon._flow import V1CompiledOperation, V1Plugins, V1Service +from polyaxon._flow import V1CompiledOperation, V1Plugins from polyaxon._k8s.converter.base import BaseConverter from polyaxon._k8s.converter.mixins import ServiceMixin from polyaxon._k8s.custom_resources.service import get_service_custom_resource diff --git a/cli/polyaxon/_k8s/k8s_validation.py b/cli/polyaxon/_k8s/k8s_validation.py index 11fa91f4..2e96e78b 100644 --- a/cli/polyaxon/_k8s/k8s_validation.py +++ b/cli/polyaxon/_k8s/k8s_validation.py @@ -24,13 +24,13 @@ def validate_k8s_affinity(value: Optional[Union[k8s_schemas.V1Affinity, Dict]]): def validate_k8s_security_context( - value: Optional[Union[k8s_schemas.V1SecurityContext, Dict]] + value: Optional[Union[k8s_schemas.V1SecurityContext, Dict]], ): return _validate_schema(value, k8s_schemas.V1SecurityContext) def validate_k8s_pod_dns_config( - value: Optional[Union[k8s_schemas.V1PodDNSConfig, Dict]] + value: Optional[Union[k8s_schemas.V1PodDNSConfig, Dict]], ): return _validate_schema(value, k8s_schemas.V1PodDNSConfig) @@ -56,19 +56,19 @@ def validate_k8s_volume_mount(value: Optional[Union[k8s_schemas.V1VolumeMount, D def validate_k8s_container_port( - value: Optional[Union[k8s_schemas.V1ContainerPort, Dict]] + value: Optional[Union[k8s_schemas.V1ContainerPort, Dict]], ): return _validate_schema(value, k8s_schemas.V1ContainerPort) def validate_k8s_resource_requirements( - value: Optional[Union[k8s_schemas.V1ResourceRequirements, Dict]] + value: Optional[Union[k8s_schemas.V1ResourceRequirements, Dict]], ): return _validate_schema(value, k8s_schemas.V1ResourceRequirements) def validate_k8s_env_from_source( - value: Optional[Union[k8s_schemas.V1EnvFromSource, Dict]] + value: Optional[Union[k8s_schemas.V1EnvFromSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1EnvFromSource) @@ -78,25 +78,25 @@ def validate_k8s_volume(value: Optional[Union[k8s_schemas.V1Volume, Dict]]): def validate_k8s_object_field_selector( - value: Optional[Union[k8s_schemas.V1ObjectFieldSelector, Dict]] + value: Optional[Union[k8s_schemas.V1ObjectFieldSelector, Dict]], ): return _validate_schema(value, k8s_schemas.V1ObjectFieldSelector) def validate_k8s_env_var_source( - value: Optional[Union[k8s_schemas.V1EnvVarSource, Dict]] + value: Optional[Union[k8s_schemas.V1EnvVarSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1EnvVarSource) def validate_k8s_config_map_selector( - value: Optional[Union[k8s_schemas.V1ConfigMapKeySelector, Dict]] + value: Optional[Union[k8s_schemas.V1ConfigMapKeySelector, Dict]], ): return _validate_schema(value, k8s_schemas.V1ConfigMapKeySelector) def validate_k8s_secret_selector( - value: Optional[Union[k8s_schemas.V1SecretKeySelector, Dict]] + value: Optional[Union[k8s_schemas.V1SecretKeySelector, Dict]], ): return _validate_schema(value, k8s_schemas.V1SecretKeySelector) @@ -110,42 +110,42 @@ def validate_k8s_object_meta(value: Optional[Union[k8s_schemas.V1ObjectMeta, Dic def validate_k8s_pod_template_spec( - value: Optional[Union[k8s_schemas.V1PodTemplateSpec, Dict]] + value: Optional[Union[k8s_schemas.V1PodTemplateSpec, Dict]], ): return _validate_schema(value, k8s_schemas.V1PodTemplateSpec) def validate_k8s_host_path_volume_source( - value: Optional[Union[k8s_schemas.V1HostPathVolumeSource, Dict]] + value: Optional[Union[k8s_schemas.V1HostPathVolumeSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1HostPathVolumeSource) def validate_k8s_empty_dir_volume_source( - value: Optional[Union[k8s_schemas.V1EmptyDirVolumeSource, Dict]] + value: Optional[Union[k8s_schemas.V1EmptyDirVolumeSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1EmptyDirVolumeSource) def validate_k8s_persistent_volume_claim_volume_source( - value: Optional[Union[k8s_schemas.V1PersistentVolumeClaimVolumeSource, Dict]] + value: Optional[Union[k8s_schemas.V1PersistentVolumeClaimVolumeSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1PersistentVolumeClaimVolumeSource) def validate_k8s_secret_volume_source( - value: Optional[Union[k8s_schemas.V1SecretVolumeSource, Dict]] + value: Optional[Union[k8s_schemas.V1SecretVolumeSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1SecretVolumeSource) def validate_k8s_config_map_volume_source( - value: Optional[Union[k8s_schemas.V1ConfigMapVolumeSource, Dict]] + value: Optional[Union[k8s_schemas.V1ConfigMapVolumeSource, Dict]], ): return _validate_schema(value, k8s_schemas.V1ConfigMapVolumeSource) def validate_k8s_local_object_reference( - value: Optional[Union[k8s_schemas.V1LocalObjectReference, Dict]] + value: Optional[Union[k8s_schemas.V1LocalObjectReference, Dict]], ): return _validate_schema(value, k8s_schemas.V1LocalObjectReference) diff --git a/cli/polyaxon/_k8s/manager/async_manager.py b/cli/polyaxon/_k8s/manager/async_manager.py index 5adc4e04..699245cf 100644 --- a/cli/polyaxon/_k8s/manager/async_manager.py +++ b/cli/polyaxon/_k8s/manager/async_manager.py @@ -62,7 +62,9 @@ async def get_pod( async def is_pod_running( self, pod_id: str, container_id: str, namespace: str = None ) -> bool: - event = await self.k8s_api.read_namespaced_pod_status(pod_id, namespace=namespace or self.namespace) # type: ignore[attr-defined] + event = await self.k8s_api.read_namespaced_pod_status( + pod_id, namespace=namespace or self.namespace + ) # type: ignore[attr-defined] return is_pod_running(event, container_id) async def _list_namespace_resource( @@ -108,7 +110,7 @@ async def list_custom_objects( plural, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ) -> List: return await self._list_namespace_resource( resource_api=self.k8s_custom_object_api.list_namespaced_custom_object, # type: ignore[attr-defined] @@ -273,7 +275,7 @@ async def list_namespaced_events( field_selector: str = None, namespace: str = None, reraise: bool = False, - **kwargs + **kwargs, ) -> List[client.CoreV1EventList]: return await self._list_namespace_resource( resource_api=self.k8s_api.list_namespaced_event, # type: ignore[attr-defined] diff --git a/cli/polyaxon/_k8s/manager/manager.py b/cli/polyaxon/_k8s/manager/manager.py index 8610f493..bcf46e58 100644 --- a/cli/polyaxon/_k8s/manager/manager.py +++ b/cli/polyaxon/_k8s/manager/manager.py @@ -75,7 +75,7 @@ def list_pods( include_uninitialized=True, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ): return self._list_namespace_resource( resource_api=self.k8s_api.list_namespaced_pod, @@ -89,7 +89,7 @@ def list_jobs( include_uninitialized=True, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ): return self._list_namespace_resource( resource_api=self.k8s_batch_api.list_namespaced_job, @@ -105,7 +105,7 @@ def list_custom_objects( plural, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ): return self._list_namespace_resource( resource_api=self.k8s_custom_object_api.list_namespaced_custom_object, @@ -747,7 +747,7 @@ def delete_pods( include_uninitialized=True, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ): objs = self.list_pods( include_uninitialized=include_uninitialized, @@ -765,7 +765,7 @@ def delete_jobs( include_uninitialized=True, reraise: bool = False, namespace: str = None, - **kwargs + **kwargs, ): objs = self.list_jobs( include_uninitialized=include_uninitialized, @@ -812,7 +812,7 @@ def list_namespaced_events( field_selector: str = None, namespace: str = None, reraise: bool = False, - **kwargs + **kwargs, ) -> List[client.CoreV1EventList]: return self._list_namespace_resource( resource_api=self.k8s_api.list_namespaced_event, # type: ignore[attr-defined] diff --git a/cli/polyaxon/_local_process/converter/base/env_vars.py b/cli/polyaxon/_local_process/converter/base/env_vars.py index 306623ab..a1154ef4 100644 --- a/cli/polyaxon/_local_process/converter/base/env_vars.py +++ b/cli/polyaxon/_local_process/converter/base/env_vars.py @@ -98,7 +98,7 @@ def _get_items_from_json_resource( try: secret_value = orjson_loads(resource.name) - except orjson.JSONDecodeError as e: + except orjson.JSONDecodeError: return items_from for item in resource.items: diff --git a/cli/polyaxon/_local_process/converter/base/init.py b/cli/polyaxon/_local_process/converter/base/init.py index d45c6508..b7496d48 100644 --- a/cli/polyaxon/_local_process/converter/base/init.py +++ b/cli/polyaxon/_local_process/converter/base/init.py @@ -50,7 +50,7 @@ def _get_base_store_container( env_from: List[Any], args: List[str], command: Optional[List[str]] = None, - **kwargs + **kwargs, ) -> Optional[process_types.V1Container]: env = env or [] diff --git a/cli/polyaxon/_local_process/converter/base/mounts.py b/cli/polyaxon/_local_process/converter/base/mounts.py index b6b5edac..9e414d66 100644 --- a/cli/polyaxon/_local_process/converter/base/mounts.py +++ b/cli/polyaxon/_local_process/converter/base/mounts.py @@ -1,8 +1,6 @@ from typing import List, Optional from polyaxon._connections import V1Connection, V1ConnectionResource -from polyaxon._contexts import paths as ctx_paths -from polyaxon._local_process import process_types from polyaxon._runner.converter import BaseConverter diff --git a/cli/polyaxon/_local_process/converter/converters/service.py b/cli/polyaxon/_local_process/converter/converters/service.py index d560bee0..c9ee5f17 100644 --- a/cli/polyaxon/_local_process/converter/converters/service.py +++ b/cli/polyaxon/_local_process/converter/converters/service.py @@ -1,7 +1,7 @@ from typing import Dict, Iterable, List, Optional from polyaxon._connections import V1Connection, V1ConnectionResource -from polyaxon._flow import V1CompiledOperation, V1Plugins, V1Service +from polyaxon._flow import V1CompiledOperation, V1Plugins from polyaxon._local_process import process_types from polyaxon._local_process.converter.base import BaseConverter from polyaxon._local_process.converter.mixins import ServiceMixin diff --git a/cli/polyaxon/_managers/project.py b/cli/polyaxon/_managers/project.py index 4949c804..3c97d05d 100644 --- a/cli/polyaxon/_managers/project.py +++ b/cli/polyaxon/_managers/project.py @@ -22,8 +22,9 @@ def get_config_or_raise(cls) -> V1Project: project = cls.get_config() if not project: Printer.error( - "No project was found, please initialize a project." - " {}".format(cli_constants.INIT_COMMAND) + "No project was found, please initialize a project." " {}".format( + cli_constants.INIT_COMMAND + ) ) sys.exit(1) diff --git a/cli/polyaxon/_polyaxonfile/check.py b/cli/polyaxon/_polyaxonfile/check.py index 3a19efdd..8e109cf6 100644 --- a/cli/polyaxon/_polyaxonfile/check.py +++ b/cli/polyaxon/_polyaxonfile/check.py @@ -93,8 +93,7 @@ def check_polyaxonfile( ): if sum([1 for i in [python_module, url, hub] if i]) > 1: message = ( - "You can only use one and only one option: " - "hub, url, or a python module.".format(hub) + "You can only use one and only one option: hub, url, or a python module." ) if is_cli: Printer.error(message, sys_exit=True) @@ -213,8 +212,9 @@ def check_polyaxonfile( def check_polyaxonfile_kind(specification, kind): if specification.kind != kind: Printer.error( - "Your polyaxonfile must be of kind: `{}`, " - "received: `{}`.".format(kind, specification.kind), + "Your polyaxonfile must be of kind: `{}`, " "received: `{}`.".format( + kind, specification.kind + ), sys_exit=True, ) diff --git a/cli/polyaxon/_polyaxonfile/specs/compiled_operation.py b/cli/polyaxon/_polyaxonfile/specs/compiled_operation.py index d805ffd8..698b6231 100644 --- a/cli/polyaxon/_polyaxonfile/specs/compiled_operation.py +++ b/cli/polyaxon/_polyaxonfile/specs/compiled_operation.py @@ -318,9 +318,7 @@ def apply_preset( ) -> V1CompiledOperation: if not preset: return config - preset = OperationSpecification.read( - preset, is_preset=True - ) # type: V1Operation + preset = OperationSpecification.read(preset, is_preset=True) # type: V1Operation if preset.run_patch: config.run = config.run.patch( validate_run_patch(preset.run_patch, config.run.kind), diff --git a/cli/polyaxon/_polyaxonfile/specs/libs/parser.py b/cli/polyaxon/_polyaxonfile/specs/libs/parser.py index 2929d862..9ff1fd98 100644 --- a/cli/polyaxon/_polyaxonfile/specs/libs/parser.py +++ b/cli/polyaxon/_polyaxonfile/specs/libs/parser.py @@ -61,9 +61,7 @@ def get_parsed_params(param_spec: Dict[str, ParamSpec]) -> Dict: return parsed_params @classmethod - def parse_operation( - cls, config, param_spec: Dict[str, ParamSpec] - ): # pylint:disable=too-many-branches + def parse_operation(cls, config, param_spec: Dict[str, ParamSpec]): # pylint:disable=too-many-branches parsed_params = cls.get_parsed_params(param_spec) parsed_data = {Sections.VERSION: config.version, Sections.KIND: config.kind} diff --git a/cli/polyaxon/_pql/parser.py b/cli/polyaxon/_pql/parser.py index cfa3056d..8fb6359d 100644 --- a/cli/polyaxon/_pql/parser.py +++ b/cli/polyaxon/_pql/parser.py @@ -85,8 +85,9 @@ def parse_datetime_operation(operation: str) -> "QueryOpSpec": # Check not allowed ops if "|" in _operation: raise PQLException( - "`|` is not allowed for datetime conditions. " - "Operation: {}".format(operation) + "`|` is not allowed for datetime conditions. Operation: {}".format( + operation + ) ) # Check nil operation @@ -140,13 +141,11 @@ def parse_scalar_operation(operation: str, loader: Callable = None) -> "QueryOpS # Check not allowed ops if "|" in _operation: raise PQLException( - "`|` is not allowed for scalar conditions. " - "Operation: {}".format(operation) + "`|` is not allowed for scalar conditions. Operation: {}".format(operation) ) if ".." in _operation: raise PQLException( - "`..` is not allowed for scalar conditions. " - "Operation: {}".format(operation) + "`..` is not allowed for scalar conditions. Operation: {}".format(operation) ) # Check nil operation @@ -173,8 +172,9 @@ def parse_scalar_operation(operation: str, loader: Callable = None) -> "QueryOpS float(_operation) except (ValueError, TypeError): raise PQLException( - "Scalar operation requires int or float params, " - "received {}.".format(operation) + "Scalar operation requires int or float params, received {}.".format( + operation + ) ) return QueryOpSpec(op, negation, _operation) @@ -205,8 +205,7 @@ def parse_value_operation(operation: str) -> "QueryOpSpec": # Check range not allowed if ".." in _operation: raise PQLException( - "`..` is not allowed for value conditions. " - "Operation: {}".format(operation) + "`..` is not allowed for value conditions. Operation: {}".format(operation) ) # Check nil operation @@ -230,8 +229,9 @@ def parse_value_operation(operation: str) -> "QueryOpSpec": ] if len(params) <= 1: raise PQLException( - "`{}` is not allowed for value conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for value conditions, Operation: {}".format( + op, operation + ) ) return QueryOpSpec(op, negation, params) @@ -270,8 +270,7 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": # Check range not allowed if ".." in _operation: raise PQLException( - "`..` is not allowed for search conditions. " - "Operation: {}".format(operation) + "`..` is not allowed for search conditions. Operation: {}".format(operation) ) # Check nil operation @@ -286,8 +285,9 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": op, _operation = parse_comparison_operation(_operation) if op: raise PQLException( - "`{}` is not allowed for search conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for search conditions, Operation: {}".format( + op, operation + ) ) # Early return @@ -303,8 +303,9 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": ] if len(params) <= 1: raise PQLException( - "`{}` is not allowed for search conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for search conditions, Operation: {}".format( + op, operation + ) ) return QueryOpSpec(op, negation, params) @@ -317,8 +318,9 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": params = [param.strip() for param in params if param.strip()] if len(params) != 1: raise PQLException( - "`{}` is not allowed for search conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for search conditions, Operation: {}".format( + op, operation + ) ) return QueryOpSpec(op, negation, parse_operation_value(params[0])) @@ -328,8 +330,9 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": params = [param.strip() for param in params if param.strip()] if len(params) != 1: raise PQLException( - "`{}` is not allowed for search conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for search conditions, Operation: {}".format( + op, operation + ) ) return QueryOpSpec(op, negation, parse_operation_value(params[0])) @@ -339,16 +342,16 @@ def parse_search_operation(operation: str) -> "QueryOpSpec": params = [param.strip() for param in params if param.strip()] if len(params) != 1: raise PQLException( - "`{}` is not allowed for search conditions, " - "Operation: {}".format(op, operation) + "`{}` is not allowed for search conditions, Operation: {}".format( + op, operation + ) ) return QueryOpSpec(op, negation, parse_operation_value(params[0])) if not _operation: raise PQLException( "Expression is not valid, it must be formatted as " - "name:operation, " - "Operation: {}".format(operation) + "name:operation, Operation: {}".format(operation) ) # Now the operation must be an equality param param return QueryOpSpec("=", negation, _operation) diff --git a/cli/polyaxon/_runner/agent/base_agent.py b/cli/polyaxon/_runner/agent/base_agent.py index 836a4cc3..42eb99ca 100644 --- a/cli/polyaxon/_runner/agent/base_agent.py +++ b/cli/polyaxon/_runner/agent/base_agent.py @@ -70,8 +70,9 @@ def collect_agent_data(self): ) except Exception as e: logger.warning( - "Agent failed to collect agent data: {}\n" - "Retrying ...".format(repr(e)) + "Agent failed to collect agent data: {}\nRetrying ...".format( + repr(e) + ) ) def sync_compatible_updates(self, compatible_updates: Dict): diff --git a/cli/polyaxon/_runner/converter/init/artifacts.py b/cli/polyaxon/_runner/converter/init/artifacts.py index a6d058e6..60ace0d4 100644 --- a/cli/polyaxon/_runner/converter/init/artifacts.py +++ b/cli/polyaxon/_runner/converter/init/artifacts.py @@ -8,8 +8,9 @@ def get_artifacts_store_args(artifacts_path: str, clean: bool) -> str: dir=artifacts_path ) delete_dir = ( - 'if [ -d {path} ] && [ "$(ls -A {path})" ]; ' - "then rm -R {path}/*; fi;".format(path=artifacts_path) + 'if [ -d {path} ] && [ "$(ls -A {path})" ]; then rm -R {path}/*; fi;'.format( + path=artifacts_path + ) ) if clean: return "{} {}".format(get_or_create, delete_dir) diff --git a/cli/polyaxon/_runner/converter/init/tensorboard.py b/cli/polyaxon/_runner/converter/init/tensorboard.py index 393f60a4..79706eef 100644 --- a/cli/polyaxon/_runner/converter/init/tensorboard.py +++ b/cli/polyaxon/_runner/converter/init/tensorboard.py @@ -21,7 +21,7 @@ def get_tensorboard_args( if tb_args.use_names: args.append("--use-names") if tb_args.path_prefix: - args.append("--path-prefix={}".format(tb_args.path_prefix)), + args.append("--path-prefix={}".format(tb_args.path_prefix)) if tb_args.plugins: plugins = validate_tags(tb_args.plugins, validate_yaml=True) args.append("--plugins={}".format(",".join(plugins))) diff --git a/cli/polyaxon/_schemas/client.py b/cli/polyaxon/_schemas/client.py index 0c556e3b..9247db6a 100644 --- a/cli/polyaxon/_schemas/client.py +++ b/cli/polyaxon/_schemas/client.py @@ -113,7 +113,7 @@ def __init__( token: Optional[str] = None, use_cloud_host: bool = False, retries: Optional[int] = None, - **data + **data, ): host = ( clean_host(host or LOCALHOST) if not use_cloud_host else POLYAXON_CLOUD_HOST diff --git a/cli/polyaxon/_sdk/api/agents_v1_api.py b/cli/polyaxon/_sdk/api/agents_v1_api.py index ebfae7c0..42f4aede 100644 --- a/cli/polyaxon/_sdk/api/agents_v1_api.py +++ b/cli/polyaxon/_sdk/api/agents_v1_api.py @@ -26,7 +26,7 @@ def collect_agent_data( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> object: # noqa: E501 """collect agent # noqa: E501 @@ -58,9 +58,7 @@ def collect_agent_data( :rtype: object """ kwargs["_return_http_data_only"] = True - return self.collect_agent_data_with_http_info( - namespace, owner, uuid, **kwargs - ) # noqa: E501 + return self.collect_agent_data_with_http_info(namespace, owner, uuid, **kwargs) # noqa: E501 @validate_call def collect_agent_data_with_http_info( @@ -70,7 +68,7 @@ def collect_agent_data_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """collect agent # noqa: E501 @@ -194,7 +192,7 @@ def create_agent( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Create agent # noqa: E501 @@ -231,7 +229,7 @@ def create_agent_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Create agent # noqa: E501 @@ -366,7 +364,7 @@ def create_agent_status( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1AgentStatusBodyRequest, - **kwargs + **kwargs, ) -> V1Status: # noqa: E501 """Create new agent status # noqa: E501 @@ -398,9 +396,7 @@ def create_agent_status( :rtype: V1Status """ kwargs["_return_http_data_only"] = True - return self.create_agent_status_with_http_info( - owner, uuid, body, **kwargs - ) # noqa: E501 + return self.create_agent_status_with_http_info(owner, uuid, body, **kwargs) # noqa: E501 @validate_call def create_agent_status_with_http_info( @@ -410,7 +406,7 @@ def create_agent_status_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1AgentStatusBodyRequest, - **kwargs + **kwargs, ): # noqa: E501 """Create new agent status # noqa: E501 @@ -552,7 +548,7 @@ def delete_agent( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete agent # noqa: E501 @@ -584,9 +580,7 @@ def delete_agent( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_agent_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.delete_agent_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def delete_agent_with_http_info( @@ -599,7 +593,7 @@ def delete_agent_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete agent # noqa: E501 @@ -728,7 +722,7 @@ def get_agent( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Get agent # noqa: E501 @@ -760,9 +754,7 @@ def get_agent( :rtype: V1Agent """ kwargs["_return_http_data_only"] = True - return self.get_agent_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.get_agent_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def get_agent_with_http_info( @@ -775,7 +767,7 @@ def get_agent_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get agent # noqa: E501 @@ -909,7 +901,7 @@ def get_agent_config( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Get agent config # noqa: E501 @@ -941,9 +933,7 @@ def get_agent_config( :rtype: V1Agent """ kwargs["_return_http_data_only"] = True - return self.get_agent_config_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.get_agent_config_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def get_agent_config_with_http_info( @@ -956,7 +946,7 @@ def get_agent_config_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get agent config # noqa: E501 @@ -1097,7 +1087,7 @@ def get_agent_logs( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> V1Logs: # noqa: E501 """Get run logs # noqa: E501 @@ -1159,7 +1149,7 @@ def get_agent_logs_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run logs # noqa: E501 @@ -1310,7 +1300,7 @@ def get_agent_state( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1AgentStateResponse: # noqa: E501 """Get State (queues/runs) # noqa: E501 @@ -1349,7 +1339,7 @@ def get_agent_state_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get State (queues/runs) # noqa: E501 @@ -1479,7 +1469,7 @@ def get_agent_statuses( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ) -> V1Status: # noqa: E501 """Get Agent statuses # noqa: E501 @@ -1511,9 +1501,7 @@ def get_agent_statuses( :rtype: V1Status """ kwargs["_return_http_data_only"] = True - return self.get_agent_statuses_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.get_agent_statuses_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def get_agent_statuses_with_http_info( @@ -1526,7 +1514,7 @@ def get_agent_statuses_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get Agent statuses # noqa: E501 @@ -1654,7 +1642,7 @@ def get_agent_token( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Get agent token # noqa: E501 @@ -1693,7 +1681,7 @@ def get_agent_token_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get agent token # noqa: E501 @@ -1816,7 +1804,7 @@ def get_agent_token_with_http_info( def get_global_state( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], - **kwargs + **kwargs, ) -> V1AgentStateResponse: # noqa: E501 """Get Global State (queues/runs) # noqa: E501 @@ -1850,7 +1838,7 @@ def get_global_state( def get_global_state_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get Global State (queues/runs) # noqa: E501 @@ -1979,7 +1967,7 @@ def inspect_agent( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Inspect an agent's service full conditions # noqa: E501 @@ -2041,7 +2029,7 @@ def inspect_agent_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Inspect an agent's service full conditions # noqa: E501 @@ -2206,7 +2194,7 @@ def list_agent_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListAgentsResponse: # noqa: E501 """List agents names # noqa: E501 @@ -2273,7 +2261,7 @@ def list_agent_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List agents names # noqa: E501 @@ -2446,7 +2434,7 @@ def list_agents( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListAgentsResponse: # noqa: E501 """List agents # noqa: E501 @@ -2513,7 +2501,7 @@ def list_agents_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List agents # noqa: E501 @@ -2671,7 +2659,7 @@ def patch_agent( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Patch agent # noqa: E501 @@ -2703,9 +2691,7 @@ def patch_agent( :rtype: V1Agent """ kwargs["_return_http_data_only"] = True - return self.patch_agent_with_http_info( - owner, agent_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_agent_with_http_info( @@ -2713,7 +2699,7 @@ def patch_agent_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch agent # noqa: E501 @@ -2850,7 +2836,7 @@ def patch_agent_token( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Patch agent token # noqa: E501 @@ -2882,9 +2868,7 @@ def patch_agent_token( :rtype: V1Token """ kwargs["_return_http_data_only"] = True - return self.patch_agent_token_with_http_info( - owner, entity, body, **kwargs - ) # noqa: E501 + return self.patch_agent_token_with_http_info(owner, entity, body, **kwargs) # noqa: E501 @validate_call def patch_agent_token_with_http_info( @@ -2892,7 +2876,7 @@ def patch_agent_token_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch agent token # noqa: E501 @@ -3031,7 +3015,7 @@ def reconcile_agent( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1AgentReconcileBodyRequest, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Reconcile agent # noqa: E501 @@ -3063,9 +3047,7 @@ def reconcile_agent( :rtype: object """ kwargs["_return_http_data_only"] = True - return self.reconcile_agent_with_http_info( - owner, uuid, body, **kwargs - ) # noqa: E501 + return self.reconcile_agent_with_http_info(owner, uuid, body, **kwargs) # noqa: E501 @validate_call def reconcile_agent_with_http_info( @@ -3075,7 +3057,7 @@ def reconcile_agent_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1AgentReconcileBodyRequest, - **kwargs + **kwargs, ): # noqa: E501 """Reconcile agent # noqa: E501 @@ -3209,7 +3191,7 @@ def sync_agent( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Sync agent # noqa: E501 @@ -3241,9 +3223,7 @@ def sync_agent( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.sync_agent_with_http_info( - owner, agent_uuid, body, **kwargs - ) # noqa: E501 + return self.sync_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501 @validate_call def sync_agent_with_http_info( @@ -3251,7 +3231,7 @@ def sync_agent_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Sync agent # noqa: E501 @@ -3382,7 +3362,7 @@ def cron_agent( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[Optional[Dict], Field(..., description="Cron body")] = None, - **kwargs + **kwargs, ) -> V1AgentStateResponse: # noqa: E501 """Global Cron agent # noqa: E501 @@ -3419,7 +3399,7 @@ def cron_agent_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[Optional[Dict], Field(..., description="Cron body")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Cron agent # noqa: E501 @@ -3548,7 +3528,7 @@ def update_agent( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Update agent # noqa: E501 @@ -3580,9 +3560,7 @@ def update_agent( :rtype: V1Agent """ kwargs["_return_http_data_only"] = True - return self.update_agent_with_http_info( - owner, agent_uuid, body, **kwargs - ) # noqa: E501 + return self.update_agent_with_http_info(owner, agent_uuid, body, **kwargs) # noqa: E501 @validate_call def update_agent_with_http_info( @@ -3590,7 +3568,7 @@ def update_agent_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Update agent # noqa: E501 @@ -3727,7 +3705,7 @@ def update_agent_config( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ) -> V1Agent: # noqa: E501 """Update agent config # noqa: E501 @@ -3769,7 +3747,7 @@ def update_agent_config_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Agent, Field(..., description="Agent body")], - **kwargs + **kwargs, ): # noqa: E501 """Update agent config # noqa: E501 @@ -3906,7 +3884,7 @@ def update_agent_token( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Update agent token # noqa: E501 @@ -3938,9 +3916,7 @@ def update_agent_token( :rtype: V1Token """ kwargs["_return_http_data_only"] = True - return self.update_agent_token_with_http_info( - owner, entity, body, **kwargs - ) # noqa: E501 + return self.update_agent_token_with_http_info(owner, entity, body, **kwargs) # noqa: E501 @validate_call def update_agent_token_with_http_info( @@ -3948,7 +3924,7 @@ def update_agent_token_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Update agent token # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/artifacts_stores_v1_api.py b/cli/polyaxon/_sdk/api/artifacts_stores_v1_api.py index 1ce55dc7..e72b1cee 100644 --- a/cli/polyaxon/_sdk/api/artifacts_stores_v1_api.py +++ b/cli/polyaxon/_sdk/api/artifacts_stores_v1_api.py @@ -22,7 +22,7 @@ def upload_artifact( overwrite: Annotated[ Optional[bool], Field(description="File path query params.") ] = None, - **kwargs + **kwargs, ) -> None: """Upload artifact to a store @@ -76,7 +76,7 @@ def upload_artifact_with_http_info( overwrite: Annotated[ Optional[bool], Field(description="File path query params.") ] = None, - **kwargs + **kwargs, ): """Upload artifact to a store diff --git a/cli/polyaxon/_sdk/api/auth_v1_api.py b/cli/polyaxon/_sdk/api/auth_v1_api.py index 24491b0b..e9ebb541 100644 --- a/cli/polyaxon/_sdk/api/auth_v1_api.py +++ b/cli/polyaxon/_sdk/api/auth_v1_api.py @@ -460,9 +460,7 @@ def reset_password_with_http_info(self, body: V1UserEmail, **kwargs): # noqa: E ) @validate_call - def reset_password_confirm( - self, body: V1PasswordChange, **kwargs - ) -> V1Auth: # noqa: E501 + def reset_password_confirm(self, body: V1PasswordChange, **kwargs) -> V1Auth: # noqa: E501 """Reset password confirm # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -492,9 +490,7 @@ def reset_password_confirm( return self.reset_password_confirm_with_http_info(body, **kwargs) # noqa: E501 @validate_call - def reset_password_confirm_with_http_info( - self, body: V1PasswordChange, **kwargs - ): # noqa: E501 + def reset_password_confirm_with_http_info(self, body: V1PasswordChange, **kwargs): # noqa: E501 """Reset password confirm # noqa: E501 This method makes a synchronous HTTP request by default. To make an diff --git a/cli/polyaxon/_sdk/api/connections_v1_api.py b/cli/polyaxon/_sdk/api/connections_v1_api.py index 4959d169..cae8648d 100644 --- a/cli/polyaxon/_sdk/api/connections_v1_api.py +++ b/cli/polyaxon/_sdk/api/connections_v1_api.py @@ -17,7 +17,7 @@ def create_connection( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ) -> V1ConnectionResponse: # noqa: E501 """Create connection # noqa: E501 @@ -47,9 +47,7 @@ def create_connection( :rtype: V1ConnectionResponse """ kwargs["_return_http_data_only"] = True - return self.create_connection_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.create_connection_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def create_connection_with_http_info( @@ -58,7 +56,7 @@ def create_connection_with_http_info( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ): # noqa: E501 """Create connection # noqa: E501 @@ -192,7 +190,7 @@ def delete_connection( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete connection # noqa: E501 @@ -222,9 +220,7 @@ def delete_connection( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_connection_with_http_info( - owner, uuid, **kwargs - ) # noqa: E501 + return self.delete_connection_with_http_info(owner, uuid, **kwargs) # noqa: E501 @validate_call def delete_connection_with_http_info( @@ -233,7 +229,7 @@ def delete_connection_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete connection # noqa: E501 @@ -354,7 +350,7 @@ def get_connection( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1ConnectionResponse: # noqa: E501 """Get connection # noqa: E501 @@ -393,7 +389,7 @@ def get_connection_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get connection # noqa: E501 @@ -533,7 +529,7 @@ def list_connection_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListConnectionsResponse: # noqa: E501 """List connections names # noqa: E501 @@ -600,7 +596,7 @@ def list_connection_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List connections names # noqa: E501 @@ -773,7 +769,7 @@ def list_connections( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListConnectionsResponse: # noqa: E501 """List connections # noqa: E501 @@ -840,7 +836,7 @@ def list_connections_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List connections # noqa: E501 @@ -1000,7 +996,7 @@ def patch_connection( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ) -> V1ConnectionResponse: # noqa: E501 """Patch connection # noqa: E501 @@ -1044,7 +1040,7 @@ def patch_connection_with_http_info( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ): # noqa: E501 """Patch connection # noqa: E501 @@ -1183,7 +1179,7 @@ def update_connection( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ) -> V1ConnectionResponse: # noqa: E501 """Update connection # noqa: E501 @@ -1227,7 +1223,7 @@ def update_connection_with_http_info( body: Annotated[ V1ConnectionResponse, Field(..., description="Connection body") ], - **kwargs + **kwargs, ): # noqa: E501 """Update connection # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/dashboards_v1_api.py b/cli/polyaxon/_sdk/api/dashboards_v1_api.py index 7c08cd32..208ac609 100644 --- a/cli/polyaxon/_sdk/api/dashboards_v1_api.py +++ b/cli/polyaxon/_sdk/api/dashboards_v1_api.py @@ -15,7 +15,7 @@ def create_dashboard( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Create dashboard # noqa: E501 @@ -52,7 +52,7 @@ def create_dashboard_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): # noqa: E501 """Create dashboard # noqa: E501 @@ -186,7 +186,7 @@ def delete_dashboard( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete dashboard # noqa: E501 @@ -225,7 +225,7 @@ def delete_dashboard_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete dashboard # noqa: E501 @@ -346,7 +346,7 @@ def get_dashboard( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Get dashboard # noqa: E501 @@ -385,7 +385,7 @@ def get_dashboard_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get dashboard # noqa: E501 @@ -525,7 +525,7 @@ def list_dashboard_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListDashboardsResponse: # noqa: E501 """List dashboard names # noqa: E501 @@ -592,7 +592,7 @@ def list_dashboard_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List dashboard names # noqa: E501 @@ -765,7 +765,7 @@ def list_dashboards( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListDashboardsResponse: # noqa: E501 """List dashboards # noqa: E501 @@ -832,7 +832,7 @@ def list_dashboards_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List dashboards # noqa: E501 @@ -990,7 +990,7 @@ def patch_dashboard( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Patch dashboard # noqa: E501 @@ -1032,7 +1032,7 @@ def patch_dashboard_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch dashboard # noqa: E501 @@ -1169,7 +1169,7 @@ def update_dashboard( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Update dashboard # noqa: E501 @@ -1211,7 +1211,7 @@ def update_dashboard_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): # noqa: E501 """Update dashboard # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/organizations_v1_api.py b/cli/polyaxon/_sdk/api/organizations_v1_api.py index 04105a32..2fbe8633 100644 --- a/cli/polyaxon/_sdk/api/organizations_v1_api.py +++ b/cli/polyaxon/_sdk/api/organizations_v1_api.py @@ -28,7 +28,7 @@ def approve_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: """Approve cross-project runs selection @@ -65,7 +65,7 @@ def approve_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): """Approve cross-project runs selection @@ -192,7 +192,7 @@ def archive_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: """Archive cross-project runs selection @@ -229,7 +229,7 @@ def archive_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): """Archive cross-project runs selection @@ -356,7 +356,7 @@ def bookmark_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: """Bookmark cross-project runs selection @@ -386,16 +386,14 @@ def bookmark_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.bookmark_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.bookmark_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def bookmark_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Bookmark cross-project runs selection # noqa: E501 @@ -518,9 +516,7 @@ def bookmark_organization_runs_with_http_info( ) @validate_call - def create_organization( - self, body: V1Organization, **kwargs - ) -> V1Organization: # noqa: E501 + def create_organization(self, body: V1Organization, **kwargs) -> V1Organization: # noqa: E501 """Create organization # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -550,9 +546,7 @@ def create_organization( return self.create_organization_with_http_info(body, **kwargs) # noqa: E501 @validate_call - def create_organization_with_http_info( - self, body: V1Organization, **kwargs - ): # noqa: E501 + def create_organization_with_http_info(self, body: V1Organization, **kwargs): # noqa: E501 """Create organization # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -684,7 +678,7 @@ def create_organization_member( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Create organization member # noqa: E501 @@ -730,7 +724,7 @@ def create_organization_member_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Create organization member # noqa: E501 @@ -868,7 +862,7 @@ def delete_organization( usage: Annotated[ Optional[StrictStr], Field(description="Owner usage query param.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete organization # noqa: E501 @@ -898,9 +892,7 @@ def delete_organization( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_organization_with_http_info( - owner, usage, **kwargs - ) # noqa: E501 + return self.delete_organization_with_http_info(owner, usage, **kwargs) # noqa: E501 @validate_call def delete_organization_with_http_info( @@ -909,7 +901,7 @@ def delete_organization_with_http_info( usage: Annotated[ Optional[StrictStr], Field(description="Owner usage query param.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete organization # noqa: E501 @@ -1044,7 +1036,7 @@ def delete_organization_invitation( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete organization invitation details # noqa: E501 @@ -1095,7 +1087,7 @@ def delete_organization_invitation( member_created_at, member_updated_at, email, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -1119,7 +1111,7 @@ def delete_organization_invitation_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete organization invitation details # noqa: E501 @@ -1271,7 +1263,7 @@ def delete_organization_member( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete organization member details # noqa: E501 @@ -1301,16 +1293,14 @@ def delete_organization_member( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_organization_member_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.delete_organization_member_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def delete_organization_member_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Delete organization member details # noqa: E501 @@ -1429,7 +1419,7 @@ def delete_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete cross-project runs selection # noqa: E501 @@ -1459,16 +1449,14 @@ def delete_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.delete_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def delete_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Delete cross-project runs selection # noqa: E501 @@ -1597,7 +1585,7 @@ def get_organization( usage: Annotated[ Optional[StrictStr], Field(description="Owner usage query param.") ] = None, - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Get organization # noqa: E501 @@ -1627,9 +1615,7 @@ def get_organization( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.get_organization_with_http_info( - owner, usage, **kwargs - ) # noqa: E501 + return self.get_organization_with_http_info(owner, usage, **kwargs) # noqa: E501 @validate_call def get_organization_with_http_info( @@ -1638,7 +1624,7 @@ def get_organization_with_http_info( usage: Annotated[ Optional[StrictStr], Field(description="Owner usage query param.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization # noqa: E501 @@ -1778,7 +1764,7 @@ def get_organization_activities( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListActivitiesResponse: # noqa: E501 """Get organization activities # noqa: E501 @@ -1845,7 +1831,7 @@ def get_organization_activities_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization activities # noqa: E501 @@ -2018,7 +2004,7 @@ def get_organization_invitation( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Get organization invitation details # noqa: E501 @@ -2069,7 +2055,7 @@ def get_organization_invitation( member_created_at, member_updated_at, email, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -2093,7 +2079,7 @@ def get_organization_invitation_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization invitation details # noqa: E501 @@ -2250,7 +2236,7 @@ def get_organization_member( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Get organization member details # noqa: E501 @@ -2280,16 +2266,14 @@ def get_organization_member( :rtype: V1OrganizationMember """ kwargs["_return_http_data_only"] = True - return self.get_organization_member_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.get_organization_member_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def get_organization_member_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get organization member details # noqa: E501 @@ -2415,7 +2399,7 @@ def get_organization_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Get a run in an organization # noqa: E501 @@ -2445,9 +2429,7 @@ def get_organization_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.get_organization_run_with_http_info( - owner, uuid, **kwargs - ) # noqa: E501 + return self.get_organization_run_with_http_info(owner, uuid, **kwargs) # noqa: E501 @validate_call def get_organization_run_with_http_info( @@ -2456,7 +2438,7 @@ def get_organization_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get a run in an organization # noqa: E501 @@ -2596,7 +2578,7 @@ def get_organization_runs( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunsResponse: # noqa: E501 """Get all runs in an organization # noqa: E501 @@ -2663,7 +2645,7 @@ def get_organization_runs_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get all runs in an organization # noqa: E501 @@ -2866,7 +2848,7 @@ def get_organization_settings( description="Setting to configure default archived deletion interval." ), ] = None, - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Get organization settings # noqa: E501 @@ -2935,7 +2917,7 @@ def get_organization_settings( organization_preset, organization_is_cloud_viewable, organization_archived_deletion_interval, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -2989,7 +2971,7 @@ def get_organization_settings_with_http_info( description="Setting to configure default archived deletion interval." ), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization settings # noqa: E501 @@ -3146,9 +3128,7 @@ def get_organization_settings_with_http_info( _params["organization_is_cloud_viewable"], ) ) - if ( - _params.get("organization_archived_deletion_interval") is not None - ): # noqa: E501 + if _params.get("organization_archived_deletion_interval") is not None: # noqa: E501 _query_params.append( ( "organization.archived_deletion_interval", @@ -3226,7 +3206,7 @@ def get_organization_stats( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Get organization stats # noqa: E501 @@ -3286,7 +3266,7 @@ def get_organization_stats( aggregate, groupby, trunc, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -3315,7 +3295,7 @@ def get_organization_stats_with_http_info( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization stats # noqa: E501 @@ -3487,7 +3467,7 @@ def invalidate_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Invalidate cross-project runs selection # noqa: E501 @@ -3517,16 +3497,14 @@ def invalidate_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.invalidate_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.invalidate_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def invalidate_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Invalidate cross-project runs selection # noqa: E501 @@ -3669,7 +3647,7 @@ def list_organization_member_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListOrganizationMembersResponse: # noqa: E501 """Get organization member names # noqa: E501 @@ -3736,7 +3714,7 @@ def list_organization_member_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization member names # noqa: E501 @@ -3909,7 +3887,7 @@ def list_organization_members( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListOrganizationMembersResponse: # noqa: E501 """Get organization members # noqa: E501 @@ -3976,7 +3954,7 @@ def list_organization_members_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization members # noqa: E501 @@ -4129,9 +4107,7 @@ def list_organization_members_with_http_info( ) @validate_call - def list_organization_names( - self, **kwargs - ) -> V1ListOrganizationsResponse: # noqa: E501 + def list_organization_names(self, **kwargs) -> V1ListOrganizationsResponse: # noqa: E501 """List organizations names # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -4413,7 +4389,7 @@ def organization_plan( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Organization plan # noqa: E501 @@ -4443,16 +4419,14 @@ def organization_plan( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.organization_plan_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.organization_plan_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def organization_plan_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Organization plan # noqa: E501 @@ -4584,7 +4558,7 @@ def organization_license( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Organization license # noqa: E501 @@ -4614,16 +4588,14 @@ def organization_license( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.organization_license_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.organization_license_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def organization_license_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Organization license # noqa: E501 @@ -4755,7 +4727,7 @@ def patch_organization( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Patch organization # noqa: E501 @@ -4785,16 +4757,14 @@ def patch_organization( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.patch_organization_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.patch_organization_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def patch_organization_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch organization # noqa: E501 @@ -4931,7 +4901,7 @@ def patch_organization_invitation( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Patch organization invitation # noqa: E501 @@ -4977,7 +4947,7 @@ def patch_organization_invitation_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Patch organization invitation # noqa: E501 @@ -5119,7 +5089,7 @@ def patch_organization_member( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Patch organization member # noqa: E501 @@ -5168,7 +5138,7 @@ def patch_organization_member_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Patch organization member # noqa: E501 @@ -5308,7 +5278,7 @@ def patch_organization_settings( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Patch oranization settings # noqa: E501 @@ -5338,16 +5308,14 @@ def patch_organization_settings( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.patch_organization_settings_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.patch_organization_settings_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def patch_organization_settings_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch oranization settings # noqa: E501 @@ -5484,7 +5452,7 @@ def resend_organization_invitation( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Resend organization invitation # noqa: E501 @@ -5530,7 +5498,7 @@ def resend_organization_invitation_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Resend organization invitation # noqa: E501 @@ -5666,7 +5634,7 @@ def restore_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Restore cross-project runs selection # noqa: E501 @@ -5696,16 +5664,14 @@ def restore_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.restore_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.restore_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def restore_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Restore cross-project runs selection # noqa: E501 @@ -5832,7 +5798,7 @@ def skip_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Skip cross-project runs selection # noqa: E501 @@ -5862,16 +5828,14 @@ def skip_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.skip_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.skip_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def skip_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Skip cross-project runs selection # noqa: E501 @@ -5995,7 +5959,7 @@ def stop_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Stop cross-project runs selection # noqa: E501 @@ -6025,16 +5989,14 @@ def stop_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.stop_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.stop_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def stop_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Stop cross-project runs selection # noqa: E501 @@ -6161,7 +6123,7 @@ def tag_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Tag cross-project runs selection # noqa: E501 @@ -6191,16 +6153,14 @@ def tag_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.tag_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.tag_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def tag_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Tag cross-project runs selection # noqa: E501 @@ -6327,7 +6287,7 @@ def transfer_organization_runs( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Transfer cross-project runs selection to a new project # noqa: E501 @@ -6357,16 +6317,14 @@ def transfer_organization_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.transfer_organization_runs_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.transfer_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def transfer_organization_runs_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Transfer cross-project runs selection to a new project # noqa: E501 @@ -6493,7 +6451,7 @@ def update_organization( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Update organization # noqa: E501 @@ -6523,16 +6481,14 @@ def update_organization( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.update_organization_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.update_organization_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def update_organization_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Update organization # noqa: E501 @@ -6669,7 +6625,7 @@ def update_organization_invitation( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Update organization invitation # noqa: E501 @@ -6715,7 +6671,7 @@ def update_organization_invitation_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Update organization invitation # noqa: E501 @@ -6857,7 +6813,7 @@ def update_organization_member( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ) -> V1OrganizationMember: # noqa: E501 """Update organization member # noqa: E501 @@ -6906,7 +6862,7 @@ def update_organization_member_with_http_info( email: Annotated[ Optional[StrictStr], Field(description="Optional email.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Update organization member # noqa: E501 @@ -7046,7 +7002,7 @@ def update_organization_settings( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ) -> V1Organization: # noqa: E501 """Update organization settings # noqa: E501 @@ -7076,16 +7032,14 @@ def update_organization_settings( :rtype: V1Organization """ kwargs["_return_http_data_only"] = True - return self.update_organization_settings_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.update_organization_settings_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def update_organization_settings_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Organization, Field(..., description="Organization body")], - **kwargs + **kwargs, ): # noqa: E501 """Update organization settings # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/presets_v1_api.py b/cli/polyaxon/_sdk/api/presets_v1_api.py index 17450b79..aaeb9891 100644 --- a/cli/polyaxon/_sdk/api/presets_v1_api.py +++ b/cli/polyaxon/_sdk/api/presets_v1_api.py @@ -15,7 +15,7 @@ def create_preset( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ) -> V1Preset: """Create scheduling presets @@ -52,7 +52,7 @@ def create_preset_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ): # noqa: E501 """Create scheduling presets # noqa: E501 @@ -190,7 +190,7 @@ def delete_preset( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete scheduling preset # noqa: E501 @@ -222,9 +222,7 @@ def delete_preset( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_preset_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.delete_preset_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def delete_preset_with_http_info( @@ -237,7 +235,7 @@ def delete_preset_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete scheduling preset # noqa: E501 @@ -366,7 +364,7 @@ def get_preset( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ) -> V1Preset: # noqa: E501 """Get scheduling preset # noqa: E501 @@ -398,9 +396,7 @@ def get_preset( :rtype: V1Preset """ kwargs["_return_http_data_only"] = True - return self.get_preset_with_http_info( - owner, uuid, entity, **kwargs - ) # noqa: E501 + return self.get_preset_with_http_info(owner, uuid, entity, **kwargs) # noqa: E501 @validate_call def get_preset_with_http_info( @@ -413,7 +409,7 @@ def get_preset_with_http_info( Optional[StrictStr], Field(description="Entity: project name, hub name, registry name, ..."), ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get scheduling preset # noqa: E501 @@ -557,7 +553,7 @@ def list_preset_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListPresetsResponse: # noqa: E501 """List scheduling presets names # noqa: E501 @@ -624,7 +620,7 @@ def list_preset_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List scheduling presets names # noqa: E501 @@ -797,7 +793,7 @@ def list_presets( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListPresetsResponse: # noqa: E501 """List scheduling presets # noqa: E501 @@ -864,7 +860,7 @@ def list_presets_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List scheduling presets # noqa: E501 @@ -1022,7 +1018,7 @@ def patch_preset( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], preset_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ) -> V1Preset: # noqa: E501 """Patch scheduling preset # noqa: E501 @@ -1054,9 +1050,7 @@ def patch_preset( :rtype: V1Preset """ kwargs["_return_http_data_only"] = True - return self.patch_preset_with_http_info( - owner, preset_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_preset_with_http_info(owner, preset_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_preset_with_http_info( @@ -1064,7 +1058,7 @@ def patch_preset_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], preset_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch scheduling preset # noqa: E501 @@ -1201,7 +1195,7 @@ def update_preset( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], preset_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ) -> V1Preset: # noqa: E501 """Update scheduling preset # noqa: E501 @@ -1233,9 +1227,7 @@ def update_preset( :rtype: V1Preset """ kwargs["_return_http_data_only"] = True - return self.update_preset_with_http_info( - owner, preset_uuid, body, **kwargs - ) # noqa: E501 + return self.update_preset_with_http_info(owner, preset_uuid, body, **kwargs) # noqa: E501 @validate_call def update_preset_with_http_info( @@ -1243,7 +1235,7 @@ def update_preset_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], preset_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Preset, Field(..., description="Preset body")], - **kwargs + **kwargs, ): # noqa: E501 """Update scheduling preset # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/project_dashboards_v1_api.py b/cli/polyaxon/_sdk/api/project_dashboards_v1_api.py index b0de769d..4007e1a1 100644 --- a/cli/polyaxon/_sdk/api/project_dashboards_v1_api.py +++ b/cli/polyaxon/_sdk/api/project_dashboards_v1_api.py @@ -18,7 +18,7 @@ def create_project_dashboard( StrictStr, Field(..., description="Project under namespace") ], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: """Create project dashboard @@ -62,7 +62,7 @@ def create_project_dashboard_with_http_info( StrictStr, Field(..., description="Project under namespace") ], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): """Create project dashboard @@ -206,7 +206,7 @@ def delete_project_dashboard( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete project dashboard # noqa: E501 @@ -255,7 +255,7 @@ def delete_project_dashboard_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete project dashboard # noqa: E501 @@ -386,7 +386,7 @@ def get_project_dashboard( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Get project dashboard # noqa: E501 @@ -418,9 +418,7 @@ def get_project_dashboard( :rtype: V1Dashboard """ kwargs["_return_http_data_only"] = True - return self.get_project_dashboard_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_project_dashboard_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_project_dashboard_with_http_info( @@ -435,7 +433,7 @@ def get_project_dashboard_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get project dashboard # noqa: E501 @@ -582,7 +580,7 @@ def list_project_dashboard_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListDashboardsResponse: # noqa: E501 """List project dashboard # noqa: E501 @@ -654,7 +652,7 @@ def list_project_dashboard_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List project dashboard # noqa: E501 @@ -835,7 +833,7 @@ def list_project_dashboards( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListDashboardsResponse: # noqa: E501 """List project dashboards # noqa: E501 @@ -907,7 +905,7 @@ def list_project_dashboards_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List project dashboards # noqa: E501 @@ -1073,7 +1071,7 @@ def patch_project_dashboard( ], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Patch project dashboard # noqa: E501 @@ -1120,7 +1118,7 @@ def patch_project_dashboard_with_http_info( ], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch project dashboard # noqa: E501 @@ -1268,7 +1266,7 @@ def promote_project_dashboard( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Promote project dashboard # noqa: E501 @@ -1317,7 +1315,7 @@ def promote_project_dashboard_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Promote project dashboard # noqa: E501 @@ -1444,7 +1442,7 @@ def update_project_dashboard( ], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ) -> V1Dashboard: # noqa: E501 """Update project dashboard # noqa: E501 @@ -1491,7 +1489,7 @@ def update_project_dashboard_with_http_info( ], dashboard_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Dashboard, Field(..., description="Dashboard body")], - **kwargs + **kwargs, ): # noqa: E501 """Update project dashboard # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/project_searches_v1_api.py b/cli/polyaxon/_sdk/api/project_searches_v1_api.py index 11d34e5c..71df1901 100644 --- a/cli/polyaxon/_sdk/api/project_searches_v1_api.py +++ b/cli/polyaxon/_sdk/api/project_searches_v1_api.py @@ -18,7 +18,7 @@ def create_project_search( StrictStr, Field(..., description="Project under namespace") ], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Create project search # noqa: E501 @@ -50,9 +50,7 @@ def create_project_search( :rtype: V1Search """ kwargs["_return_http_data_only"] = True - return self.create_project_search_with_http_info( - owner, project, body, **kwargs - ) # noqa: E501 + return self.create_project_search_with_http_info(owner, project, body, **kwargs) # noqa: E501 @validate_call def create_project_search_with_http_info( @@ -62,7 +60,7 @@ def create_project_search_with_http_info( StrictStr, Field(..., description="Project under namespace") ], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): # noqa: E501 """Create project search # noqa: E501 @@ -206,7 +204,7 @@ def delete_project_search( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete project search # noqa: E501 @@ -238,9 +236,7 @@ def delete_project_search( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_project_search_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.delete_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def delete_project_search_with_http_info( @@ -255,7 +251,7 @@ def delete_project_search_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete project search # noqa: E501 @@ -386,7 +382,7 @@ def get_project_search( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Get project search # noqa: E501 @@ -418,9 +414,7 @@ def get_project_search( :rtype: V1Search """ kwargs["_return_http_data_only"] = True - return self.get_project_search_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_project_search_with_http_info( @@ -435,7 +429,7 @@ def get_project_search_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get project search # noqa: E501 @@ -582,7 +576,7 @@ def list_project_search_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListSearchesResponse: # noqa: E501 """List project search names # noqa: E501 @@ -654,7 +648,7 @@ def list_project_search_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List project search names # noqa: E501 @@ -835,7 +829,7 @@ def list_project_searches( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListSearchesResponse: # noqa: E501 """List project searches # noqa: E501 @@ -907,7 +901,7 @@ def list_project_searches_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List project searches # noqa: E501 @@ -1073,7 +1067,7 @@ def patch_project_search( ], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Patch project search # noqa: E501 @@ -1120,7 +1114,7 @@ def patch_project_search_with_http_info( ], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch project search # noqa: E501 @@ -1268,7 +1262,7 @@ def promote_project_search( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Promote project search # noqa: E501 @@ -1300,9 +1294,7 @@ def promote_project_search( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.promote_project_search_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.promote_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def promote_project_search_with_http_info( @@ -1317,7 +1309,7 @@ def promote_project_search_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Promote project search # noqa: E501 @@ -1444,7 +1436,7 @@ def update_project_search( ], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Update project search # noqa: E501 @@ -1491,7 +1483,7 @@ def update_project_search_with_http_info( ], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): # noqa: E501 """Update project search # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/projects_v1_api.py b/cli/polyaxon/_sdk/api/projects_v1_api.py index db4232c4..08d96ea9 100644 --- a/cli/polyaxon/_sdk/api/projects_v1_api.py +++ b/cli/polyaxon/_sdk/api/projects_v1_api.py @@ -24,7 +24,7 @@ def archive_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: """Archive project @@ -61,7 +61,7 @@ def archive_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): """Archive project @@ -180,7 +180,7 @@ def bookmark_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Bookmark project # noqa: E501 @@ -217,7 +217,7 @@ def bookmark_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Bookmark project # noqa: E501 @@ -336,7 +336,7 @@ def create_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ) -> V1Project: # noqa: E501 """Create new project # noqa: E501 @@ -373,7 +373,7 @@ def create_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ): # noqa: E501 """Create new project # noqa: E501 @@ -506,7 +506,7 @@ def create_team_project( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ) -> V1Project: # noqa: E501 """Create new project via team space # noqa: E501 @@ -538,9 +538,7 @@ def create_team_project( :rtype: V1Project """ kwargs["_return_http_data_only"] = True - return self.create_team_project_with_http_info( - owner, team, body, **kwargs - ) # noqa: E501 + return self.create_team_project_with_http_info(owner, team, body, **kwargs) # noqa: E501 @validate_call def create_team_project_with_http_info( @@ -548,7 +546,7 @@ def create_team_project_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ): # noqa: E501 """Create new project via team space # noqa: E501 @@ -689,7 +687,7 @@ def create_version( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ) -> V1ProjectVersion: # noqa: E501 """Create version # noqa: E501 @@ -739,7 +737,7 @@ def create_version_with_http_info( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ): # noqa: E501 """Create version # noqa: E501 @@ -890,7 +888,7 @@ def create_version_stage( Field(..., description="Name of the entity to apply the stage to"), ], body: V1EntityStageBodyRequest, - **kwargs + **kwargs, ) -> V1Stage: # noqa: E501 """Create new artifact version stage # noqa: E501 @@ -946,7 +944,7 @@ def create_version_stage_with_http_info( Field(..., description="Name of the entity to apply the stage to"), ], body: V1EntityStageBodyRequest, - **kwargs + **kwargs, ): # noqa: E501 """Create new artifact version stage # noqa: E501 @@ -1090,7 +1088,7 @@ def delete_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete project # noqa: E501 @@ -1127,7 +1125,7 @@ def delete_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Delete project # noqa: E501 @@ -1253,7 +1251,7 @@ def delete_version( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete version # noqa: E501 @@ -1287,9 +1285,7 @@ def delete_version( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_version_with_http_info( - owner, entity, kind, name, **kwargs - ) # noqa: E501 + return self.delete_version_with_http_info(owner, entity, kind, name, **kwargs) # noqa: E501 @validate_call def delete_version_with_http_info( @@ -1303,7 +1299,7 @@ def delete_version_with_http_info( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ): # noqa: E501 """Delete version # noqa: E501 @@ -1430,7 +1426,7 @@ def disable_project_ci( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Disbale project CI # noqa: E501 @@ -1460,16 +1456,14 @@ def disable_project_ci( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.disable_project_ci_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.disable_project_ci_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def disable_project_ci_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Disbale project CI # noqa: E501 @@ -1588,7 +1582,7 @@ def enable_project_ci( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Enable project CI # noqa: E501 @@ -1618,16 +1612,14 @@ def enable_project_ci( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.enable_project_ci_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.enable_project_ci_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def enable_project_ci_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Enable project CI # noqa: E501 @@ -1746,7 +1738,7 @@ def get_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> V1Project: # noqa: E501 """Get project # noqa: E501 @@ -1783,7 +1775,7 @@ def get_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get project # noqa: E501 @@ -1926,7 +1918,7 @@ def get_project_activities( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListActivitiesResponse: # noqa: E501 """Get project activities # noqa: E501 @@ -1998,7 +1990,7 @@ def get_project_activities_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get project activities # noqa: E501 @@ -2160,7 +2152,7 @@ def get_project_settings( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> V1ProjectSettings: # noqa: E501 """Get Project settings # noqa: E501 @@ -2190,16 +2182,14 @@ def get_project_settings( :rtype: V1ProjectSettings """ kwargs["_return_http_data_only"] = True - return self.get_project_settings_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.get_project_settings_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def get_project_settings_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get Project settings # noqa: E501 @@ -2347,7 +2337,7 @@ def get_project_stats( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Get project stats # noqa: E501 @@ -2410,7 +2400,7 @@ def get_project_stats( aggregate, groupby, trunc, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -2442,7 +2432,7 @@ def get_project_stats_with_http_info( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get project stats # noqa: E501 @@ -2626,7 +2616,7 @@ def get_version( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ) -> V1ProjectVersion: # noqa: E501 """Get version # noqa: E501 @@ -2660,9 +2650,7 @@ def get_version( :rtype: V1ProjectVersion """ kwargs["_return_http_data_only"] = True - return self.get_version_with_http_info( - owner, entity, kind, name, **kwargs - ) # noqa: E501 + return self.get_version_with_http_info(owner, entity, kind, name, **kwargs) # noqa: E501 @validate_call def get_version_with_http_info( @@ -2676,7 +2664,7 @@ def get_version_with_http_info( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ): # noqa: E501 """Get version # noqa: E501 @@ -2815,7 +2803,7 @@ def get_version_stages( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ) -> V1Stage: # noqa: E501 """Get version stages # noqa: E501 @@ -2865,7 +2853,7 @@ def get_version_stages_with_http_info( ], kind: Annotated[str, Field(..., description="Version Kind")], name: Annotated[StrictStr, Field(..., description="Sub-entity name")], - **kwargs + **kwargs, ): # noqa: E501 """Get version stages # noqa: E501 @@ -3007,7 +2995,7 @@ def list_archived_projects( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectsResponse: # noqa: E501 """List archived projects for user # noqa: E501 @@ -3064,7 +3052,7 @@ def list_archived_projects_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List archived projects for user # noqa: E501 @@ -3214,7 +3202,7 @@ def list_bookmarked_projects( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListBookmarksResponse: # noqa: E501 """List bookmarked projects for user # noqa: E501 @@ -3271,7 +3259,7 @@ def list_bookmarked_projects_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List bookmarked projects for user # noqa: E501 @@ -3427,7 +3415,7 @@ def list_project_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectsResponse: # noqa: E501 """List project names # noqa: E501 @@ -3494,7 +3482,7 @@ def list_project_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List project names # noqa: E501 @@ -3667,7 +3655,7 @@ def list_projects( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectsResponse: # noqa: E501 """List projects # noqa: E501 @@ -3734,7 +3722,7 @@ def list_projects_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List projects # noqa: E501 @@ -3905,7 +3893,7 @@ def list_version_names( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectVersionsResponse: # noqa: E501 """List versions names # noqa: E501 @@ -3970,7 +3958,7 @@ def list_version_names_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List versions names # noqa: E501 @@ -4141,7 +4129,7 @@ def list_versions( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectVersionsResponse: # noqa: E501 """List versions # noqa: E501 @@ -4206,7 +4194,7 @@ def list_versions_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List versions # noqa: E501 @@ -4364,7 +4352,7 @@ def patch_project( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], project_name: Annotated[StrictStr, Field(..., description="Required name")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ) -> V1Project: # noqa: E501 """Patch project # noqa: E501 @@ -4396,9 +4384,7 @@ def patch_project( :rtype: V1Project """ kwargs["_return_http_data_only"] = True - return self.patch_project_with_http_info( - owner, project_name, body, **kwargs - ) # noqa: E501 + return self.patch_project_with_http_info(owner, project_name, body, **kwargs) # noqa: E501 @validate_call def patch_project_with_http_info( @@ -4406,7 +4392,7 @@ def patch_project_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], project_name: Annotated[StrictStr, Field(..., description="Required name")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch project # noqa: E501 @@ -4545,7 +4531,7 @@ def patch_project_settings( body: Annotated[ V1ProjectSettings, Field(..., description="Project settings body") ], - **kwargs + **kwargs, ) -> V1ProjectSettings: # noqa: E501 """Patch project settings # noqa: E501 @@ -4589,7 +4575,7 @@ def patch_project_settings_with_http_info( body: Annotated[ V1ProjectSettings, Field(..., description="Project settings body") ], - **kwargs + **kwargs, ): # noqa: E501 """Patch project settings # noqa: E501 @@ -4739,7 +4725,7 @@ def patch_version( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ) -> V1ProjectVersion: # noqa: E501 """Patch version # noqa: E501 @@ -4798,7 +4784,7 @@ def patch_version_with_http_info( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ): # noqa: E501 """Patch version # noqa: E501 @@ -4942,7 +4928,7 @@ def restore_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Restore project # noqa: E501 @@ -4979,7 +4965,7 @@ def restore_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Restore project # noqa: E501 @@ -5112,7 +5098,7 @@ def transfer_version( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Transfer version # noqa: E501 @@ -5171,7 +5157,7 @@ def transfer_version_with_http_info( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ): # noqa: E501 """Transfer version # noqa: E501 @@ -5310,7 +5296,7 @@ def unbookmark_project( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Unbookmark project # noqa: E501 @@ -5340,16 +5326,14 @@ def unbookmark_project( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.unbookmark_project_with_http_info( - owner, name, **kwargs - ) # noqa: E501 + return self.unbookmark_project_with_http_info(owner, name, **kwargs) # noqa: E501 @validate_call def unbookmark_project_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Unbookmark project # noqa: E501 @@ -5469,7 +5453,7 @@ def update_project( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], project_name: Annotated[StrictStr, Field(..., description="Required name")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ) -> V1Project: # noqa: E501 """Update project # noqa: E501 @@ -5501,9 +5485,7 @@ def update_project( :rtype: V1Project """ kwargs["_return_http_data_only"] = True - return self.update_project_with_http_info( - owner, project_name, body, **kwargs - ) # noqa: E501 + return self.update_project_with_http_info(owner, project_name, body, **kwargs) # noqa: E501 @validate_call def update_project_with_http_info( @@ -5511,7 +5493,7 @@ def update_project_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], project_name: Annotated[StrictStr, Field(..., description="Required name")], body: Annotated[V1Project, Field(..., description="Project body")], - **kwargs + **kwargs, ): # noqa: E501 """Update project # noqa: E501 @@ -5650,7 +5632,7 @@ def update_project_settings( body: Annotated[ V1ProjectSettings, Field(..., description="Project settings body") ], - **kwargs + **kwargs, ) -> V1ProjectSettings: # noqa: E501 """Update project settings # noqa: E501 @@ -5694,7 +5676,7 @@ def update_project_settings_with_http_info( body: Annotated[ V1ProjectSettings, Field(..., description="Project settings body") ], - **kwargs + **kwargs, ): # noqa: E501 """Update project settings # noqa: E501 @@ -5844,7 +5826,7 @@ def update_version( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ) -> V1ProjectVersion: # noqa: E501 """Update version # noqa: E501 @@ -5903,7 +5885,7 @@ def update_version_with_http_info( body: Annotated[ V1ProjectVersion, Field(..., description="Project version body") ], - **kwargs + **kwargs, ): # noqa: E501 """Update version # noqa: E501 @@ -6059,7 +6041,7 @@ def upload_project_artifact( overwrite: Annotated[ Optional[bool], Field(description="File path query params.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Upload artifact to a store via project access # noqa: E501 @@ -6118,7 +6100,7 @@ def upload_project_artifact_with_http_info( overwrite: Annotated[ Optional[bool], Field(description="File path query params.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Upload artifact to a store via project access # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/queues_v1_api.py b/cli/polyaxon/_sdk/api/queues_v1_api.py index 562c605b..e32c5ecd 100644 --- a/cli/polyaxon/_sdk/api/queues_v1_api.py +++ b/cli/polyaxon/_sdk/api/queues_v1_api.py @@ -18,7 +18,7 @@ def create_queue( StrictStr, Field(..., description="Agent that consumes the queue") ], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ) -> V1Queue: # noqa: E501 """Create queue # noqa: E501 @@ -50,9 +50,7 @@ def create_queue( :rtype: V1Queue """ kwargs["_return_http_data_only"] = True - return self.create_queue_with_http_info( - owner, agent, body, **kwargs - ) # noqa: E501 + return self.create_queue_with_http_info(owner, agent, body, **kwargs) # noqa: E501 @validate_call def create_queue_with_http_info( @@ -62,7 +60,7 @@ def create_queue_with_http_info( StrictStr, Field(..., description="Agent that consumes the queue") ], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ): # noqa: E501 """Create queue # noqa: E501 @@ -206,7 +204,7 @@ def delete_queue( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete queue # noqa: E501 @@ -238,9 +236,7 @@ def delete_queue( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_queue_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.delete_queue_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def delete_queue_with_http_info( @@ -255,7 +251,7 @@ def delete_queue_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete queue # noqa: E501 @@ -386,7 +382,7 @@ def get_queue( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Queue: # noqa: E501 """Get queue # noqa: E501 @@ -418,9 +414,7 @@ def get_queue( :rtype: V1Queue """ kwargs["_return_http_data_only"] = True - return self.get_queue_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_queue_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_queue_with_http_info( @@ -435,7 +429,7 @@ def get_queue_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get queue # noqa: E501 @@ -579,7 +573,7 @@ def list_organization_queue_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListQueuesResponse: # noqa: E501 """List organization level queues names # noqa: E501 @@ -646,7 +640,7 @@ def list_organization_queue_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List organization level queues names # noqa: E501 @@ -819,7 +813,7 @@ def list_organization_queues( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListQueuesResponse: # noqa: E501 """List organization level queues # noqa: E501 @@ -886,7 +880,7 @@ def list_organization_queues_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List organization level queues # noqa: E501 @@ -1062,7 +1056,7 @@ def list_queue_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListQueuesResponse: # noqa: E501 """List queues names # noqa: E501 @@ -1134,7 +1128,7 @@ def list_queue_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List queues names # noqa: E501 @@ -1315,7 +1309,7 @@ def list_queues( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListQueuesResponse: # noqa: E501 """List queues # noqa: E501 @@ -1387,7 +1381,7 @@ def list_queues_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List queues # noqa: E501 @@ -1553,7 +1547,7 @@ def patch_queue( ], queue_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ) -> V1Queue: # noqa: E501 """Patch queue # noqa: E501 @@ -1587,9 +1581,7 @@ def patch_queue( :rtype: V1Queue """ kwargs["_return_http_data_only"] = True - return self.patch_queue_with_http_info( - owner, agent, queue_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_queue_with_http_info(owner, agent, queue_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_queue_with_http_info( @@ -1600,7 +1592,7 @@ def patch_queue_with_http_info( ], queue_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch queue # noqa: E501 @@ -1744,7 +1736,7 @@ def update_queue( ], queue_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ) -> V1Queue: # noqa: E501 """Update queue # noqa: E501 @@ -1791,7 +1783,7 @@ def update_queue_with_http_info( ], queue_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Queue, Field(..., description="Queue body")], - **kwargs + **kwargs, ): # noqa: E501 """Update queue # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/runs_v1_api.py b/cli/polyaxon/_sdk/api/runs_v1_api.py index 820837dd..ca5989bb 100644 --- a/cli/polyaxon/_sdk/api/runs_v1_api.py +++ b/cli/polyaxon/_sdk/api/runs_v1_api.py @@ -51,7 +51,7 @@ def approve_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Approve run # noqa: E501 @@ -83,9 +83,7 @@ def approve_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.approve_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.approve_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def approve_run_with_http_info( @@ -100,7 +98,7 @@ def approve_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Approve run # noqa: E501 @@ -224,7 +222,7 @@ def approve_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Approve runs # noqa: E501 @@ -256,9 +254,7 @@ def approve_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.approve_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.approve_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def approve_runs_with_http_info( @@ -266,7 +262,7 @@ def approve_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Approve runs # noqa: E501 @@ -405,7 +401,7 @@ def archive_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Archive run # noqa: E501 @@ -437,9 +433,7 @@ def archive_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.archive_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.archive_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def archive_run_with_http_info( @@ -454,7 +448,7 @@ def archive_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Archive run # noqa: E501 @@ -578,7 +572,7 @@ def archive_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Archive runs # noqa: E501 @@ -610,9 +604,7 @@ def archive_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.archive_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.archive_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def archive_runs_with_http_info( @@ -620,7 +612,7 @@ def archive_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Archive runs # noqa: E501 @@ -759,7 +751,7 @@ def bookmark_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Bookmark run # noqa: E501 @@ -791,9 +783,7 @@ def bookmark_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.bookmark_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.bookmark_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def bookmark_run_with_http_info( @@ -808,7 +798,7 @@ def bookmark_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Bookmark run # noqa: E501 @@ -932,7 +922,7 @@ def bookmark_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Bookmark runs # noqa: E501 @@ -964,9 +954,7 @@ def bookmark_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.bookmark_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.bookmark_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def bookmark_runs_with_http_info( @@ -974,7 +962,7 @@ def bookmark_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Bookmark runs # noqa: E501 @@ -1112,7 +1100,7 @@ def collect_run_logs( StrictStr, Field(..., description="Uuid identifier of the entity") ], kind: Annotated[str, Field(..., description="Kind of the entity")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Internal API to collect run logs # noqa: E501 @@ -1164,7 +1152,7 @@ def collect_run_logs_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], kind: Annotated[str, Field(..., description="Kind of the entity")], - **kwargs + **kwargs, ): # noqa: E501 """Internal API to collect run logs # noqa: E501 @@ -1299,7 +1287,7 @@ def copy_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Restart run with copy # noqa: E501 @@ -1333,9 +1321,7 @@ def copy_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.copy_run_with_http_info( - owner, project, run_uuid, body, **kwargs - ) # noqa: E501 + return self.copy_run_with_http_info(owner, project, run_uuid, body, **kwargs) # noqa: E501 @validate_call def copy_run_with_http_info( @@ -1346,7 +1332,7 @@ def copy_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Restart run with copy # noqa: E501 @@ -1489,7 +1475,7 @@ def create_run( StrictStr, Field(..., description="Project where the run will be assigned") ], body: Annotated[V1OperationBody, Field(..., description="operation object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Create new run # noqa: E501 @@ -1521,9 +1507,7 @@ def create_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.create_run_with_http_info( - owner, project, body, **kwargs - ) # noqa: E501 + return self.create_run_with_http_info(owner, project, body, **kwargs) # noqa: E501 @validate_call def create_run_with_http_info( @@ -1533,7 +1517,7 @@ def create_run_with_http_info( StrictStr, Field(..., description="Project where the run will be assigned") ], body: Annotated[V1OperationBody, Field(..., description="operation object")], - **kwargs + **kwargs, ): # noqa: E501 """Create new run # noqa: E501 @@ -1675,7 +1659,7 @@ def create_run_artifacts_lineage( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: Annotated[V1RunArtifacts, Field(..., description="Run Artifacts")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Create bulk run artifacts lineage # noqa: E501 @@ -1724,7 +1708,7 @@ def create_run_artifacts_lineage_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: Annotated[V1RunArtifacts, Field(..., description="Run Artifacts")], - **kwargs + **kwargs, ): # noqa: E501 """Create bulk run artifacts lineage # noqa: E501 @@ -1865,7 +1849,7 @@ def create_run_status( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1EntityStatusBodyRequest, - **kwargs + **kwargs, ) -> V1Status: # noqa: E501 """Create new run status # noqa: E501 @@ -1914,7 +1898,7 @@ def create_run_status_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1EntityStatusBodyRequest, - **kwargs + **kwargs, ): # noqa: E501 """Create new run status # noqa: E501 @@ -2062,7 +2046,7 @@ def delete_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete run # noqa: E501 @@ -2094,9 +2078,7 @@ def delete_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.delete_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def delete_run_with_http_info( @@ -2111,7 +2093,7 @@ def delete_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete run # noqa: E501 @@ -2246,7 +2228,7 @@ def delete_run_artifact( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete run artifact # noqa: E501 @@ -2305,7 +2287,7 @@ def delete_run_artifact_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete run artifact # noqa: E501 @@ -2449,7 +2431,7 @@ def delete_run_artifact_lineage( namespace: Annotated[ Optional[StrictStr], Field(description="namespace.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete run artifact lineage # noqa: E501 @@ -2503,7 +2485,7 @@ def delete_run_artifact_lineage_with_http_info( namespace: Annotated[ Optional[StrictStr], Field(description="namespace.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete run artifact lineage # noqa: E501 @@ -2646,7 +2628,7 @@ def delete_run_artifacts( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete run artifacts # noqa: E501 @@ -2705,7 +2687,7 @@ def delete_run_artifacts_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete run artifacts # noqa: E501 @@ -2841,7 +2823,7 @@ def delete_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete runs # noqa: E501 @@ -2873,9 +2855,7 @@ def delete_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.delete_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def delete_runs_with_http_info( @@ -2883,7 +2863,7 @@ def delete_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Delete runs # noqa: E501 @@ -3039,7 +3019,7 @@ def get_multi_run_events( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ) -> V1MultiEventsResponse: # noqa: E501 """Get multi runs events # noqa: E501 @@ -3099,7 +3079,7 @@ def get_multi_run_events( sample, connection, status, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -3132,7 +3112,7 @@ def get_multi_run_events_with_http_info( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get multi runs events # noqa: E501 @@ -3308,7 +3288,7 @@ def get_multi_run_importance( StrictStr, Field(..., description="Entity where the run will be assigned") ], body: Annotated[Dict[str, Any], Field(..., description="Params/Metrics data")], - **kwargs + **kwargs, ) -> V1MultiEventsResponse: # noqa: E501 """Get multi run importance # noqa: E501 @@ -3355,7 +3335,7 @@ def get_multi_run_importance_with_http_info( StrictStr, Field(..., description="Entity where the run will be assigned") ], body: Annotated[Dict[str, Any], Field(..., description="Params/Metrics data")], - **kwargs + **kwargs, ): # noqa: E501 """Get multi run importance # noqa: E501 @@ -3502,7 +3482,7 @@ def get_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Get run # noqa: E501 @@ -3549,7 +3529,7 @@ def get_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get run # noqa: E501 @@ -3696,7 +3676,7 @@ def get_run_artifact( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> str: # noqa: E501 """Get run artifact # noqa: E501 @@ -3766,7 +3746,7 @@ def get_run_artifact_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifact # noqa: E501 @@ -3932,7 +3912,7 @@ def get_run_artifact_lineage( namespace: Annotated[ Optional[StrictStr], Field(description="namespace.") ] = None, - **kwargs + **kwargs, ) -> V1RunArtifact: # noqa: E501 """Get run artifacts lineage # noqa: E501 @@ -3986,7 +3966,7 @@ def get_run_artifact_lineage_with_http_info( namespace: Annotated[ Optional[StrictStr], Field(description="namespace.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifacts lineage # noqa: E501 @@ -4138,7 +4118,7 @@ def get_run_artifacts( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> str: # noqa: E501 """Get run artifacts # noqa: E501 @@ -4203,7 +4183,7 @@ def get_run_artifacts_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifacts # noqa: E501 @@ -4371,7 +4351,7 @@ def get_run_artifacts_lineage( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunArtifactsResponse: # noqa: E501 """Get run artifacts lineage # noqa: E501 @@ -4436,7 +4416,7 @@ def get_run_artifacts_lineage_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifacts lineage # noqa: E501 @@ -4607,7 +4587,7 @@ def get_run_artifacts_lineage_names( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunArtifactsResponse: # noqa: E501 """Get run artifacts lineage names # noqa: E501 @@ -4672,7 +4652,7 @@ def get_run_artifacts_lineage_names_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifacts lineage names # noqa: E501 @@ -4841,7 +4821,7 @@ def get_run_artifacts_tree( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ) -> V1ArtifactTree: # noqa: E501 """Get run artifacts tree # noqa: E501 @@ -4900,7 +4880,7 @@ def get_run_artifacts_tree_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection query param.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run artifacts tree # noqa: E501 @@ -5054,7 +5034,7 @@ def get_run_clones_lineage( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunsResponse: # noqa: E501 """Get run clones lineage # noqa: E501 @@ -5119,7 +5099,7 @@ def get_run_clones_lineage_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run clones lineage # noqa: E501 @@ -5290,7 +5270,7 @@ def get_run_connections_lineage( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunConnectionsResponse: # noqa: E501 """Get run connections lineage # noqa: E501 @@ -5355,7 +5335,7 @@ def get_run_connections_lineage_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run connections lineage # noqa: E501 @@ -5526,7 +5506,7 @@ def get_run_downstream_lineage( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunEdgesResponse: # noqa: E501 """Get run downstream lineage # noqa: E501 @@ -5591,7 +5571,7 @@ def get_run_downstream_lineage_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run downstream lineage # noqa: E501 @@ -5773,7 +5753,7 @@ def get_run_events( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ) -> V1EventsResponse: # noqa: E501 """Get run events # noqa: E501 @@ -5833,7 +5813,7 @@ def get_run_events( sample, connection, status, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -5866,7 +5846,7 @@ def get_run_events_with_http_info( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run events # noqa: E501 @@ -6056,7 +6036,7 @@ def get_run_logs( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> V1Logs: # noqa: E501 """Get run logs # noqa: E501 @@ -6107,7 +6087,7 @@ def get_run_logs( last_file, force, connection, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -6133,7 +6113,7 @@ def get_run_logs_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run logs # noqa: E501 @@ -6308,7 +6288,7 @@ def get_run_namespace( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1RunSettings: # noqa: E501 """Get Run namespace # noqa: E501 @@ -6340,9 +6320,7 @@ def get_run_namespace( :rtype: V1RunSettings """ kwargs["_return_http_data_only"] = True - return self.get_run_namespace_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_run_namespace_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_run_namespace_with_http_info( @@ -6357,7 +6335,7 @@ def get_run_namespace_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get Run namespace # noqa: E501 @@ -6509,7 +6487,7 @@ def get_run_resources( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ) -> V1EventsResponse: # noqa: E501 """Get run resources events # noqa: E501 @@ -6566,7 +6544,7 @@ def get_run_resources( sample, connection, status, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -6598,7 +6576,7 @@ def get_run_resources_with_http_info( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run resources events # noqa: E501 @@ -6773,7 +6751,7 @@ def get_run_settings( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1RunSettings: # noqa: E501 """Get Run settings # noqa: E501 @@ -6805,9 +6783,7 @@ def get_run_settings( :rtype: V1RunSettings """ kwargs["_return_http_data_only"] = True - return self.get_run_settings_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_run_settings_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_run_settings_with_http_info( @@ -6822,7 +6798,7 @@ def get_run_settings_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get Run settings # noqa: E501 @@ -6975,7 +6951,7 @@ def get_run_stats( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Get run stats # noqa: E501 @@ -7041,7 +7017,7 @@ def get_run_stats( aggregate, groupby, trunc, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -7074,7 +7050,7 @@ def get_run_stats_with_http_info( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run stats # noqa: E501 @@ -7264,7 +7240,7 @@ def get_run_statuses( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Status: # noqa: E501 """Get run statuses # noqa: E501 @@ -7296,9 +7272,7 @@ def get_run_statuses( :rtype: V1Status """ kwargs["_return_http_data_only"] = True - return self.get_run_statuses_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_run_statuses_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_run_statuses_with_http_info( @@ -7313,7 +7287,7 @@ def get_run_statuses_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get run statuses # noqa: E501 @@ -7455,7 +7429,7 @@ def get_run_upstream_lineage( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunEdgesResponse: # noqa: E501 """Get run upstream lineage # noqa: E501 @@ -7520,7 +7494,7 @@ def get_run_upstream_lineage_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get run upstream lineage # noqa: E501 @@ -7696,7 +7670,7 @@ def get_runs_artifacts_lineage( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunArtifactsResponse: # noqa: E501 """Get runs artifacts lineage # noqa: E501 @@ -7768,7 +7742,7 @@ def get_runs_artifacts_lineage_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get runs artifacts lineage # noqa: E501 @@ -7938,7 +7912,7 @@ def impersonate_token( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Auth: # noqa: E501 """Impersonate run token # noqa: E501 @@ -7970,9 +7944,7 @@ def impersonate_token( :rtype: V1Auth """ kwargs["_return_http_data_only"] = True - return self.impersonate_token_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.impersonate_token_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def impersonate_token_with_http_info( @@ -7987,7 +7959,7 @@ def impersonate_token_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Impersonate run token # noqa: E501 @@ -8139,7 +8111,7 @@ def inspect_run( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Inspect an active run full conditions # noqa: E501 @@ -8196,7 +8168,7 @@ def inspect_run( sample, connection, status, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -8228,7 +8200,7 @@ def inspect_run_with_http_info( status: Annotated[ Optional[StrictStr], Field(description="Optional status.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Inspect an active run full conditions # noqa: E501 @@ -8403,7 +8375,7 @@ def invalidate_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Invalidate run # noqa: E501 @@ -8435,9 +8407,7 @@ def invalidate_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.invalidate_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.invalidate_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def invalidate_run_with_http_info( @@ -8452,7 +8422,7 @@ def invalidate_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Invalidate run # noqa: E501 @@ -8576,7 +8546,7 @@ def invalidate_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Invalidate runs # noqa: E501 @@ -8608,9 +8578,7 @@ def invalidate_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.invalidate_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.invalidate_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def invalidate_runs_with_http_info( @@ -8618,7 +8586,7 @@ def invalidate_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Invalidate runs # noqa: E501 @@ -8759,7 +8727,7 @@ def list_archived_runs( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunsResponse: # noqa: E501 """List archived runs for user # noqa: E501 @@ -8816,7 +8784,7 @@ def list_archived_runs_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List archived runs for user # noqa: E501 @@ -8966,7 +8934,7 @@ def list_bookmarked_runs( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListBookmarksResponse: # noqa: E501 """List bookmarked runs for user # noqa: E501 @@ -9023,7 +8991,7 @@ def list_bookmarked_runs_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List bookmarked runs for user # noqa: E501 @@ -9182,7 +9150,7 @@ def list_runs( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunsResponse: # noqa: E501 """List runs # noqa: E501 @@ -9254,7 +9222,7 @@ def list_runs_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List runs # noqa: E501 @@ -9423,7 +9391,7 @@ def notify_run_status( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1EntityNotificationBody, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Notify run status # noqa: E501 @@ -9475,7 +9443,7 @@ def notify_run_status_with_http_info( StrictStr, Field(..., description="Uuid identifier of the entity") ], body: V1EntityNotificationBody, - **kwargs + **kwargs, ): # noqa: E501 """Notify run status # noqa: E501 @@ -9618,7 +9586,7 @@ def patch_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Patch run # noqa: E501 @@ -9652,9 +9620,7 @@ def patch_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.patch_run_with_http_info( - owner, project, run_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_run_with_http_info(owner, project, run_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_run_with_http_info( @@ -9665,7 +9631,7 @@ def patch_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Patch run # noqa: E501 @@ -9809,7 +9775,7 @@ def restart_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Restart run # noqa: E501 @@ -9843,9 +9809,7 @@ def restart_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.restart_run_with_http_info( - owner, project, run_uuid, body, **kwargs - ) # noqa: E501 + return self.restart_run_with_http_info(owner, project, run_uuid, body, **kwargs) # noqa: E501 @validate_call def restart_run_with_http_info( @@ -9856,7 +9820,7 @@ def restart_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Restart run # noqa: E501 @@ -10004,7 +9968,7 @@ def restore_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Restore run # noqa: E501 @@ -10036,9 +10000,7 @@ def restore_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.restore_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.restore_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def restore_run_with_http_info( @@ -10053,7 +10015,7 @@ def restore_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Restore run # noqa: E501 @@ -10177,7 +10139,7 @@ def restore_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Restore runs # noqa: E501 @@ -10209,9 +10171,7 @@ def restore_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.restore_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.restore_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def restore_runs_with_http_info( @@ -10219,7 +10179,7 @@ def restore_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Restore runs # noqa: E501 @@ -10354,7 +10314,7 @@ def resume_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Resume run # noqa: E501 @@ -10388,9 +10348,7 @@ def resume_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.resume_run_with_http_info( - owner, project, run_uuid, body, **kwargs - ) # noqa: E501 + return self.resume_run_with_http_info(owner, project, run_uuid, body, **kwargs) # noqa: E501 @validate_call def resume_run_with_http_info( @@ -10401,7 +10359,7 @@ def resume_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Resume run # noqa: E501 @@ -10543,7 +10501,7 @@ def set_run_edges_lineage( project: Annotated[StrictStr, Field(..., description="Project")], uuid: Annotated[StrictStr, Field(..., description="Run uuid")], body: Annotated[V1RunEdgesGraph, Field(..., description="Run edges graph")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Set run edges graph lineage # noqa: E501 @@ -10588,7 +10546,7 @@ def set_run_edges_lineage_with_http_info( project: Annotated[StrictStr, Field(..., description="Project")], uuid: Annotated[StrictStr, Field(..., description="Run uuid")], body: Annotated[V1RunEdgesGraph, Field(..., description="Run edges graph")], - **kwargs + **kwargs, ): # noqa: E501 """Set run edges graph lineage # noqa: E501 @@ -10728,7 +10686,7 @@ def skip_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Skip run # noqa: E501 @@ -10775,7 +10733,7 @@ def skip_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Skip run # noqa: E501 @@ -10897,7 +10855,7 @@ def skip_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Skip runs # noqa: E501 @@ -10937,7 +10895,7 @@ def skip_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Skip runs # noqa: E501 @@ -11074,7 +11032,7 @@ def stop_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Stop run # noqa: E501 @@ -11121,7 +11079,7 @@ def stop_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Stop run # noqa: E501 @@ -11245,7 +11203,7 @@ def stop_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Stop runs # noqa: E501 @@ -11285,7 +11243,7 @@ def stop_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Stop runs # noqa: E501 @@ -11419,7 +11377,7 @@ def sync_run( StrictStr, Field(..., description="Project where the run will be assigned") ], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Sync offline run # noqa: E501 @@ -11451,9 +11409,7 @@ def sync_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.sync_run_with_http_info( - owner, project, body, **kwargs - ) # noqa: E501 + return self.sync_run_with_http_info(owner, project, body, **kwargs) # noqa: E501 @validate_call def sync_run_with_http_info( @@ -11463,7 +11419,7 @@ def sync_run_with_http_info( StrictStr, Field(..., description="Project where the run will be assigned") ], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Sync offline run # noqa: E501 @@ -11595,7 +11551,7 @@ def tag_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Tag runs # noqa: E501 @@ -11635,7 +11591,7 @@ def tag_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Tag runs # noqa: E501 @@ -11770,7 +11726,7 @@ def transfer_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Transfer run # noqa: E501 @@ -11817,7 +11773,7 @@ def transfer_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Transfer run # noqa: E501 @@ -11953,7 +11909,7 @@ def transfer_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Transfer runs # noqa: E501 @@ -11985,9 +11941,7 @@ def transfer_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.transfer_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.transfer_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def transfer_runs_with_http_info( @@ -11995,7 +11949,7 @@ def transfer_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Transfer runs # noqa: E501 @@ -12134,7 +12088,7 @@ def unbookmark_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Unbookmark run # noqa: E501 @@ -12166,9 +12120,7 @@ def unbookmark_run( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.unbookmark_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.unbookmark_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def unbookmark_run_with_http_info( @@ -12183,7 +12135,7 @@ def unbookmark_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Unbookmark run # noqa: E501 @@ -12310,7 +12262,7 @@ def update_run( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Update run # noqa: E501 @@ -12344,9 +12296,7 @@ def update_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.update_run_with_http_info( - owner, project, run_uuid, body, **kwargs - ) # noqa: E501 + return self.update_run_with_http_info(owner, project, run_uuid, body, **kwargs) # noqa: E501 @validate_call def update_run_with_http_info( @@ -12357,7 +12307,7 @@ def update_run_with_http_info( ], run_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Run, Field(..., description="Run object")], - **kwargs + **kwargs, ): # noqa: E501 """Update run # noqa: E501 @@ -12512,7 +12462,7 @@ def upload_run_artifact( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Upload an artifact file to a store via run access # noqa: E501 @@ -12576,7 +12526,7 @@ def upload_run_artifact_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Upload an artifact file to a store via run access # noqa: E501 @@ -12746,7 +12696,7 @@ def upload_run_logs( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Upload a logs file to a store via run access # noqa: E501 @@ -12810,7 +12760,7 @@ def upload_run_logs_with_http_info( connection: Annotated[ Optional[StrictStr], Field(description="Connection to use.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Upload a logs file to a store via run access # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/searches_v1_api.py b/cli/polyaxon/_sdk/api/searches_v1_api.py index 855ecac3..b1696098 100644 --- a/cli/polyaxon/_sdk/api/searches_v1_api.py +++ b/cli/polyaxon/_sdk/api/searches_v1_api.py @@ -15,7 +15,7 @@ def create_search( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: """Create search @@ -52,7 +52,7 @@ def create_search_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): """Create search @@ -186,7 +186,7 @@ def delete_search( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete search # noqa: E501 @@ -225,7 +225,7 @@ def delete_search_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete search # noqa: E501 @@ -346,7 +346,7 @@ def get_search( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Get search # noqa: E501 @@ -385,7 +385,7 @@ def get_search_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get search # noqa: E501 @@ -525,7 +525,7 @@ def list_search_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListSearchesResponse: # noqa: E501 """List search names # noqa: E501 @@ -592,7 +592,7 @@ def list_search_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List search names # noqa: E501 @@ -765,7 +765,7 @@ def list_searches( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListSearchesResponse: # noqa: E501 """List searches # noqa: E501 @@ -832,7 +832,7 @@ def list_searches_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List searches # noqa: E501 @@ -990,7 +990,7 @@ def patch_search( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Patch search # noqa: E501 @@ -1022,9 +1022,7 @@ def patch_search( :rtype: V1Search """ kwargs["_return_http_data_only"] = True - return self.patch_search_with_http_info( - owner, search_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_search_with_http_info(owner, search_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_search_with_http_info( @@ -1032,7 +1030,7 @@ def patch_search_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch search # noqa: E501 @@ -1169,7 +1167,7 @@ def update_search( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ) -> V1Search: # noqa: E501 """Update search # noqa: E501 @@ -1201,9 +1199,7 @@ def update_search( :rtype: V1Search """ kwargs["_return_http_data_only"] = True - return self.update_search_with_http_info( - owner, search_uuid, body, **kwargs - ) # noqa: E501 + return self.update_search_with_http_info(owner, search_uuid, body, **kwargs) # noqa: E501 @validate_call def update_search_with_http_info( @@ -1211,7 +1207,7 @@ def update_search_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], search_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Search, Field(..., description="Search body")], - **kwargs + **kwargs, ): # noqa: E501 """Update search # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/service_accounts_v1_api.py b/cli/polyaxon/_sdk/api/service_accounts_v1_api.py index 098200a6..c380982f 100644 --- a/cli/polyaxon/_sdk/api/service_accounts_v1_api.py +++ b/cli/polyaxon/_sdk/api/service_accounts_v1_api.py @@ -21,7 +21,7 @@ def create_service_account( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ) -> V1ServiceAccount: # noqa: E501 """Create service account # noqa: E501 @@ -51,9 +51,7 @@ def create_service_account( :rtype: V1ServiceAccount """ kwargs["_return_http_data_only"] = True - return self.create_service_account_with_http_info( - owner, body, **kwargs - ) # noqa: E501 + return self.create_service_account_with_http_info(owner, body, **kwargs) # noqa: E501 @validate_call def create_service_account_with_http_info( @@ -62,7 +60,7 @@ def create_service_account_with_http_info( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ): # noqa: E501 """Create service account # noqa: E501 @@ -195,7 +193,7 @@ def create_service_account_token( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Create service account token # noqa: E501 @@ -237,7 +235,7 @@ def create_service_account_token_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity: Annotated[StrictStr, Field(..., description="Entity")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Create service account token # noqa: E501 @@ -375,7 +373,7 @@ def delete_service_account( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete service account # noqa: E501 @@ -405,9 +403,7 @@ def delete_service_account( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_service_account_with_http_info( - owner, uuid, **kwargs - ) # noqa: E501 + return self.delete_service_account_with_http_info(owner, uuid, **kwargs) # noqa: E501 @validate_call def delete_service_account_with_http_info( @@ -416,7 +412,7 @@ def delete_service_account_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete service account # noqa: E501 @@ -543,7 +539,7 @@ def delete_service_account_token( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete service account token # noqa: E501 @@ -592,7 +588,7 @@ def delete_service_account_token_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Delete service account token # noqa: E501 @@ -717,7 +713,7 @@ def get_service_account( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1ServiceAccount: # noqa: E501 """Get service account # noqa: E501 @@ -747,9 +743,7 @@ def get_service_account( :rtype: V1ServiceAccount """ kwargs["_return_http_data_only"] = True - return self.get_service_account_with_http_info( - owner, uuid, **kwargs - ) # noqa: E501 + return self.get_service_account_with_http_info(owner, uuid, **kwargs) # noqa: E501 @validate_call def get_service_account_with_http_info( @@ -758,7 +752,7 @@ def get_service_account_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get service account # noqa: E501 @@ -890,7 +884,7 @@ def get_service_account_token( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Get service account token # noqa: E501 @@ -939,7 +933,7 @@ def get_service_account_token_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get service account token # noqa: E501 @@ -1083,7 +1077,7 @@ def list_service_account_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListServiceAccountsResponse: # noqa: E501 """List service accounts names # noqa: E501 @@ -1150,7 +1144,7 @@ def list_service_account_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List service accounts names # noqa: E501 @@ -1321,7 +1315,7 @@ def list_service_account_tokens( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTokenResponse: # noqa: E501 """List service account tokens # noqa: E501 @@ -1386,7 +1380,7 @@ def list_service_account_tokens_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List service account tokens # noqa: E501 @@ -1559,7 +1553,7 @@ def list_service_accounts( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListServiceAccountsResponse: # noqa: E501 """List service accounts # noqa: E501 @@ -1626,7 +1620,7 @@ def list_service_accounts_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List service accounts # noqa: E501 @@ -1786,7 +1780,7 @@ def patch_service_account( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ) -> V1ServiceAccount: # noqa: E501 """Patch service account # noqa: E501 @@ -1818,9 +1812,7 @@ def patch_service_account( :rtype: V1ServiceAccount """ kwargs["_return_http_data_only"] = True - return self.patch_service_account_with_http_info( - owner, sa_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_service_account_with_http_info(owner, sa_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_service_account_with_http_info( @@ -1830,7 +1822,7 @@ def patch_service_account_with_http_info( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ): # noqa: E501 """Patch service account # noqa: E501 @@ -1968,7 +1960,7 @@ def patch_service_account_token( entity: Annotated[StrictStr, Field(..., description="Entity")], token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Patch service account token # noqa: E501 @@ -2013,7 +2005,7 @@ def patch_service_account_token_with_http_info( entity: Annotated[StrictStr, Field(..., description="Entity")], token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch service account token # noqa: E501 @@ -2156,7 +2148,7 @@ def update_service_account( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ) -> V1ServiceAccount: # noqa: E501 """Update service account # noqa: E501 @@ -2200,7 +2192,7 @@ def update_service_account_with_http_info( body: Annotated[ V1ServiceAccount, Field(..., description="ServiceAccount body") ], - **kwargs + **kwargs, ): # noqa: E501 """Update service account # noqa: E501 @@ -2338,7 +2330,7 @@ def update_service_account_token( entity: Annotated[StrictStr, Field(..., description="Entity")], token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Update service account token # noqa: E501 @@ -2383,7 +2375,7 @@ def update_service_account_token_with_http_info( entity: Annotated[StrictStr, Field(..., description="Entity")], token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Update service account token # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/tags_v1_api.py b/cli/polyaxon/_sdk/api/tags_v1_api.py index aaa8e6c5..761bd53d 100644 --- a/cli/polyaxon/_sdk/api/tags_v1_api.py +++ b/cli/polyaxon/_sdk/api/tags_v1_api.py @@ -16,7 +16,7 @@ def create_tag( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ) -> V1Tag: # noqa: E501 """Create tag # noqa: E501 @@ -53,7 +53,7 @@ def create_tag_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ): # noqa: E501 """Create tag # noqa: E501 @@ -190,7 +190,7 @@ def delete_tag( cascade: Annotated[ Optional[bool], Field(description="Flag to handle sub-entities.") ] = None, - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete tag # noqa: E501 @@ -222,9 +222,7 @@ def delete_tag( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_tag_with_http_info( - owner, uuid, cascade, **kwargs - ) # noqa: E501 + return self.delete_tag_with_http_info(owner, uuid, cascade, **kwargs) # noqa: E501 @validate_call def delete_tag_with_http_info( @@ -236,7 +234,7 @@ def delete_tag_with_http_info( cascade: Annotated[ Optional[bool], Field(description="Flag to handle sub-entities.") ] = None, - **kwargs + **kwargs, ): # noqa: E501 """Delete tag # noqa: E501 @@ -361,7 +359,7 @@ def get_tag( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ) -> V1Tag: # noqa: E501 """Get tag # noqa: E501 @@ -400,7 +398,7 @@ def get_tag_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get tag # noqa: E501 @@ -540,7 +538,7 @@ def list_tags( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTagsResponse: # noqa: E501 """List tags # noqa: E501 @@ -607,7 +605,7 @@ def list_tags_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List tags # noqa: E501 @@ -780,7 +778,7 @@ def load_tags( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Load tags # noqa: E501 @@ -847,7 +845,7 @@ def load_tags_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Load tags # noqa: E501 @@ -1005,7 +1003,7 @@ def patch_tag( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ) -> V1Tag: # noqa: E501 """Patch tag # noqa: E501 @@ -1037,9 +1035,7 @@ def patch_tag( :rtype: V1Tag """ kwargs["_return_http_data_only"] = True - return self.patch_tag_with_http_info( - owner, tag_uuid, body, **kwargs - ) # noqa: E501 + return self.patch_tag_with_http_info(owner, tag_uuid, body, **kwargs) # noqa: E501 @validate_call def patch_tag_with_http_info( @@ -1047,7 +1043,7 @@ def patch_tag_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch tag # noqa: E501 @@ -1183,7 +1179,7 @@ def sync_tags( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Sync tags # noqa: E501 @@ -1220,7 +1216,7 @@ def sync_tags_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Sync tags # noqa: E501 @@ -1348,7 +1344,7 @@ def update_tag( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ) -> V1Tag: # noqa: E501 """Update tag # noqa: E501 @@ -1380,9 +1376,7 @@ def update_tag( :rtype: V1Tag """ kwargs["_return_http_data_only"] = True - return self.update_tag_with_http_info( - owner, tag_uuid, body, **kwargs - ) # noqa: E501 + return self.update_tag_with_http_info(owner, tag_uuid, body, **kwargs) # noqa: E501 @validate_call def update_tag_with_http_info( @@ -1390,7 +1384,7 @@ def update_tag_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], tag_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Tag, Field(..., description="Tag body")], - **kwargs + **kwargs, ): # noqa: E501 """Update tag # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/teams_v1_api.py b/cli/polyaxon/_sdk/api/teams_v1_api.py index 4dae0d66..7bb5ac42 100644 --- a/cli/polyaxon/_sdk/api/teams_v1_api.py +++ b/cli/polyaxon/_sdk/api/teams_v1_api.py @@ -28,7 +28,7 @@ def create_team( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1Team: """Create team @@ -65,7 +65,7 @@ def create_team_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ): """Create team @@ -198,7 +198,7 @@ def create_team_member( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1TeamMember: # noqa: E501 """Create team member # noqa: E501 @@ -230,9 +230,7 @@ def create_team_member( :rtype: V1TeamMember """ kwargs["_return_http_data_only"] = True - return self.create_team_member_with_http_info( - owner, team, body, **kwargs - ) # noqa: E501 + return self.create_team_member_with_http_info(owner, team, body, **kwargs) # noqa: E501 @validate_call def create_team_member_with_http_info( @@ -240,7 +238,7 @@ def create_team_member_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ): # noqa: E501 """Create team member # noqa: E501 @@ -376,7 +374,7 @@ def delete_team( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete team # noqa: E501 @@ -413,7 +411,7 @@ def delete_team_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Delete team # noqa: E501 @@ -533,7 +531,7 @@ def delete_team_member( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team under namespace")], user: Annotated[StrictStr, Field(..., description="Member under team")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete team member details # noqa: E501 @@ -565,9 +563,7 @@ def delete_team_member( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_team_member_with_http_info( - owner, team, user, **kwargs - ) # noqa: E501 + return self.delete_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501 @validate_call def delete_team_member_with_http_info( @@ -575,7 +571,7 @@ def delete_team_member_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team under namespace")], user: Annotated[StrictStr, Field(..., description="Member under team")], - **kwargs + **kwargs, ): # noqa: E501 """Delete team member details # noqa: E501 @@ -699,7 +695,7 @@ def delete_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete cross-project runs selection # noqa: E501 @@ -731,9 +727,7 @@ def delete_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.delete_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.delete_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def delete_team_runs_with_http_info( @@ -741,7 +735,7 @@ def delete_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Delete cross-project runs selection # noqa: E501 @@ -870,7 +864,7 @@ def get_team( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ) -> V1Team: # noqa: E501 """Get team # noqa: E501 @@ -907,7 +901,7 @@ def get_team_with_http_info( self, owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Component under namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get team # noqa: E501 @@ -1050,7 +1044,7 @@ def get_team_activities( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListActivitiesResponse: # noqa: E501 """Get organization activities # noqa: E501 @@ -1122,7 +1116,7 @@ def get_team_activities_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get organization activities # noqa: E501 @@ -1289,7 +1283,7 @@ def get_team_member( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team under namespace")], user: Annotated[StrictStr, Field(..., description="Member under team")], - **kwargs + **kwargs, ) -> V1TeamMember: # noqa: E501 """Get team member details # noqa: E501 @@ -1321,9 +1315,7 @@ def get_team_member( :rtype: V1TeamMember """ kwargs["_return_http_data_only"] = True - return self.get_team_member_with_http_info( - owner, team, user, **kwargs - ) # noqa: E501 + return self.get_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501 @validate_call def get_team_member_with_http_info( @@ -1331,7 +1323,7 @@ def get_team_member_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team: Annotated[StrictStr, Field(..., description="Team under namespace")], user: Annotated[StrictStr, Field(..., description="Member under team")], - **kwargs + **kwargs, ): # noqa: E501 """Get team member details # noqa: E501 @@ -1467,7 +1459,7 @@ def get_team_run( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ) -> V1Run: # noqa: E501 """Get a run in a team # noqa: E501 @@ -1499,9 +1491,7 @@ def get_team_run( :rtype: V1Run """ kwargs["_return_http_data_only"] = True - return self.get_team_run_with_http_info( - owner, entity, uuid, **kwargs - ) # noqa: E501 + return self.get_team_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501 @validate_call def get_team_run_with_http_info( @@ -1516,7 +1506,7 @@ def get_team_run_with_http_info( uuid: Annotated[ StrictStr, Field(..., description="Uuid identifier of the sub-entity") ], - **kwargs + **kwargs, ): # noqa: E501 """Get a run in a team # noqa: E501 @@ -1661,7 +1651,7 @@ def get_team_runs( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListRunsResponse: # noqa: E501 """Get all runs in a team # noqa: E501 @@ -1733,7 +1723,7 @@ def get_team_runs_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get all runs in a team # noqa: E501 @@ -1923,7 +1913,7 @@ def get_team_stats( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """Get team stats # noqa: E501 @@ -1986,7 +1976,7 @@ def get_team_stats( aggregate, groupby, trunc, - **kwargs + **kwargs, ) # noqa: E501 @validate_call @@ -2018,7 +2008,7 @@ def get_team_stats_with_http_info( Optional[StrictStr], Field(description="Stats group.") ] = None, trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get team stats # noqa: E501 @@ -2216,7 +2206,7 @@ def get_team_versions( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListProjectVersionsResponse: # noqa: E501 """Get all runs in a team # noqa: E501 @@ -2281,7 +2271,7 @@ def get_team_versions_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get all runs in a team # noqa: E501 @@ -2442,7 +2432,7 @@ def invalidate_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Invalidate cross-project runs selection # noqa: E501 @@ -2474,9 +2464,7 @@ def invalidate_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.invalidate_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.invalidate_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def invalidate_team_runs_with_http_info( @@ -2484,7 +2472,7 @@ def invalidate_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Invalidate cross-project runs selection # noqa: E501 @@ -2632,7 +2620,7 @@ def list_team_members( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTeamMembersResponse: # noqa: E501 """Get team members # noqa: E501 @@ -2704,7 +2692,7 @@ def list_team_members_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """Get team members # noqa: E501 @@ -2882,7 +2870,7 @@ def list_team_names( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTeamsResponse: # noqa: E501 """List teams names # noqa: E501 @@ -2949,7 +2937,7 @@ def list_team_names_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List teams names # noqa: E501 @@ -3122,7 +3110,7 @@ def list_teams( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTeamsResponse: # noqa: E501 """List teams # noqa: E501 @@ -3189,7 +3177,7 @@ def list_teams_with_http_info( Optional[StrictStr], Field(description="Mode of the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List teams # noqa: E501 @@ -3347,7 +3335,7 @@ def patch_team( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name: Annotated[StrictStr, Field(..., description="Name")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1Team: # noqa: E501 """Patch team # noqa: E501 @@ -3379,9 +3367,7 @@ def patch_team( :rtype: V1Team """ kwargs["_return_http_data_only"] = True - return self.patch_team_with_http_info( - owner, team_name, body, **kwargs - ) # noqa: E501 + return self.patch_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501 @validate_call def patch_team_with_http_info( @@ -3389,7 +3375,7 @@ def patch_team_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name: Annotated[StrictStr, Field(..., description="Name")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch team # noqa: E501 @@ -3527,7 +3513,7 @@ def patch_team_member( team: Annotated[StrictStr, Field(..., description="Team")], member_user: Annotated[StrictStr, Field(..., description="User")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1TeamMember: # noqa: E501 """Patch team member # noqa: E501 @@ -3572,7 +3558,7 @@ def patch_team_member_with_http_info( team: Annotated[StrictStr, Field(..., description="Team")], member_user: Annotated[StrictStr, Field(..., description="User")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch team member # noqa: E501 @@ -3713,7 +3699,7 @@ def restore_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Restore cross-project runs selection # noqa: E501 @@ -3745,9 +3731,7 @@ def restore_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.restore_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.restore_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def restore_team_runs_with_http_info( @@ -3755,7 +3739,7 @@ def restore_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Restore cross-project runs selection # noqa: E501 @@ -3885,7 +3869,7 @@ def skip_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Skip cross-project runs selection # noqa: E501 @@ -3917,9 +3901,7 @@ def skip_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.skip_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.skip_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def skip_team_runs_with_http_info( @@ -3927,7 +3909,7 @@ def skip_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Skip cross-project runs selection # noqa: E501 @@ -4057,7 +4039,7 @@ def stop_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Stop cross-project runs selection # noqa: E501 @@ -4089,9 +4071,7 @@ def stop_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.stop_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.stop_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def stop_team_runs_with_http_info( @@ -4099,7 +4079,7 @@ def stop_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")], - **kwargs + **kwargs, ): # noqa: E501 """Stop cross-project runs selection # noqa: E501 @@ -4229,7 +4209,7 @@ def tag_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Tag cross-project runs selection # noqa: E501 @@ -4261,9 +4241,7 @@ def tag_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.tag_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.tag_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def tag_team_runs_with_http_info( @@ -4271,7 +4249,7 @@ def tag_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTags, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Tag cross-project runs selection # noqa: E501 @@ -4401,7 +4379,7 @@ def transfer_team_runs( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Transfer cross-project runs selection to a new project # noqa: E501 @@ -4433,9 +4411,7 @@ def transfer_team_runs( :rtype: None """ kwargs["_return_http_data_only"] = True - return self.transfer_team_runs_with_http_info( - owner, name, body, **kwargs - ) # noqa: E501 + return self.transfer_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501 @validate_call def transfer_team_runs_with_http_info( @@ -4443,7 +4419,7 @@ def transfer_team_runs_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], name: Annotated[StrictStr, Field(..., description="Entity under namespace")], body: Annotated[V1EntitiesTransfer, Field(..., description="Data")], - **kwargs + **kwargs, ): # noqa: E501 """Transfer cross-project runs selection to a new project # noqa: E501 @@ -4573,7 +4549,7 @@ def update_team( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name: Annotated[StrictStr, Field(..., description="Name")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1Team: # noqa: E501 """Update team # noqa: E501 @@ -4605,9 +4581,7 @@ def update_team( :rtype: V1Team """ kwargs["_return_http_data_only"] = True - return self.update_team_with_http_info( - owner, team_name, body, **kwargs - ) # noqa: E501 + return self.update_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501 @validate_call def update_team_with_http_info( @@ -4615,7 +4589,7 @@ def update_team_with_http_info( owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name: Annotated[StrictStr, Field(..., description="Name")], body: Annotated[V1Team, Field(..., description="Team body")], - **kwargs + **kwargs, ): # noqa: E501 """Update team # noqa: E501 @@ -4753,7 +4727,7 @@ def update_team_member( team: Annotated[StrictStr, Field(..., description="Team")], member_user: Annotated[StrictStr, Field(..., description="User")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ) -> V1TeamMember: # noqa: E501 """Update team member # noqa: E501 @@ -4798,7 +4772,7 @@ def update_team_member_with_http_info( team: Annotated[StrictStr, Field(..., description="Team")], member_user: Annotated[StrictStr, Field(..., description="User")], body: Annotated[V1TeamMember, Field(..., description="Team body")], - **kwargs + **kwargs, ): # noqa: E501 """Update team member # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/users_v1_api.py b/cli/polyaxon/_sdk/api/users_v1_api.py index 33834b14..674d4cff 100644 --- a/cli/polyaxon/_sdk/api/users_v1_api.py +++ b/cli/polyaxon/_sdk/api/users_v1_api.py @@ -170,7 +170,7 @@ def create_token_with_http_info( def delete_token( self, uuid: Annotated[StrictStr, Field(..., description="UUid of the namespace")], - **kwargs + **kwargs, ) -> None: # noqa: E501 """Delete token # noqa: E501 @@ -204,7 +204,7 @@ def delete_token( def delete_token_with_http_info( self, uuid: Annotated[StrictStr, Field(..., description="UUid of the namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Delete token # noqa: E501 @@ -324,7 +324,7 @@ def get_history( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListActivitiesResponse: # noqa: E501 """User History # noqa: E501 @@ -378,7 +378,7 @@ def get_history_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """User History # noqa: E501 @@ -524,7 +524,7 @@ def get_suggestions( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """User suggestions # noqa: E501 @@ -578,7 +578,7 @@ def get_suggestions_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """User suggestions # noqa: E501 @@ -714,7 +714,7 @@ def get_suggestions_with_http_info( def get_token( self, uuid: Annotated[StrictStr, Field(..., description="UUid of the namespace")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Get token # noqa: E501 @@ -748,7 +748,7 @@ def get_token( def get_token_with_http_info( self, uuid: Annotated[StrictStr, Field(..., description="UUid of the namespace")], - **kwargs + **kwargs, ): # noqa: E501 """Get token # noqa: E501 @@ -1008,7 +1008,7 @@ def get_workspaces( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> object: # noqa: E501 """User workspaces # noqa: E501 @@ -1062,7 +1062,7 @@ def get_workspaces_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """User workspaces # noqa: E501 @@ -1208,7 +1208,7 @@ def list_tokens( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ) -> V1ListTokenResponse: # noqa: E501 """List tokens # noqa: E501 @@ -1262,7 +1262,7 @@ def list_tokens_with_http_info( Optional[StrictStr], Field(description="Query filter the search.") ] = None, no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None, - **kwargs + **kwargs, ): # noqa: E501 """List tokens # noqa: E501 @@ -1399,7 +1399,7 @@ def patch_token( self, token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Patch token # noqa: E501 @@ -1436,7 +1436,7 @@ def patch_token_with_http_info( self, token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Patch token # noqa: E501 @@ -1715,7 +1715,7 @@ def update_token( self, token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ) -> V1Token: # noqa: E501 """Update token # noqa: E501 @@ -1745,16 +1745,14 @@ def update_token( :rtype: V1Token """ kwargs["_return_http_data_only"] = True - return self.update_token_with_http_info( - token_uuid, body, **kwargs - ) # noqa: E501 + return self.update_token_with_http_info(token_uuid, body, **kwargs) # noqa: E501 @validate_call def update_token_with_http_info( self, token_uuid: Annotated[StrictStr, Field(..., description="UUID")], body: Annotated[V1Token, Field(..., description="Token body")], - **kwargs + **kwargs, ): # noqa: E501 """Update token # noqa: E501 diff --git a/cli/polyaxon/_sdk/api/versions_v1_api.py b/cli/polyaxon/_sdk/api/versions_v1_api.py index 8170e487..b55cff28 100644 --- a/cli/polyaxon/_sdk/api/versions_v1_api.py +++ b/cli/polyaxon/_sdk/api/versions_v1_api.py @@ -17,7 +17,7 @@ def get_compatibility( uuid: Annotated[StrictStr, Field(..., description="UUid")], version: Annotated[StrictStr, Field(..., description="Version")], service: Annotated[StrictStr, Field(..., description="Service")], - **kwargs + **kwargs, ) -> V1Compatibility: """Get compatibility versions @@ -57,7 +57,7 @@ def get_compatibility_with_http_info( uuid: Annotated[StrictStr, Field(..., description="UUid")], version: Annotated[StrictStr, Field(..., description="Version")], service: Annotated[StrictStr, Field(..., description="Service")], - **kwargs + **kwargs, ): """Get compatibility versions @@ -184,7 +184,7 @@ def get_compatibility_with_http_info( def get_installation( self, auth: Annotated[Optional[bool], Field(description="auth.")] = None, - **kwargs + **kwargs, ) -> V1Installation: """Get installation versions @@ -218,7 +218,7 @@ def get_installation( def get_installation_with_http_info( self, auth: Annotated[Optional[bool], Field(description="auth.")] = None, - **kwargs + **kwargs, ): """Get installation versions diff --git a/cli/polyaxon/_sdk/async_client/rest.py b/cli/polyaxon/_sdk/async_client/rest.py index 3553b46b..6f066526 100644 --- a/cli/polyaxon/_sdk/async_client/rest.py +++ b/cli/polyaxon/_sdk/async_client/rest.py @@ -129,9 +129,7 @@ async def request( if body is not None: body = orjson_dumps(body) args["data"] = body - elif ( - headers["Content-Type"] == "application/x-www-form-urlencoded" - ): # noqa: E501 + elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 args["data"] = aiohttp.FormData(post_params) elif headers["Content-Type"] == "multipart/form-data": # must del headers['Content-Type'], or the correct diff --git a/cli/polyaxon/_sdk/schemas/v1_section_spec.py b/cli/polyaxon/_sdk/schemas/v1_section_spec.py index e3c81415..f818cdbd 100644 --- a/cli/polyaxon/_sdk/schemas/v1_section_spec.py +++ b/cli/polyaxon/_sdk/schemas/v1_section_spec.py @@ -1,6 +1,6 @@ from typing import Any, Dict, List, Optional -from clipped.compact.pydantic import Field, StrictStr +from clipped.compact.pydantic import StrictStr from clipped.config.schema import BaseAllowSchemaModel diff --git a/cli/polyaxon/_sdk/sync_client/api_client.py b/cli/polyaxon/_sdk/sync_client/api_client.py index 5df86341..4acfb9ce 100644 --- a/cli/polyaxon/_sdk/sync_client/api_client.py +++ b/cli/polyaxon/_sdk/sync_client/api_client.py @@ -556,9 +556,7 @@ def parameters_to_tuples(self, params, collection_formats): new_params = [] if collection_formats is None: collection_formats = {} - for k, v in ( - params.items() if isinstance(params, dict) else params - ): # noqa: E501 + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": @@ -587,9 +585,7 @@ def parameters_to_url_query(self, params, collection_formats): new_params = [] if collection_formats is None: collection_formats = {} - for k, v in ( - params.items() if isinstance(params, dict) else params - ): # noqa: E501 + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 if isinstance(v, (int, float)): v = str(v) if isinstance(v, bool): diff --git a/cli/polyaxon/_sdk/sync_client/rest.py b/cli/polyaxon/_sdk/sync_client/rest.py index 912dfb95..0858576f 100644 --- a/cli/polyaxon/_sdk/sync_client/rest.py +++ b/cli/polyaxon/_sdk/sync_client/rest.py @@ -51,9 +51,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args[ - "assert_hostname" - ] = configuration.assert_hostname # noqa: E501 + addition_pool_args["assert_hostname"] = configuration.assert_hostname # noqa: E501 if configuration.retries is not None: addition_pool_args["retries"] = configuration.retries @@ -78,7 +76,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): key_file=configuration.key_file, proxy_url=configuration.proxy, proxy_headers=configuration.proxy_headers, - **addition_pool_args + **addition_pool_args, ) else: self.pool_manager = urllib3.PoolManager( @@ -88,7 +86,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): ca_certs=configuration.ssl_ca_cert, cert_file=configuration.cert_file, key_file=configuration.key_file, - **addition_pool_args + **addition_pool_args, ) def request( @@ -161,9 +159,7 @@ def request( timeout=timeout, headers=headers, ) - elif ( - headers["Content-Type"] == "application/x-www-form-urlencoded" - ): # noqa: E501 + elif headers["Content-Type"] == "application/x-www-form-urlencoded": # noqa: E501 r = self.pool_manager.request( method, url, diff --git a/cli/tests/test_docker/test_converters/test_base/test_init/test_init_store.py b/cli/tests/test_docker/test_converters/test_base/test_init/test_init_store.py index 19ad4c79..4115e694 100644 --- a/cli/tests/test_docker/test_converters/test_base/test_init/test_init_store.py +++ b/cli/tests/test_docker/test_converters/test_base/test_init/test_init_store.py @@ -1,6 +1,6 @@ import pytest -from polyaxon._auxiliaries import V1PolyaxonInitContainer, get_init_resources +from polyaxon._auxiliaries import V1PolyaxonInitContainer from polyaxon._connections import ( V1BucketConnection, V1ClaimConnection, diff --git a/cli/tests/test_docker/test_converters/test_base/test_init/test_init_tensorboard.py b/cli/tests/test_docker/test_converters/test_base/test_init/test_init_tensorboard.py index b02f59db..16d9eb60 100644 --- a/cli/tests/test_docker/test_converters/test_base/test_init/test_init_tensorboard.py +++ b/cli/tests/test_docker/test_converters/test_base/test_init/test_init_tensorboard.py @@ -3,7 +3,7 @@ from clipped.compact.pydantic import ValidationError -from polyaxon._auxiliaries import V1PolyaxonInitContainer, get_init_resources +from polyaxon._auxiliaries import V1PolyaxonInitContainer from polyaxon._connections import ( V1BucketConnection, V1ClaimConnection, diff --git a/cli/tests/test_fixtures/test_backfill.py b/cli/tests/test_fixtures/test_backfill.py index a6ac26d1..2b730eae 100644 --- a/cli/tests/test_fixtures/test_backfill.py +++ b/cli/tests/test_fixtures/test_backfill.py @@ -1,6 +1,6 @@ import pytest -from polyaxon._flow import V1HpDateRange, V1Operation +from polyaxon._flow import V1Operation from polyaxon._utils.fixtures.backfill import get_fxt_backfill_with_inputs_outputs from polyaxon._utils.test_utils import BaseTestCase diff --git a/cli/tests/test_k8s/test_converters/test_base/test_main/test_main_env_vars.py b/cli/tests/test_k8s/test_converters/test_base/test_main/test_main_env_vars.py index b51a9796..e86ec888 100644 --- a/cli/tests/test_k8s/test_converters/test_base/test_main/test_main_env_vars.py +++ b/cli/tests/test_k8s/test_converters/test_base/test_main/test_main_env_vars.py @@ -216,9 +216,7 @@ def test_get_env_vars_with_secrets(self): config_maps=None, ) == base_env + self.converter._get_items_from_secret( secret=self.resource1 - ) + self.converter._get_items_from_secret( - secret=self.resource2 - ) + ) + self.converter._get_items_from_secret(secret=self.resource2) assert self.converter._get_main_env_vars( plugins=None, @@ -238,9 +236,7 @@ def test_get_env_vars_with_secrets(self): secret=self.resource2 ) + self.converter._get_items_from_secret( secret=self.resource3 - ) + self.converter._get_items_from_secret( - secret=self.resource4 - ) + ) + self.converter._get_items_from_secret(secret=self.resource4) def test_get_env_vars_with_config_maps(self): base_env = self.converter._get_service_env_vars( @@ -257,9 +253,7 @@ def test_get_env_vars_with_config_maps(self): config_maps=[self.resource1, self.resource2], ) == base_env + self.converter._get_items_from_config_map( config_map=self.resource1 - ) + self.converter._get_items_from_config_map( - config_map=self.resource2 - ) + ) + self.converter._get_items_from_config_map(config_map=self.resource2) assert self.converter._get_main_env_vars( plugins=None, @@ -279,9 +273,7 @@ def test_get_env_vars_with_config_maps(self): config_map=self.resource2 ) + self.converter._get_items_from_config_map( config_map=self.resource3 - ) + self.converter._get_items_from_config_map( - config_map=self.resource4 - ) + ) + self.converter._get_items_from_config_map(config_map=self.resource4) def test_get_env_vars_with_all(self): connection = V1Connection( diff --git a/cli/tests/test_k8s/test_converters/test_base/test_sidecar/test_sidecar_container.py b/cli/tests/test_k8s/test_converters/test_base/test_sidecar/test_sidecar_container.py index 89843786..f4b8c87f 100644 --- a/cli/tests/test_k8s/test_converters/test_base/test_sidecar/test_sidecar_container.py +++ b/cli/tests/test_k8s/test_converters/test_base/test_sidecar/test_sidecar_container.py @@ -245,9 +245,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_se artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -294,9 +292,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_se artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -340,9 +336,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_se artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -407,9 +401,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_mount_ artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -457,9 +449,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_mount_ artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -504,9 +494,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_mount_ artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -567,9 +555,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_fr artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -618,9 +604,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_fr artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) @@ -666,9 +650,7 @@ def test_get_sidecar_container_with_managed_bucket_outputs_logs_store_and_env_fr artifacts_store_name=bucket_managed_store.name, ) + self.converter._get_items_from_secret( secret=resource1 - ) + self.converter._get_connection_env_var( - connection=bucket_managed_store - ) + [ + ) + self.converter._get_connection_env_var(connection=bucket_managed_store) + [ self.converter._get_connections_catalog_env_var( connections=[bucket_managed_store] ) diff --git a/cli/tests/test_k8s/test_converters/test_common/test_annotations.py b/cli/tests/test_k8s/test_converters/test_common/test_annotations.py index 61bcb396..f36cd3e8 100644 --- a/cli/tests/test_k8s/test_converters/test_common/test_annotations.py +++ b/cli/tests/test_k8s/test_converters/test_common/test_annotations.py @@ -99,5 +99,5 @@ def test_get_annotations_from_connection(self): **store.annotations, **init_conn.annotations, **conn1.annotations, - **conn2.annotations + **conn2.annotations, ) diff --git a/cli/tests/test_polyaxonfile/test_polyaxonfile_typing.py b/cli/tests/test_polyaxonfile/test_polyaxonfile_typing.py index 344cfeea..26632582 100644 --- a/cli/tests/test_polyaxonfile/test_polyaxonfile_typing.py +++ b/cli/tests/test_polyaxonfile/test_polyaxonfile_typing.py @@ -1,8 +1,6 @@ import os import pytest -from clipped.compact.pydantic import ValidationError - from polyaxon._flow import V1CompiledOperation, V1Hyperband from polyaxon._flow.io import V1IO from polyaxon._flow.matrix import V1GridSearch diff --git a/cli/tests/test_polyflow/test_io/test_io.py b/cli/tests/test_polyflow/test_io/test_io.py index 26a60c74..c59c0fc7 100644 --- a/cli/tests/test_polyflow/test_io/test_io.py +++ b/cli/tests/test_polyflow/test_io/test_io.py @@ -1,15 +1,12 @@ import pytest -import uuid from collections import OrderedDict from clipped.compact.pydantic import ValidationError from clipped.utils.assertions import assert_equal_dict -from clipped.utils.json import orjson_dumps from polyaxon import types from polyaxon._flow.io import V1IO -from polyaxon._flow.params import ParamSpec, V1Param from polyaxon._utils.test_utils import BaseTestCase from polyaxon.exceptions import PolyaxonValidationError diff --git a/cli/tests/test_polyflow/test_io/test_io_transforms.py b/cli/tests/test_polyflow/test_io/test_io_transforms.py index a4796736..72c31687 100644 --- a/cli/tests/test_polyflow/test_io/test_io_transforms.py +++ b/cli/tests/test_polyflow/test_io/test_io_transforms.py @@ -1,14 +1,9 @@ import pytest import uuid -from collections import OrderedDict - -from clipped.compact.pydantic import ValidationError -from clipped.utils.assertions import assert_equal_dict from clipped.utils.json import orjson_dumps from polyaxon import types -from polyaxon._flow.io import V1IO from polyaxon._flow.params import ParamSpec, V1Param from polyaxon._utils.test_utils import BaseTestCase from polyaxon.exceptions import PolyaxonValidationError