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/auth_v1_api.py
CHANGED
@@ -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 polyaxon_sdk.models.v1_auth import V1Auth
|
22
|
+
from polyaxon_sdk.models.v1_credentials import V1Credentials
|
23
|
+
from polyaxon_sdk.models.v1_password_change import V1PasswordChange
|
24
|
+
from polyaxon_sdk.models.v1_trial_start import V1TrialStart
|
25
|
+
from polyaxon_sdk.models.v1_user_email import V1UserEmail
|
26
|
+
from polyaxon_sdk.models.v1_user_singup import V1UserSingup
|
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 AuthV1Api(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 change_password(self, body : V1PasswordChange, **kwargs) -> None: # noqa: E501
|
57
49
|
"""Change password # noqa: E501
|
58
50
|
|
59
51
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -82,7 +74,8 @@ class AuthV1Api(object):
|
|
82
74
|
kwargs['_return_http_data_only'] = True
|
83
75
|
return self.change_password_with_http_info(body, **kwargs) # noqa: E501
|
84
76
|
|
85
|
-
|
77
|
+
@validate_arguments
|
78
|
+
def change_password_with_http_info(self, body : V1PasswordChange, **kwargs): # noqa: E501
|
86
79
|
"""Change password # noqa: E501
|
87
80
|
|
88
81
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -110,85 +103,92 @@ class AuthV1Api(object):
|
|
110
103
|
request; this effectively ignores the authentication
|
111
104
|
in the spec for a single request.
|
112
105
|
:type _request_auth: dict, optional
|
106
|
+
:type _content_type: string, optional: force content-type for the request
|
113
107
|
:return: Returns the result object.
|
114
108
|
If the method is called asynchronously,
|
115
109
|
returns the request thread.
|
116
110
|
:rtype: None
|
117
111
|
"""
|
118
112
|
|
119
|
-
|
113
|
+
_params = locals()
|
120
114
|
|
121
|
-
|
115
|
+
_all_params = [
|
122
116
|
'body'
|
123
117
|
]
|
124
|
-
|
118
|
+
_all_params.extend(
|
125
119
|
[
|
126
120
|
'async_req',
|
127
121
|
'_return_http_data_only',
|
128
122
|
'_preload_content',
|
129
123
|
'_request_timeout',
|
130
|
-
'_request_auth'
|
124
|
+
'_request_auth',
|
125
|
+
'_content_type',
|
126
|
+
'_headers'
|
131
127
|
]
|
132
128
|
)
|
133
129
|
|
134
|
-
|
135
|
-
|
130
|
+
# validate the arguments
|
131
|
+
for _key, _val in _params['kwargs'].items():
|
132
|
+
if _key not in _all_params:
|
136
133
|
raise ApiTypeError(
|
137
134
|
"Got an unexpected keyword argument '%s'"
|
138
|
-
" to method change_password" %
|
135
|
+
" to method change_password" % _key
|
139
136
|
)
|
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(
|
137
|
+
_params[_key] = _val
|
138
|
+
del _params['kwargs']
|
139
|
+
|
140
|
+
_collection_formats = {}
|
141
|
+
|
142
|
+
# process the path parameters
|
143
|
+
_path_params = {}
|
144
|
+
|
145
|
+
# process the query parameters
|
146
|
+
_query_params = []
|
147
|
+
# process the header parameters
|
148
|
+
_header_params = dict(_params.get('_headers', {}))
|
149
|
+
# process the form parameters
|
150
|
+
_form_params = []
|
151
|
+
_files = {}
|
152
|
+
# process the body parameter
|
153
|
+
_body_params = None
|
154
|
+
if _params['body']:
|
155
|
+
_body_params = _params['body']
|
156
|
+
|
157
|
+
# set the HTTP header `Accept`
|
158
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
163
159
|
['application/json']) # noqa: E501
|
164
160
|
|
165
|
-
# HTTP header `Content-Type`
|
166
|
-
|
167
|
-
|
161
|
+
# set the HTTP header `Content-Type`
|
162
|
+
_content_types_list = _params.get('_content_type',
|
163
|
+
self.api_client.select_header_content_type(
|
164
|
+
['application/json']))
|
165
|
+
if _content_types_list:
|
166
|
+
_header_params['Content-Type'] = _content_types_list
|
168
167
|
|
169
|
-
#
|
170
|
-
|
168
|
+
# authentication setting
|
169
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
171
170
|
|
172
|
-
|
171
|
+
_response_types_map = {}
|
173
172
|
|
174
173
|
return self.api_client.call_api(
|
175
174
|
'/api/v1/auth/change-password', 'POST',
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
body=
|
180
|
-
post_params=
|
181
|
-
files=
|
182
|
-
response_types_map=
|
183
|
-
auth_settings=
|
184
|
-
async_req=
|
185
|
-
_return_http_data_only=
|
186
|
-
_preload_content=
|
187
|
-
_request_timeout=
|
188
|
-
collection_formats=
|
189
|
-
_request_auth=
|
190
|
-
|
191
|
-
|
175
|
+
_path_params,
|
176
|
+
_query_params,
|
177
|
+
_header_params,
|
178
|
+
body=_body_params,
|
179
|
+
post_params=_form_params,
|
180
|
+
files=_files,
|
181
|
+
response_types_map=_response_types_map,
|
182
|
+
auth_settings=_auth_settings,
|
183
|
+
async_req=_params.get('async_req'),
|
184
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
185
|
+
_preload_content=_params.get('_preload_content', True),
|
186
|
+
_request_timeout=_params.get('_request_timeout'),
|
187
|
+
collection_formats=_collection_formats,
|
188
|
+
_request_auth=_params.get('_request_auth'))
|
189
|
+
|
190
|
+
@validate_arguments
|
191
|
+
def login(self, body : V1Credentials, **kwargs) -> V1Auth: # noqa: E501
|
192
192
|
"""Login # noqa: E501
|
193
193
|
|
194
194
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -217,7 +217,8 @@ class AuthV1Api(object):
|
|
217
217
|
kwargs['_return_http_data_only'] = True
|
218
218
|
return self.login_with_http_info(body, **kwargs) # noqa: E501
|
219
219
|
|
220
|
-
|
220
|
+
@validate_arguments
|
221
|
+
def login_with_http_info(self, body : V1Credentials, **kwargs): # noqa: E501
|
221
222
|
"""Login # noqa: E501
|
222
223
|
|
223
224
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -245,90 +246,97 @@ class AuthV1Api(object):
|
|
245
246
|
request; this effectively ignores the authentication
|
246
247
|
in the spec for a single request.
|
247
248
|
:type _request_auth: dict, optional
|
249
|
+
:type _content_type: string, optional: force content-type for the request
|
248
250
|
:return: Returns the result object.
|
249
251
|
If the method is called asynchronously,
|
250
252
|
returns the request thread.
|
251
253
|
:rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
|
252
254
|
"""
|
253
255
|
|
254
|
-
|
256
|
+
_params = locals()
|
255
257
|
|
256
|
-
|
258
|
+
_all_params = [
|
257
259
|
'body'
|
258
260
|
]
|
259
|
-
|
261
|
+
_all_params.extend(
|
260
262
|
[
|
261
263
|
'async_req',
|
262
264
|
'_return_http_data_only',
|
263
265
|
'_preload_content',
|
264
266
|
'_request_timeout',
|
265
|
-
'_request_auth'
|
267
|
+
'_request_auth',
|
268
|
+
'_content_type',
|
269
|
+
'_headers'
|
266
270
|
]
|
267
271
|
)
|
268
272
|
|
269
|
-
|
270
|
-
|
273
|
+
# validate the arguments
|
274
|
+
for _key, _val in _params['kwargs'].items():
|
275
|
+
if _key not in _all_params:
|
271
276
|
raise ApiTypeError(
|
272
277
|
"Got an unexpected keyword argument '%s'"
|
273
|
-
" to method login" %
|
278
|
+
" to method login" % _key
|
274
279
|
)
|
275
|
-
|
276
|
-
del
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
280
|
+
_params[_key] = _val
|
281
|
+
del _params['kwargs']
|
282
|
+
|
283
|
+
_collection_formats = {}
|
284
|
+
|
285
|
+
# process the path parameters
|
286
|
+
_path_params = {}
|
287
|
+
|
288
|
+
# process the query parameters
|
289
|
+
_query_params = []
|
290
|
+
# process the header parameters
|
291
|
+
_header_params = dict(_params.get('_headers', {}))
|
292
|
+
# process the form parameters
|
293
|
+
_form_params = []
|
294
|
+
_files = {}
|
295
|
+
# process the body parameter
|
296
|
+
_body_params = None
|
297
|
+
if _params['body']:
|
298
|
+
_body_params = _params['body']
|
299
|
+
|
300
|
+
# set the HTTP header `Accept`
|
301
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
298
302
|
['application/json']) # noqa: E501
|
299
303
|
|
300
|
-
# HTTP header `Content-Type`
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
304
|
+
# set the HTTP header `Content-Type`
|
305
|
+
_content_types_list = _params.get('_content_type',
|
306
|
+
self.api_client.select_header_content_type(
|
307
|
+
['application/json']))
|
308
|
+
if _content_types_list:
|
309
|
+
_header_params['Content-Type'] = _content_types_list
|
310
|
+
|
311
|
+
# authentication setting
|
312
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
313
|
+
|
314
|
+
_response_types_map = {
|
315
|
+
'200': "V1Auth",
|
316
|
+
'204': "object",
|
317
|
+
'403': "object",
|
318
|
+
'404': "object",
|
312
319
|
}
|
313
320
|
|
314
321
|
return self.api_client.call_api(
|
315
322
|
'/api/v1/auth/token', 'POST',
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
body=
|
320
|
-
post_params=
|
321
|
-
files=
|
322
|
-
response_types_map=
|
323
|
-
auth_settings=
|
324
|
-
async_req=
|
325
|
-
_return_http_data_only=
|
326
|
-
_preload_content=
|
327
|
-
_request_timeout=
|
328
|
-
collection_formats=
|
329
|
-
_request_auth=
|
330
|
-
|
331
|
-
|
323
|
+
_path_params,
|
324
|
+
_query_params,
|
325
|
+
_header_params,
|
326
|
+
body=_body_params,
|
327
|
+
post_params=_form_params,
|
328
|
+
files=_files,
|
329
|
+
response_types_map=_response_types_map,
|
330
|
+
auth_settings=_auth_settings,
|
331
|
+
async_req=_params.get('async_req'),
|
332
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
333
|
+
_preload_content=_params.get('_preload_content', True),
|
334
|
+
_request_timeout=_params.get('_request_timeout'),
|
335
|
+
collection_formats=_collection_formats,
|
336
|
+
_request_auth=_params.get('_request_auth'))
|
337
|
+
|
338
|
+
@validate_arguments
|
339
|
+
def reset_password(self, body : V1UserEmail, **kwargs) -> None: # noqa: E501
|
332
340
|
"""Reset password # noqa: E501
|
333
341
|
|
334
342
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -357,7 +365,8 @@ class AuthV1Api(object):
|
|
357
365
|
kwargs['_return_http_data_only'] = True
|
358
366
|
return self.reset_password_with_http_info(body, **kwargs) # noqa: E501
|
359
367
|
|
360
|
-
|
368
|
+
@validate_arguments
|
369
|
+
def reset_password_with_http_info(self, body : V1UserEmail, **kwargs): # noqa: E501
|
361
370
|
"""Reset password # noqa: E501
|
362
371
|
|
363
372
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -385,85 +394,92 @@ class AuthV1Api(object):
|
|
385
394
|
request; this effectively ignores the authentication
|
386
395
|
in the spec for a single request.
|
387
396
|
:type _request_auth: dict, optional
|
397
|
+
:type _content_type: string, optional: force content-type for the request
|
388
398
|
:return: Returns the result object.
|
389
399
|
If the method is called asynchronously,
|
390
400
|
returns the request thread.
|
391
401
|
:rtype: None
|
392
402
|
"""
|
393
403
|
|
394
|
-
|
404
|
+
_params = locals()
|
395
405
|
|
396
|
-
|
406
|
+
_all_params = [
|
397
407
|
'body'
|
398
408
|
]
|
399
|
-
|
409
|
+
_all_params.extend(
|
400
410
|
[
|
401
411
|
'async_req',
|
402
412
|
'_return_http_data_only',
|
403
413
|
'_preload_content',
|
404
414
|
'_request_timeout',
|
405
|
-
'_request_auth'
|
415
|
+
'_request_auth',
|
416
|
+
'_content_type',
|
417
|
+
'_headers'
|
406
418
|
]
|
407
419
|
)
|
408
420
|
|
409
|
-
|
410
|
-
|
421
|
+
# validate the arguments
|
422
|
+
for _key, _val in _params['kwargs'].items():
|
423
|
+
if _key not in _all_params:
|
411
424
|
raise ApiTypeError(
|
412
425
|
"Got an unexpected keyword argument '%s'"
|
413
|
-
" to method reset_password" %
|
426
|
+
" to method reset_password" % _key
|
414
427
|
)
|
415
|
-
|
416
|
-
del
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
428
|
+
_params[_key] = _val
|
429
|
+
del _params['kwargs']
|
430
|
+
|
431
|
+
_collection_formats = {}
|
432
|
+
|
433
|
+
# process the path parameters
|
434
|
+
_path_params = {}
|
435
|
+
|
436
|
+
# process the query parameters
|
437
|
+
_query_params = []
|
438
|
+
# process the header parameters
|
439
|
+
_header_params = dict(_params.get('_headers', {}))
|
440
|
+
# process the form parameters
|
441
|
+
_form_params = []
|
442
|
+
_files = {}
|
443
|
+
# process the body parameter
|
444
|
+
_body_params = None
|
445
|
+
if _params['body']:
|
446
|
+
_body_params = _params['body']
|
447
|
+
|
448
|
+
# set the HTTP header `Accept`
|
449
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
438
450
|
['application/json']) # noqa: E501
|
439
451
|
|
440
|
-
# HTTP header `Content-Type`
|
441
|
-
|
442
|
-
|
452
|
+
# set the HTTP header `Content-Type`
|
453
|
+
_content_types_list = _params.get('_content_type',
|
454
|
+
self.api_client.select_header_content_type(
|
455
|
+
['application/json']))
|
456
|
+
if _content_types_list:
|
457
|
+
_header_params['Content-Type'] = _content_types_list
|
443
458
|
|
444
|
-
#
|
445
|
-
|
459
|
+
# authentication setting
|
460
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
446
461
|
|
447
|
-
|
462
|
+
_response_types_map = {}
|
448
463
|
|
449
464
|
return self.api_client.call_api(
|
450
465
|
'/api/v1/auth/reset-password', 'POST',
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
body=
|
455
|
-
post_params=
|
456
|
-
files=
|
457
|
-
response_types_map=
|
458
|
-
auth_settings=
|
459
|
-
async_req=
|
460
|
-
_return_http_data_only=
|
461
|
-
_preload_content=
|
462
|
-
_request_timeout=
|
463
|
-
collection_formats=
|
464
|
-
_request_auth=
|
465
|
-
|
466
|
-
|
466
|
+
_path_params,
|
467
|
+
_query_params,
|
468
|
+
_header_params,
|
469
|
+
body=_body_params,
|
470
|
+
post_params=_form_params,
|
471
|
+
files=_files,
|
472
|
+
response_types_map=_response_types_map,
|
473
|
+
auth_settings=_auth_settings,
|
474
|
+
async_req=_params.get('async_req'),
|
475
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
476
|
+
_preload_content=_params.get('_preload_content', True),
|
477
|
+
_request_timeout=_params.get('_request_timeout'),
|
478
|
+
collection_formats=_collection_formats,
|
479
|
+
_request_auth=_params.get('_request_auth'))
|
480
|
+
|
481
|
+
@validate_arguments
|
482
|
+
def reset_password_confirm(self, body : V1PasswordChange, **kwargs) -> V1Auth: # noqa: E501
|
467
483
|
"""Reset password confirm # noqa: E501
|
468
484
|
|
469
485
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -492,7 +508,8 @@ class AuthV1Api(object):
|
|
492
508
|
kwargs['_return_http_data_only'] = True
|
493
509
|
return self.reset_password_confirm_with_http_info(body, **kwargs) # noqa: E501
|
494
510
|
|
495
|
-
|
511
|
+
@validate_arguments
|
512
|
+
def reset_password_confirm_with_http_info(self, body : V1PasswordChange, **kwargs): # noqa: E501
|
496
513
|
"""Reset password confirm # noqa: E501
|
497
514
|
|
498
515
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -520,90 +537,97 @@ class AuthV1Api(object):
|
|
520
537
|
request; this effectively ignores the authentication
|
521
538
|
in the spec for a single request.
|
522
539
|
:type _request_auth: dict, optional
|
540
|
+
:type _content_type: string, optional: force content-type for the request
|
523
541
|
:return: Returns the result object.
|
524
542
|
If the method is called asynchronously,
|
525
543
|
returns the request thread.
|
526
544
|
:rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
|
527
545
|
"""
|
528
546
|
|
529
|
-
|
547
|
+
_params = locals()
|
530
548
|
|
531
|
-
|
549
|
+
_all_params = [
|
532
550
|
'body'
|
533
551
|
]
|
534
|
-
|
552
|
+
_all_params.extend(
|
535
553
|
[
|
536
554
|
'async_req',
|
537
555
|
'_return_http_data_only',
|
538
556
|
'_preload_content',
|
539
557
|
'_request_timeout',
|
540
|
-
'_request_auth'
|
558
|
+
'_request_auth',
|
559
|
+
'_content_type',
|
560
|
+
'_headers'
|
541
561
|
]
|
542
562
|
)
|
543
563
|
|
544
|
-
|
545
|
-
|
564
|
+
# validate the arguments
|
565
|
+
for _key, _val in _params['kwargs'].items():
|
566
|
+
if _key not in _all_params:
|
546
567
|
raise ApiTypeError(
|
547
568
|
"Got an unexpected keyword argument '%s'"
|
548
|
-
" to method reset_password_confirm" %
|
569
|
+
" to method reset_password_confirm" % _key
|
549
570
|
)
|
550
|
-
|
551
|
-
del
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
571
|
+
_params[_key] = _val
|
572
|
+
del _params['kwargs']
|
573
|
+
|
574
|
+
_collection_formats = {}
|
575
|
+
|
576
|
+
# process the path parameters
|
577
|
+
_path_params = {}
|
578
|
+
|
579
|
+
# process the query parameters
|
580
|
+
_query_params = []
|
581
|
+
# process the header parameters
|
582
|
+
_header_params = dict(_params.get('_headers', {}))
|
583
|
+
# process the form parameters
|
584
|
+
_form_params = []
|
585
|
+
_files = {}
|
586
|
+
# process the body parameter
|
587
|
+
_body_params = None
|
588
|
+
if _params['body']:
|
589
|
+
_body_params = _params['body']
|
590
|
+
|
591
|
+
# set the HTTP header `Accept`
|
592
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
573
593
|
['application/json']) # noqa: E501
|
574
594
|
|
575
|
-
# HTTP header `Content-Type`
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
595
|
+
# set the HTTP header `Content-Type`
|
596
|
+
_content_types_list = _params.get('_content_type',
|
597
|
+
self.api_client.select_header_content_type(
|
598
|
+
['application/json']))
|
599
|
+
if _content_types_list:
|
600
|
+
_header_params['Content-Type'] = _content_types_list
|
601
|
+
|
602
|
+
# authentication setting
|
603
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
604
|
+
|
605
|
+
_response_types_map = {
|
606
|
+
'200': "V1Auth",
|
607
|
+
'204': "object",
|
608
|
+
'403': "object",
|
609
|
+
'404': "object",
|
587
610
|
}
|
588
611
|
|
589
612
|
return self.api_client.call_api(
|
590
613
|
'/api/v1/auth/reset-password-confirm', 'POST',
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
body=
|
595
|
-
post_params=
|
596
|
-
files=
|
597
|
-
response_types_map=
|
598
|
-
auth_settings=
|
599
|
-
async_req=
|
600
|
-
_return_http_data_only=
|
601
|
-
_preload_content=
|
602
|
-
_request_timeout=
|
603
|
-
collection_formats=
|
604
|
-
_request_auth=
|
605
|
-
|
606
|
-
|
614
|
+
_path_params,
|
615
|
+
_query_params,
|
616
|
+
_header_params,
|
617
|
+
body=_body_params,
|
618
|
+
post_params=_form_params,
|
619
|
+
files=_files,
|
620
|
+
response_types_map=_response_types_map,
|
621
|
+
auth_settings=_auth_settings,
|
622
|
+
async_req=_params.get('async_req'),
|
623
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
624
|
+
_preload_content=_params.get('_preload_content', True),
|
625
|
+
_request_timeout=_params.get('_request_timeout'),
|
626
|
+
collection_formats=_collection_formats,
|
627
|
+
_request_auth=_params.get('_request_auth'))
|
628
|
+
|
629
|
+
@validate_arguments
|
630
|
+
def signup(self, body : V1UserSingup, **kwargs) -> V1Auth: # noqa: E501
|
607
631
|
"""Signup # noqa: E501
|
608
632
|
|
609
633
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -632,7 +656,8 @@ class AuthV1Api(object):
|
|
632
656
|
kwargs['_return_http_data_only'] = True
|
633
657
|
return self.signup_with_http_info(body, **kwargs) # noqa: E501
|
634
658
|
|
635
|
-
|
659
|
+
@validate_arguments
|
660
|
+
def signup_with_http_info(self, body : V1UserSingup, **kwargs): # noqa: E501
|
636
661
|
"""Signup # noqa: E501
|
637
662
|
|
638
663
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -660,90 +685,97 @@ class AuthV1Api(object):
|
|
660
685
|
request; this effectively ignores the authentication
|
661
686
|
in the spec for a single request.
|
662
687
|
:type _request_auth: dict, optional
|
688
|
+
:type _content_type: string, optional: force content-type for the request
|
663
689
|
:return: Returns the result object.
|
664
690
|
If the method is called asynchronously,
|
665
691
|
returns the request thread.
|
666
692
|
:rtype: tuple(V1Auth, status_code(int), headers(HTTPHeaderDict))
|
667
693
|
"""
|
668
694
|
|
669
|
-
|
695
|
+
_params = locals()
|
670
696
|
|
671
|
-
|
697
|
+
_all_params = [
|
672
698
|
'body'
|
673
699
|
]
|
674
|
-
|
700
|
+
_all_params.extend(
|
675
701
|
[
|
676
702
|
'async_req',
|
677
703
|
'_return_http_data_only',
|
678
704
|
'_preload_content',
|
679
705
|
'_request_timeout',
|
680
|
-
'_request_auth'
|
706
|
+
'_request_auth',
|
707
|
+
'_content_type',
|
708
|
+
'_headers'
|
681
709
|
]
|
682
710
|
)
|
683
711
|
|
684
|
-
|
685
|
-
|
712
|
+
# validate the arguments
|
713
|
+
for _key, _val in _params['kwargs'].items():
|
714
|
+
if _key not in _all_params:
|
686
715
|
raise ApiTypeError(
|
687
716
|
"Got an unexpected keyword argument '%s'"
|
688
|
-
" to method signup" %
|
717
|
+
" to method signup" % _key
|
689
718
|
)
|
690
|
-
|
691
|
-
del
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
719
|
+
_params[_key] = _val
|
720
|
+
del _params['kwargs']
|
721
|
+
|
722
|
+
_collection_formats = {}
|
723
|
+
|
724
|
+
# process the path parameters
|
725
|
+
_path_params = {}
|
726
|
+
|
727
|
+
# process the query parameters
|
728
|
+
_query_params = []
|
729
|
+
# process the header parameters
|
730
|
+
_header_params = dict(_params.get('_headers', {}))
|
731
|
+
# process the form parameters
|
732
|
+
_form_params = []
|
733
|
+
_files = {}
|
734
|
+
# process the body parameter
|
735
|
+
_body_params = None
|
736
|
+
if _params['body']:
|
737
|
+
_body_params = _params['body']
|
738
|
+
|
739
|
+
# set the HTTP header `Accept`
|
740
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
713
741
|
['application/json']) # noqa: E501
|
714
742
|
|
715
|
-
# HTTP header `Content-Type`
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
743
|
+
# set the HTTP header `Content-Type`
|
744
|
+
_content_types_list = _params.get('_content_type',
|
745
|
+
self.api_client.select_header_content_type(
|
746
|
+
['application/json']))
|
747
|
+
if _content_types_list:
|
748
|
+
_header_params['Content-Type'] = _content_types_list
|
749
|
+
|
750
|
+
# authentication setting
|
751
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
752
|
+
|
753
|
+
_response_types_map = {
|
754
|
+
'200': "V1Auth",
|
755
|
+
'204': "object",
|
756
|
+
'403': "object",
|
757
|
+
'404': "object",
|
727
758
|
}
|
728
759
|
|
729
760
|
return self.api_client.call_api(
|
730
761
|
'/api/v1/auth/signup', 'POST',
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
body=
|
735
|
-
post_params=
|
736
|
-
files=
|
737
|
-
response_types_map=
|
738
|
-
auth_settings=
|
739
|
-
async_req=
|
740
|
-
_return_http_data_only=
|
741
|
-
_preload_content=
|
742
|
-
_request_timeout=
|
743
|
-
collection_formats=
|
744
|
-
_request_auth=
|
745
|
-
|
746
|
-
|
762
|
+
_path_params,
|
763
|
+
_query_params,
|
764
|
+
_header_params,
|
765
|
+
body=_body_params,
|
766
|
+
post_params=_form_params,
|
767
|
+
files=_files,
|
768
|
+
response_types_map=_response_types_map,
|
769
|
+
auth_settings=_auth_settings,
|
770
|
+
async_req=_params.get('async_req'),
|
771
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
772
|
+
_preload_content=_params.get('_preload_content', True),
|
773
|
+
_request_timeout=_params.get('_request_timeout'),
|
774
|
+
collection_formats=_collection_formats,
|
775
|
+
_request_auth=_params.get('_request_auth'))
|
776
|
+
|
777
|
+
@validate_arguments
|
778
|
+
def trial(self, body : V1TrialStart, **kwargs) -> None: # noqa: E501
|
747
779
|
"""Trial Start # noqa: E501
|
748
780
|
|
749
781
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -772,7 +804,8 @@ class AuthV1Api(object):
|
|
772
804
|
kwargs['_return_http_data_only'] = True
|
773
805
|
return self.trial_with_http_info(body, **kwargs) # noqa: E501
|
774
806
|
|
775
|
-
|
807
|
+
@validate_arguments
|
808
|
+
def trial_with_http_info(self, body : V1TrialStart, **kwargs): # noqa: E501
|
776
809
|
"""Trial Start # noqa: E501
|
777
810
|
|
778
811
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -800,80 +833,86 @@ class AuthV1Api(object):
|
|
800
833
|
request; this effectively ignores the authentication
|
801
834
|
in the spec for a single request.
|
802
835
|
:type _request_auth: dict, optional
|
836
|
+
:type _content_type: string, optional: force content-type for the request
|
803
837
|
:return: Returns the result object.
|
804
838
|
If the method is called asynchronously,
|
805
839
|
returns the request thread.
|
806
840
|
:rtype: None
|
807
841
|
"""
|
808
842
|
|
809
|
-
|
843
|
+
_params = locals()
|
810
844
|
|
811
|
-
|
845
|
+
_all_params = [
|
812
846
|
'body'
|
813
847
|
]
|
814
|
-
|
848
|
+
_all_params.extend(
|
815
849
|
[
|
816
850
|
'async_req',
|
817
851
|
'_return_http_data_only',
|
818
852
|
'_preload_content',
|
819
853
|
'_request_timeout',
|
820
|
-
'_request_auth'
|
854
|
+
'_request_auth',
|
855
|
+
'_content_type',
|
856
|
+
'_headers'
|
821
857
|
]
|
822
858
|
)
|
823
859
|
|
824
|
-
|
825
|
-
|
860
|
+
# validate the arguments
|
861
|
+
for _key, _val in _params['kwargs'].items():
|
862
|
+
if _key not in _all_params:
|
826
863
|
raise ApiTypeError(
|
827
864
|
"Got an unexpected keyword argument '%s'"
|
828
|
-
" to method trial" %
|
865
|
+
" to method trial" % _key
|
829
866
|
)
|
830
|
-
|
831
|
-
del
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
867
|
+
_params[_key] = _val
|
868
|
+
del _params['kwargs']
|
869
|
+
|
870
|
+
_collection_formats = {}
|
871
|
+
|
872
|
+
# process the path parameters
|
873
|
+
_path_params = {}
|
874
|
+
|
875
|
+
# process the query parameters
|
876
|
+
_query_params = []
|
877
|
+
# process the header parameters
|
878
|
+
_header_params = dict(_params.get('_headers', {}))
|
879
|
+
# process the form parameters
|
880
|
+
_form_params = []
|
881
|
+
_files = {}
|
882
|
+
# process the body parameter
|
883
|
+
_body_params = None
|
884
|
+
if _params['body']:
|
885
|
+
_body_params = _params['body']
|
886
|
+
|
887
|
+
# set the HTTP header `Accept`
|
888
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
853
889
|
['application/json']) # noqa: E501
|
854
890
|
|
855
|
-
# HTTP header `Content-Type`
|
856
|
-
|
857
|
-
|
891
|
+
# set the HTTP header `Content-Type`
|
892
|
+
_content_types_list = _params.get('_content_type',
|
893
|
+
self.api_client.select_header_content_type(
|
894
|
+
['application/json']))
|
895
|
+
if _content_types_list:
|
896
|
+
_header_params['Content-Type'] = _content_types_list
|
858
897
|
|
859
|
-
#
|
860
|
-
|
898
|
+
# authentication setting
|
899
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
861
900
|
|
862
|
-
|
901
|
+
_response_types_map = {}
|
863
902
|
|
864
903
|
return self.api_client.call_api(
|
865
904
|
'/api/v1/auth/trial', 'POST',
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
body=
|
870
|
-
post_params=
|
871
|
-
files=
|
872
|
-
response_types_map=
|
873
|
-
auth_settings=
|
874
|
-
async_req=
|
875
|
-
_return_http_data_only=
|
876
|
-
_preload_content=
|
877
|
-
_request_timeout=
|
878
|
-
collection_formats=
|
879
|
-
_request_auth=
|
905
|
+
_path_params,
|
906
|
+
_query_params,
|
907
|
+
_header_params,
|
908
|
+
body=_body_params,
|
909
|
+
post_params=_form_params,
|
910
|
+
files=_files,
|
911
|
+
response_types_map=_response_types_map,
|
912
|
+
auth_settings=_auth_settings,
|
913
|
+
async_req=_params.get('async_req'),
|
914
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
915
|
+
_preload_content=_params.get('_preload_content', True),
|
916
|
+
_request_timeout=_params.get('_request_timeout'),
|
917
|
+
collection_formats=_collection_formats,
|
918
|
+
_request_auth=_params.get('_request_auth'))
|