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
polyaxon_sdk/api/users_v1_api.py
CHANGED
@@ -1,38 +1,31 @@
|
|
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 Any, Dict, Optional
|
24
|
+
|
25
|
+
from polyaxon_sdk.models.v1_list_activities_response import V1ListActivitiesResponse
|
26
|
+
from polyaxon_sdk.models.v1_list_token_response import V1ListTokenResponse
|
27
|
+
from polyaxon_sdk.models.v1_token import V1Token
|
28
|
+
from polyaxon_sdk.models.v1_user import V1User
|
36
29
|
|
37
30
|
from polyaxon_sdk.api_client import ApiClient
|
38
31
|
from polyaxon_sdk.exceptions import ( # noqa: F401
|
@@ -50,10 +43,11 @@ class UsersV1Api(object):
|
|
50
43
|
|
51
44
|
def __init__(self, api_client=None):
|
52
45
|
if api_client is None:
|
53
|
-
api_client = ApiClient()
|
46
|
+
api_client = ApiClient.get_default()
|
54
47
|
self.api_client = api_client
|
55
48
|
|
56
|
-
|
49
|
+
@validate_arguments
|
50
|
+
def create_token(self, body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
57
51
|
"""Create token # noqa: E501
|
58
52
|
|
59
53
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -82,7 +76,8 @@ class UsersV1Api(object):
|
|
82
76
|
kwargs['_return_http_data_only'] = True
|
83
77
|
return self.create_token_with_http_info(body, **kwargs) # noqa: E501
|
84
78
|
|
85
|
-
|
79
|
+
@validate_arguments
|
80
|
+
def create_token_with_http_info(self, body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
86
81
|
"""Create token # noqa: E501
|
87
82
|
|
88
83
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -110,90 +105,97 @@ class UsersV1Api(object):
|
|
110
105
|
request; this effectively ignores the authentication
|
111
106
|
in the spec for a single request.
|
112
107
|
:type _request_auth: dict, optional
|
108
|
+
:type _content_type: string, optional: force content-type for the request
|
113
109
|
:return: Returns the result object.
|
114
110
|
If the method is called asynchronously,
|
115
111
|
returns the request thread.
|
116
112
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
117
113
|
"""
|
118
114
|
|
119
|
-
|
115
|
+
_params = locals()
|
120
116
|
|
121
|
-
|
117
|
+
_all_params = [
|
122
118
|
'body'
|
123
119
|
]
|
124
|
-
|
120
|
+
_all_params.extend(
|
125
121
|
[
|
126
122
|
'async_req',
|
127
123
|
'_return_http_data_only',
|
128
124
|
'_preload_content',
|
129
125
|
'_request_timeout',
|
130
|
-
'_request_auth'
|
126
|
+
'_request_auth',
|
127
|
+
'_content_type',
|
128
|
+
'_headers'
|
131
129
|
]
|
132
130
|
)
|
133
131
|
|
134
|
-
|
135
|
-
|
132
|
+
# validate the arguments
|
133
|
+
for _key, _val in _params['kwargs'].items():
|
134
|
+
if _key not in _all_params:
|
136
135
|
raise ApiTypeError(
|
137
136
|
"Got an unexpected keyword argument '%s'"
|
138
|
-
" to method create_token" %
|
137
|
+
" to method create_token" % _key
|
139
138
|
)
|
140
|
-
|
141
|
-
del
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
163
|
-
['application/json']) # noqa: E501
|
164
|
-
|
165
|
-
# HTTP header `Content-Type`
|
166
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
139
|
+
_params[_key] = _val
|
140
|
+
del _params['kwargs']
|
141
|
+
|
142
|
+
_collection_formats = {}
|
143
|
+
|
144
|
+
# process the path parameters
|
145
|
+
_path_params = {}
|
146
|
+
|
147
|
+
# process the query parameters
|
148
|
+
_query_params = []
|
149
|
+
# process the header parameters
|
150
|
+
_header_params = dict(_params.get('_headers', {}))
|
151
|
+
# process the form parameters
|
152
|
+
_form_params = []
|
153
|
+
_files = {}
|
154
|
+
# process the body parameter
|
155
|
+
_body_params = None
|
156
|
+
if _params['body']:
|
157
|
+
_body_params = _params['body']
|
158
|
+
|
159
|
+
# set the HTTP header `Accept`
|
160
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
167
161
|
['application/json']) # noqa: E501
|
168
162
|
|
169
|
-
#
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
163
|
+
# set the HTTP header `Content-Type`
|
164
|
+
_content_types_list = _params.get('_content_type',
|
165
|
+
self.api_client.select_header_content_type(
|
166
|
+
['application/json']))
|
167
|
+
if _content_types_list:
|
168
|
+
_header_params['Content-Type'] = _content_types_list
|
169
|
+
|
170
|
+
# authentication setting
|
171
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
172
|
+
|
173
|
+
_response_types_map = {
|
174
|
+
'200': "V1Token",
|
175
|
+
'204': "object",
|
176
|
+
'403': "object",
|
177
|
+
'404': "object",
|
177
178
|
}
|
178
179
|
|
179
180
|
return self.api_client.call_api(
|
180
181
|
'/api/v1/users/tokens', 'POST',
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
body=
|
185
|
-
post_params=
|
186
|
-
files=
|
187
|
-
response_types_map=
|
188
|
-
auth_settings=
|
189
|
-
async_req=
|
190
|
-
_return_http_data_only=
|
191
|
-
_preload_content=
|
192
|
-
_request_timeout=
|
193
|
-
collection_formats=
|
194
|
-
_request_auth=
|
195
|
-
|
196
|
-
|
182
|
+
_path_params,
|
183
|
+
_query_params,
|
184
|
+
_header_params,
|
185
|
+
body=_body_params,
|
186
|
+
post_params=_form_params,
|
187
|
+
files=_files,
|
188
|
+
response_types_map=_response_types_map,
|
189
|
+
auth_settings=_auth_settings,
|
190
|
+
async_req=_params.get('async_req'),
|
191
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
192
|
+
_preload_content=_params.get('_preload_content', True),
|
193
|
+
_request_timeout=_params.get('_request_timeout'),
|
194
|
+
collection_formats=_collection_formats,
|
195
|
+
_request_auth=_params.get('_request_auth'))
|
196
|
+
|
197
|
+
@validate_arguments
|
198
|
+
def delete_token(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs) -> None: # noqa: E501
|
197
199
|
"""Delete token # noqa: E501
|
198
200
|
|
199
201
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -222,7 +224,8 @@ class UsersV1Api(object):
|
|
222
224
|
kwargs['_return_http_data_only'] = True
|
223
225
|
return self.delete_token_with_http_info(uuid, **kwargs) # noqa: E501
|
224
226
|
|
225
|
-
|
227
|
+
@validate_arguments
|
228
|
+
def delete_token_with_http_info(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs): # noqa: E501
|
226
229
|
"""Delete token # noqa: E501
|
227
230
|
|
228
231
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -250,87 +253,91 @@ class UsersV1Api(object):
|
|
250
253
|
request; this effectively ignores the authentication
|
251
254
|
in the spec for a single request.
|
252
255
|
:type _request_auth: dict, optional
|
256
|
+
:type _content_type: string, optional: force content-type for the request
|
253
257
|
:return: Returns the result object.
|
254
258
|
If the method is called asynchronously,
|
255
259
|
returns the request thread.
|
256
260
|
:rtype: None
|
257
261
|
"""
|
258
262
|
|
259
|
-
|
263
|
+
_params = locals()
|
260
264
|
|
261
|
-
|
265
|
+
_all_params = [
|
262
266
|
'uuid'
|
263
267
|
]
|
264
|
-
|
268
|
+
_all_params.extend(
|
265
269
|
[
|
266
270
|
'async_req',
|
267
271
|
'_return_http_data_only',
|
268
272
|
'_preload_content',
|
269
273
|
'_request_timeout',
|
270
|
-
'_request_auth'
|
274
|
+
'_request_auth',
|
275
|
+
'_content_type',
|
276
|
+
'_headers'
|
271
277
|
]
|
272
278
|
)
|
273
279
|
|
274
|
-
|
275
|
-
|
280
|
+
# validate the arguments
|
281
|
+
for _key, _val in _params['kwargs'].items():
|
282
|
+
if _key not in _all_params:
|
276
283
|
raise ApiTypeError(
|
277
284
|
"Got an unexpected keyword argument '%s'"
|
278
|
-
" to method delete_token" %
|
285
|
+
" to method delete_token" % _key
|
279
286
|
)
|
280
|
-
|
281
|
-
del
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
287
|
+
_params[_key] = _val
|
288
|
+
del _params['kwargs']
|
289
|
+
|
290
|
+
_collection_formats = {}
|
291
|
+
|
292
|
+
# process the path parameters
|
293
|
+
_path_params = {}
|
294
|
+
if _params['uuid']:
|
295
|
+
_path_params['uuid'] = _params['uuid']
|
296
|
+
|
297
|
+
|
298
|
+
# process the query parameters
|
299
|
+
_query_params = []
|
300
|
+
# process the header parameters
|
301
|
+
_header_params = dict(_params.get('_headers', {}))
|
302
|
+
# process the form parameters
|
303
|
+
_form_params = []
|
304
|
+
_files = {}
|
305
|
+
# process the body parameter
|
306
|
+
_body_params = None
|
307
|
+
# set the HTTP header `Accept`
|
308
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
303
309
|
['application/json']) # noqa: E501
|
304
310
|
|
305
|
-
#
|
306
|
-
|
311
|
+
# authentication setting
|
312
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
307
313
|
|
308
|
-
|
314
|
+
_response_types_map = {}
|
309
315
|
|
310
316
|
return self.api_client.call_api(
|
311
317
|
'/api/v1/users/tokens/{uuid}', 'DELETE',
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
body=
|
316
|
-
post_params=
|
317
|
-
files=
|
318
|
-
response_types_map=
|
319
|
-
auth_settings=
|
320
|
-
async_req=
|
321
|
-
_return_http_data_only=
|
322
|
-
_preload_content=
|
323
|
-
_request_timeout=
|
324
|
-
collection_formats=
|
325
|
-
_request_auth=
|
326
|
-
|
327
|
-
|
318
|
+
_path_params,
|
319
|
+
_query_params,
|
320
|
+
_header_params,
|
321
|
+
body=_body_params,
|
322
|
+
post_params=_form_params,
|
323
|
+
files=_files,
|
324
|
+
response_types_map=_response_types_map,
|
325
|
+
auth_settings=_auth_settings,
|
326
|
+
async_req=_params.get('async_req'),
|
327
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
328
|
+
_preload_content=_params.get('_preload_content', True),
|
329
|
+
_request_timeout=_params.get('_request_timeout'),
|
330
|
+
collection_formats=_collection_formats,
|
331
|
+
_request_auth=_params.get('_request_auth'))
|
332
|
+
|
333
|
+
@validate_arguments
|
334
|
+
def get_history(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListActivitiesResponse: # noqa: E501
|
328
335
|
"""User History # noqa: E501
|
329
336
|
|
330
337
|
This method makes a synchronous HTTP request by default. To make an
|
331
338
|
asynchronous HTTP request, please pass async_req=True
|
332
339
|
|
333
|
-
>>> thread = api.get_history(async_req=True)
|
340
|
+
>>> thread = api.get_history(offset, limit, sort, query, no_page, async_req=True)
|
334
341
|
>>> result = thread.get()
|
335
342
|
|
336
343
|
:param offset: Pagination offset.
|
@@ -359,15 +366,16 @@ class UsersV1Api(object):
|
|
359
366
|
:rtype: V1ListActivitiesResponse
|
360
367
|
"""
|
361
368
|
kwargs['_return_http_data_only'] = True
|
362
|
-
return self.get_history_with_http_info(**kwargs) # noqa: E501
|
369
|
+
return self.get_history_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
|
363
370
|
|
364
|
-
|
371
|
+
@validate_arguments
|
372
|
+
def get_history_with_http_info(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
365
373
|
"""User History # noqa: E501
|
366
374
|
|
367
375
|
This method makes a synchronous HTTP request by default. To make an
|
368
376
|
asynchronous HTTP request, please pass async_req=True
|
369
377
|
|
370
|
-
>>> thread = api.get_history_with_http_info(async_req=True)
|
378
|
+
>>> thread = api.get_history_with_http_info(offset, limit, sort, query, no_page, async_req=True)
|
371
379
|
>>> result = thread.get()
|
372
380
|
|
373
381
|
:param offset: Pagination offset.
|
@@ -397,100 +405,112 @@ class UsersV1Api(object):
|
|
397
405
|
request; this effectively ignores the authentication
|
398
406
|
in the spec for a single request.
|
399
407
|
:type _request_auth: dict, optional
|
408
|
+
:type _content_type: string, optional: force content-type for the request
|
400
409
|
:return: Returns the result object.
|
401
410
|
If the method is called asynchronously,
|
402
411
|
returns the request thread.
|
403
412
|
:rtype: tuple(V1ListActivitiesResponse, status_code(int), headers(HTTPHeaderDict))
|
404
413
|
"""
|
405
414
|
|
406
|
-
|
415
|
+
_params = locals()
|
407
416
|
|
408
|
-
|
417
|
+
_all_params = [
|
409
418
|
'offset',
|
410
419
|
'limit',
|
411
420
|
'sort',
|
412
421
|
'query',
|
413
422
|
'no_page'
|
414
423
|
]
|
415
|
-
|
424
|
+
_all_params.extend(
|
416
425
|
[
|
417
426
|
'async_req',
|
418
427
|
'_return_http_data_only',
|
419
428
|
'_preload_content',
|
420
429
|
'_request_timeout',
|
421
|
-
'_request_auth'
|
430
|
+
'_request_auth',
|
431
|
+
'_content_type',
|
432
|
+
'_headers'
|
422
433
|
]
|
423
434
|
)
|
424
435
|
|
425
|
-
|
426
|
-
|
436
|
+
# validate the arguments
|
437
|
+
for _key, _val in _params['kwargs'].items():
|
438
|
+
if _key not in _all_params:
|
427
439
|
raise ApiTypeError(
|
428
440
|
"Got an unexpected keyword argument '%s'"
|
429
|
-
" to method get_history" %
|
441
|
+
" to method get_history" % _key
|
430
442
|
)
|
431
|
-
|
432
|
-
del
|
443
|
+
_params[_key] = _val
|
444
|
+
del _params['kwargs']
|
445
|
+
|
446
|
+
_collection_formats = {}
|
447
|
+
|
448
|
+
# process the path parameters
|
449
|
+
_path_params = {}
|
433
450
|
|
434
|
-
|
451
|
+
# process the query parameters
|
452
|
+
_query_params = []
|
453
|
+
if _params.get('offset') is not None: # noqa: E501
|
454
|
+
_query_params.append(('offset', _params['offset']))
|
435
455
|
|
436
|
-
|
456
|
+
if _params.get('limit') is not None: # noqa: E501
|
457
|
+
_query_params.append(('limit', _params['limit']))
|
437
458
|
|
438
|
-
|
439
|
-
|
440
|
-
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
|
441
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
442
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
443
|
-
if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
|
444
|
-
query_params.append(('sort', local_var_params['sort'])) # noqa: E501
|
445
|
-
if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
|
446
|
-
query_params.append(('query', local_var_params['query'])) # noqa: E501
|
447
|
-
if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
|
448
|
-
query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
|
459
|
+
if _params.get('sort') is not None: # noqa: E501
|
460
|
+
_query_params.append(('sort', _params['sort']))
|
449
461
|
|
450
|
-
|
462
|
+
if _params.get('query') is not None: # noqa: E501
|
463
|
+
_query_params.append(('query', _params['query']))
|
451
464
|
|
452
|
-
|
453
|
-
|
465
|
+
if _params.get('no_page') is not None: # noqa: E501
|
466
|
+
_query_params.append(('no_page', _params['no_page']))
|
454
467
|
|
455
|
-
|
456
|
-
|
457
|
-
|
468
|
+
# process the header parameters
|
469
|
+
_header_params = dict(_params.get('_headers', {}))
|
470
|
+
# process the form parameters
|
471
|
+
_form_params = []
|
472
|
+
_files = {}
|
473
|
+
# process the body parameter
|
474
|
+
_body_params = None
|
475
|
+
# set the HTTP header `Accept`
|
476
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
458
477
|
['application/json']) # noqa: E501
|
459
478
|
|
460
|
-
#
|
461
|
-
|
479
|
+
# authentication setting
|
480
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
462
481
|
|
463
|
-
|
464
|
-
200: "V1ListActivitiesResponse",
|
465
|
-
204: "object",
|
466
|
-
403: "object",
|
467
|
-
404: "object",
|
482
|
+
_response_types_map = {
|
483
|
+
'200': "V1ListActivitiesResponse",
|
484
|
+
'204': "object",
|
485
|
+
'403': "object",
|
486
|
+
'404': "object",
|
468
487
|
}
|
469
488
|
|
470
489
|
return self.api_client.call_api(
|
471
490
|
'/api/v1/users/history', 'GET',
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
body=
|
476
|
-
post_params=
|
477
|
-
files=
|
478
|
-
response_types_map=
|
479
|
-
auth_settings=
|
480
|
-
async_req=
|
481
|
-
_return_http_data_only=
|
482
|
-
_preload_content=
|
483
|
-
_request_timeout=
|
484
|
-
collection_formats=
|
485
|
-
_request_auth=
|
486
|
-
|
487
|
-
|
491
|
+
_path_params,
|
492
|
+
_query_params,
|
493
|
+
_header_params,
|
494
|
+
body=_body_params,
|
495
|
+
post_params=_form_params,
|
496
|
+
files=_files,
|
497
|
+
response_types_map=_response_types_map,
|
498
|
+
auth_settings=_auth_settings,
|
499
|
+
async_req=_params.get('async_req'),
|
500
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
501
|
+
_preload_content=_params.get('_preload_content', True),
|
502
|
+
_request_timeout=_params.get('_request_timeout'),
|
503
|
+
collection_formats=_collection_formats,
|
504
|
+
_request_auth=_params.get('_request_auth'))
|
505
|
+
|
506
|
+
@validate_arguments
|
507
|
+
def get_suggestions(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> object: # noqa: E501
|
488
508
|
"""User suggestions # noqa: E501
|
489
509
|
|
490
510
|
This method makes a synchronous HTTP request by default. To make an
|
491
511
|
asynchronous HTTP request, please pass async_req=True
|
492
512
|
|
493
|
-
>>> thread = api.get_suggestions(async_req=True)
|
513
|
+
>>> thread = api.get_suggestions(offset, limit, sort, query, no_page, async_req=True)
|
494
514
|
>>> result = thread.get()
|
495
515
|
|
496
516
|
:param offset: Pagination offset.
|
@@ -519,15 +539,16 @@ class UsersV1Api(object):
|
|
519
539
|
:rtype: object
|
520
540
|
"""
|
521
541
|
kwargs['_return_http_data_only'] = True
|
522
|
-
return self.get_suggestions_with_http_info(**kwargs) # noqa: E501
|
542
|
+
return self.get_suggestions_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
|
523
543
|
|
524
|
-
|
544
|
+
@validate_arguments
|
545
|
+
def get_suggestions_with_http_info(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
525
546
|
"""User suggestions # noqa: E501
|
526
547
|
|
527
548
|
This method makes a synchronous HTTP request by default. To make an
|
528
549
|
asynchronous HTTP request, please pass async_req=True
|
529
550
|
|
530
|
-
>>> thread = api.get_suggestions_with_http_info(async_req=True)
|
551
|
+
>>> thread = api.get_suggestions_with_http_info(offset, limit, sort, query, no_page, async_req=True)
|
531
552
|
>>> result = thread.get()
|
532
553
|
|
533
554
|
:param offset: Pagination offset.
|
@@ -557,94 +578,106 @@ class UsersV1Api(object):
|
|
557
578
|
request; this effectively ignores the authentication
|
558
579
|
in the spec for a single request.
|
559
580
|
:type _request_auth: dict, optional
|
581
|
+
:type _content_type: string, optional: force content-type for the request
|
560
582
|
:return: Returns the result object.
|
561
583
|
If the method is called asynchronously,
|
562
584
|
returns the request thread.
|
563
585
|
:rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
564
586
|
"""
|
565
587
|
|
566
|
-
|
588
|
+
_params = locals()
|
567
589
|
|
568
|
-
|
590
|
+
_all_params = [
|
569
591
|
'offset',
|
570
592
|
'limit',
|
571
593
|
'sort',
|
572
594
|
'query',
|
573
595
|
'no_page'
|
574
596
|
]
|
575
|
-
|
597
|
+
_all_params.extend(
|
576
598
|
[
|
577
599
|
'async_req',
|
578
600
|
'_return_http_data_only',
|
579
601
|
'_preload_content',
|
580
602
|
'_request_timeout',
|
581
|
-
'_request_auth'
|
603
|
+
'_request_auth',
|
604
|
+
'_content_type',
|
605
|
+
'_headers'
|
582
606
|
]
|
583
607
|
)
|
584
608
|
|
585
|
-
|
586
|
-
|
609
|
+
# validate the arguments
|
610
|
+
for _key, _val in _params['kwargs'].items():
|
611
|
+
if _key not in _all_params:
|
587
612
|
raise ApiTypeError(
|
588
613
|
"Got an unexpected keyword argument '%s'"
|
589
|
-
" to method get_suggestions" %
|
614
|
+
" to method get_suggestions" % _key
|
590
615
|
)
|
591
|
-
|
592
|
-
del
|
616
|
+
_params[_key] = _val
|
617
|
+
del _params['kwargs']
|
593
618
|
|
594
|
-
|
619
|
+
_collection_formats = {}
|
595
620
|
|
596
|
-
|
621
|
+
# process the path parameters
|
622
|
+
_path_params = {}
|
597
623
|
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
603
|
-
if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
|
604
|
-
query_params.append(('sort', local_var_params['sort'])) # noqa: E501
|
605
|
-
if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
|
606
|
-
query_params.append(('query', local_var_params['query'])) # noqa: E501
|
607
|
-
if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
|
608
|
-
query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
|
624
|
+
# process the query parameters
|
625
|
+
_query_params = []
|
626
|
+
if _params.get('offset') is not None: # noqa: E501
|
627
|
+
_query_params.append(('offset', _params['offset']))
|
609
628
|
|
610
|
-
|
629
|
+
if _params.get('limit') is not None: # noqa: E501
|
630
|
+
_query_params.append(('limit', _params['limit']))
|
611
631
|
|
612
|
-
|
613
|
-
|
632
|
+
if _params.get('sort') is not None: # noqa: E501
|
633
|
+
_query_params.append(('sort', _params['sort']))
|
614
634
|
|
615
|
-
|
616
|
-
|
617
|
-
|
635
|
+
if _params.get('query') is not None: # noqa: E501
|
636
|
+
_query_params.append(('query', _params['query']))
|
637
|
+
|
638
|
+
if _params.get('no_page') is not None: # noqa: E501
|
639
|
+
_query_params.append(('no_page', _params['no_page']))
|
640
|
+
|
641
|
+
# process the header parameters
|
642
|
+
_header_params = dict(_params.get('_headers', {}))
|
643
|
+
# process the form parameters
|
644
|
+
_form_params = []
|
645
|
+
_files = {}
|
646
|
+
# process the body parameter
|
647
|
+
_body_params = None
|
648
|
+
# set the HTTP header `Accept`
|
649
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
618
650
|
['application/json']) # noqa: E501
|
619
651
|
|
620
|
-
#
|
621
|
-
|
652
|
+
# authentication setting
|
653
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
622
654
|
|
623
|
-
|
624
|
-
200: "object",
|
625
|
-
204: "object",
|
626
|
-
403: "object",
|
627
|
-
404: "object",
|
655
|
+
_response_types_map = {
|
656
|
+
'200': "object",
|
657
|
+
'204': "object",
|
658
|
+
'403': "object",
|
659
|
+
'404': "object",
|
628
660
|
}
|
629
661
|
|
630
662
|
return self.api_client.call_api(
|
631
663
|
'/api/v1/users/suggestions', 'GET',
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
body=
|
636
|
-
post_params=
|
637
|
-
files=
|
638
|
-
response_types_map=
|
639
|
-
auth_settings=
|
640
|
-
async_req=
|
641
|
-
_return_http_data_only=
|
642
|
-
_preload_content=
|
643
|
-
_request_timeout=
|
644
|
-
collection_formats=
|
645
|
-
_request_auth=
|
646
|
-
|
647
|
-
|
664
|
+
_path_params,
|
665
|
+
_query_params,
|
666
|
+
_header_params,
|
667
|
+
body=_body_params,
|
668
|
+
post_params=_form_params,
|
669
|
+
files=_files,
|
670
|
+
response_types_map=_response_types_map,
|
671
|
+
auth_settings=_auth_settings,
|
672
|
+
async_req=_params.get('async_req'),
|
673
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
674
|
+
_preload_content=_params.get('_preload_content', True),
|
675
|
+
_request_timeout=_params.get('_request_timeout'),
|
676
|
+
collection_formats=_collection_formats,
|
677
|
+
_request_auth=_params.get('_request_auth'))
|
678
|
+
|
679
|
+
@validate_arguments
|
680
|
+
def get_token(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs) -> V1Token: # noqa: E501
|
648
681
|
"""Get token # noqa: E501
|
649
682
|
|
650
683
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -673,7 +706,8 @@ class UsersV1Api(object):
|
|
673
706
|
kwargs['_return_http_data_only'] = True
|
674
707
|
return self.get_token_with_http_info(uuid, **kwargs) # noqa: E501
|
675
708
|
|
676
|
-
|
709
|
+
@validate_arguments
|
710
|
+
def get_token_with_http_info(self, uuid : Annotated[StrictStr, Field(..., description="UUid of the namespace")], **kwargs): # noqa: E501
|
677
711
|
"""Get token # noqa: E501
|
678
712
|
|
679
713
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -701,86 +735,90 @@ class UsersV1Api(object):
|
|
701
735
|
request; this effectively ignores the authentication
|
702
736
|
in the spec for a single request.
|
703
737
|
:type _request_auth: dict, optional
|
738
|
+
:type _content_type: string, optional: force content-type for the request
|
704
739
|
:return: Returns the result object.
|
705
740
|
If the method is called asynchronously,
|
706
741
|
returns the request thread.
|
707
742
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
708
743
|
"""
|
709
744
|
|
710
|
-
|
745
|
+
_params = locals()
|
711
746
|
|
712
|
-
|
747
|
+
_all_params = [
|
713
748
|
'uuid'
|
714
749
|
]
|
715
|
-
|
750
|
+
_all_params.extend(
|
716
751
|
[
|
717
752
|
'async_req',
|
718
753
|
'_return_http_data_only',
|
719
754
|
'_preload_content',
|
720
755
|
'_request_timeout',
|
721
|
-
'_request_auth'
|
756
|
+
'_request_auth',
|
757
|
+
'_content_type',
|
758
|
+
'_headers'
|
722
759
|
]
|
723
760
|
)
|
724
761
|
|
725
|
-
|
726
|
-
|
762
|
+
# validate the arguments
|
763
|
+
for _key, _val in _params['kwargs'].items():
|
764
|
+
if _key not in _all_params:
|
727
765
|
raise ApiTypeError(
|
728
766
|
"Got an unexpected keyword argument '%s'"
|
729
|
-
" to method get_token" %
|
767
|
+
" to method get_token" % _key
|
730
768
|
)
|
731
|
-
|
732
|
-
del
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
769
|
+
_params[_key] = _val
|
770
|
+
del _params['kwargs']
|
771
|
+
|
772
|
+
_collection_formats = {}
|
773
|
+
|
774
|
+
# process the path parameters
|
775
|
+
_path_params = {}
|
776
|
+
if _params['uuid']:
|
777
|
+
_path_params['uuid'] = _params['uuid']
|
778
|
+
|
779
|
+
|
780
|
+
# process the query parameters
|
781
|
+
_query_params = []
|
782
|
+
# process the header parameters
|
783
|
+
_header_params = dict(_params.get('_headers', {}))
|
784
|
+
# process the form parameters
|
785
|
+
_form_params = []
|
786
|
+
_files = {}
|
787
|
+
# process the body parameter
|
788
|
+
_body_params = None
|
789
|
+
# set the HTTP header `Accept`
|
790
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
754
791
|
['application/json']) # noqa: E501
|
755
792
|
|
756
|
-
#
|
757
|
-
|
793
|
+
# authentication setting
|
794
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
758
795
|
|
759
|
-
|
760
|
-
200: "V1Token",
|
761
|
-
204: "object",
|
762
|
-
403: "object",
|
763
|
-
404: "object",
|
796
|
+
_response_types_map = {
|
797
|
+
'200': "V1Token",
|
798
|
+
'204': "object",
|
799
|
+
'403': "object",
|
800
|
+
'404': "object",
|
764
801
|
}
|
765
802
|
|
766
803
|
return self.api_client.call_api(
|
767
804
|
'/api/v1/users/tokens/{uuid}', 'GET',
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
body=
|
772
|
-
post_params=
|
773
|
-
files=
|
774
|
-
response_types_map=
|
775
|
-
auth_settings=
|
776
|
-
async_req=
|
777
|
-
_return_http_data_only=
|
778
|
-
_preload_content=
|
779
|
-
_request_timeout=
|
780
|
-
collection_formats=
|
781
|
-
_request_auth=
|
782
|
-
|
783
|
-
|
805
|
+
_path_params,
|
806
|
+
_query_params,
|
807
|
+
_header_params,
|
808
|
+
body=_body_params,
|
809
|
+
post_params=_form_params,
|
810
|
+
files=_files,
|
811
|
+
response_types_map=_response_types_map,
|
812
|
+
auth_settings=_auth_settings,
|
813
|
+
async_req=_params.get('async_req'),
|
814
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
815
|
+
_preload_content=_params.get('_preload_content', True),
|
816
|
+
_request_timeout=_params.get('_request_timeout'),
|
817
|
+
collection_formats=_collection_formats,
|
818
|
+
_request_auth=_params.get('_request_auth'))
|
819
|
+
|
820
|
+
@validate_arguments
|
821
|
+
def get_user(self, **kwargs) -> V1User: # noqa: E501
|
784
822
|
"""Get current user # noqa: E501
|
785
823
|
|
786
824
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -807,6 +845,7 @@ class UsersV1Api(object):
|
|
807
845
|
kwargs['_return_http_data_only'] = True
|
808
846
|
return self.get_user_with_http_info(**kwargs) # noqa: E501
|
809
847
|
|
848
|
+
@validate_arguments
|
810
849
|
def get_user_with_http_info(self, **kwargs): # noqa: E501
|
811
850
|
"""Get current user # noqa: E501
|
812
851
|
|
@@ -833,85 +872,92 @@ class UsersV1Api(object):
|
|
833
872
|
request; this effectively ignores the authentication
|
834
873
|
in the spec for a single request.
|
835
874
|
:type _request_auth: dict, optional
|
875
|
+
:type _content_type: string, optional: force content-type for the request
|
836
876
|
:return: Returns the result object.
|
837
877
|
If the method is called asynchronously,
|
838
878
|
returns the request thread.
|
839
879
|
:rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
|
840
880
|
"""
|
841
881
|
|
842
|
-
|
882
|
+
_params = locals()
|
843
883
|
|
844
|
-
|
884
|
+
_all_params = [
|
845
885
|
]
|
846
|
-
|
886
|
+
_all_params.extend(
|
847
887
|
[
|
848
888
|
'async_req',
|
849
889
|
'_return_http_data_only',
|
850
890
|
'_preload_content',
|
851
891
|
'_request_timeout',
|
852
|
-
'_request_auth'
|
892
|
+
'_request_auth',
|
893
|
+
'_content_type',
|
894
|
+
'_headers'
|
853
895
|
]
|
854
896
|
)
|
855
897
|
|
856
|
-
|
857
|
-
|
898
|
+
# validate the arguments
|
899
|
+
for _key, _val in _params['kwargs'].items():
|
900
|
+
if _key not in _all_params:
|
858
901
|
raise ApiTypeError(
|
859
902
|
"Got an unexpected keyword argument '%s'"
|
860
|
-
" to method get_user" %
|
903
|
+
" to method get_user" % _key
|
861
904
|
)
|
862
|
-
|
863
|
-
del
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
#
|
878
|
-
|
905
|
+
_params[_key] = _val
|
906
|
+
del _params['kwargs']
|
907
|
+
|
908
|
+
_collection_formats = {}
|
909
|
+
|
910
|
+
# process the path parameters
|
911
|
+
_path_params = {}
|
912
|
+
|
913
|
+
# process the query parameters
|
914
|
+
_query_params = []
|
915
|
+
# process the header parameters
|
916
|
+
_header_params = dict(_params.get('_headers', {}))
|
917
|
+
# process the form parameters
|
918
|
+
_form_params = []
|
919
|
+
_files = {}
|
920
|
+
# process the body parameter
|
921
|
+
_body_params = None
|
922
|
+
# set the HTTP header `Accept`
|
923
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
879
924
|
['application/json']) # noqa: E501
|
880
925
|
|
881
|
-
#
|
882
|
-
|
926
|
+
# authentication setting
|
927
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
883
928
|
|
884
|
-
|
885
|
-
200: "V1User",
|
886
|
-
204: "object",
|
887
|
-
403: "object",
|
888
|
-
404: "object",
|
929
|
+
_response_types_map = {
|
930
|
+
'200': "V1User",
|
931
|
+
'204': "object",
|
932
|
+
'403': "object",
|
933
|
+
'404': "object",
|
889
934
|
}
|
890
935
|
|
891
936
|
return self.api_client.call_api(
|
892
937
|
'/api/v1/users', 'GET',
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
body=
|
897
|
-
post_params=
|
898
|
-
files=
|
899
|
-
response_types_map=
|
900
|
-
auth_settings=
|
901
|
-
async_req=
|
902
|
-
_return_http_data_only=
|
903
|
-
_preload_content=
|
904
|
-
_request_timeout=
|
905
|
-
collection_formats=
|
906
|
-
_request_auth=
|
907
|
-
|
908
|
-
|
938
|
+
_path_params,
|
939
|
+
_query_params,
|
940
|
+
_header_params,
|
941
|
+
body=_body_params,
|
942
|
+
post_params=_form_params,
|
943
|
+
files=_files,
|
944
|
+
response_types_map=_response_types_map,
|
945
|
+
auth_settings=_auth_settings,
|
946
|
+
async_req=_params.get('async_req'),
|
947
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
948
|
+
_preload_content=_params.get('_preload_content', True),
|
949
|
+
_request_timeout=_params.get('_request_timeout'),
|
950
|
+
collection_formats=_collection_formats,
|
951
|
+
_request_auth=_params.get('_request_auth'))
|
952
|
+
|
953
|
+
@validate_arguments
|
954
|
+
def list_tokens(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTokenResponse: # noqa: E501
|
909
955
|
"""List tokens # noqa: E501
|
910
956
|
|
911
957
|
This method makes a synchronous HTTP request by default. To make an
|
912
958
|
asynchronous HTTP request, please pass async_req=True
|
913
959
|
|
914
|
-
>>> thread = api.list_tokens(async_req=True)
|
960
|
+
>>> thread = api.list_tokens(offset, limit, sort, query, no_page, async_req=True)
|
915
961
|
>>> result = thread.get()
|
916
962
|
|
917
963
|
:param offset: Pagination offset.
|
@@ -940,15 +986,16 @@ class UsersV1Api(object):
|
|
940
986
|
:rtype: V1ListTokenResponse
|
941
987
|
"""
|
942
988
|
kwargs['_return_http_data_only'] = True
|
943
|
-
return self.list_tokens_with_http_info(**kwargs) # noqa: E501
|
989
|
+
return self.list_tokens_with_http_info(offset, limit, sort, query, no_page, **kwargs) # noqa: E501
|
944
990
|
|
945
|
-
|
991
|
+
@validate_arguments
|
992
|
+
def list_tokens_with_http_info(self, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
946
993
|
"""List tokens # noqa: E501
|
947
994
|
|
948
995
|
This method makes a synchronous HTTP request by default. To make an
|
949
996
|
asynchronous HTTP request, please pass async_req=True
|
950
997
|
|
951
|
-
>>> thread = api.list_tokens_with_http_info(async_req=True)
|
998
|
+
>>> thread = api.list_tokens_with_http_info(offset, limit, sort, query, no_page, async_req=True)
|
952
999
|
>>> result = thread.get()
|
953
1000
|
|
954
1001
|
:param offset: Pagination offset.
|
@@ -978,94 +1025,106 @@ class UsersV1Api(object):
|
|
978
1025
|
request; this effectively ignores the authentication
|
979
1026
|
in the spec for a single request.
|
980
1027
|
:type _request_auth: dict, optional
|
1028
|
+
:type _content_type: string, optional: force content-type for the request
|
981
1029
|
:return: Returns the result object.
|
982
1030
|
If the method is called asynchronously,
|
983
1031
|
returns the request thread.
|
984
1032
|
:rtype: tuple(V1ListTokenResponse, status_code(int), headers(HTTPHeaderDict))
|
985
1033
|
"""
|
986
1034
|
|
987
|
-
|
1035
|
+
_params = locals()
|
988
1036
|
|
989
|
-
|
1037
|
+
_all_params = [
|
990
1038
|
'offset',
|
991
1039
|
'limit',
|
992
1040
|
'sort',
|
993
1041
|
'query',
|
994
1042
|
'no_page'
|
995
1043
|
]
|
996
|
-
|
1044
|
+
_all_params.extend(
|
997
1045
|
[
|
998
1046
|
'async_req',
|
999
1047
|
'_return_http_data_only',
|
1000
1048
|
'_preload_content',
|
1001
1049
|
'_request_timeout',
|
1002
|
-
'_request_auth'
|
1050
|
+
'_request_auth',
|
1051
|
+
'_content_type',
|
1052
|
+
'_headers'
|
1003
1053
|
]
|
1004
1054
|
)
|
1005
1055
|
|
1006
|
-
|
1007
|
-
|
1056
|
+
# validate the arguments
|
1057
|
+
for _key, _val in _params['kwargs'].items():
|
1058
|
+
if _key not in _all_params:
|
1008
1059
|
raise ApiTypeError(
|
1009
1060
|
"Got an unexpected keyword argument '%s'"
|
1010
|
-
" to method list_tokens" %
|
1061
|
+
" to method list_tokens" % _key
|
1011
1062
|
)
|
1012
|
-
|
1013
|
-
del
|
1063
|
+
_params[_key] = _val
|
1064
|
+
del _params['kwargs']
|
1065
|
+
|
1066
|
+
_collection_formats = {}
|
1067
|
+
|
1068
|
+
# process the path parameters
|
1069
|
+
_path_params = {}
|
1014
1070
|
|
1015
|
-
|
1071
|
+
# process the query parameters
|
1072
|
+
_query_params = []
|
1073
|
+
if _params.get('offset') is not None: # noqa: E501
|
1074
|
+
_query_params.append(('offset', _params['offset']))
|
1016
1075
|
|
1017
|
-
|
1076
|
+
if _params.get('limit') is not None: # noqa: E501
|
1077
|
+
_query_params.append(('limit', _params['limit']))
|
1018
1078
|
|
1019
|
-
|
1020
|
-
|
1021
|
-
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
|
1022
|
-
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
|
1023
|
-
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
|
1024
|
-
if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501
|
1025
|
-
query_params.append(('sort', local_var_params['sort'])) # noqa: E501
|
1026
|
-
if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
|
1027
|
-
query_params.append(('query', local_var_params['query'])) # noqa: E501
|
1028
|
-
if 'no_page' in local_var_params and local_var_params['no_page'] is not None: # noqa: E501
|
1029
|
-
query_params.append(('no_page', local_var_params['no_page'])) # noqa: E501
|
1079
|
+
if _params.get('sort') is not None: # noqa: E501
|
1080
|
+
_query_params.append(('sort', _params['sort']))
|
1030
1081
|
|
1031
|
-
|
1082
|
+
if _params.get('query') is not None: # noqa: E501
|
1083
|
+
_query_params.append(('query', _params['query']))
|
1032
1084
|
|
1033
|
-
|
1034
|
-
|
1085
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1086
|
+
_query_params.append(('no_page', _params['no_page']))
|
1035
1087
|
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1088
|
+
# process the header parameters
|
1089
|
+
_header_params = dict(_params.get('_headers', {}))
|
1090
|
+
# process the form parameters
|
1091
|
+
_form_params = []
|
1092
|
+
_files = {}
|
1093
|
+
# process the body parameter
|
1094
|
+
_body_params = None
|
1095
|
+
# set the HTTP header `Accept`
|
1096
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1039
1097
|
['application/json']) # noqa: E501
|
1040
1098
|
|
1041
|
-
#
|
1042
|
-
|
1099
|
+
# authentication setting
|
1100
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1043
1101
|
|
1044
|
-
|
1045
|
-
200: "V1ListTokenResponse",
|
1046
|
-
204: "object",
|
1047
|
-
403: "object",
|
1048
|
-
404: "object",
|
1102
|
+
_response_types_map = {
|
1103
|
+
'200': "V1ListTokenResponse",
|
1104
|
+
'204': "object",
|
1105
|
+
'403': "object",
|
1106
|
+
'404': "object",
|
1049
1107
|
}
|
1050
1108
|
|
1051
1109
|
return self.api_client.call_api(
|
1052
1110
|
'/api/v1/users/tokens', 'GET',
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
body=
|
1057
|
-
post_params=
|
1058
|
-
files=
|
1059
|
-
response_types_map=
|
1060
|
-
auth_settings=
|
1061
|
-
async_req=
|
1062
|
-
_return_http_data_only=
|
1063
|
-
_preload_content=
|
1064
|
-
_request_timeout=
|
1065
|
-
collection_formats=
|
1066
|
-
_request_auth=
|
1067
|
-
|
1068
|
-
|
1111
|
+
_path_params,
|
1112
|
+
_query_params,
|
1113
|
+
_header_params,
|
1114
|
+
body=_body_params,
|
1115
|
+
post_params=_form_params,
|
1116
|
+
files=_files,
|
1117
|
+
response_types_map=_response_types_map,
|
1118
|
+
auth_settings=_auth_settings,
|
1119
|
+
async_req=_params.get('async_req'),
|
1120
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1121
|
+
_preload_content=_params.get('_preload_content', True),
|
1122
|
+
_request_timeout=_params.get('_request_timeout'),
|
1123
|
+
collection_formats=_collection_formats,
|
1124
|
+
_request_auth=_params.get('_request_auth'))
|
1125
|
+
|
1126
|
+
@validate_arguments
|
1127
|
+
def patch_token(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
1069
1128
|
"""Patch token # noqa: E501
|
1070
1129
|
|
1071
1130
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1096,7 +1155,8 @@ class UsersV1Api(object):
|
|
1096
1155
|
kwargs['_return_http_data_only'] = True
|
1097
1156
|
return self.patch_token_with_http_info(token_uuid, body, **kwargs) # noqa: E501
|
1098
1157
|
|
1099
|
-
|
1158
|
+
@validate_arguments
|
1159
|
+
def patch_token_with_http_info(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
1100
1160
|
"""Patch token # noqa: E501
|
1101
1161
|
|
1102
1162
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1126,97 +1186,101 @@ class UsersV1Api(object):
|
|
1126
1186
|
request; this effectively ignores the authentication
|
1127
1187
|
in the spec for a single request.
|
1128
1188
|
:type _request_auth: dict, optional
|
1189
|
+
:type _content_type: string, optional: force content-type for the request
|
1129
1190
|
:return: Returns the result object.
|
1130
1191
|
If the method is called asynchronously,
|
1131
1192
|
returns the request thread.
|
1132
1193
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
1133
1194
|
"""
|
1134
1195
|
|
1135
|
-
|
1196
|
+
_params = locals()
|
1136
1197
|
|
1137
|
-
|
1198
|
+
_all_params = [
|
1138
1199
|
'token_uuid',
|
1139
1200
|
'body'
|
1140
1201
|
]
|
1141
|
-
|
1202
|
+
_all_params.extend(
|
1142
1203
|
[
|
1143
1204
|
'async_req',
|
1144
1205
|
'_return_http_data_only',
|
1145
1206
|
'_preload_content',
|
1146
1207
|
'_request_timeout',
|
1147
|
-
'_request_auth'
|
1208
|
+
'_request_auth',
|
1209
|
+
'_content_type',
|
1210
|
+
'_headers'
|
1148
1211
|
]
|
1149
1212
|
)
|
1150
1213
|
|
1151
|
-
|
1152
|
-
|
1214
|
+
# validate the arguments
|
1215
|
+
for _key, _val in _params['kwargs'].items():
|
1216
|
+
if _key not in _all_params:
|
1153
1217
|
raise ApiTypeError(
|
1154
1218
|
"Got an unexpected keyword argument '%s'"
|
1155
|
-
" to method patch_token" %
|
1219
|
+
" to method patch_token" % _key
|
1156
1220
|
)
|
1157
|
-
|
1158
|
-
del
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
if
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
if 'body' in local_var_params:
|
1183
|
-
body_params = local_var_params['body']
|
1184
|
-
# HTTP header `Accept`
|
1185
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1221
|
+
_params[_key] = _val
|
1222
|
+
del _params['kwargs']
|
1223
|
+
|
1224
|
+
_collection_formats = {}
|
1225
|
+
|
1226
|
+
# process the path parameters
|
1227
|
+
_path_params = {}
|
1228
|
+
if _params['token_uuid']:
|
1229
|
+
_path_params['token.uuid'] = _params['token_uuid']
|
1230
|
+
|
1231
|
+
|
1232
|
+
# process the query parameters
|
1233
|
+
_query_params = []
|
1234
|
+
# process the header parameters
|
1235
|
+
_header_params = dict(_params.get('_headers', {}))
|
1236
|
+
# process the form parameters
|
1237
|
+
_form_params = []
|
1238
|
+
_files = {}
|
1239
|
+
# process the body parameter
|
1240
|
+
_body_params = None
|
1241
|
+
if _params['body']:
|
1242
|
+
_body_params = _params['body']
|
1243
|
+
|
1244
|
+
# set the HTTP header `Accept`
|
1245
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1186
1246
|
['application/json']) # noqa: E501
|
1187
1247
|
|
1188
|
-
# HTTP header `Content-Type`
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1248
|
+
# set the HTTP header `Content-Type`
|
1249
|
+
_content_types_list = _params.get('_content_type',
|
1250
|
+
self.api_client.select_header_content_type(
|
1251
|
+
['application/json']))
|
1252
|
+
if _content_types_list:
|
1253
|
+
_header_params['Content-Type'] = _content_types_list
|
1254
|
+
|
1255
|
+
# authentication setting
|
1256
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1257
|
+
|
1258
|
+
_response_types_map = {
|
1259
|
+
'200': "V1Token",
|
1260
|
+
'204': "object",
|
1261
|
+
'403': "object",
|
1262
|
+
'404': "object",
|
1200
1263
|
}
|
1201
1264
|
|
1202
1265
|
return self.api_client.call_api(
|
1203
1266
|
'/api/v1/users/tokens/{token.uuid}', 'PATCH',
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
body=
|
1208
|
-
post_params=
|
1209
|
-
files=
|
1210
|
-
response_types_map=
|
1211
|
-
auth_settings=
|
1212
|
-
async_req=
|
1213
|
-
_return_http_data_only=
|
1214
|
-
_preload_content=
|
1215
|
-
_request_timeout=
|
1216
|
-
collection_formats=
|
1217
|
-
_request_auth=
|
1218
|
-
|
1219
|
-
|
1267
|
+
_path_params,
|
1268
|
+
_query_params,
|
1269
|
+
_header_params,
|
1270
|
+
body=_body_params,
|
1271
|
+
post_params=_form_params,
|
1272
|
+
files=_files,
|
1273
|
+
response_types_map=_response_types_map,
|
1274
|
+
auth_settings=_auth_settings,
|
1275
|
+
async_req=_params.get('async_req'),
|
1276
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1277
|
+
_preload_content=_params.get('_preload_content', True),
|
1278
|
+
_request_timeout=_params.get('_request_timeout'),
|
1279
|
+
collection_formats=_collection_formats,
|
1280
|
+
_request_auth=_params.get('_request_auth'))
|
1281
|
+
|
1282
|
+
@validate_arguments
|
1283
|
+
def patch_user(self, body : V1User, **kwargs) -> V1User: # noqa: E501
|
1220
1284
|
"""Patch current user # noqa: E501
|
1221
1285
|
|
1222
1286
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1245,7 +1309,8 @@ class UsersV1Api(object):
|
|
1245
1309
|
kwargs['_return_http_data_only'] = True
|
1246
1310
|
return self.patch_user_with_http_info(body, **kwargs) # noqa: E501
|
1247
1311
|
|
1248
|
-
|
1312
|
+
@validate_arguments
|
1313
|
+
def patch_user_with_http_info(self, body : V1User, **kwargs): # noqa: E501
|
1249
1314
|
"""Patch current user # noqa: E501
|
1250
1315
|
|
1251
1316
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1273,90 +1338,97 @@ class UsersV1Api(object):
|
|
1273
1338
|
request; this effectively ignores the authentication
|
1274
1339
|
in the spec for a single request.
|
1275
1340
|
:type _request_auth: dict, optional
|
1341
|
+
:type _content_type: string, optional: force content-type for the request
|
1276
1342
|
:return: Returns the result object.
|
1277
1343
|
If the method is called asynchronously,
|
1278
1344
|
returns the request thread.
|
1279
1345
|
:rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
|
1280
1346
|
"""
|
1281
1347
|
|
1282
|
-
|
1348
|
+
_params = locals()
|
1283
1349
|
|
1284
|
-
|
1350
|
+
_all_params = [
|
1285
1351
|
'body'
|
1286
1352
|
]
|
1287
|
-
|
1353
|
+
_all_params.extend(
|
1288
1354
|
[
|
1289
1355
|
'async_req',
|
1290
1356
|
'_return_http_data_only',
|
1291
1357
|
'_preload_content',
|
1292
1358
|
'_request_timeout',
|
1293
|
-
'_request_auth'
|
1359
|
+
'_request_auth',
|
1360
|
+
'_content_type',
|
1361
|
+
'_headers'
|
1294
1362
|
]
|
1295
1363
|
)
|
1296
1364
|
|
1297
|
-
|
1298
|
-
|
1365
|
+
# validate the arguments
|
1366
|
+
for _key, _val in _params['kwargs'].items():
|
1367
|
+
if _key not in _all_params:
|
1299
1368
|
raise ApiTypeError(
|
1300
1369
|
"Got an unexpected keyword argument '%s'"
|
1301
|
-
" to method patch_user" %
|
1370
|
+
" to method patch_user" % _key
|
1302
1371
|
)
|
1303
|
-
|
1304
|
-
del
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1326
|
-
['application/json']) # noqa: E501
|
1327
|
-
|
1328
|
-
# HTTP header `Content-Type`
|
1329
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1372
|
+
_params[_key] = _val
|
1373
|
+
del _params['kwargs']
|
1374
|
+
|
1375
|
+
_collection_formats = {}
|
1376
|
+
|
1377
|
+
# process the path parameters
|
1378
|
+
_path_params = {}
|
1379
|
+
|
1380
|
+
# process the query parameters
|
1381
|
+
_query_params = []
|
1382
|
+
# process the header parameters
|
1383
|
+
_header_params = dict(_params.get('_headers', {}))
|
1384
|
+
# process the form parameters
|
1385
|
+
_form_params = []
|
1386
|
+
_files = {}
|
1387
|
+
# process the body parameter
|
1388
|
+
_body_params = None
|
1389
|
+
if _params['body']:
|
1390
|
+
_body_params = _params['body']
|
1391
|
+
|
1392
|
+
# set the HTTP header `Accept`
|
1393
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1330
1394
|
['application/json']) # noqa: E501
|
1331
1395
|
|
1332
|
-
#
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1396
|
+
# set the HTTP header `Content-Type`
|
1397
|
+
_content_types_list = _params.get('_content_type',
|
1398
|
+
self.api_client.select_header_content_type(
|
1399
|
+
['application/json']))
|
1400
|
+
if _content_types_list:
|
1401
|
+
_header_params['Content-Type'] = _content_types_list
|
1402
|
+
|
1403
|
+
# authentication setting
|
1404
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1405
|
+
|
1406
|
+
_response_types_map = {
|
1407
|
+
'200': "V1User",
|
1408
|
+
'204': "object",
|
1409
|
+
'403': "object",
|
1410
|
+
'404': "object",
|
1340
1411
|
}
|
1341
1412
|
|
1342
1413
|
return self.api_client.call_api(
|
1343
1414
|
'/api/v1/users', 'PATCH',
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
body=
|
1348
|
-
post_params=
|
1349
|
-
files=
|
1350
|
-
response_types_map=
|
1351
|
-
auth_settings=
|
1352
|
-
async_req=
|
1353
|
-
_return_http_data_only=
|
1354
|
-
_preload_content=
|
1355
|
-
_request_timeout=
|
1356
|
-
collection_formats=
|
1357
|
-
_request_auth=
|
1358
|
-
|
1359
|
-
|
1415
|
+
_path_params,
|
1416
|
+
_query_params,
|
1417
|
+
_header_params,
|
1418
|
+
body=_body_params,
|
1419
|
+
post_params=_form_params,
|
1420
|
+
files=_files,
|
1421
|
+
response_types_map=_response_types_map,
|
1422
|
+
auth_settings=_auth_settings,
|
1423
|
+
async_req=_params.get('async_req'),
|
1424
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1425
|
+
_preload_content=_params.get('_preload_content', True),
|
1426
|
+
_request_timeout=_params.get('_request_timeout'),
|
1427
|
+
collection_formats=_collection_formats,
|
1428
|
+
_request_auth=_params.get('_request_auth'))
|
1429
|
+
|
1430
|
+
@validate_arguments
|
1431
|
+
def update_token(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
1360
1432
|
"""Update token # noqa: E501
|
1361
1433
|
|
1362
1434
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1387,7 +1459,8 @@ class UsersV1Api(object):
|
|
1387
1459
|
kwargs['_return_http_data_only'] = True
|
1388
1460
|
return self.update_token_with_http_info(token_uuid, body, **kwargs) # noqa: E501
|
1389
1461
|
|
1390
|
-
|
1462
|
+
@validate_arguments
|
1463
|
+
def update_token_with_http_info(self, token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
1391
1464
|
"""Update token # noqa: E501
|
1392
1465
|
|
1393
1466
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1417,97 +1490,101 @@ class UsersV1Api(object):
|
|
1417
1490
|
request; this effectively ignores the authentication
|
1418
1491
|
in the spec for a single request.
|
1419
1492
|
:type _request_auth: dict, optional
|
1493
|
+
:type _content_type: string, optional: force content-type for the request
|
1420
1494
|
:return: Returns the result object.
|
1421
1495
|
If the method is called asynchronously,
|
1422
1496
|
returns the request thread.
|
1423
1497
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
1424
1498
|
"""
|
1425
1499
|
|
1426
|
-
|
1500
|
+
_params = locals()
|
1427
1501
|
|
1428
|
-
|
1502
|
+
_all_params = [
|
1429
1503
|
'token_uuid',
|
1430
1504
|
'body'
|
1431
1505
|
]
|
1432
|
-
|
1506
|
+
_all_params.extend(
|
1433
1507
|
[
|
1434
1508
|
'async_req',
|
1435
1509
|
'_return_http_data_only',
|
1436
1510
|
'_preload_content',
|
1437
1511
|
'_request_timeout',
|
1438
|
-
'_request_auth'
|
1512
|
+
'_request_auth',
|
1513
|
+
'_content_type',
|
1514
|
+
'_headers'
|
1439
1515
|
]
|
1440
1516
|
)
|
1441
1517
|
|
1442
|
-
|
1443
|
-
|
1518
|
+
# validate the arguments
|
1519
|
+
for _key, _val in _params['kwargs'].items():
|
1520
|
+
if _key not in _all_params:
|
1444
1521
|
raise ApiTypeError(
|
1445
1522
|
"Got an unexpected keyword argument '%s'"
|
1446
|
-
" to method update_token" %
|
1523
|
+
" to method update_token" % _key
|
1447
1524
|
)
|
1448
|
-
|
1449
|
-
del
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
if
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
if 'body' in local_var_params:
|
1474
|
-
body_params = local_var_params['body']
|
1475
|
-
# HTTP header `Accept`
|
1476
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1525
|
+
_params[_key] = _val
|
1526
|
+
del _params['kwargs']
|
1527
|
+
|
1528
|
+
_collection_formats = {}
|
1529
|
+
|
1530
|
+
# process the path parameters
|
1531
|
+
_path_params = {}
|
1532
|
+
if _params['token_uuid']:
|
1533
|
+
_path_params['token.uuid'] = _params['token_uuid']
|
1534
|
+
|
1535
|
+
|
1536
|
+
# process the query parameters
|
1537
|
+
_query_params = []
|
1538
|
+
# process the header parameters
|
1539
|
+
_header_params = dict(_params.get('_headers', {}))
|
1540
|
+
# process the form parameters
|
1541
|
+
_form_params = []
|
1542
|
+
_files = {}
|
1543
|
+
# process the body parameter
|
1544
|
+
_body_params = None
|
1545
|
+
if _params['body']:
|
1546
|
+
_body_params = _params['body']
|
1547
|
+
|
1548
|
+
# set the HTTP header `Accept`
|
1549
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1477
1550
|
['application/json']) # noqa: E501
|
1478
1551
|
|
1479
|
-
# HTTP header `Content-Type`
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1552
|
+
# set the HTTP header `Content-Type`
|
1553
|
+
_content_types_list = _params.get('_content_type',
|
1554
|
+
self.api_client.select_header_content_type(
|
1555
|
+
['application/json']))
|
1556
|
+
if _content_types_list:
|
1557
|
+
_header_params['Content-Type'] = _content_types_list
|
1558
|
+
|
1559
|
+
# authentication setting
|
1560
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1561
|
+
|
1562
|
+
_response_types_map = {
|
1563
|
+
'200': "V1Token",
|
1564
|
+
'204': "object",
|
1565
|
+
'403': "object",
|
1566
|
+
'404': "object",
|
1491
1567
|
}
|
1492
1568
|
|
1493
1569
|
return self.api_client.call_api(
|
1494
1570
|
'/api/v1/users/tokens/{token.uuid}', 'PUT',
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
body=
|
1499
|
-
post_params=
|
1500
|
-
files=
|
1501
|
-
response_types_map=
|
1502
|
-
auth_settings=
|
1503
|
-
async_req=
|
1504
|
-
_return_http_data_only=
|
1505
|
-
_preload_content=
|
1506
|
-
_request_timeout=
|
1507
|
-
collection_formats=
|
1508
|
-
_request_auth=
|
1509
|
-
|
1510
|
-
|
1571
|
+
_path_params,
|
1572
|
+
_query_params,
|
1573
|
+
_header_params,
|
1574
|
+
body=_body_params,
|
1575
|
+
post_params=_form_params,
|
1576
|
+
files=_files,
|
1577
|
+
response_types_map=_response_types_map,
|
1578
|
+
auth_settings=_auth_settings,
|
1579
|
+
async_req=_params.get('async_req'),
|
1580
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1581
|
+
_preload_content=_params.get('_preload_content', True),
|
1582
|
+
_request_timeout=_params.get('_request_timeout'),
|
1583
|
+
collection_formats=_collection_formats,
|
1584
|
+
_request_auth=_params.get('_request_auth'))
|
1585
|
+
|
1586
|
+
@validate_arguments
|
1587
|
+
def update_user(self, body : V1User, **kwargs) -> V1User: # noqa: E501
|
1511
1588
|
"""Update current user # noqa: E501
|
1512
1589
|
|
1513
1590
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1536,7 +1613,8 @@ class UsersV1Api(object):
|
|
1536
1613
|
kwargs['_return_http_data_only'] = True
|
1537
1614
|
return self.update_user_with_http_info(body, **kwargs) # noqa: E501
|
1538
1615
|
|
1539
|
-
|
1616
|
+
@validate_arguments
|
1617
|
+
def update_user_with_http_info(self, body : V1User, **kwargs): # noqa: E501
|
1540
1618
|
"""Update current user # noqa: E501
|
1541
1619
|
|
1542
1620
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1564,85 +1642,91 @@ class UsersV1Api(object):
|
|
1564
1642
|
request; this effectively ignores the authentication
|
1565
1643
|
in the spec for a single request.
|
1566
1644
|
:type _request_auth: dict, optional
|
1645
|
+
:type _content_type: string, optional: force content-type for the request
|
1567
1646
|
:return: Returns the result object.
|
1568
1647
|
If the method is called asynchronously,
|
1569
1648
|
returns the request thread.
|
1570
1649
|
:rtype: tuple(V1User, status_code(int), headers(HTTPHeaderDict))
|
1571
1650
|
"""
|
1572
1651
|
|
1573
|
-
|
1652
|
+
_params = locals()
|
1574
1653
|
|
1575
|
-
|
1654
|
+
_all_params = [
|
1576
1655
|
'body'
|
1577
1656
|
]
|
1578
|
-
|
1657
|
+
_all_params.extend(
|
1579
1658
|
[
|
1580
1659
|
'async_req',
|
1581
1660
|
'_return_http_data_only',
|
1582
1661
|
'_preload_content',
|
1583
1662
|
'_request_timeout',
|
1584
|
-
'_request_auth'
|
1663
|
+
'_request_auth',
|
1664
|
+
'_content_type',
|
1665
|
+
'_headers'
|
1585
1666
|
]
|
1586
1667
|
)
|
1587
1668
|
|
1588
|
-
|
1589
|
-
|
1669
|
+
# validate the arguments
|
1670
|
+
for _key, _val in _params['kwargs'].items():
|
1671
|
+
if _key not in _all_params:
|
1590
1672
|
raise ApiTypeError(
|
1591
1673
|
"Got an unexpected keyword argument '%s'"
|
1592
|
-
" to method update_user" %
|
1674
|
+
" to method update_user" % _key
|
1593
1675
|
)
|
1594
|
-
|
1595
|
-
del
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1617
|
-
['application/json']) # noqa: E501
|
1618
|
-
|
1619
|
-
# HTTP header `Content-Type`
|
1620
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1676
|
+
_params[_key] = _val
|
1677
|
+
del _params['kwargs']
|
1678
|
+
|
1679
|
+
_collection_formats = {}
|
1680
|
+
|
1681
|
+
# process the path parameters
|
1682
|
+
_path_params = {}
|
1683
|
+
|
1684
|
+
# process the query parameters
|
1685
|
+
_query_params = []
|
1686
|
+
# process the header parameters
|
1687
|
+
_header_params = dict(_params.get('_headers', {}))
|
1688
|
+
# process the form parameters
|
1689
|
+
_form_params = []
|
1690
|
+
_files = {}
|
1691
|
+
# process the body parameter
|
1692
|
+
_body_params = None
|
1693
|
+
if _params['body']:
|
1694
|
+
_body_params = _params['body']
|
1695
|
+
|
1696
|
+
# set the HTTP header `Accept`
|
1697
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1621
1698
|
['application/json']) # noqa: E501
|
1622
1699
|
|
1623
|
-
#
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1700
|
+
# set the HTTP header `Content-Type`
|
1701
|
+
_content_types_list = _params.get('_content_type',
|
1702
|
+
self.api_client.select_header_content_type(
|
1703
|
+
['application/json']))
|
1704
|
+
if _content_types_list:
|
1705
|
+
_header_params['Content-Type'] = _content_types_list
|
1706
|
+
|
1707
|
+
# authentication setting
|
1708
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1709
|
+
|
1710
|
+
_response_types_map = {
|
1711
|
+
'200': "V1User",
|
1712
|
+
'204': "object",
|
1713
|
+
'403': "object",
|
1714
|
+
'404': "object",
|
1631
1715
|
}
|
1632
1716
|
|
1633
1717
|
return self.api_client.call_api(
|
1634
1718
|
'/api/v1/users', 'PUT',
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
body=
|
1639
|
-
post_params=
|
1640
|
-
files=
|
1641
|
-
response_types_map=
|
1642
|
-
auth_settings=
|
1643
|
-
async_req=
|
1644
|
-
_return_http_data_only=
|
1645
|
-
_preload_content=
|
1646
|
-
_request_timeout=
|
1647
|
-
collection_formats=
|
1648
|
-
_request_auth=
|
1719
|
+
_path_params,
|
1720
|
+
_query_params,
|
1721
|
+
_header_params,
|
1722
|
+
body=_body_params,
|
1723
|
+
post_params=_form_params,
|
1724
|
+
files=_files,
|
1725
|
+
response_types_map=_response_types_map,
|
1726
|
+
auth_settings=_auth_settings,
|
1727
|
+
async_req=_params.get('async_req'),
|
1728
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1729
|
+
_preload_content=_params.get('_preload_content', True),
|
1730
|
+
_request_timeout=_params.get('_request_timeout'),
|
1731
|
+
collection_formats=_collection_formats,
|
1732
|
+
_request_auth=_params.get('_request_auth'))
|