polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon_sdk/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,29 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
27
|
-
"""
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
28
11
|
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
29
14
|
|
30
|
-
from __future__ import absolute_import
|
31
15
|
|
32
16
|
import re # noqa: F401
|
33
17
|
|
34
|
-
|
35
|
-
import
|
18
|
+
from pydantic import validate_arguments, ValidationError
|
19
|
+
from typing_extensions import Annotated
|
20
|
+
|
21
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
22
|
+
|
23
|
+
from typing import Optional
|
24
|
+
|
25
|
+
from polyaxon_sdk.models.v1_dashboard import V1Dashboard
|
26
|
+
from polyaxon_sdk.models.v1_list_dashboards_response import V1ListDashboardsResponse
|
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 DashboardsV1Api(object):
|
|
50
41
|
|
51
42
|
def __init__(self, api_client=None):
|
52
43
|
if api_client is None:
|
53
|
-
api_client = ApiClient()
|
44
|
+
api_client = ApiClient.get_default()
|
54
45
|
self.api_client = api_client
|
55
46
|
|
56
|
-
|
47
|
+
@validate_arguments
|
48
|
+
def create_dashboard(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs) -> V1Dashboard: # noqa: E501
|
57
49
|
"""Create dashboard # noqa: E501
|
58
50
|
|
59
51
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -84,7 +76,8 @@ class DashboardsV1Api(object):
|
|
84
76
|
kwargs['_return_http_data_only'] = True
|
85
77
|
return self.create_dashboard_with_http_info(owner, body, **kwargs) # noqa: E501
|
86
78
|
|
87
|
-
|
79
|
+
@validate_arguments
|
80
|
+
def create_dashboard_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs): # noqa: E501
|
88
81
|
"""Create dashboard # noqa: E501
|
89
82
|
|
90
83
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -114,97 +107,101 @@ class DashboardsV1Api(object):
|
|
114
107
|
request; this effectively ignores the authentication
|
115
108
|
in the spec for a single request.
|
116
109
|
:type _request_auth: dict, optional
|
110
|
+
:type _content_type: string, optional: force content-type for the request
|
117
111
|
:return: Returns the result object.
|
118
112
|
If the method is called asynchronously,
|
119
113
|
returns the request thread.
|
120
114
|
:rtype: tuple(V1Dashboard, status_code(int), headers(HTTPHeaderDict))
|
121
115
|
"""
|
122
116
|
|
123
|
-
|
117
|
+
_params = locals()
|
124
118
|
|
125
|
-
|
119
|
+
_all_params = [
|
126
120
|
'owner',
|
127
121
|
'body'
|
128
122
|
]
|
129
|
-
|
123
|
+
_all_params.extend(
|
130
124
|
[
|
131
125
|
'async_req',
|
132
126
|
'_return_http_data_only',
|
133
127
|
'_preload_content',
|
134
128
|
'_request_timeout',
|
135
|
-
'_request_auth'
|
129
|
+
'_request_auth',
|
130
|
+
'_content_type',
|
131
|
+
'_headers'
|
136
132
|
]
|
137
133
|
)
|
138
134
|
|
139
|
-
|
140
|
-
|
135
|
+
# validate the arguments
|
136
|
+
for _key, _val in _params['kwargs'].items():
|
137
|
+
if _key not in _all_params:
|
141
138
|
raise ApiTypeError(
|
142
139
|
"Got an unexpected keyword argument '%s'"
|
143
|
-
" to method create_dashboard" %
|
140
|
+
" to method create_dashboard" % _key
|
144
141
|
)
|
145
|
-
|
146
|
-
del
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
if
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
if 'body' in local_var_params:
|
171
|
-
body_params = local_var_params['body']
|
172
|
-
# HTTP header `Accept`
|
173
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
142
|
+
_params[_key] = _val
|
143
|
+
del _params['kwargs']
|
144
|
+
|
145
|
+
_collection_formats = {}
|
146
|
+
|
147
|
+
# process the path parameters
|
148
|
+
_path_params = {}
|
149
|
+
if _params['owner']:
|
150
|
+
_path_params['owner'] = _params['owner']
|
151
|
+
|
152
|
+
|
153
|
+
# process the query parameters
|
154
|
+
_query_params = []
|
155
|
+
# process the header parameters
|
156
|
+
_header_params = dict(_params.get('_headers', {}))
|
157
|
+
# process the form parameters
|
158
|
+
_form_params = []
|
159
|
+
_files = {}
|
160
|
+
# process the body parameter
|
161
|
+
_body_params = None
|
162
|
+
if _params['body']:
|
163
|
+
_body_params = _params['body']
|
164
|
+
|
165
|
+
# set the HTTP header `Accept`
|
166
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
174
167
|
['application/json']) # noqa: E501
|
175
168
|
|
176
|
-
# HTTP header `Content-Type`
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
169
|
+
# set the HTTP header `Content-Type`
|
170
|
+
_content_types_list = _params.get('_content_type',
|
171
|
+
self.api_client.select_header_content_type(
|
172
|
+
['application/json']))
|
173
|
+
if _content_types_list:
|
174
|
+
_header_params['Content-Type'] = _content_types_list
|
175
|
+
|
176
|
+
# authentication setting
|
177
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
178
|
+
|
179
|
+
_response_types_map = {
|
180
|
+
'200': "V1Dashboard",
|
181
|
+
'204': "object",
|
182
|
+
'403': "object",
|
183
|
+
'404': "object",
|
188
184
|
}
|
189
185
|
|
190
186
|
return self.api_client.call_api(
|
191
187
|
'/api/v1/orgs/{owner}/dashboards', 'POST',
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
body=
|
196
|
-
post_params=
|
197
|
-
files=
|
198
|
-
response_types_map=
|
199
|
-
auth_settings=
|
200
|
-
async_req=
|
201
|
-
_return_http_data_only=
|
202
|
-
_preload_content=
|
203
|
-
_request_timeout=
|
204
|
-
collection_formats=
|
205
|
-
_request_auth=
|
206
|
-
|
207
|
-
|
188
|
+
_path_params,
|
189
|
+
_query_params,
|
190
|
+
_header_params,
|
191
|
+
body=_body_params,
|
192
|
+
post_params=_form_params,
|
193
|
+
files=_files,
|
194
|
+
response_types_map=_response_types_map,
|
195
|
+
auth_settings=_auth_settings,
|
196
|
+
async_req=_params.get('async_req'),
|
197
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
198
|
+
_preload_content=_params.get('_preload_content', True),
|
199
|
+
_request_timeout=_params.get('_request_timeout'),
|
200
|
+
collection_formats=_collection_formats,
|
201
|
+
_request_auth=_params.get('_request_auth'))
|
202
|
+
|
203
|
+
@validate_arguments
|
204
|
+
def delete_dashboard(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> None: # noqa: E501
|
208
205
|
"""Delete dashboard # noqa: E501
|
209
206
|
|
210
207
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -235,7 +232,8 @@ class DashboardsV1Api(object):
|
|
235
232
|
kwargs['_return_http_data_only'] = True
|
236
233
|
return self.delete_dashboard_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
237
234
|
|
238
|
-
|
235
|
+
@validate_arguments
|
236
|
+
def delete_dashboard_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
|
239
237
|
"""Delete dashboard # noqa: E501
|
240
238
|
|
241
239
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -265,88 +263,89 @@ class DashboardsV1Api(object):
|
|
265
263
|
request; this effectively ignores the authentication
|
266
264
|
in the spec for a single request.
|
267
265
|
:type _request_auth: dict, optional
|
266
|
+
:type _content_type: string, optional: force content-type for the request
|
268
267
|
:return: Returns the result object.
|
269
268
|
If the method is called asynchronously,
|
270
269
|
returns the request thread.
|
271
270
|
:rtype: None
|
272
271
|
"""
|
273
272
|
|
274
|
-
|
273
|
+
_params = locals()
|
275
274
|
|
276
|
-
|
275
|
+
_all_params = [
|
277
276
|
'owner',
|
278
277
|
'uuid'
|
279
278
|
]
|
280
|
-
|
279
|
+
_all_params.extend(
|
281
280
|
[
|
282
281
|
'async_req',
|
283
282
|
'_return_http_data_only',
|
284
283
|
'_preload_content',
|
285
284
|
'_request_timeout',
|
286
|
-
'_request_auth'
|
285
|
+
'_request_auth',
|
286
|
+
'_content_type',
|
287
|
+
'_headers'
|
287
288
|
]
|
288
289
|
)
|
289
290
|
|
290
|
-
|
291
|
-
|
291
|
+
# validate the arguments
|
292
|
+
for _key, _val in _params['kwargs'].items():
|
293
|
+
if _key not in _all_params:
|
292
294
|
raise ApiTypeError(
|
293
295
|
"Got an unexpected keyword argument '%s'"
|
294
|
-
" to method delete_dashboard" %
|
296
|
+
" to method delete_dashboard" % _key
|
295
297
|
)
|
296
|
-
|
297
|
-
del
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
if
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
body_params = None
|
323
|
-
# HTTP header `Accept`
|
324
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
298
|
+
_params[_key] = _val
|
299
|
+
del _params['kwargs']
|
300
|
+
|
301
|
+
_collection_formats = {}
|
302
|
+
|
303
|
+
# process the path parameters
|
304
|
+
_path_params = {}
|
305
|
+
if _params['owner']:
|
306
|
+
_path_params['owner'] = _params['owner']
|
307
|
+
|
308
|
+
if _params['uuid']:
|
309
|
+
_path_params['uuid'] = _params['uuid']
|
310
|
+
|
311
|
+
|
312
|
+
# process the query parameters
|
313
|
+
_query_params = []
|
314
|
+
# process the header parameters
|
315
|
+
_header_params = dict(_params.get('_headers', {}))
|
316
|
+
# process the form parameters
|
317
|
+
_form_params = []
|
318
|
+
_files = {}
|
319
|
+
# process the body parameter
|
320
|
+
_body_params = None
|
321
|
+
# set the HTTP header `Accept`
|
322
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
325
323
|
['application/json']) # noqa: E501
|
326
324
|
|
327
|
-
#
|
328
|
-
|
325
|
+
# authentication setting
|
326
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
329
327
|
|
330
|
-
|
328
|
+
_response_types_map = {}
|
331
329
|
|
332
330
|
return self.api_client.call_api(
|
333
331
|
'/api/v1/orgs/{owner}/dashboards/{uuid}', 'DELETE',
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
body=
|
338
|
-
post_params=
|
339
|
-
files=
|
340
|
-
response_types_map=
|
341
|
-
auth_settings=
|
342
|
-
async_req=
|
343
|
-
_return_http_data_only=
|
344
|
-
_preload_content=
|
345
|
-
_request_timeout=
|
346
|
-
collection_formats=
|
347
|
-
_request_auth=
|
348
|
-
|
349
|
-
|
332
|
+
_path_params,
|
333
|
+
_query_params,
|
334
|
+
_header_params,
|
335
|
+
body=_body_params,
|
336
|
+
post_params=_form_params,
|
337
|
+
files=_files,
|
338
|
+
response_types_map=_response_types_map,
|
339
|
+
auth_settings=_auth_settings,
|
340
|
+
async_req=_params.get('async_req'),
|
341
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
342
|
+
_preload_content=_params.get('_preload_content', True),
|
343
|
+
_request_timeout=_params.get('_request_timeout'),
|
344
|
+
collection_formats=_collection_formats,
|
345
|
+
_request_auth=_params.get('_request_auth'))
|
346
|
+
|
347
|
+
@validate_arguments
|
348
|
+
def get_dashboard(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1Dashboard: # noqa: E501
|
350
349
|
"""Get dashboard # noqa: E501
|
351
350
|
|
352
351
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -377,7 +376,8 @@ class DashboardsV1Api(object):
|
|
377
376
|
kwargs['_return_http_data_only'] = True
|
378
377
|
return self.get_dashboard_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
379
378
|
|
380
|
-
|
379
|
+
@validate_arguments
|
380
|
+
def get_dashboard_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
|
381
381
|
"""Get dashboard # noqa: E501
|
382
382
|
|
383
383
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -407,99 +407,100 @@ class DashboardsV1Api(object):
|
|
407
407
|
request; this effectively ignores the authentication
|
408
408
|
in the spec for a single request.
|
409
409
|
:type _request_auth: dict, optional
|
410
|
+
:type _content_type: string, optional: force content-type for the request
|
410
411
|
:return: Returns the result object.
|
411
412
|
If the method is called asynchronously,
|
412
413
|
returns the request thread.
|
413
414
|
:rtype: tuple(V1Dashboard, status_code(int), headers(HTTPHeaderDict))
|
414
415
|
"""
|
415
416
|
|
416
|
-
|
417
|
+
_params = locals()
|
417
418
|
|
418
|
-
|
419
|
+
_all_params = [
|
419
420
|
'owner',
|
420
421
|
'uuid'
|
421
422
|
]
|
422
|
-
|
423
|
+
_all_params.extend(
|
423
424
|
[
|
424
425
|
'async_req',
|
425
426
|
'_return_http_data_only',
|
426
427
|
'_preload_content',
|
427
428
|
'_request_timeout',
|
428
|
-
'_request_auth'
|
429
|
+
'_request_auth',
|
430
|
+
'_content_type',
|
431
|
+
'_headers'
|
429
432
|
]
|
430
433
|
)
|
431
434
|
|
432
|
-
|
433
|
-
|
435
|
+
# validate the arguments
|
436
|
+
for _key, _val in _params['kwargs'].items():
|
437
|
+
if _key not in _all_params:
|
434
438
|
raise ApiTypeError(
|
435
439
|
"Got an unexpected keyword argument '%s'"
|
436
|
-
" to method get_dashboard" %
|
440
|
+
" to method get_dashboard" % _key
|
437
441
|
)
|
438
|
-
|
439
|
-
del
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
if
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
body_params = None
|
465
|
-
# HTTP header `Accept`
|
466
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
442
|
+
_params[_key] = _val
|
443
|
+
del _params['kwargs']
|
444
|
+
|
445
|
+
_collection_formats = {}
|
446
|
+
|
447
|
+
# process the path parameters
|
448
|
+
_path_params = {}
|
449
|
+
if _params['owner']:
|
450
|
+
_path_params['owner'] = _params['owner']
|
451
|
+
|
452
|
+
if _params['uuid']:
|
453
|
+
_path_params['uuid'] = _params['uuid']
|
454
|
+
|
455
|
+
|
456
|
+
# process the query parameters
|
457
|
+
_query_params = []
|
458
|
+
# process the header parameters
|
459
|
+
_header_params = dict(_params.get('_headers', {}))
|
460
|
+
# process the form parameters
|
461
|
+
_form_params = []
|
462
|
+
_files = {}
|
463
|
+
# process the body parameter
|
464
|
+
_body_params = None
|
465
|
+
# set the HTTP header `Accept`
|
466
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
467
467
|
['application/json']) # noqa: E501
|
468
468
|
|
469
|
-
#
|
470
|
-
|
469
|
+
# authentication setting
|
470
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
471
471
|
|
472
|
-
|
473
|
-
200: "V1Dashboard",
|
474
|
-
204: "object",
|
475
|
-
403: "object",
|
476
|
-
404: "object",
|
472
|
+
_response_types_map = {
|
473
|
+
'200': "V1Dashboard",
|
474
|
+
'204': "object",
|
475
|
+
'403': "object",
|
476
|
+
'404': "object",
|
477
477
|
}
|
478
478
|
|
479
479
|
return self.api_client.call_api(
|
480
480
|
'/api/v1/orgs/{owner}/dashboards/{uuid}', 'GET',
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
body=
|
485
|
-
post_params=
|
486
|
-
files=
|
487
|
-
response_types_map=
|
488
|
-
auth_settings=
|
489
|
-
async_req=
|
490
|
-
_return_http_data_only=
|
491
|
-
_preload_content=
|
492
|
-
_request_timeout=
|
493
|
-
collection_formats=
|
494
|
-
_request_auth=
|
495
|
-
|
496
|
-
|
481
|
+
_path_params,
|
482
|
+
_query_params,
|
483
|
+
_header_params,
|
484
|
+
body=_body_params,
|
485
|
+
post_params=_form_params,
|
486
|
+
files=_files,
|
487
|
+
response_types_map=_response_types_map,
|
488
|
+
auth_settings=_auth_settings,
|
489
|
+
async_req=_params.get('async_req'),
|
490
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
491
|
+
_preload_content=_params.get('_preload_content', True),
|
492
|
+
_request_timeout=_params.get('_request_timeout'),
|
493
|
+
collection_formats=_collection_formats,
|
494
|
+
_request_auth=_params.get('_request_auth'))
|
495
|
+
|
496
|
+
@validate_arguments
|
497
|
+
def list_dashboard_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListDashboardsResponse: # noqa: E501
|
497
498
|
"""List dashboard names # noqa: E501
|
498
499
|
|
499
500
|
This method makes a synchronous HTTP request by default. To make an
|
500
501
|
asynchronous HTTP request, please pass async_req=True
|
501
502
|
|
502
|
-
>>> thread = api.list_dashboard_names(owner, async_req=True)
|
503
|
+
>>> thread = api.list_dashboard_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
503
504
|
>>> result = thread.get()
|
504
505
|
|
505
506
|
:param owner: Owner of the namespace (required)
|
@@ -534,15 +535,16 @@ class DashboardsV1Api(object):
|
|
534
535
|
:rtype: V1ListDashboardsResponse
|
535
536
|
"""
|
536
537
|
kwargs['_return_http_data_only'] = True
|
537
|
-
return self.list_dashboard_names_with_http_info(owner, **kwargs) # noqa: E501
|
538
|
+
return self.list_dashboard_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
538
539
|
|
539
|
-
|
540
|
+
@validate_arguments
|
541
|
+
def list_dashboard_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
540
542
|
"""List dashboard names # noqa: E501
|
541
543
|
|
542
544
|
This method makes a synchronous HTTP request by default. To make an
|
543
545
|
asynchronous HTTP request, please pass async_req=True
|
544
546
|
|
545
|
-
>>> thread = api.list_dashboard_names_with_http_info(owner, async_req=True)
|
547
|
+
>>> thread = api.list_dashboard_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
546
548
|
>>> result = thread.get()
|
547
549
|
|
548
550
|
:param owner: Owner of the namespace (required)
|
@@ -578,15 +580,16 @@ class DashboardsV1Api(object):
|
|
578
580
|
request; this effectively ignores the authentication
|
579
581
|
in the spec for a single request.
|
580
582
|
:type _request_auth: dict, optional
|
583
|
+
:type _content_type: string, optional: force content-type for the request
|
581
584
|
:return: Returns the result object.
|
582
585
|
If the method is called asynchronously,
|
583
586
|
returns the request thread.
|
584
587
|
:rtype: tuple(V1ListDashboardsResponse, status_code(int), headers(HTTPHeaderDict))
|
585
588
|
"""
|
586
589
|
|
587
|
-
|
590
|
+
_params = locals()
|
588
591
|
|
589
|
-
|
592
|
+
_all_params = [
|
590
593
|
'owner',
|
591
594
|
'offset',
|
592
595
|
'limit',
|
@@ -596,95 +599,105 @@ class DashboardsV1Api(object):
|
|
596
599
|
'mode',
|
597
600
|
'no_page'
|
598
601
|
]
|
599
|
-
|
602
|
+
_all_params.extend(
|
600
603
|
[
|
601
604
|
'async_req',
|
602
605
|
'_return_http_data_only',
|
603
606
|
'_preload_content',
|
604
607
|
'_request_timeout',
|
605
|
-
'_request_auth'
|
608
|
+
'_request_auth',
|
609
|
+
'_content_type',
|
610
|
+
'_headers'
|
606
611
|
]
|
607
612
|
)
|
608
613
|
|
609
|
-
|
610
|
-
|
614
|
+
# validate the arguments
|
615
|
+
for _key, _val in _params['kwargs'].items():
|
616
|
+
if _key not in _all_params:
|
611
617
|
raise ApiTypeError(
|
612
618
|
"Got an unexpected keyword argument '%s'"
|
613
|
-
" to method list_dashboard_names" %
|
619
|
+
" to method list_dashboard_names" % _key
|
614
620
|
)
|
615
|
-
|
616
|
-
del
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
if 'limit'
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
if '
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
621
|
+
_params[_key] = _val
|
622
|
+
del _params['kwargs']
|
623
|
+
|
624
|
+
_collection_formats = {}
|
625
|
+
|
626
|
+
# process the path parameters
|
627
|
+
_path_params = {}
|
628
|
+
if _params['owner']:
|
629
|
+
_path_params['owner'] = _params['owner']
|
630
|
+
|
631
|
+
|
632
|
+
# process the query parameters
|
633
|
+
_query_params = []
|
634
|
+
if _params.get('offset') is not None: # noqa: E501
|
635
|
+
_query_params.append(('offset', _params['offset']))
|
636
|
+
|
637
|
+
if _params.get('limit') is not None: # noqa: E501
|
638
|
+
_query_params.append(('limit', _params['limit']))
|
639
|
+
|
640
|
+
if _params.get('sort') is not None: # noqa: E501
|
641
|
+
_query_params.append(('sort', _params['sort']))
|
642
|
+
|
643
|
+
if _params.get('query') is not None: # noqa: E501
|
644
|
+
_query_params.append(('query', _params['query']))
|
645
|
+
|
646
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
647
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
648
|
+
|
649
|
+
if _params.get('mode') is not None: # noqa: E501
|
650
|
+
_query_params.append(('mode', _params['mode']))
|
651
|
+
|
652
|
+
if _params.get('no_page') is not None: # noqa: E501
|
653
|
+
_query_params.append(('no_page', _params['no_page']))
|
654
|
+
|
655
|
+
# process the header parameters
|
656
|
+
_header_params = dict(_params.get('_headers', {}))
|
657
|
+
# process the form parameters
|
658
|
+
_form_params = []
|
659
|
+
_files = {}
|
660
|
+
# process the body parameter
|
661
|
+
_body_params = None
|
662
|
+
# set the HTTP header `Accept`
|
663
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
652
664
|
['application/json']) # noqa: E501
|
653
665
|
|
654
|
-
#
|
655
|
-
|
666
|
+
# authentication setting
|
667
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
656
668
|
|
657
|
-
|
658
|
-
200: "V1ListDashboardsResponse",
|
659
|
-
204: "object",
|
660
|
-
403: "object",
|
661
|
-
404: "object",
|
669
|
+
_response_types_map = {
|
670
|
+
'200': "V1ListDashboardsResponse",
|
671
|
+
'204': "object",
|
672
|
+
'403': "object",
|
673
|
+
'404': "object",
|
662
674
|
}
|
663
675
|
|
664
676
|
return self.api_client.call_api(
|
665
677
|
'/api/v1/orgs/{owner}/dashboards/names', 'GET',
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
body=
|
670
|
-
post_params=
|
671
|
-
files=
|
672
|
-
response_types_map=
|
673
|
-
auth_settings=
|
674
|
-
async_req=
|
675
|
-
_return_http_data_only=
|
676
|
-
_preload_content=
|
677
|
-
_request_timeout=
|
678
|
-
collection_formats=
|
679
|
-
_request_auth=
|
680
|
-
|
681
|
-
|
678
|
+
_path_params,
|
679
|
+
_query_params,
|
680
|
+
_header_params,
|
681
|
+
body=_body_params,
|
682
|
+
post_params=_form_params,
|
683
|
+
files=_files,
|
684
|
+
response_types_map=_response_types_map,
|
685
|
+
auth_settings=_auth_settings,
|
686
|
+
async_req=_params.get('async_req'),
|
687
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
688
|
+
_preload_content=_params.get('_preload_content', True),
|
689
|
+
_request_timeout=_params.get('_request_timeout'),
|
690
|
+
collection_formats=_collection_formats,
|
691
|
+
_request_auth=_params.get('_request_auth'))
|
692
|
+
|
693
|
+
@validate_arguments
|
694
|
+
def list_dashboards(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListDashboardsResponse: # noqa: E501
|
682
695
|
"""List dashboards # noqa: E501
|
683
696
|
|
684
697
|
This method makes a synchronous HTTP request by default. To make an
|
685
698
|
asynchronous HTTP request, please pass async_req=True
|
686
699
|
|
687
|
-
>>> thread = api.list_dashboards(owner, async_req=True)
|
700
|
+
>>> thread = api.list_dashboards(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
688
701
|
>>> result = thread.get()
|
689
702
|
|
690
703
|
:param owner: Owner of the namespace (required)
|
@@ -719,15 +732,16 @@ class DashboardsV1Api(object):
|
|
719
732
|
:rtype: V1ListDashboardsResponse
|
720
733
|
"""
|
721
734
|
kwargs['_return_http_data_only'] = True
|
722
|
-
return self.list_dashboards_with_http_info(owner, **kwargs) # noqa: E501
|
735
|
+
return self.list_dashboards_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
723
736
|
|
724
|
-
|
737
|
+
@validate_arguments
|
738
|
+
def list_dashboards_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
725
739
|
"""List dashboards # noqa: E501
|
726
740
|
|
727
741
|
This method makes a synchronous HTTP request by default. To make an
|
728
742
|
asynchronous HTTP request, please pass async_req=True
|
729
743
|
|
730
|
-
>>> thread = api.list_dashboards_with_http_info(owner, async_req=True)
|
744
|
+
>>> thread = api.list_dashboards_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
731
745
|
>>> result = thread.get()
|
732
746
|
|
733
747
|
:param owner: Owner of the namespace (required)
|
@@ -763,15 +777,16 @@ class DashboardsV1Api(object):
|
|
763
777
|
request; this effectively ignores the authentication
|
764
778
|
in the spec for a single request.
|
765
779
|
:type _request_auth: dict, optional
|
780
|
+
:type _content_type: string, optional: force content-type for the request
|
766
781
|
:return: Returns the result object.
|
767
782
|
If the method is called asynchronously,
|
768
783
|
returns the request thread.
|
769
784
|
:rtype: tuple(V1ListDashboardsResponse, status_code(int), headers(HTTPHeaderDict))
|
770
785
|
"""
|
771
786
|
|
772
|
-
|
787
|
+
_params = locals()
|
773
788
|
|
774
|
-
|
789
|
+
_all_params = [
|
775
790
|
'owner',
|
776
791
|
'offset',
|
777
792
|
'limit',
|
@@ -781,89 +796,99 @@ class DashboardsV1Api(object):
|
|
781
796
|
'mode',
|
782
797
|
'no_page'
|
783
798
|
]
|
784
|
-
|
799
|
+
_all_params.extend(
|
785
800
|
[
|
786
801
|
'async_req',
|
787
802
|
'_return_http_data_only',
|
788
803
|
'_preload_content',
|
789
804
|
'_request_timeout',
|
790
|
-
'_request_auth'
|
805
|
+
'_request_auth',
|
806
|
+
'_content_type',
|
807
|
+
'_headers'
|
791
808
|
]
|
792
809
|
)
|
793
810
|
|
794
|
-
|
795
|
-
|
811
|
+
# validate the arguments
|
812
|
+
for _key, _val in _params['kwargs'].items():
|
813
|
+
if _key not in _all_params:
|
796
814
|
raise ApiTypeError(
|
797
815
|
"Got an unexpected keyword argument '%s'"
|
798
|
-
" to method list_dashboards" %
|
816
|
+
" to method list_dashboards" % _key
|
799
817
|
)
|
800
|
-
|
801
|
-
del
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
if 'limit'
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
if '
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
818
|
+
_params[_key] = _val
|
819
|
+
del _params['kwargs']
|
820
|
+
|
821
|
+
_collection_formats = {}
|
822
|
+
|
823
|
+
# process the path parameters
|
824
|
+
_path_params = {}
|
825
|
+
if _params['owner']:
|
826
|
+
_path_params['owner'] = _params['owner']
|
827
|
+
|
828
|
+
|
829
|
+
# process the query parameters
|
830
|
+
_query_params = []
|
831
|
+
if _params.get('offset') is not None: # noqa: E501
|
832
|
+
_query_params.append(('offset', _params['offset']))
|
833
|
+
|
834
|
+
if _params.get('limit') is not None: # noqa: E501
|
835
|
+
_query_params.append(('limit', _params['limit']))
|
836
|
+
|
837
|
+
if _params.get('sort') is not None: # noqa: E501
|
838
|
+
_query_params.append(('sort', _params['sort']))
|
839
|
+
|
840
|
+
if _params.get('query') is not None: # noqa: E501
|
841
|
+
_query_params.append(('query', _params['query']))
|
842
|
+
|
843
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
844
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
845
|
+
|
846
|
+
if _params.get('mode') is not None: # noqa: E501
|
847
|
+
_query_params.append(('mode', _params['mode']))
|
848
|
+
|
849
|
+
if _params.get('no_page') is not None: # noqa: E501
|
850
|
+
_query_params.append(('no_page', _params['no_page']))
|
851
|
+
|
852
|
+
# process the header parameters
|
853
|
+
_header_params = dict(_params.get('_headers', {}))
|
854
|
+
# process the form parameters
|
855
|
+
_form_params = []
|
856
|
+
_files = {}
|
857
|
+
# process the body parameter
|
858
|
+
_body_params = None
|
859
|
+
# set the HTTP header `Accept`
|
860
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
837
861
|
['application/json']) # noqa: E501
|
838
862
|
|
839
|
-
#
|
840
|
-
|
863
|
+
# authentication setting
|
864
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
841
865
|
|
842
|
-
|
843
|
-
200: "V1ListDashboardsResponse",
|
844
|
-
204: "object",
|
845
|
-
403: "object",
|
846
|
-
404: "object",
|
866
|
+
_response_types_map = {
|
867
|
+
'200': "V1ListDashboardsResponse",
|
868
|
+
'204': "object",
|
869
|
+
'403': "object",
|
870
|
+
'404': "object",
|
847
871
|
}
|
848
872
|
|
849
873
|
return self.api_client.call_api(
|
850
874
|
'/api/v1/orgs/{owner}/dashboards', 'GET',
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
body=
|
855
|
-
post_params=
|
856
|
-
files=
|
857
|
-
response_types_map=
|
858
|
-
auth_settings=
|
859
|
-
async_req=
|
860
|
-
_return_http_data_only=
|
861
|
-
_preload_content=
|
862
|
-
_request_timeout=
|
863
|
-
collection_formats=
|
864
|
-
_request_auth=
|
865
|
-
|
866
|
-
|
875
|
+
_path_params,
|
876
|
+
_query_params,
|
877
|
+
_header_params,
|
878
|
+
body=_body_params,
|
879
|
+
post_params=_form_params,
|
880
|
+
files=_files,
|
881
|
+
response_types_map=_response_types_map,
|
882
|
+
auth_settings=_auth_settings,
|
883
|
+
async_req=_params.get('async_req'),
|
884
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
885
|
+
_preload_content=_params.get('_preload_content', True),
|
886
|
+
_request_timeout=_params.get('_request_timeout'),
|
887
|
+
collection_formats=_collection_formats,
|
888
|
+
_request_auth=_params.get('_request_auth'))
|
889
|
+
|
890
|
+
@validate_arguments
|
891
|
+
def patch_dashboard(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs) -> V1Dashboard: # noqa: E501
|
867
892
|
"""Patch dashboard # noqa: E501
|
868
893
|
|
869
894
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -896,7 +921,8 @@ class DashboardsV1Api(object):
|
|
896
921
|
kwargs['_return_http_data_only'] = True
|
897
922
|
return self.patch_dashboard_with_http_info(owner, dashboard_uuid, body, **kwargs) # noqa: E501
|
898
923
|
|
899
|
-
|
924
|
+
@validate_arguments
|
925
|
+
def patch_dashboard_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs): # noqa: E501
|
900
926
|
"""Patch dashboard # noqa: E501
|
901
927
|
|
902
928
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -928,104 +954,105 @@ class DashboardsV1Api(object):
|
|
928
954
|
request; this effectively ignores the authentication
|
929
955
|
in the spec for a single request.
|
930
956
|
:type _request_auth: dict, optional
|
957
|
+
:type _content_type: string, optional: force content-type for the request
|
931
958
|
:return: Returns the result object.
|
932
959
|
If the method is called asynchronously,
|
933
960
|
returns the request thread.
|
934
961
|
:rtype: tuple(V1Dashboard, status_code(int), headers(HTTPHeaderDict))
|
935
962
|
"""
|
936
963
|
|
937
|
-
|
964
|
+
_params = locals()
|
938
965
|
|
939
|
-
|
966
|
+
_all_params = [
|
940
967
|
'owner',
|
941
968
|
'dashboard_uuid',
|
942
969
|
'body'
|
943
970
|
]
|
944
|
-
|
971
|
+
_all_params.extend(
|
945
972
|
[
|
946
973
|
'async_req',
|
947
974
|
'_return_http_data_only',
|
948
975
|
'_preload_content',
|
949
976
|
'_request_timeout',
|
950
|
-
'_request_auth'
|
977
|
+
'_request_auth',
|
978
|
+
'_content_type',
|
979
|
+
'_headers'
|
951
980
|
]
|
952
981
|
)
|
953
982
|
|
954
|
-
|
955
|
-
|
983
|
+
# validate the arguments
|
984
|
+
for _key, _val in _params['kwargs'].items():
|
985
|
+
if _key not in _all_params:
|
956
986
|
raise ApiTypeError(
|
957
987
|
"Got an unexpected keyword argument '%s'"
|
958
|
-
" to method patch_dashboard" %
|
988
|
+
" to method patch_dashboard" % _key
|
959
989
|
)
|
960
|
-
|
961
|
-
del
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
if
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
local_var_files = {}
|
989
|
-
|
990
|
-
body_params = None
|
991
|
-
if 'body' in local_var_params:
|
992
|
-
body_params = local_var_params['body']
|
993
|
-
# HTTP header `Accept`
|
994
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
995
|
-
['application/json']) # noqa: E501
|
996
|
-
|
997
|
-
# HTTP header `Content-Type`
|
998
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
990
|
+
_params[_key] = _val
|
991
|
+
del _params['kwargs']
|
992
|
+
|
993
|
+
_collection_formats = {}
|
994
|
+
|
995
|
+
# process the path parameters
|
996
|
+
_path_params = {}
|
997
|
+
if _params['owner']:
|
998
|
+
_path_params['owner'] = _params['owner']
|
999
|
+
|
1000
|
+
if _params['dashboard_uuid']:
|
1001
|
+
_path_params['dashboard.uuid'] = _params['dashboard_uuid']
|
1002
|
+
|
1003
|
+
|
1004
|
+
# process the query parameters
|
1005
|
+
_query_params = []
|
1006
|
+
# process the header parameters
|
1007
|
+
_header_params = dict(_params.get('_headers', {}))
|
1008
|
+
# process the form parameters
|
1009
|
+
_form_params = []
|
1010
|
+
_files = {}
|
1011
|
+
# process the body parameter
|
1012
|
+
_body_params = None
|
1013
|
+
if _params['body']:
|
1014
|
+
_body_params = _params['body']
|
1015
|
+
|
1016
|
+
# set the HTTP header `Accept`
|
1017
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
999
1018
|
['application/json']) # noqa: E501
|
1000
1019
|
|
1001
|
-
#
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1020
|
+
# set the HTTP header `Content-Type`
|
1021
|
+
_content_types_list = _params.get('_content_type',
|
1022
|
+
self.api_client.select_header_content_type(
|
1023
|
+
['application/json']))
|
1024
|
+
if _content_types_list:
|
1025
|
+
_header_params['Content-Type'] = _content_types_list
|
1026
|
+
|
1027
|
+
# authentication setting
|
1028
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1029
|
+
|
1030
|
+
_response_types_map = {
|
1031
|
+
'200': "V1Dashboard",
|
1032
|
+
'204': "object",
|
1033
|
+
'403': "object",
|
1034
|
+
'404': "object",
|
1009
1035
|
}
|
1010
1036
|
|
1011
1037
|
return self.api_client.call_api(
|
1012
1038
|
'/api/v1/orgs/{owner}/dashboards/{dashboard.uuid}', 'PATCH',
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
body=
|
1017
|
-
post_params=
|
1018
|
-
files=
|
1019
|
-
response_types_map=
|
1020
|
-
auth_settings=
|
1021
|
-
async_req=
|
1022
|
-
_return_http_data_only=
|
1023
|
-
_preload_content=
|
1024
|
-
_request_timeout=
|
1025
|
-
collection_formats=
|
1026
|
-
_request_auth=
|
1027
|
-
|
1028
|
-
|
1039
|
+
_path_params,
|
1040
|
+
_query_params,
|
1041
|
+
_header_params,
|
1042
|
+
body=_body_params,
|
1043
|
+
post_params=_form_params,
|
1044
|
+
files=_files,
|
1045
|
+
response_types_map=_response_types_map,
|
1046
|
+
auth_settings=_auth_settings,
|
1047
|
+
async_req=_params.get('async_req'),
|
1048
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1049
|
+
_preload_content=_params.get('_preload_content', True),
|
1050
|
+
_request_timeout=_params.get('_request_timeout'),
|
1051
|
+
collection_formats=_collection_formats,
|
1052
|
+
_request_auth=_params.get('_request_auth'))
|
1053
|
+
|
1054
|
+
@validate_arguments
|
1055
|
+
def update_dashboard(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs) -> V1Dashboard: # noqa: E501
|
1029
1056
|
"""Update dashboard # noqa: E501
|
1030
1057
|
|
1031
1058
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1058,7 +1085,8 @@ class DashboardsV1Api(object):
|
|
1058
1085
|
kwargs['_return_http_data_only'] = True
|
1059
1086
|
return self.update_dashboard_with_http_info(owner, dashboard_uuid, body, **kwargs) # noqa: E501
|
1060
1087
|
|
1061
|
-
|
1088
|
+
@validate_arguments
|
1089
|
+
def update_dashboard_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], dashboard_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Dashboard, Field(..., description="Dashboard body")], **kwargs): # noqa: E501
|
1062
1090
|
"""Update dashboard # noqa: E501
|
1063
1091
|
|
1064
1092
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1090,99 +1118,99 @@ class DashboardsV1Api(object):
|
|
1090
1118
|
request; this effectively ignores the authentication
|
1091
1119
|
in the spec for a single request.
|
1092
1120
|
:type _request_auth: dict, optional
|
1121
|
+
:type _content_type: string, optional: force content-type for the request
|
1093
1122
|
:return: Returns the result object.
|
1094
1123
|
If the method is called asynchronously,
|
1095
1124
|
returns the request thread.
|
1096
1125
|
:rtype: tuple(V1Dashboard, status_code(int), headers(HTTPHeaderDict))
|
1097
1126
|
"""
|
1098
1127
|
|
1099
|
-
|
1128
|
+
_params = locals()
|
1100
1129
|
|
1101
|
-
|
1130
|
+
_all_params = [
|
1102
1131
|
'owner',
|
1103
1132
|
'dashboard_uuid',
|
1104
1133
|
'body'
|
1105
1134
|
]
|
1106
|
-
|
1135
|
+
_all_params.extend(
|
1107
1136
|
[
|
1108
1137
|
'async_req',
|
1109
1138
|
'_return_http_data_only',
|
1110
1139
|
'_preload_content',
|
1111
1140
|
'_request_timeout',
|
1112
|
-
'_request_auth'
|
1141
|
+
'_request_auth',
|
1142
|
+
'_content_type',
|
1143
|
+
'_headers'
|
1113
1144
|
]
|
1114
1145
|
)
|
1115
1146
|
|
1116
|
-
|
1117
|
-
|
1147
|
+
# validate the arguments
|
1148
|
+
for _key, _val in _params['kwargs'].items():
|
1149
|
+
if _key not in _all_params:
|
1118
1150
|
raise ApiTypeError(
|
1119
1151
|
"Got an unexpected keyword argument '%s'"
|
1120
|
-
" to method update_dashboard" %
|
1152
|
+
" to method update_dashboard" % _key
|
1121
1153
|
)
|
1122
|
-
|
1123
|
-
del
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
if
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
local_var_files = {}
|
1151
|
-
|
1152
|
-
body_params = None
|
1153
|
-
if 'body' in local_var_params:
|
1154
|
-
body_params = local_var_params['body']
|
1155
|
-
# HTTP header `Accept`
|
1156
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1157
|
-
['application/json']) # noqa: E501
|
1158
|
-
|
1159
|
-
# HTTP header `Content-Type`
|
1160
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1154
|
+
_params[_key] = _val
|
1155
|
+
del _params['kwargs']
|
1156
|
+
|
1157
|
+
_collection_formats = {}
|
1158
|
+
|
1159
|
+
# process the path parameters
|
1160
|
+
_path_params = {}
|
1161
|
+
if _params['owner']:
|
1162
|
+
_path_params['owner'] = _params['owner']
|
1163
|
+
|
1164
|
+
if _params['dashboard_uuid']:
|
1165
|
+
_path_params['dashboard.uuid'] = _params['dashboard_uuid']
|
1166
|
+
|
1167
|
+
|
1168
|
+
# process the query parameters
|
1169
|
+
_query_params = []
|
1170
|
+
# process the header parameters
|
1171
|
+
_header_params = dict(_params.get('_headers', {}))
|
1172
|
+
# process the form parameters
|
1173
|
+
_form_params = []
|
1174
|
+
_files = {}
|
1175
|
+
# process the body parameter
|
1176
|
+
_body_params = None
|
1177
|
+
if _params['body']:
|
1178
|
+
_body_params = _params['body']
|
1179
|
+
|
1180
|
+
# set the HTTP header `Accept`
|
1181
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1161
1182
|
['application/json']) # noqa: E501
|
1162
1183
|
|
1163
|
-
#
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1184
|
+
# set the HTTP header `Content-Type`
|
1185
|
+
_content_types_list = _params.get('_content_type',
|
1186
|
+
self.api_client.select_header_content_type(
|
1187
|
+
['application/json']))
|
1188
|
+
if _content_types_list:
|
1189
|
+
_header_params['Content-Type'] = _content_types_list
|
1190
|
+
|
1191
|
+
# authentication setting
|
1192
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1193
|
+
|
1194
|
+
_response_types_map = {
|
1195
|
+
'200': "V1Dashboard",
|
1196
|
+
'204': "object",
|
1197
|
+
'403': "object",
|
1198
|
+
'404': "object",
|
1171
1199
|
}
|
1172
1200
|
|
1173
1201
|
return self.api_client.call_api(
|
1174
1202
|
'/api/v1/orgs/{owner}/dashboards/{dashboard.uuid}', 'PUT',
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
body=
|
1179
|
-
post_params=
|
1180
|
-
files=
|
1181
|
-
response_types_map=
|
1182
|
-
auth_settings=
|
1183
|
-
async_req=
|
1184
|
-
_return_http_data_only=
|
1185
|
-
_preload_content=
|
1186
|
-
_request_timeout=
|
1187
|
-
collection_formats=
|
1188
|
-
_request_auth=
|
1203
|
+
_path_params,
|
1204
|
+
_query_params,
|
1205
|
+
_header_params,
|
1206
|
+
body=_body_params,
|
1207
|
+
post_params=_form_params,
|
1208
|
+
files=_files,
|
1209
|
+
response_types_map=_response_types_map,
|
1210
|
+
auth_settings=_auth_settings,
|
1211
|
+
async_req=_params.get('async_req'),
|
1212
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1213
|
+
_preload_content=_params.get('_preload_content', True),
|
1214
|
+
_request_timeout=_params.get('_request_timeout'),
|
1215
|
+
collection_formats=_collection_formats,
|
1216
|
+
_request_auth=_params.get('_request_auth'))
|