polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon_sdk/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,29 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
27
|
-
"""
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
28
11
|
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
29
14
|
|
30
|
-
from __future__ import absolute_import
|
31
15
|
|
32
16
|
import re # noqa: F401
|
33
17
|
|
34
|
-
|
35
|
-
import
|
18
|
+
from pydantic import validate_arguments, ValidationError
|
19
|
+
from typing_extensions import Annotated
|
20
|
+
|
21
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
22
|
+
|
23
|
+
from typing import Optional
|
24
|
+
|
25
|
+
from polyaxon_sdk.models.v1_list_searches_response import V1ListSearchesResponse
|
26
|
+
from polyaxon_sdk.models.v1_search import V1Search
|
36
27
|
|
37
28
|
from polyaxon_sdk.api_client import ApiClient
|
38
29
|
from polyaxon_sdk.exceptions import ( # noqa: F401
|
@@ -50,10 +41,11 @@ class ProjectSearchesV1Api(object):
|
|
50
41
|
|
51
42
|
def __init__(self, api_client=None):
|
52
43
|
if api_client is None:
|
53
|
-
api_client = ApiClient()
|
44
|
+
api_client = ApiClient.get_default()
|
54
45
|
self.api_client = api_client
|
55
46
|
|
56
|
-
|
47
|
+
@validate_arguments
|
48
|
+
def create_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
|
57
49
|
"""Create project search # noqa: E501
|
58
50
|
|
59
51
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -86,7 +78,8 @@ class ProjectSearchesV1Api(object):
|
|
86
78
|
kwargs['_return_http_data_only'] = True
|
87
79
|
return self.create_project_search_with_http_info(owner, project, body, **kwargs) # noqa: E501
|
88
80
|
|
89
|
-
|
81
|
+
@validate_arguments
|
82
|
+
def create_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
|
90
83
|
"""Create project search # noqa: E501
|
91
84
|
|
92
85
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -118,104 +111,105 @@ class ProjectSearchesV1Api(object):
|
|
118
111
|
request; this effectively ignores the authentication
|
119
112
|
in the spec for a single request.
|
120
113
|
:type _request_auth: dict, optional
|
114
|
+
:type _content_type: string, optional: force content-type for the request
|
121
115
|
:return: Returns the result object.
|
122
116
|
If the method is called asynchronously,
|
123
117
|
returns the request thread.
|
124
118
|
:rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
|
125
119
|
"""
|
126
120
|
|
127
|
-
|
121
|
+
_params = locals()
|
128
122
|
|
129
|
-
|
123
|
+
_all_params = [
|
130
124
|
'owner',
|
131
125
|
'project',
|
132
126
|
'body'
|
133
127
|
]
|
134
|
-
|
128
|
+
_all_params.extend(
|
135
129
|
[
|
136
130
|
'async_req',
|
137
131
|
'_return_http_data_only',
|
138
132
|
'_preload_content',
|
139
133
|
'_request_timeout',
|
140
|
-
'_request_auth'
|
134
|
+
'_request_auth',
|
135
|
+
'_content_type',
|
136
|
+
'_headers'
|
141
137
|
]
|
142
138
|
)
|
143
139
|
|
144
|
-
|
145
|
-
|
140
|
+
# validate the arguments
|
141
|
+
for _key, _val in _params['kwargs'].items():
|
142
|
+
if _key not in _all_params:
|
146
143
|
raise ApiTypeError(
|
147
144
|
"Got an unexpected keyword argument '%s'"
|
148
|
-
" to method create_project_search" %
|
145
|
+
" to method create_project_search" % _key
|
149
146
|
)
|
150
|
-
|
151
|
-
del
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
if
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
local_var_files = {}
|
179
|
-
|
180
|
-
body_params = None
|
181
|
-
if 'body' in local_var_params:
|
182
|
-
body_params = local_var_params['body']
|
183
|
-
# HTTP header `Accept`
|
184
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
147
|
+
_params[_key] = _val
|
148
|
+
del _params['kwargs']
|
149
|
+
|
150
|
+
_collection_formats = {}
|
151
|
+
|
152
|
+
# process the path parameters
|
153
|
+
_path_params = {}
|
154
|
+
if _params['owner']:
|
155
|
+
_path_params['owner'] = _params['owner']
|
156
|
+
|
157
|
+
if _params['project']:
|
158
|
+
_path_params['project'] = _params['project']
|
159
|
+
|
160
|
+
|
161
|
+
# process the query parameters
|
162
|
+
_query_params = []
|
163
|
+
# process the header parameters
|
164
|
+
_header_params = dict(_params.get('_headers', {}))
|
165
|
+
# process the form parameters
|
166
|
+
_form_params = []
|
167
|
+
_files = {}
|
168
|
+
# process the body parameter
|
169
|
+
_body_params = None
|
170
|
+
if _params['body']:
|
171
|
+
_body_params = _params['body']
|
172
|
+
|
173
|
+
# set the HTTP header `Accept`
|
174
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
185
175
|
['application/json']) # noqa: E501
|
186
176
|
|
187
|
-
# HTTP header `Content-Type`
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
177
|
+
# set the HTTP header `Content-Type`
|
178
|
+
_content_types_list = _params.get('_content_type',
|
179
|
+
self.api_client.select_header_content_type(
|
180
|
+
['application/json']))
|
181
|
+
if _content_types_list:
|
182
|
+
_header_params['Content-Type'] = _content_types_list
|
183
|
+
|
184
|
+
# authentication setting
|
185
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
186
|
+
|
187
|
+
_response_types_map = {
|
188
|
+
'200': "V1Search",
|
189
|
+
'204': "object",
|
190
|
+
'403': "object",
|
191
|
+
'404': "object",
|
199
192
|
}
|
200
193
|
|
201
194
|
return self.api_client.call_api(
|
202
195
|
'/api/v1/{owner}/{project}/searches', 'POST',
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
body=
|
207
|
-
post_params=
|
208
|
-
files=
|
209
|
-
response_types_map=
|
210
|
-
auth_settings=
|
211
|
-
async_req=
|
212
|
-
_return_http_data_only=
|
213
|
-
_preload_content=
|
214
|
-
_request_timeout=
|
215
|
-
collection_formats=
|
216
|
-
_request_auth=
|
217
|
-
|
218
|
-
|
196
|
+
_path_params,
|
197
|
+
_query_params,
|
198
|
+
_header_params,
|
199
|
+
body=_body_params,
|
200
|
+
post_params=_form_params,
|
201
|
+
files=_files,
|
202
|
+
response_types_map=_response_types_map,
|
203
|
+
auth_settings=_auth_settings,
|
204
|
+
async_req=_params.get('async_req'),
|
205
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
206
|
+
_preload_content=_params.get('_preload_content', True),
|
207
|
+
_request_timeout=_params.get('_request_timeout'),
|
208
|
+
collection_formats=_collection_formats,
|
209
|
+
_request_auth=_params.get('_request_auth'))
|
210
|
+
|
211
|
+
@validate_arguments
|
212
|
+
def delete_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> None: # noqa: E501
|
219
213
|
"""Delete project search # noqa: E501
|
220
214
|
|
221
215
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -248,7 +242,8 @@ class ProjectSearchesV1Api(object):
|
|
248
242
|
kwargs['_return_http_data_only'] = True
|
249
243
|
return self.delete_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
250
244
|
|
251
|
-
|
245
|
+
@validate_arguments
|
246
|
+
def delete_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
252
247
|
"""Delete project search # noqa: E501
|
253
248
|
|
254
249
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -280,95 +275,93 @@ class ProjectSearchesV1Api(object):
|
|
280
275
|
request; this effectively ignores the authentication
|
281
276
|
in the spec for a single request.
|
282
277
|
:type _request_auth: dict, optional
|
278
|
+
:type _content_type: string, optional: force content-type for the request
|
283
279
|
:return: Returns the result object.
|
284
280
|
If the method is called asynchronously,
|
285
281
|
returns the request thread.
|
286
282
|
:rtype: None
|
287
283
|
"""
|
288
284
|
|
289
|
-
|
285
|
+
_params = locals()
|
290
286
|
|
291
|
-
|
287
|
+
_all_params = [
|
292
288
|
'owner',
|
293
289
|
'entity',
|
294
290
|
'uuid'
|
295
291
|
]
|
296
|
-
|
292
|
+
_all_params.extend(
|
297
293
|
[
|
298
294
|
'async_req',
|
299
295
|
'_return_http_data_only',
|
300
296
|
'_preload_content',
|
301
297
|
'_request_timeout',
|
302
|
-
'_request_auth'
|
298
|
+
'_request_auth',
|
299
|
+
'_content_type',
|
300
|
+
'_headers'
|
303
301
|
]
|
304
302
|
)
|
305
303
|
|
306
|
-
|
307
|
-
|
304
|
+
# validate the arguments
|
305
|
+
for _key, _val in _params['kwargs'].items():
|
306
|
+
if _key not in _all_params:
|
308
307
|
raise ApiTypeError(
|
309
308
|
"Got an unexpected keyword argument '%s'"
|
310
|
-
" to method delete_project_search" %
|
309
|
+
" to method delete_project_search" % _key
|
311
310
|
)
|
312
|
-
|
313
|
-
del
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
if
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
form_params = []
|
342
|
-
local_var_files = {}
|
343
|
-
|
344
|
-
body_params = None
|
345
|
-
# HTTP header `Accept`
|
346
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
311
|
+
_params[_key] = _val
|
312
|
+
del _params['kwargs']
|
313
|
+
|
314
|
+
_collection_formats = {}
|
315
|
+
|
316
|
+
# process the path parameters
|
317
|
+
_path_params = {}
|
318
|
+
if _params['owner']:
|
319
|
+
_path_params['owner'] = _params['owner']
|
320
|
+
|
321
|
+
if _params['entity']:
|
322
|
+
_path_params['entity'] = _params['entity']
|
323
|
+
|
324
|
+
if _params['uuid']:
|
325
|
+
_path_params['uuid'] = _params['uuid']
|
326
|
+
|
327
|
+
|
328
|
+
# process the query parameters
|
329
|
+
_query_params = []
|
330
|
+
# process the header parameters
|
331
|
+
_header_params = dict(_params.get('_headers', {}))
|
332
|
+
# process the form parameters
|
333
|
+
_form_params = []
|
334
|
+
_files = {}
|
335
|
+
# process the body parameter
|
336
|
+
_body_params = None
|
337
|
+
# set the HTTP header `Accept`
|
338
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
347
339
|
['application/json']) # noqa: E501
|
348
340
|
|
349
|
-
#
|
350
|
-
|
341
|
+
# authentication setting
|
342
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
351
343
|
|
352
|
-
|
344
|
+
_response_types_map = {}
|
353
345
|
|
354
346
|
return self.api_client.call_api(
|
355
347
|
'/api/v1/{owner}/{entity}/searches/{uuid}', 'DELETE',
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
body=
|
360
|
-
post_params=
|
361
|
-
files=
|
362
|
-
response_types_map=
|
363
|
-
auth_settings=
|
364
|
-
async_req=
|
365
|
-
_return_http_data_only=
|
366
|
-
_preload_content=
|
367
|
-
_request_timeout=
|
368
|
-
collection_formats=
|
369
|
-
_request_auth=
|
370
|
-
|
371
|
-
|
348
|
+
_path_params,
|
349
|
+
_query_params,
|
350
|
+
_header_params,
|
351
|
+
body=_body_params,
|
352
|
+
post_params=_form_params,
|
353
|
+
files=_files,
|
354
|
+
response_types_map=_response_types_map,
|
355
|
+
auth_settings=_auth_settings,
|
356
|
+
async_req=_params.get('async_req'),
|
357
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
358
|
+
_preload_content=_params.get('_preload_content', True),
|
359
|
+
_request_timeout=_params.get('_request_timeout'),
|
360
|
+
collection_formats=_collection_formats,
|
361
|
+
_request_auth=_params.get('_request_auth'))
|
362
|
+
|
363
|
+
@validate_arguments
|
364
|
+
def get_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> V1Search: # noqa: E501
|
372
365
|
"""Get project search # noqa: E501
|
373
366
|
|
374
367
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -401,7 +394,8 @@ class ProjectSearchesV1Api(object):
|
|
401
394
|
kwargs['_return_http_data_only'] = True
|
402
395
|
return self.get_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
403
396
|
|
404
|
-
|
397
|
+
@validate_arguments
|
398
|
+
def get_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
405
399
|
"""Get project search # noqa: E501
|
406
400
|
|
407
401
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -433,106 +427,104 @@ class ProjectSearchesV1Api(object):
|
|
433
427
|
request; this effectively ignores the authentication
|
434
428
|
in the spec for a single request.
|
435
429
|
:type _request_auth: dict, optional
|
430
|
+
:type _content_type: string, optional: force content-type for the request
|
436
431
|
:return: Returns the result object.
|
437
432
|
If the method is called asynchronously,
|
438
433
|
returns the request thread.
|
439
434
|
:rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
|
440
435
|
"""
|
441
436
|
|
442
|
-
|
437
|
+
_params = locals()
|
443
438
|
|
444
|
-
|
439
|
+
_all_params = [
|
445
440
|
'owner',
|
446
441
|
'entity',
|
447
442
|
'uuid'
|
448
443
|
]
|
449
|
-
|
444
|
+
_all_params.extend(
|
450
445
|
[
|
451
446
|
'async_req',
|
452
447
|
'_return_http_data_only',
|
453
448
|
'_preload_content',
|
454
449
|
'_request_timeout',
|
455
|
-
'_request_auth'
|
450
|
+
'_request_auth',
|
451
|
+
'_content_type',
|
452
|
+
'_headers'
|
456
453
|
]
|
457
454
|
)
|
458
455
|
|
459
|
-
|
460
|
-
|
456
|
+
# validate the arguments
|
457
|
+
for _key, _val in _params['kwargs'].items():
|
458
|
+
if _key not in _all_params:
|
461
459
|
raise ApiTypeError(
|
462
460
|
"Got an unexpected keyword argument '%s'"
|
463
|
-
" to method get_project_search" %
|
461
|
+
" to method get_project_search" % _key
|
464
462
|
)
|
465
|
-
|
466
|
-
del
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
if
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
form_params = []
|
495
|
-
local_var_files = {}
|
496
|
-
|
497
|
-
body_params = None
|
498
|
-
# HTTP header `Accept`
|
499
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
463
|
+
_params[_key] = _val
|
464
|
+
del _params['kwargs']
|
465
|
+
|
466
|
+
_collection_formats = {}
|
467
|
+
|
468
|
+
# process the path parameters
|
469
|
+
_path_params = {}
|
470
|
+
if _params['owner']:
|
471
|
+
_path_params['owner'] = _params['owner']
|
472
|
+
|
473
|
+
if _params['entity']:
|
474
|
+
_path_params['entity'] = _params['entity']
|
475
|
+
|
476
|
+
if _params['uuid']:
|
477
|
+
_path_params['uuid'] = _params['uuid']
|
478
|
+
|
479
|
+
|
480
|
+
# process the query parameters
|
481
|
+
_query_params = []
|
482
|
+
# process the header parameters
|
483
|
+
_header_params = dict(_params.get('_headers', {}))
|
484
|
+
# process the form parameters
|
485
|
+
_form_params = []
|
486
|
+
_files = {}
|
487
|
+
# process the body parameter
|
488
|
+
_body_params = None
|
489
|
+
# set the HTTP header `Accept`
|
490
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
500
491
|
['application/json']) # noqa: E501
|
501
492
|
|
502
|
-
#
|
503
|
-
|
493
|
+
# authentication setting
|
494
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
504
495
|
|
505
|
-
|
506
|
-
200: "V1Search",
|
507
|
-
204: "object",
|
508
|
-
403: "object",
|
509
|
-
404: "object",
|
496
|
+
_response_types_map = {
|
497
|
+
'200': "V1Search",
|
498
|
+
'204': "object",
|
499
|
+
'403': "object",
|
500
|
+
'404': "object",
|
510
501
|
}
|
511
502
|
|
512
503
|
return self.api_client.call_api(
|
513
504
|
'/api/v1/{owner}/{entity}/searches/{uuid}', 'GET',
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
body=
|
518
|
-
post_params=
|
519
|
-
files=
|
520
|
-
response_types_map=
|
521
|
-
auth_settings=
|
522
|
-
async_req=
|
523
|
-
_return_http_data_only=
|
524
|
-
_preload_content=
|
525
|
-
_request_timeout=
|
526
|
-
collection_formats=
|
527
|
-
_request_auth=
|
528
|
-
|
529
|
-
|
505
|
+
_path_params,
|
506
|
+
_query_params,
|
507
|
+
_header_params,
|
508
|
+
body=_body_params,
|
509
|
+
post_params=_form_params,
|
510
|
+
files=_files,
|
511
|
+
response_types_map=_response_types_map,
|
512
|
+
auth_settings=_auth_settings,
|
513
|
+
async_req=_params.get('async_req'),
|
514
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
515
|
+
_preload_content=_params.get('_preload_content', True),
|
516
|
+
_request_timeout=_params.get('_request_timeout'),
|
517
|
+
collection_formats=_collection_formats,
|
518
|
+
_request_auth=_params.get('_request_auth'))
|
519
|
+
|
520
|
+
@validate_arguments
|
521
|
+
def list_project_search_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListSearchesResponse: # noqa: E501
|
530
522
|
"""List project search names # noqa: E501
|
531
523
|
|
532
524
|
This method makes a synchronous HTTP request by default. To make an
|
533
525
|
asynchronous HTTP request, please pass async_req=True
|
534
526
|
|
535
|
-
>>> thread = api.list_project_search_names(owner, name, async_req=True)
|
527
|
+
>>> thread = api.list_project_search_names(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
536
528
|
>>> result = thread.get()
|
537
529
|
|
538
530
|
:param owner: Owner of the namespace (required)
|
@@ -569,15 +561,16 @@ class ProjectSearchesV1Api(object):
|
|
569
561
|
:rtype: V1ListSearchesResponse
|
570
562
|
"""
|
571
563
|
kwargs['_return_http_data_only'] = True
|
572
|
-
return self.list_project_search_names_with_http_info(owner, name, **kwargs) # noqa: E501
|
564
|
+
return self.list_project_search_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
573
565
|
|
574
|
-
|
566
|
+
@validate_arguments
|
567
|
+
def list_project_search_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
575
568
|
"""List project search names # noqa: E501
|
576
569
|
|
577
570
|
This method makes a synchronous HTTP request by default. To make an
|
578
571
|
asynchronous HTTP request, please pass async_req=True
|
579
572
|
|
580
|
-
>>> thread = api.list_project_search_names_with_http_info(owner, name, async_req=True)
|
573
|
+
>>> thread = api.list_project_search_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
581
574
|
>>> result = thread.get()
|
582
575
|
|
583
576
|
:param owner: Owner of the namespace (required)
|
@@ -615,15 +608,16 @@ class ProjectSearchesV1Api(object):
|
|
615
608
|
request; this effectively ignores the authentication
|
616
609
|
in the spec for a single request.
|
617
610
|
:type _request_auth: dict, optional
|
611
|
+
:type _content_type: string, optional: force content-type for the request
|
618
612
|
:return: Returns the result object.
|
619
613
|
If the method is called asynchronously,
|
620
614
|
returns the request thread.
|
621
615
|
:rtype: tuple(V1ListSearchesResponse, status_code(int), headers(HTTPHeaderDict))
|
622
616
|
"""
|
623
617
|
|
624
|
-
|
618
|
+
_params = locals()
|
625
619
|
|
626
|
-
|
620
|
+
_all_params = [
|
627
621
|
'owner',
|
628
622
|
'name',
|
629
623
|
'offset',
|
@@ -634,101 +628,108 @@ class ProjectSearchesV1Api(object):
|
|
634
628
|
'mode',
|
635
629
|
'no_page'
|
636
630
|
]
|
637
|
-
|
631
|
+
_all_params.extend(
|
638
632
|
[
|
639
633
|
'async_req',
|
640
634
|
'_return_http_data_only',
|
641
635
|
'_preload_content',
|
642
636
|
'_request_timeout',
|
643
|
-
'_request_auth'
|
637
|
+
'_request_auth',
|
638
|
+
'_content_type',
|
639
|
+
'_headers'
|
644
640
|
]
|
645
641
|
)
|
646
642
|
|
647
|
-
|
648
|
-
|
643
|
+
# validate the arguments
|
644
|
+
for _key, _val in _params['kwargs'].items():
|
645
|
+
if _key not in _all_params:
|
649
646
|
raise ApiTypeError(
|
650
647
|
"Got an unexpected keyword argument '%s'"
|
651
|
-
" to method list_project_search_names" %
|
648
|
+
" to method list_project_search_names" % _key
|
652
649
|
)
|
653
|
-
|
654
|
-
del
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
if
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
if '
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
if '
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
if 'bookmarks'
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
650
|
+
_params[_key] = _val
|
651
|
+
del _params['kwargs']
|
652
|
+
|
653
|
+
_collection_formats = {}
|
654
|
+
|
655
|
+
# process the path parameters
|
656
|
+
_path_params = {}
|
657
|
+
if _params['owner']:
|
658
|
+
_path_params['owner'] = _params['owner']
|
659
|
+
|
660
|
+
if _params['name']:
|
661
|
+
_path_params['name'] = _params['name']
|
662
|
+
|
663
|
+
|
664
|
+
# process the query parameters
|
665
|
+
_query_params = []
|
666
|
+
if _params.get('offset') is not None: # noqa: E501
|
667
|
+
_query_params.append(('offset', _params['offset']))
|
668
|
+
|
669
|
+
if _params.get('limit') is not None: # noqa: E501
|
670
|
+
_query_params.append(('limit', _params['limit']))
|
671
|
+
|
672
|
+
if _params.get('sort') is not None: # noqa: E501
|
673
|
+
_query_params.append(('sort', _params['sort']))
|
674
|
+
|
675
|
+
if _params.get('query') is not None: # noqa: E501
|
676
|
+
_query_params.append(('query', _params['query']))
|
677
|
+
|
678
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
679
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
680
|
+
|
681
|
+
if _params.get('mode') is not None: # noqa: E501
|
682
|
+
_query_params.append(('mode', _params['mode']))
|
683
|
+
|
684
|
+
if _params.get('no_page') is not None: # noqa: E501
|
685
|
+
_query_params.append(('no_page', _params['no_page']))
|
686
|
+
|
687
|
+
# process the header parameters
|
688
|
+
_header_params = dict(_params.get('_headers', {}))
|
689
|
+
# process the form parameters
|
690
|
+
_form_params = []
|
691
|
+
_files = {}
|
692
|
+
# process the body parameter
|
693
|
+
_body_params = None
|
694
|
+
# set the HTTP header `Accept`
|
695
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
696
696
|
['application/json']) # noqa: E501
|
697
697
|
|
698
|
-
#
|
699
|
-
|
698
|
+
# authentication setting
|
699
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
700
700
|
|
701
|
-
|
702
|
-
200: "V1ListSearchesResponse",
|
703
|
-
204: "object",
|
704
|
-
403: "object",
|
705
|
-
404: "object",
|
701
|
+
_response_types_map = {
|
702
|
+
'200': "V1ListSearchesResponse",
|
703
|
+
'204': "object",
|
704
|
+
'403': "object",
|
705
|
+
'404': "object",
|
706
706
|
}
|
707
707
|
|
708
708
|
return self.api_client.call_api(
|
709
709
|
'/api/v1/{owner}/{name}/searches/names', 'GET',
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
body=
|
714
|
-
post_params=
|
715
|
-
files=
|
716
|
-
response_types_map=
|
717
|
-
auth_settings=
|
718
|
-
async_req=
|
719
|
-
_return_http_data_only=
|
720
|
-
_preload_content=
|
721
|
-
_request_timeout=
|
722
|
-
collection_formats=
|
723
|
-
_request_auth=
|
724
|
-
|
725
|
-
|
710
|
+
_path_params,
|
711
|
+
_query_params,
|
712
|
+
_header_params,
|
713
|
+
body=_body_params,
|
714
|
+
post_params=_form_params,
|
715
|
+
files=_files,
|
716
|
+
response_types_map=_response_types_map,
|
717
|
+
auth_settings=_auth_settings,
|
718
|
+
async_req=_params.get('async_req'),
|
719
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
720
|
+
_preload_content=_params.get('_preload_content', True),
|
721
|
+
_request_timeout=_params.get('_request_timeout'),
|
722
|
+
collection_formats=_collection_formats,
|
723
|
+
_request_auth=_params.get('_request_auth'))
|
724
|
+
|
725
|
+
@validate_arguments
|
726
|
+
def list_project_searches(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListSearchesResponse: # noqa: E501
|
726
727
|
"""List project searches # noqa: E501
|
727
728
|
|
728
729
|
This method makes a synchronous HTTP request by default. To make an
|
729
730
|
asynchronous HTTP request, please pass async_req=True
|
730
731
|
|
731
|
-
>>> thread = api.list_project_searches(owner, name, async_req=True)
|
732
|
+
>>> thread = api.list_project_searches(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
732
733
|
>>> result = thread.get()
|
733
734
|
|
734
735
|
:param owner: Owner of the namespace (required)
|
@@ -765,15 +766,16 @@ class ProjectSearchesV1Api(object):
|
|
765
766
|
:rtype: V1ListSearchesResponse
|
766
767
|
"""
|
767
768
|
kwargs['_return_http_data_only'] = True
|
768
|
-
return self.list_project_searches_with_http_info(owner, name, **kwargs) # noqa: E501
|
769
|
+
return self.list_project_searches_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
769
770
|
|
770
|
-
|
771
|
+
@validate_arguments
|
772
|
+
def list_project_searches_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
771
773
|
"""List project searches # noqa: E501
|
772
774
|
|
773
775
|
This method makes a synchronous HTTP request by default. To make an
|
774
776
|
asynchronous HTTP request, please pass async_req=True
|
775
777
|
|
776
|
-
>>> thread = api.list_project_searches_with_http_info(owner, name, async_req=True)
|
778
|
+
>>> thread = api.list_project_searches_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
777
779
|
>>> result = thread.get()
|
778
780
|
|
779
781
|
:param owner: Owner of the namespace (required)
|
@@ -811,15 +813,16 @@ class ProjectSearchesV1Api(object):
|
|
811
813
|
request; this effectively ignores the authentication
|
812
814
|
in the spec for a single request.
|
813
815
|
:type _request_auth: dict, optional
|
816
|
+
:type _content_type: string, optional: force content-type for the request
|
814
817
|
:return: Returns the result object.
|
815
818
|
If the method is called asynchronously,
|
816
819
|
returns the request thread.
|
817
820
|
:rtype: tuple(V1ListSearchesResponse, status_code(int), headers(HTTPHeaderDict))
|
818
821
|
"""
|
819
822
|
|
820
|
-
|
823
|
+
_params = locals()
|
821
824
|
|
822
|
-
|
825
|
+
_all_params = [
|
823
826
|
'owner',
|
824
827
|
'name',
|
825
828
|
'offset',
|
@@ -830,95 +833,102 @@ class ProjectSearchesV1Api(object):
|
|
830
833
|
'mode',
|
831
834
|
'no_page'
|
832
835
|
]
|
833
|
-
|
836
|
+
_all_params.extend(
|
834
837
|
[
|
835
838
|
'async_req',
|
836
839
|
'_return_http_data_only',
|
837
840
|
'_preload_content',
|
838
841
|
'_request_timeout',
|
839
|
-
'_request_auth'
|
842
|
+
'_request_auth',
|
843
|
+
'_content_type',
|
844
|
+
'_headers'
|
840
845
|
]
|
841
846
|
)
|
842
847
|
|
843
|
-
|
844
|
-
|
848
|
+
# validate the arguments
|
849
|
+
for _key, _val in _params['kwargs'].items():
|
850
|
+
if _key not in _all_params:
|
845
851
|
raise ApiTypeError(
|
846
852
|
"Got an unexpected keyword argument '%s'"
|
847
|
-
" to method list_project_searches" %
|
853
|
+
" to method list_project_searches" % _key
|
848
854
|
)
|
849
|
-
|
850
|
-
del
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
if
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
if '
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
if '
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
if 'bookmarks'
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
855
|
+
_params[_key] = _val
|
856
|
+
del _params['kwargs']
|
857
|
+
|
858
|
+
_collection_formats = {}
|
859
|
+
|
860
|
+
# process the path parameters
|
861
|
+
_path_params = {}
|
862
|
+
if _params['owner']:
|
863
|
+
_path_params['owner'] = _params['owner']
|
864
|
+
|
865
|
+
if _params['name']:
|
866
|
+
_path_params['name'] = _params['name']
|
867
|
+
|
868
|
+
|
869
|
+
# process the query parameters
|
870
|
+
_query_params = []
|
871
|
+
if _params.get('offset') is not None: # noqa: E501
|
872
|
+
_query_params.append(('offset', _params['offset']))
|
873
|
+
|
874
|
+
if _params.get('limit') is not None: # noqa: E501
|
875
|
+
_query_params.append(('limit', _params['limit']))
|
876
|
+
|
877
|
+
if _params.get('sort') is not None: # noqa: E501
|
878
|
+
_query_params.append(('sort', _params['sort']))
|
879
|
+
|
880
|
+
if _params.get('query') is not None: # noqa: E501
|
881
|
+
_query_params.append(('query', _params['query']))
|
882
|
+
|
883
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
884
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
885
|
+
|
886
|
+
if _params.get('mode') is not None: # noqa: E501
|
887
|
+
_query_params.append(('mode', _params['mode']))
|
888
|
+
|
889
|
+
if _params.get('no_page') is not None: # noqa: E501
|
890
|
+
_query_params.append(('no_page', _params['no_page']))
|
891
|
+
|
892
|
+
# process the header parameters
|
893
|
+
_header_params = dict(_params.get('_headers', {}))
|
894
|
+
# process the form parameters
|
895
|
+
_form_params = []
|
896
|
+
_files = {}
|
897
|
+
# process the body parameter
|
898
|
+
_body_params = None
|
899
|
+
# set the HTTP header `Accept`
|
900
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
892
901
|
['application/json']) # noqa: E501
|
893
902
|
|
894
|
-
#
|
895
|
-
|
903
|
+
# authentication setting
|
904
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
896
905
|
|
897
|
-
|
898
|
-
200: "V1ListSearchesResponse",
|
899
|
-
204: "object",
|
900
|
-
403: "object",
|
901
|
-
404: "object",
|
906
|
+
_response_types_map = {
|
907
|
+
'200': "V1ListSearchesResponse",
|
908
|
+
'204': "object",
|
909
|
+
'403': "object",
|
910
|
+
'404': "object",
|
902
911
|
}
|
903
912
|
|
904
913
|
return self.api_client.call_api(
|
905
914
|
'/api/v1/{owner}/{name}/searches', 'GET',
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
body=
|
910
|
-
post_params=
|
911
|
-
files=
|
912
|
-
response_types_map=
|
913
|
-
auth_settings=
|
914
|
-
async_req=
|
915
|
-
_return_http_data_only=
|
916
|
-
_preload_content=
|
917
|
-
_request_timeout=
|
918
|
-
collection_formats=
|
919
|
-
_request_auth=
|
920
|
-
|
921
|
-
|
915
|
+
_path_params,
|
916
|
+
_query_params,
|
917
|
+
_header_params,
|
918
|
+
body=_body_params,
|
919
|
+
post_params=_form_params,
|
920
|
+
files=_files,
|
921
|
+
response_types_map=_response_types_map,
|
922
|
+
auth_settings=_auth_settings,
|
923
|
+
async_req=_params.get('async_req'),
|
924
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
925
|
+
_preload_content=_params.get('_preload_content', True),
|
926
|
+
_request_timeout=_params.get('_request_timeout'),
|
927
|
+
collection_formats=_collection_formats,
|
928
|
+
_request_auth=_params.get('_request_auth'))
|
929
|
+
|
930
|
+
@validate_arguments
|
931
|
+
def patch_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
|
922
932
|
"""Patch project search # noqa: E501
|
923
933
|
|
924
934
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -953,7 +963,8 @@ class ProjectSearchesV1Api(object):
|
|
953
963
|
kwargs['_return_http_data_only'] = True
|
954
964
|
return self.patch_project_search_with_http_info(owner, project, search_uuid, body, **kwargs) # noqa: E501
|
955
965
|
|
956
|
-
|
966
|
+
@validate_arguments
|
967
|
+
def patch_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
|
957
968
|
"""Patch project search # noqa: E501
|
958
969
|
|
959
970
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -987,111 +998,109 @@ class ProjectSearchesV1Api(object):
|
|
987
998
|
request; this effectively ignores the authentication
|
988
999
|
in the spec for a single request.
|
989
1000
|
:type _request_auth: dict, optional
|
1001
|
+
:type _content_type: string, optional: force content-type for the request
|
990
1002
|
:return: Returns the result object.
|
991
1003
|
If the method is called asynchronously,
|
992
1004
|
returns the request thread.
|
993
1005
|
:rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
|
994
1006
|
"""
|
995
1007
|
|
996
|
-
|
1008
|
+
_params = locals()
|
997
1009
|
|
998
|
-
|
1010
|
+
_all_params = [
|
999
1011
|
'owner',
|
1000
1012
|
'project',
|
1001
1013
|
'search_uuid',
|
1002
1014
|
'body'
|
1003
1015
|
]
|
1004
|
-
|
1016
|
+
_all_params.extend(
|
1005
1017
|
[
|
1006
1018
|
'async_req',
|
1007
1019
|
'_return_http_data_only',
|
1008
1020
|
'_preload_content',
|
1009
1021
|
'_request_timeout',
|
1010
|
-
'_request_auth'
|
1022
|
+
'_request_auth',
|
1023
|
+
'_content_type',
|
1024
|
+
'_headers'
|
1011
1025
|
]
|
1012
1026
|
)
|
1013
1027
|
|
1014
|
-
|
1015
|
-
|
1028
|
+
# validate the arguments
|
1029
|
+
for _key, _val in _params['kwargs'].items():
|
1030
|
+
if _key not in _all_params:
|
1016
1031
|
raise ApiTypeError(
|
1017
1032
|
"Got an unexpected keyword argument '%s'"
|
1018
|
-
" to method patch_project_search" %
|
1033
|
+
" to method patch_project_search" % _key
|
1019
1034
|
)
|
1020
|
-
|
1021
|
-
del
|
1022
|
-
# verify the required parameter 'owner' is set
|
1023
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1024
|
-
local_var_params['owner'] is None): # noqa: E501
|
1025
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `patch_project_search`") # noqa: E501
|
1026
|
-
# verify the required parameter 'project' is set
|
1027
|
-
if self.api_client.client_side_validation and ('project' not in local_var_params or # noqa: E501
|
1028
|
-
local_var_params['project'] is None): # noqa: E501
|
1029
|
-
raise ApiValueError("Missing the required parameter `project` when calling `patch_project_search`") # noqa: E501
|
1030
|
-
# verify the required parameter 'search_uuid' is set
|
1031
|
-
if self.api_client.client_side_validation and ('search_uuid' not in local_var_params or # noqa: E501
|
1032
|
-
local_var_params['search_uuid'] is None): # noqa: E501
|
1033
|
-
raise ApiValueError("Missing the required parameter `search_uuid` when calling `patch_project_search`") # noqa: E501
|
1034
|
-
# verify the required parameter 'body' is set
|
1035
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1036
|
-
local_var_params['body'] is None): # noqa: E501
|
1037
|
-
raise ApiValueError("Missing the required parameter `body` when calling `patch_project_search`") # noqa: E501
|
1038
|
-
|
1039
|
-
collection_formats = {}
|
1040
|
-
|
1041
|
-
path_params = {}
|
1042
|
-
if 'owner' in local_var_params:
|
1043
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1044
|
-
if 'project' in local_var_params:
|
1045
|
-
path_params['project'] = local_var_params['project'] # noqa: E501
|
1046
|
-
if 'search_uuid' in local_var_params:
|
1047
|
-
path_params['search.uuid'] = local_var_params['search_uuid'] # noqa: E501
|
1048
|
-
|
1049
|
-
query_params = []
|
1050
|
-
|
1051
|
-
header_params = {}
|
1052
|
-
|
1053
|
-
form_params = []
|
1054
|
-
local_var_files = {}
|
1055
|
-
|
1056
|
-
body_params = None
|
1057
|
-
if 'body' in local_var_params:
|
1058
|
-
body_params = local_var_params['body']
|
1059
|
-
# HTTP header `Accept`
|
1060
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1061
|
-
['application/json']) # noqa: E501
|
1035
|
+
_params[_key] = _val
|
1036
|
+
del _params['kwargs']
|
1062
1037
|
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1038
|
+
_collection_formats = {}
|
1039
|
+
|
1040
|
+
# process the path parameters
|
1041
|
+
_path_params = {}
|
1042
|
+
if _params['owner']:
|
1043
|
+
_path_params['owner'] = _params['owner']
|
1044
|
+
|
1045
|
+
if _params['project']:
|
1046
|
+
_path_params['project'] = _params['project']
|
1066
1047
|
|
1067
|
-
|
1068
|
-
|
1048
|
+
if _params['search_uuid']:
|
1049
|
+
_path_params['search.uuid'] = _params['search_uuid']
|
1069
1050
|
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1051
|
+
|
1052
|
+
# process the query parameters
|
1053
|
+
_query_params = []
|
1054
|
+
# process the header parameters
|
1055
|
+
_header_params = dict(_params.get('_headers', {}))
|
1056
|
+
# process the form parameters
|
1057
|
+
_form_params = []
|
1058
|
+
_files = {}
|
1059
|
+
# process the body parameter
|
1060
|
+
_body_params = None
|
1061
|
+
if _params['body']:
|
1062
|
+
_body_params = _params['body']
|
1063
|
+
|
1064
|
+
# set the HTTP header `Accept`
|
1065
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1066
|
+
['application/json']) # noqa: E501
|
1067
|
+
|
1068
|
+
# set the HTTP header `Content-Type`
|
1069
|
+
_content_types_list = _params.get('_content_type',
|
1070
|
+
self.api_client.select_header_content_type(
|
1071
|
+
['application/json']))
|
1072
|
+
if _content_types_list:
|
1073
|
+
_header_params['Content-Type'] = _content_types_list
|
1074
|
+
|
1075
|
+
# authentication setting
|
1076
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1077
|
+
|
1078
|
+
_response_types_map = {
|
1079
|
+
'200': "V1Search",
|
1080
|
+
'204': "object",
|
1081
|
+
'403': "object",
|
1082
|
+
'404': "object",
|
1075
1083
|
}
|
1076
1084
|
|
1077
1085
|
return self.api_client.call_api(
|
1078
1086
|
'/api/v1/{owner}/{project}/searches/{search.uuid}', 'PATCH',
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
body=
|
1083
|
-
post_params=
|
1084
|
-
files=
|
1085
|
-
response_types_map=
|
1086
|
-
auth_settings=
|
1087
|
-
async_req=
|
1088
|
-
_return_http_data_only=
|
1089
|
-
_preload_content=
|
1090
|
-
_request_timeout=
|
1091
|
-
collection_formats=
|
1092
|
-
_request_auth=
|
1093
|
-
|
1094
|
-
|
1087
|
+
_path_params,
|
1088
|
+
_query_params,
|
1089
|
+
_header_params,
|
1090
|
+
body=_body_params,
|
1091
|
+
post_params=_form_params,
|
1092
|
+
files=_files,
|
1093
|
+
response_types_map=_response_types_map,
|
1094
|
+
auth_settings=_auth_settings,
|
1095
|
+
async_req=_params.get('async_req'),
|
1096
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1097
|
+
_preload_content=_params.get('_preload_content', True),
|
1098
|
+
_request_timeout=_params.get('_request_timeout'),
|
1099
|
+
collection_formats=_collection_formats,
|
1100
|
+
_request_auth=_params.get('_request_auth'))
|
1101
|
+
|
1102
|
+
@validate_arguments
|
1103
|
+
def promote_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> None: # noqa: E501
|
1095
1104
|
"""Promote project search # noqa: E501
|
1096
1105
|
|
1097
1106
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1124,7 +1133,8 @@ class ProjectSearchesV1Api(object):
|
|
1124
1133
|
kwargs['_return_http_data_only'] = True
|
1125
1134
|
return self.promote_project_search_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
1126
1135
|
|
1127
|
-
|
1136
|
+
@validate_arguments
|
1137
|
+
def promote_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
1128
1138
|
"""Promote project search # noqa: E501
|
1129
1139
|
|
1130
1140
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1156,95 +1166,93 @@ class ProjectSearchesV1Api(object):
|
|
1156
1166
|
request; this effectively ignores the authentication
|
1157
1167
|
in the spec for a single request.
|
1158
1168
|
:type _request_auth: dict, optional
|
1169
|
+
:type _content_type: string, optional: force content-type for the request
|
1159
1170
|
:return: Returns the result object.
|
1160
1171
|
If the method is called asynchronously,
|
1161
1172
|
returns the request thread.
|
1162
1173
|
:rtype: None
|
1163
1174
|
"""
|
1164
1175
|
|
1165
|
-
|
1176
|
+
_params = locals()
|
1166
1177
|
|
1167
|
-
|
1178
|
+
_all_params = [
|
1168
1179
|
'owner',
|
1169
1180
|
'entity',
|
1170
1181
|
'uuid'
|
1171
1182
|
]
|
1172
|
-
|
1183
|
+
_all_params.extend(
|
1173
1184
|
[
|
1174
1185
|
'async_req',
|
1175
1186
|
'_return_http_data_only',
|
1176
1187
|
'_preload_content',
|
1177
1188
|
'_request_timeout',
|
1178
|
-
'_request_auth'
|
1189
|
+
'_request_auth',
|
1190
|
+
'_content_type',
|
1191
|
+
'_headers'
|
1179
1192
|
]
|
1180
1193
|
)
|
1181
1194
|
|
1182
|
-
|
1183
|
-
|
1195
|
+
# validate the arguments
|
1196
|
+
for _key, _val in _params['kwargs'].items():
|
1197
|
+
if _key not in _all_params:
|
1184
1198
|
raise ApiTypeError(
|
1185
1199
|
"Got an unexpected keyword argument '%s'"
|
1186
|
-
" to method promote_project_search" %
|
1200
|
+
" to method promote_project_search" % _key
|
1187
1201
|
)
|
1188
|
-
|
1189
|
-
del
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
if
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
form_params = []
|
1218
|
-
local_var_files = {}
|
1219
|
-
|
1220
|
-
body_params = None
|
1221
|
-
# HTTP header `Accept`
|
1222
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1202
|
+
_params[_key] = _val
|
1203
|
+
del _params['kwargs']
|
1204
|
+
|
1205
|
+
_collection_formats = {}
|
1206
|
+
|
1207
|
+
# process the path parameters
|
1208
|
+
_path_params = {}
|
1209
|
+
if _params['owner']:
|
1210
|
+
_path_params['owner'] = _params['owner']
|
1211
|
+
|
1212
|
+
if _params['entity']:
|
1213
|
+
_path_params['entity'] = _params['entity']
|
1214
|
+
|
1215
|
+
if _params['uuid']:
|
1216
|
+
_path_params['uuid'] = _params['uuid']
|
1217
|
+
|
1218
|
+
|
1219
|
+
# process the query parameters
|
1220
|
+
_query_params = []
|
1221
|
+
# process the header parameters
|
1222
|
+
_header_params = dict(_params.get('_headers', {}))
|
1223
|
+
# process the form parameters
|
1224
|
+
_form_params = []
|
1225
|
+
_files = {}
|
1226
|
+
# process the body parameter
|
1227
|
+
_body_params = None
|
1228
|
+
# set the HTTP header `Accept`
|
1229
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1223
1230
|
['application/json']) # noqa: E501
|
1224
1231
|
|
1225
|
-
#
|
1226
|
-
|
1232
|
+
# authentication setting
|
1233
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1227
1234
|
|
1228
|
-
|
1235
|
+
_response_types_map = {}
|
1229
1236
|
|
1230
1237
|
return self.api_client.call_api(
|
1231
1238
|
'/api/v1/{owner}/{entity}/searches/{uuid}/promote', 'POST',
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
body=
|
1236
|
-
post_params=
|
1237
|
-
files=
|
1238
|
-
response_types_map=
|
1239
|
-
auth_settings=
|
1240
|
-
async_req=
|
1241
|
-
_return_http_data_only=
|
1242
|
-
_preload_content=
|
1243
|
-
_request_timeout=
|
1244
|
-
collection_formats=
|
1245
|
-
_request_auth=
|
1246
|
-
|
1247
|
-
|
1239
|
+
_path_params,
|
1240
|
+
_query_params,
|
1241
|
+
_header_params,
|
1242
|
+
body=_body_params,
|
1243
|
+
post_params=_form_params,
|
1244
|
+
files=_files,
|
1245
|
+
response_types_map=_response_types_map,
|
1246
|
+
auth_settings=_auth_settings,
|
1247
|
+
async_req=_params.get('async_req'),
|
1248
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1249
|
+
_preload_content=_params.get('_preload_content', True),
|
1250
|
+
_request_timeout=_params.get('_request_timeout'),
|
1251
|
+
collection_formats=_collection_formats,
|
1252
|
+
_request_auth=_params.get('_request_auth'))
|
1253
|
+
|
1254
|
+
@validate_arguments
|
1255
|
+
def update_project_search(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs) -> V1Search: # noqa: E501
|
1248
1256
|
"""Update project search # noqa: E501
|
1249
1257
|
|
1250
1258
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1279,7 +1287,8 @@ class ProjectSearchesV1Api(object):
|
|
1279
1287
|
kwargs['_return_http_data_only'] = True
|
1280
1288
|
return self.update_project_search_with_http_info(owner, project, search_uuid, body, **kwargs) # noqa: E501
|
1281
1289
|
|
1282
|
-
|
1290
|
+
@validate_arguments
|
1291
|
+
def update_project_search_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], project : Annotated[StrictStr, Field(..., description="Project under namesapce")], search_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Search, Field(..., description="Search body")], **kwargs): # noqa: E501
|
1283
1292
|
"""Update project search # noqa: E501
|
1284
1293
|
|
1285
1294
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1313,106 +1322,103 @@ class ProjectSearchesV1Api(object):
|
|
1313
1322
|
request; this effectively ignores the authentication
|
1314
1323
|
in the spec for a single request.
|
1315
1324
|
:type _request_auth: dict, optional
|
1325
|
+
:type _content_type: string, optional: force content-type for the request
|
1316
1326
|
:return: Returns the result object.
|
1317
1327
|
If the method is called asynchronously,
|
1318
1328
|
returns the request thread.
|
1319
1329
|
:rtype: tuple(V1Search, status_code(int), headers(HTTPHeaderDict))
|
1320
1330
|
"""
|
1321
1331
|
|
1322
|
-
|
1332
|
+
_params = locals()
|
1323
1333
|
|
1324
|
-
|
1334
|
+
_all_params = [
|
1325
1335
|
'owner',
|
1326
1336
|
'project',
|
1327
1337
|
'search_uuid',
|
1328
1338
|
'body'
|
1329
1339
|
]
|
1330
|
-
|
1340
|
+
_all_params.extend(
|
1331
1341
|
[
|
1332
1342
|
'async_req',
|
1333
1343
|
'_return_http_data_only',
|
1334
1344
|
'_preload_content',
|
1335
1345
|
'_request_timeout',
|
1336
|
-
'_request_auth'
|
1346
|
+
'_request_auth',
|
1347
|
+
'_content_type',
|
1348
|
+
'_headers'
|
1337
1349
|
]
|
1338
1350
|
)
|
1339
1351
|
|
1340
|
-
|
1341
|
-
|
1352
|
+
# validate the arguments
|
1353
|
+
for _key, _val in _params['kwargs'].items():
|
1354
|
+
if _key not in _all_params:
|
1342
1355
|
raise ApiTypeError(
|
1343
1356
|
"Got an unexpected keyword argument '%s'"
|
1344
|
-
" to method update_project_search" %
|
1357
|
+
" to method update_project_search" % _key
|
1345
1358
|
)
|
1346
|
-
|
1347
|
-
del
|
1348
|
-
# verify the required parameter 'owner' is set
|
1349
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1350
|
-
local_var_params['owner'] is None): # noqa: E501
|
1351
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `update_project_search`") # noqa: E501
|
1352
|
-
# verify the required parameter 'project' is set
|
1353
|
-
if self.api_client.client_side_validation and ('project' not in local_var_params or # noqa: E501
|
1354
|
-
local_var_params['project'] is None): # noqa: E501
|
1355
|
-
raise ApiValueError("Missing the required parameter `project` when calling `update_project_search`") # noqa: E501
|
1356
|
-
# verify the required parameter 'search_uuid' is set
|
1357
|
-
if self.api_client.client_side_validation and ('search_uuid' not in local_var_params or # noqa: E501
|
1358
|
-
local_var_params['search_uuid'] is None): # noqa: E501
|
1359
|
-
raise ApiValueError("Missing the required parameter `search_uuid` when calling `update_project_search`") # noqa: E501
|
1360
|
-
# verify the required parameter 'body' is set
|
1361
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1362
|
-
local_var_params['body'] is None): # noqa: E501
|
1363
|
-
raise ApiValueError("Missing the required parameter `body` when calling `update_project_search`") # noqa: E501
|
1364
|
-
|
1365
|
-
collection_formats = {}
|
1366
|
-
|
1367
|
-
path_params = {}
|
1368
|
-
if 'owner' in local_var_params:
|
1369
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1370
|
-
if 'project' in local_var_params:
|
1371
|
-
path_params['project'] = local_var_params['project'] # noqa: E501
|
1372
|
-
if 'search_uuid' in local_var_params:
|
1373
|
-
path_params['search.uuid'] = local_var_params['search_uuid'] # noqa: E501
|
1374
|
-
|
1375
|
-
query_params = []
|
1376
|
-
|
1377
|
-
header_params = {}
|
1378
|
-
|
1379
|
-
form_params = []
|
1380
|
-
local_var_files = {}
|
1381
|
-
|
1382
|
-
body_params = None
|
1383
|
-
if 'body' in local_var_params:
|
1384
|
-
body_params = local_var_params['body']
|
1385
|
-
# HTTP header `Accept`
|
1386
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1387
|
-
['application/json']) # noqa: E501
|
1359
|
+
_params[_key] = _val
|
1360
|
+
del _params['kwargs']
|
1388
1361
|
|
1389
|
-
|
1390
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1391
|
-
['application/json']) # noqa: E501
|
1362
|
+
_collection_formats = {}
|
1392
1363
|
|
1393
|
-
#
|
1394
|
-
|
1364
|
+
# process the path parameters
|
1365
|
+
_path_params = {}
|
1366
|
+
if _params['owner']:
|
1367
|
+
_path_params['owner'] = _params['owner']
|
1368
|
+
|
1369
|
+
if _params['project']:
|
1370
|
+
_path_params['project'] = _params['project']
|
1371
|
+
|
1372
|
+
if _params['search_uuid']:
|
1373
|
+
_path_params['search.uuid'] = _params['search_uuid']
|
1374
|
+
|
1375
|
+
|
1376
|
+
# process the query parameters
|
1377
|
+
_query_params = []
|
1378
|
+
# process the header parameters
|
1379
|
+
_header_params = dict(_params.get('_headers', {}))
|
1380
|
+
# process the form parameters
|
1381
|
+
_form_params = []
|
1382
|
+
_files = {}
|
1383
|
+
# process the body parameter
|
1384
|
+
_body_params = None
|
1385
|
+
if _params['body']:
|
1386
|
+
_body_params = _params['body']
|
1387
|
+
|
1388
|
+
# set the HTTP header `Accept`
|
1389
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1390
|
+
['application/json']) # noqa: E501
|
1395
1391
|
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1392
|
+
# set the HTTP header `Content-Type`
|
1393
|
+
_content_types_list = _params.get('_content_type',
|
1394
|
+
self.api_client.select_header_content_type(
|
1395
|
+
['application/json']))
|
1396
|
+
if _content_types_list:
|
1397
|
+
_header_params['Content-Type'] = _content_types_list
|
1398
|
+
|
1399
|
+
# authentication setting
|
1400
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1401
|
+
|
1402
|
+
_response_types_map = {
|
1403
|
+
'200': "V1Search",
|
1404
|
+
'204': "object",
|
1405
|
+
'403': "object",
|
1406
|
+
'404': "object",
|
1401
1407
|
}
|
1402
1408
|
|
1403
1409
|
return self.api_client.call_api(
|
1404
1410
|
'/api/v1/{owner}/{project}/searches/{search.uuid}', 'PUT',
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
body=
|
1409
|
-
post_params=
|
1410
|
-
files=
|
1411
|
-
response_types_map=
|
1412
|
-
auth_settings=
|
1413
|
-
async_req=
|
1414
|
-
_return_http_data_only=
|
1415
|
-
_preload_content=
|
1416
|
-
_request_timeout=
|
1417
|
-
collection_formats=
|
1418
|
-
_request_auth=
|
1411
|
+
_path_params,
|
1412
|
+
_query_params,
|
1413
|
+
_header_params,
|
1414
|
+
body=_body_params,
|
1415
|
+
post_params=_form_params,
|
1416
|
+
files=_files,
|
1417
|
+
response_types_map=_response_types_map,
|
1418
|
+
auth_settings=_auth_settings,
|
1419
|
+
async_req=_params.get('async_req'),
|
1420
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1421
|
+
_preload_content=_params.get('_preload_content', True),
|
1422
|
+
_request_timeout=_params.get('_request_timeout'),
|
1423
|
+
collection_formats=_collection_formats,
|
1424
|
+
_request_auth=_params.get('_request_auth'))
|