polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon_sdk/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,29 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
27
|
-
"""
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
28
11
|
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
29
14
|
|
30
|
-
from __future__ import absolute_import
|
31
15
|
|
32
16
|
import re # noqa: F401
|
33
17
|
|
34
|
-
|
35
|
-
import
|
18
|
+
from pydantic import validate_arguments, ValidationError
|
19
|
+
from typing_extensions import Annotated
|
20
|
+
|
21
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
22
|
+
|
23
|
+
from typing import Optional
|
24
|
+
|
25
|
+
from polyaxon_sdk.models.v1_list_queues_response import V1ListQueuesResponse
|
26
|
+
from polyaxon_sdk.models.v1_queue import V1Queue
|
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 QueuesV1Api(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_queue(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs) -> V1Queue: # noqa: E501
|
57
49
|
"""Create queue # noqa: E501
|
58
50
|
|
59
51
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -86,7 +78,8 @@ class QueuesV1Api(object):
|
|
86
78
|
kwargs['_return_http_data_only'] = True
|
87
79
|
return self.create_queue_with_http_info(owner, agent, body, **kwargs) # noqa: E501
|
88
80
|
|
89
|
-
|
81
|
+
@validate_arguments
|
82
|
+
def create_queue_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs): # noqa: E501
|
90
83
|
"""Create queue # noqa: E501
|
91
84
|
|
92
85
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -118,104 +111,105 @@ class QueuesV1Api(object):
|
|
118
111
|
request; this effectively ignores the authentication
|
119
112
|
in the spec for a single request.
|
120
113
|
:type _request_auth: dict, optional
|
114
|
+
:type _content_type: string, optional: force content-type for the request
|
121
115
|
:return: Returns the result object.
|
122
116
|
If the method is called asynchronously,
|
123
117
|
returns the request thread.
|
124
118
|
:rtype: tuple(V1Queue, status_code(int), headers(HTTPHeaderDict))
|
125
119
|
"""
|
126
120
|
|
127
|
-
|
121
|
+
_params = locals()
|
128
122
|
|
129
|
-
|
123
|
+
_all_params = [
|
130
124
|
'owner',
|
131
125
|
'agent',
|
132
126
|
'body'
|
133
127
|
]
|
134
|
-
|
128
|
+
_all_params.extend(
|
135
129
|
[
|
136
130
|
'async_req',
|
137
131
|
'_return_http_data_only',
|
138
132
|
'_preload_content',
|
139
133
|
'_request_timeout',
|
140
|
-
'_request_auth'
|
134
|
+
'_request_auth',
|
135
|
+
'_content_type',
|
136
|
+
'_headers'
|
141
137
|
]
|
142
138
|
)
|
143
139
|
|
144
|
-
|
145
|
-
|
140
|
+
# validate the arguments
|
141
|
+
for _key, _val in _params['kwargs'].items():
|
142
|
+
if _key not in _all_params:
|
146
143
|
raise ApiTypeError(
|
147
144
|
"Got an unexpected keyword argument '%s'"
|
148
|
-
" to method create_queue" %
|
145
|
+
" to method create_queue" % _key
|
149
146
|
)
|
150
|
-
|
151
|
-
del
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
if
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
local_var_files = {}
|
179
|
-
|
180
|
-
body_params = None
|
181
|
-
if 'body' in local_var_params:
|
182
|
-
body_params = local_var_params['body']
|
183
|
-
# HTTP header `Accept`
|
184
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
185
|
-
['application/json']) # noqa: E501
|
186
|
-
|
187
|
-
# HTTP header `Content-Type`
|
188
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
147
|
+
_params[_key] = _val
|
148
|
+
del _params['kwargs']
|
149
|
+
|
150
|
+
_collection_formats = {}
|
151
|
+
|
152
|
+
# process the path parameters
|
153
|
+
_path_params = {}
|
154
|
+
if _params['owner']:
|
155
|
+
_path_params['owner'] = _params['owner']
|
156
|
+
|
157
|
+
if _params['agent']:
|
158
|
+
_path_params['agent'] = _params['agent']
|
159
|
+
|
160
|
+
|
161
|
+
# process the query parameters
|
162
|
+
_query_params = []
|
163
|
+
# process the header parameters
|
164
|
+
_header_params = dict(_params.get('_headers', {}))
|
165
|
+
# process the form parameters
|
166
|
+
_form_params = []
|
167
|
+
_files = {}
|
168
|
+
# process the body parameter
|
169
|
+
_body_params = None
|
170
|
+
if _params['body']:
|
171
|
+
_body_params = _params['body']
|
172
|
+
|
173
|
+
# set the HTTP header `Accept`
|
174
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
189
175
|
['application/json']) # noqa: E501
|
190
176
|
|
191
|
-
#
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
177
|
+
# set the HTTP header `Content-Type`
|
178
|
+
_content_types_list = _params.get('_content_type',
|
179
|
+
self.api_client.select_header_content_type(
|
180
|
+
['application/json']))
|
181
|
+
if _content_types_list:
|
182
|
+
_header_params['Content-Type'] = _content_types_list
|
183
|
+
|
184
|
+
# authentication setting
|
185
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
186
|
+
|
187
|
+
_response_types_map = {
|
188
|
+
'200': "V1Queue",
|
189
|
+
'204': "object",
|
190
|
+
'403': "object",
|
191
|
+
'404': "object",
|
199
192
|
}
|
200
193
|
|
201
194
|
return self.api_client.call_api(
|
202
195
|
'/api/v1/orgs/{owner}/agents/{agent}/queues', 'POST',
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
body=
|
207
|
-
post_params=
|
208
|
-
files=
|
209
|
-
response_types_map=
|
210
|
-
auth_settings=
|
211
|
-
async_req=
|
212
|
-
_return_http_data_only=
|
213
|
-
_preload_content=
|
214
|
-
_request_timeout=
|
215
|
-
collection_formats=
|
216
|
-
_request_auth=
|
217
|
-
|
218
|
-
|
196
|
+
_path_params,
|
197
|
+
_query_params,
|
198
|
+
_header_params,
|
199
|
+
body=_body_params,
|
200
|
+
post_params=_form_params,
|
201
|
+
files=_files,
|
202
|
+
response_types_map=_response_types_map,
|
203
|
+
auth_settings=_auth_settings,
|
204
|
+
async_req=_params.get('async_req'),
|
205
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
206
|
+
_preload_content=_params.get('_preload_content', True),
|
207
|
+
_request_timeout=_params.get('_request_timeout'),
|
208
|
+
collection_formats=_collection_formats,
|
209
|
+
_request_auth=_params.get('_request_auth'))
|
210
|
+
|
211
|
+
@validate_arguments
|
212
|
+
def delete_queue(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> None: # noqa: E501
|
219
213
|
"""Delete queue # noqa: E501
|
220
214
|
|
221
215
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -248,7 +242,8 @@ class QueuesV1Api(object):
|
|
248
242
|
kwargs['_return_http_data_only'] = True
|
249
243
|
return self.delete_queue_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
250
244
|
|
251
|
-
|
245
|
+
@validate_arguments
|
246
|
+
def delete_queue_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
252
247
|
"""Delete queue # noqa: E501
|
253
248
|
|
254
249
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -280,95 +275,93 @@ class QueuesV1Api(object):
|
|
280
275
|
request; this effectively ignores the authentication
|
281
276
|
in the spec for a single request.
|
282
277
|
:type _request_auth: dict, optional
|
278
|
+
:type _content_type: string, optional: force content-type for the request
|
283
279
|
:return: Returns the result object.
|
284
280
|
If the method is called asynchronously,
|
285
281
|
returns the request thread.
|
286
282
|
:rtype: None
|
287
283
|
"""
|
288
284
|
|
289
|
-
|
285
|
+
_params = locals()
|
290
286
|
|
291
|
-
|
287
|
+
_all_params = [
|
292
288
|
'owner',
|
293
289
|
'entity',
|
294
290
|
'uuid'
|
295
291
|
]
|
296
|
-
|
292
|
+
_all_params.extend(
|
297
293
|
[
|
298
294
|
'async_req',
|
299
295
|
'_return_http_data_only',
|
300
296
|
'_preload_content',
|
301
297
|
'_request_timeout',
|
302
|
-
'_request_auth'
|
298
|
+
'_request_auth',
|
299
|
+
'_content_type',
|
300
|
+
'_headers'
|
303
301
|
]
|
304
302
|
)
|
305
303
|
|
306
|
-
|
307
|
-
|
304
|
+
# validate the arguments
|
305
|
+
for _key, _val in _params['kwargs'].items():
|
306
|
+
if _key not in _all_params:
|
308
307
|
raise ApiTypeError(
|
309
308
|
"Got an unexpected keyword argument '%s'"
|
310
|
-
" to method delete_queue" %
|
309
|
+
" to method delete_queue" % _key
|
311
310
|
)
|
312
|
-
|
313
|
-
del
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
if
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
form_params = []
|
342
|
-
local_var_files = {}
|
343
|
-
|
344
|
-
body_params = None
|
345
|
-
# HTTP header `Accept`
|
346
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
311
|
+
_params[_key] = _val
|
312
|
+
del _params['kwargs']
|
313
|
+
|
314
|
+
_collection_formats = {}
|
315
|
+
|
316
|
+
# process the path parameters
|
317
|
+
_path_params = {}
|
318
|
+
if _params['owner']:
|
319
|
+
_path_params['owner'] = _params['owner']
|
320
|
+
|
321
|
+
if _params['entity']:
|
322
|
+
_path_params['entity'] = _params['entity']
|
323
|
+
|
324
|
+
if _params['uuid']:
|
325
|
+
_path_params['uuid'] = _params['uuid']
|
326
|
+
|
327
|
+
|
328
|
+
# process the query parameters
|
329
|
+
_query_params = []
|
330
|
+
# process the header parameters
|
331
|
+
_header_params = dict(_params.get('_headers', {}))
|
332
|
+
# process the form parameters
|
333
|
+
_form_params = []
|
334
|
+
_files = {}
|
335
|
+
# process the body parameter
|
336
|
+
_body_params = None
|
337
|
+
# set the HTTP header `Accept`
|
338
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
347
339
|
['application/json']) # noqa: E501
|
348
340
|
|
349
|
-
#
|
350
|
-
|
341
|
+
# authentication setting
|
342
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
351
343
|
|
352
|
-
|
344
|
+
_response_types_map = {}
|
353
345
|
|
354
346
|
return self.api_client.call_api(
|
355
347
|
'/api/v1/orgs/{owner}/agents/{entity}/queues/{uuid}', 'DELETE',
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
body=
|
360
|
-
post_params=
|
361
|
-
files=
|
362
|
-
response_types_map=
|
363
|
-
auth_settings=
|
364
|
-
async_req=
|
365
|
-
_return_http_data_only=
|
366
|
-
_preload_content=
|
367
|
-
_request_timeout=
|
368
|
-
collection_formats=
|
369
|
-
_request_auth=
|
370
|
-
|
371
|
-
|
348
|
+
_path_params,
|
349
|
+
_query_params,
|
350
|
+
_header_params,
|
351
|
+
body=_body_params,
|
352
|
+
post_params=_form_params,
|
353
|
+
files=_files,
|
354
|
+
response_types_map=_response_types_map,
|
355
|
+
auth_settings=_auth_settings,
|
356
|
+
async_req=_params.get('async_req'),
|
357
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
358
|
+
_preload_content=_params.get('_preload_content', True),
|
359
|
+
_request_timeout=_params.get('_request_timeout'),
|
360
|
+
collection_formats=_collection_formats,
|
361
|
+
_request_auth=_params.get('_request_auth'))
|
362
|
+
|
363
|
+
@validate_arguments
|
364
|
+
def get_queue(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> V1Queue: # noqa: E501
|
372
365
|
"""Get queue # noqa: E501
|
373
366
|
|
374
367
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -401,7 +394,8 @@ class QueuesV1Api(object):
|
|
401
394
|
kwargs['_return_http_data_only'] = True
|
402
395
|
return self.get_queue_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
403
396
|
|
404
|
-
|
397
|
+
@validate_arguments
|
398
|
+
def get_queue_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
405
399
|
"""Get queue # noqa: E501
|
406
400
|
|
407
401
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -433,106 +427,104 @@ class QueuesV1Api(object):
|
|
433
427
|
request; this effectively ignores the authentication
|
434
428
|
in the spec for a single request.
|
435
429
|
:type _request_auth: dict, optional
|
430
|
+
:type _content_type: string, optional: force content-type for the request
|
436
431
|
:return: Returns the result object.
|
437
432
|
If the method is called asynchronously,
|
438
433
|
returns the request thread.
|
439
434
|
:rtype: tuple(V1Queue, status_code(int), headers(HTTPHeaderDict))
|
440
435
|
"""
|
441
436
|
|
442
|
-
|
437
|
+
_params = locals()
|
443
438
|
|
444
|
-
|
439
|
+
_all_params = [
|
445
440
|
'owner',
|
446
441
|
'entity',
|
447
442
|
'uuid'
|
448
443
|
]
|
449
|
-
|
444
|
+
_all_params.extend(
|
450
445
|
[
|
451
446
|
'async_req',
|
452
447
|
'_return_http_data_only',
|
453
448
|
'_preload_content',
|
454
449
|
'_request_timeout',
|
455
|
-
'_request_auth'
|
450
|
+
'_request_auth',
|
451
|
+
'_content_type',
|
452
|
+
'_headers'
|
456
453
|
]
|
457
454
|
)
|
458
455
|
|
459
|
-
|
460
|
-
|
456
|
+
# validate the arguments
|
457
|
+
for _key, _val in _params['kwargs'].items():
|
458
|
+
if _key not in _all_params:
|
461
459
|
raise ApiTypeError(
|
462
460
|
"Got an unexpected keyword argument '%s'"
|
463
|
-
" to method get_queue" %
|
461
|
+
" to method get_queue" % _key
|
464
462
|
)
|
465
|
-
|
466
|
-
del
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
if
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
form_params = []
|
495
|
-
local_var_files = {}
|
496
|
-
|
497
|
-
body_params = None
|
498
|
-
# HTTP header `Accept`
|
499
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
463
|
+
_params[_key] = _val
|
464
|
+
del _params['kwargs']
|
465
|
+
|
466
|
+
_collection_formats = {}
|
467
|
+
|
468
|
+
# process the path parameters
|
469
|
+
_path_params = {}
|
470
|
+
if _params['owner']:
|
471
|
+
_path_params['owner'] = _params['owner']
|
472
|
+
|
473
|
+
if _params['entity']:
|
474
|
+
_path_params['entity'] = _params['entity']
|
475
|
+
|
476
|
+
if _params['uuid']:
|
477
|
+
_path_params['uuid'] = _params['uuid']
|
478
|
+
|
479
|
+
|
480
|
+
# process the query parameters
|
481
|
+
_query_params = []
|
482
|
+
# process the header parameters
|
483
|
+
_header_params = dict(_params.get('_headers', {}))
|
484
|
+
# process the form parameters
|
485
|
+
_form_params = []
|
486
|
+
_files = {}
|
487
|
+
# process the body parameter
|
488
|
+
_body_params = None
|
489
|
+
# set the HTTP header `Accept`
|
490
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
500
491
|
['application/json']) # noqa: E501
|
501
492
|
|
502
|
-
#
|
503
|
-
|
493
|
+
# authentication setting
|
494
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
504
495
|
|
505
|
-
|
506
|
-
200: "V1Queue",
|
507
|
-
204: "object",
|
508
|
-
403: "object",
|
509
|
-
404: "object",
|
496
|
+
_response_types_map = {
|
497
|
+
'200': "V1Queue",
|
498
|
+
'204': "object",
|
499
|
+
'403': "object",
|
500
|
+
'404': "object",
|
510
501
|
}
|
511
502
|
|
512
503
|
return self.api_client.call_api(
|
513
504
|
'/api/v1/orgs/{owner}/agents/{entity}/queues/{uuid}', 'GET',
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
body=
|
518
|
-
post_params=
|
519
|
-
files=
|
520
|
-
response_types_map=
|
521
|
-
auth_settings=
|
522
|
-
async_req=
|
523
|
-
_return_http_data_only=
|
524
|
-
_preload_content=
|
525
|
-
_request_timeout=
|
526
|
-
collection_formats=
|
527
|
-
_request_auth=
|
528
|
-
|
529
|
-
|
505
|
+
_path_params,
|
506
|
+
_query_params,
|
507
|
+
_header_params,
|
508
|
+
body=_body_params,
|
509
|
+
post_params=_form_params,
|
510
|
+
files=_files,
|
511
|
+
response_types_map=_response_types_map,
|
512
|
+
auth_settings=_auth_settings,
|
513
|
+
async_req=_params.get('async_req'),
|
514
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
515
|
+
_preload_content=_params.get('_preload_content', True),
|
516
|
+
_request_timeout=_params.get('_request_timeout'),
|
517
|
+
collection_formats=_collection_formats,
|
518
|
+
_request_auth=_params.get('_request_auth'))
|
519
|
+
|
520
|
+
@validate_arguments
|
521
|
+
def list_organization_queue_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) -> V1ListQueuesResponse: # noqa: E501
|
530
522
|
"""List organization level queues names # noqa: E501
|
531
523
|
|
532
524
|
This method makes a synchronous HTTP request by default. To make an
|
533
525
|
asynchronous HTTP request, please pass async_req=True
|
534
526
|
|
535
|
-
>>> thread = api.list_organization_queue_names(owner, async_req=True)
|
527
|
+
>>> thread = api.list_organization_queue_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
536
528
|
>>> result = thread.get()
|
537
529
|
|
538
530
|
:param owner: Owner of the namespace (required)
|
@@ -567,15 +559,16 @@ class QueuesV1Api(object):
|
|
567
559
|
:rtype: V1ListQueuesResponse
|
568
560
|
"""
|
569
561
|
kwargs['_return_http_data_only'] = True
|
570
|
-
return self.list_organization_queue_names_with_http_info(owner, **kwargs) # noqa: E501
|
562
|
+
return self.list_organization_queue_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
571
563
|
|
572
|
-
|
564
|
+
@validate_arguments
|
565
|
+
def list_organization_queue_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
|
573
566
|
"""List organization level queues names # noqa: E501
|
574
567
|
|
575
568
|
This method makes a synchronous HTTP request by default. To make an
|
576
569
|
asynchronous HTTP request, please pass async_req=True
|
577
570
|
|
578
|
-
>>> thread = api.list_organization_queue_names_with_http_info(owner, async_req=True)
|
571
|
+
>>> thread = api.list_organization_queue_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
579
572
|
>>> result = thread.get()
|
580
573
|
|
581
574
|
:param owner: Owner of the namespace (required)
|
@@ -611,15 +604,16 @@ class QueuesV1Api(object):
|
|
611
604
|
request; this effectively ignores the authentication
|
612
605
|
in the spec for a single request.
|
613
606
|
:type _request_auth: dict, optional
|
607
|
+
:type _content_type: string, optional: force content-type for the request
|
614
608
|
:return: Returns the result object.
|
615
609
|
If the method is called asynchronously,
|
616
610
|
returns the request thread.
|
617
611
|
:rtype: tuple(V1ListQueuesResponse, status_code(int), headers(HTTPHeaderDict))
|
618
612
|
"""
|
619
613
|
|
620
|
-
|
614
|
+
_params = locals()
|
621
615
|
|
622
|
-
|
616
|
+
_all_params = [
|
623
617
|
'owner',
|
624
618
|
'offset',
|
625
619
|
'limit',
|
@@ -629,95 +623,105 @@ class QueuesV1Api(object):
|
|
629
623
|
'mode',
|
630
624
|
'no_page'
|
631
625
|
]
|
632
|
-
|
626
|
+
_all_params.extend(
|
633
627
|
[
|
634
628
|
'async_req',
|
635
629
|
'_return_http_data_only',
|
636
630
|
'_preload_content',
|
637
631
|
'_request_timeout',
|
638
|
-
'_request_auth'
|
632
|
+
'_request_auth',
|
633
|
+
'_content_type',
|
634
|
+
'_headers'
|
639
635
|
]
|
640
636
|
)
|
641
637
|
|
642
|
-
|
643
|
-
|
638
|
+
# validate the arguments
|
639
|
+
for _key, _val in _params['kwargs'].items():
|
640
|
+
if _key not in _all_params:
|
644
641
|
raise ApiTypeError(
|
645
642
|
"Got an unexpected keyword argument '%s'"
|
646
|
-
" to method list_organization_queue_names" %
|
643
|
+
" to method list_organization_queue_names" % _key
|
647
644
|
)
|
648
|
-
|
649
|
-
del
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
if 'limit'
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
if '
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
645
|
+
_params[_key] = _val
|
646
|
+
del _params['kwargs']
|
647
|
+
|
648
|
+
_collection_formats = {}
|
649
|
+
|
650
|
+
# process the path parameters
|
651
|
+
_path_params = {}
|
652
|
+
if _params['owner']:
|
653
|
+
_path_params['owner'] = _params['owner']
|
654
|
+
|
655
|
+
|
656
|
+
# process the query parameters
|
657
|
+
_query_params = []
|
658
|
+
if _params.get('offset') is not None: # noqa: E501
|
659
|
+
_query_params.append(('offset', _params['offset']))
|
660
|
+
|
661
|
+
if _params.get('limit') is not None: # noqa: E501
|
662
|
+
_query_params.append(('limit', _params['limit']))
|
663
|
+
|
664
|
+
if _params.get('sort') is not None: # noqa: E501
|
665
|
+
_query_params.append(('sort', _params['sort']))
|
666
|
+
|
667
|
+
if _params.get('query') is not None: # noqa: E501
|
668
|
+
_query_params.append(('query', _params['query']))
|
669
|
+
|
670
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
671
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
672
|
+
|
673
|
+
if _params.get('mode') is not None: # noqa: E501
|
674
|
+
_query_params.append(('mode', _params['mode']))
|
675
|
+
|
676
|
+
if _params.get('no_page') is not None: # noqa: E501
|
677
|
+
_query_params.append(('no_page', _params['no_page']))
|
678
|
+
|
679
|
+
# process the header parameters
|
680
|
+
_header_params = dict(_params.get('_headers', {}))
|
681
|
+
# process the form parameters
|
682
|
+
_form_params = []
|
683
|
+
_files = {}
|
684
|
+
# process the body parameter
|
685
|
+
_body_params = None
|
686
|
+
# set the HTTP header `Accept`
|
687
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
685
688
|
['application/json']) # noqa: E501
|
686
689
|
|
687
|
-
#
|
688
|
-
|
690
|
+
# authentication setting
|
691
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
689
692
|
|
690
|
-
|
691
|
-
200: "V1ListQueuesResponse",
|
692
|
-
204: "object",
|
693
|
-
403: "object",
|
694
|
-
404: "object",
|
693
|
+
_response_types_map = {
|
694
|
+
'200': "V1ListQueuesResponse",
|
695
|
+
'204': "object",
|
696
|
+
'403': "object",
|
697
|
+
'404': "object",
|
695
698
|
}
|
696
699
|
|
697
700
|
return self.api_client.call_api(
|
698
701
|
'/api/v1/orgs/{owner}/queues/names', 'GET',
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
body=
|
703
|
-
post_params=
|
704
|
-
files=
|
705
|
-
response_types_map=
|
706
|
-
auth_settings=
|
707
|
-
async_req=
|
708
|
-
_return_http_data_only=
|
709
|
-
_preload_content=
|
710
|
-
_request_timeout=
|
711
|
-
collection_formats=
|
712
|
-
_request_auth=
|
713
|
-
|
714
|
-
|
702
|
+
_path_params,
|
703
|
+
_query_params,
|
704
|
+
_header_params,
|
705
|
+
body=_body_params,
|
706
|
+
post_params=_form_params,
|
707
|
+
files=_files,
|
708
|
+
response_types_map=_response_types_map,
|
709
|
+
auth_settings=_auth_settings,
|
710
|
+
async_req=_params.get('async_req'),
|
711
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
712
|
+
_preload_content=_params.get('_preload_content', True),
|
713
|
+
_request_timeout=_params.get('_request_timeout'),
|
714
|
+
collection_formats=_collection_formats,
|
715
|
+
_request_auth=_params.get('_request_auth'))
|
716
|
+
|
717
|
+
@validate_arguments
|
718
|
+
def list_organization_queues(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) -> V1ListQueuesResponse: # noqa: E501
|
715
719
|
"""List organization level queues # noqa: E501
|
716
720
|
|
717
721
|
This method makes a synchronous HTTP request by default. To make an
|
718
722
|
asynchronous HTTP request, please pass async_req=True
|
719
723
|
|
720
|
-
>>> thread = api.list_organization_queues(owner, async_req=True)
|
724
|
+
>>> thread = api.list_organization_queues(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
721
725
|
>>> result = thread.get()
|
722
726
|
|
723
727
|
:param owner: Owner of the namespace (required)
|
@@ -752,15 +756,16 @@ class QueuesV1Api(object):
|
|
752
756
|
:rtype: V1ListQueuesResponse
|
753
757
|
"""
|
754
758
|
kwargs['_return_http_data_only'] = True
|
755
|
-
return self.list_organization_queues_with_http_info(owner, **kwargs) # noqa: E501
|
759
|
+
return self.list_organization_queues_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
756
760
|
|
757
|
-
|
761
|
+
@validate_arguments
|
762
|
+
def list_organization_queues_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
|
758
763
|
"""List organization level queues # noqa: E501
|
759
764
|
|
760
765
|
This method makes a synchronous HTTP request by default. To make an
|
761
766
|
asynchronous HTTP request, please pass async_req=True
|
762
767
|
|
763
|
-
>>> thread = api.list_organization_queues_with_http_info(owner, async_req=True)
|
768
|
+
>>> thread = api.list_organization_queues_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
764
769
|
>>> result = thread.get()
|
765
770
|
|
766
771
|
:param owner: Owner of the namespace (required)
|
@@ -796,15 +801,16 @@ class QueuesV1Api(object):
|
|
796
801
|
request; this effectively ignores the authentication
|
797
802
|
in the spec for a single request.
|
798
803
|
:type _request_auth: dict, optional
|
804
|
+
:type _content_type: string, optional: force content-type for the request
|
799
805
|
:return: Returns the result object.
|
800
806
|
If the method is called asynchronously,
|
801
807
|
returns the request thread.
|
802
808
|
:rtype: tuple(V1ListQueuesResponse, status_code(int), headers(HTTPHeaderDict))
|
803
809
|
"""
|
804
810
|
|
805
|
-
|
811
|
+
_params = locals()
|
806
812
|
|
807
|
-
|
813
|
+
_all_params = [
|
808
814
|
'owner',
|
809
815
|
'offset',
|
810
816
|
'limit',
|
@@ -814,95 +820,105 @@ class QueuesV1Api(object):
|
|
814
820
|
'mode',
|
815
821
|
'no_page'
|
816
822
|
]
|
817
|
-
|
823
|
+
_all_params.extend(
|
818
824
|
[
|
819
825
|
'async_req',
|
820
826
|
'_return_http_data_only',
|
821
827
|
'_preload_content',
|
822
828
|
'_request_timeout',
|
823
|
-
'_request_auth'
|
829
|
+
'_request_auth',
|
830
|
+
'_content_type',
|
831
|
+
'_headers'
|
824
832
|
]
|
825
833
|
)
|
826
834
|
|
827
|
-
|
828
|
-
|
835
|
+
# validate the arguments
|
836
|
+
for _key, _val in _params['kwargs'].items():
|
837
|
+
if _key not in _all_params:
|
829
838
|
raise ApiTypeError(
|
830
839
|
"Got an unexpected keyword argument '%s'"
|
831
|
-
" to method list_organization_queues" %
|
840
|
+
" to method list_organization_queues" % _key
|
832
841
|
)
|
833
|
-
|
834
|
-
del
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
if 'limit'
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
if '
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
842
|
+
_params[_key] = _val
|
843
|
+
del _params['kwargs']
|
844
|
+
|
845
|
+
_collection_formats = {}
|
846
|
+
|
847
|
+
# process the path parameters
|
848
|
+
_path_params = {}
|
849
|
+
if _params['owner']:
|
850
|
+
_path_params['owner'] = _params['owner']
|
851
|
+
|
852
|
+
|
853
|
+
# process the query parameters
|
854
|
+
_query_params = []
|
855
|
+
if _params.get('offset') is not None: # noqa: E501
|
856
|
+
_query_params.append(('offset', _params['offset']))
|
857
|
+
|
858
|
+
if _params.get('limit') is not None: # noqa: E501
|
859
|
+
_query_params.append(('limit', _params['limit']))
|
860
|
+
|
861
|
+
if _params.get('sort') is not None: # noqa: E501
|
862
|
+
_query_params.append(('sort', _params['sort']))
|
863
|
+
|
864
|
+
if _params.get('query') is not None: # noqa: E501
|
865
|
+
_query_params.append(('query', _params['query']))
|
866
|
+
|
867
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
868
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
869
|
+
|
870
|
+
if _params.get('mode') is not None: # noqa: E501
|
871
|
+
_query_params.append(('mode', _params['mode']))
|
872
|
+
|
873
|
+
if _params.get('no_page') is not None: # noqa: E501
|
874
|
+
_query_params.append(('no_page', _params['no_page']))
|
875
|
+
|
876
|
+
# process the header parameters
|
877
|
+
_header_params = dict(_params.get('_headers', {}))
|
878
|
+
# process the form parameters
|
879
|
+
_form_params = []
|
880
|
+
_files = {}
|
881
|
+
# process the body parameter
|
882
|
+
_body_params = None
|
883
|
+
# set the HTTP header `Accept`
|
884
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
870
885
|
['application/json']) # noqa: E501
|
871
886
|
|
872
|
-
#
|
873
|
-
|
887
|
+
# authentication setting
|
888
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
874
889
|
|
875
|
-
|
876
|
-
200: "V1ListQueuesResponse",
|
877
|
-
204: "object",
|
878
|
-
403: "object",
|
879
|
-
404: "object",
|
890
|
+
_response_types_map = {
|
891
|
+
'200': "V1ListQueuesResponse",
|
892
|
+
'204': "object",
|
893
|
+
'403': "object",
|
894
|
+
'404': "object",
|
880
895
|
}
|
881
896
|
|
882
897
|
return self.api_client.call_api(
|
883
898
|
'/api/v1/orgs/{owner}/queues', 'GET',
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
body=
|
888
|
-
post_params=
|
889
|
-
files=
|
890
|
-
response_types_map=
|
891
|
-
auth_settings=
|
892
|
-
async_req=
|
893
|
-
_return_http_data_only=
|
894
|
-
_preload_content=
|
895
|
-
_request_timeout=
|
896
|
-
collection_formats=
|
897
|
-
_request_auth=
|
898
|
-
|
899
|
-
|
899
|
+
_path_params,
|
900
|
+
_query_params,
|
901
|
+
_header_params,
|
902
|
+
body=_body_params,
|
903
|
+
post_params=_form_params,
|
904
|
+
files=_files,
|
905
|
+
response_types_map=_response_types_map,
|
906
|
+
auth_settings=_auth_settings,
|
907
|
+
async_req=_params.get('async_req'),
|
908
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
909
|
+
_preload_content=_params.get('_preload_content', True),
|
910
|
+
_request_timeout=_params.get('_request_timeout'),
|
911
|
+
collection_formats=_collection_formats,
|
912
|
+
_request_auth=_params.get('_request_auth'))
|
913
|
+
|
914
|
+
@validate_arguments
|
915
|
+
def list_queue_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListQueuesResponse: # noqa: E501
|
900
916
|
"""List queues names # noqa: E501
|
901
917
|
|
902
918
|
This method makes a synchronous HTTP request by default. To make an
|
903
919
|
asynchronous HTTP request, please pass async_req=True
|
904
920
|
|
905
|
-
>>> thread = api.list_queue_names(owner, name, async_req=True)
|
921
|
+
>>> thread = api.list_queue_names(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
906
922
|
>>> result = thread.get()
|
907
923
|
|
908
924
|
:param owner: Owner of the namespace (required)
|
@@ -939,15 +955,16 @@ class QueuesV1Api(object):
|
|
939
955
|
:rtype: V1ListQueuesResponse
|
940
956
|
"""
|
941
957
|
kwargs['_return_http_data_only'] = True
|
942
|
-
return self.list_queue_names_with_http_info(owner, name, **kwargs) # noqa: E501
|
958
|
+
return self.list_queue_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
943
959
|
|
944
|
-
|
960
|
+
@validate_arguments
|
961
|
+
def list_queue_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
945
962
|
"""List queues names # noqa: E501
|
946
963
|
|
947
964
|
This method makes a synchronous HTTP request by default. To make an
|
948
965
|
asynchronous HTTP request, please pass async_req=True
|
949
966
|
|
950
|
-
>>> thread = api.list_queue_names_with_http_info(owner, name, async_req=True)
|
967
|
+
>>> thread = api.list_queue_names_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
951
968
|
>>> result = thread.get()
|
952
969
|
|
953
970
|
:param owner: Owner of the namespace (required)
|
@@ -985,15 +1002,16 @@ class QueuesV1Api(object):
|
|
985
1002
|
request; this effectively ignores the authentication
|
986
1003
|
in the spec for a single request.
|
987
1004
|
:type _request_auth: dict, optional
|
1005
|
+
:type _content_type: string, optional: force content-type for the request
|
988
1006
|
:return: Returns the result object.
|
989
1007
|
If the method is called asynchronously,
|
990
1008
|
returns the request thread.
|
991
1009
|
:rtype: tuple(V1ListQueuesResponse, status_code(int), headers(HTTPHeaderDict))
|
992
1010
|
"""
|
993
1011
|
|
994
|
-
|
1012
|
+
_params = locals()
|
995
1013
|
|
996
|
-
|
1014
|
+
_all_params = [
|
997
1015
|
'owner',
|
998
1016
|
'name',
|
999
1017
|
'offset',
|
@@ -1004,101 +1022,108 @@ class QueuesV1Api(object):
|
|
1004
1022
|
'mode',
|
1005
1023
|
'no_page'
|
1006
1024
|
]
|
1007
|
-
|
1025
|
+
_all_params.extend(
|
1008
1026
|
[
|
1009
1027
|
'async_req',
|
1010
1028
|
'_return_http_data_only',
|
1011
1029
|
'_preload_content',
|
1012
1030
|
'_request_timeout',
|
1013
|
-
'_request_auth'
|
1031
|
+
'_request_auth',
|
1032
|
+
'_content_type',
|
1033
|
+
'_headers'
|
1014
1034
|
]
|
1015
1035
|
)
|
1016
1036
|
|
1017
|
-
|
1018
|
-
|
1037
|
+
# validate the arguments
|
1038
|
+
for _key, _val in _params['kwargs'].items():
|
1039
|
+
if _key not in _all_params:
|
1019
1040
|
raise ApiTypeError(
|
1020
1041
|
"Got an unexpected keyword argument '%s'"
|
1021
|
-
" to method list_queue_names" %
|
1042
|
+
" to method list_queue_names" % _key
|
1022
1043
|
)
|
1023
|
-
|
1024
|
-
del
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
if
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
if '
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
if '
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
if 'bookmarks'
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1044
|
+
_params[_key] = _val
|
1045
|
+
del _params['kwargs']
|
1046
|
+
|
1047
|
+
_collection_formats = {}
|
1048
|
+
|
1049
|
+
# process the path parameters
|
1050
|
+
_path_params = {}
|
1051
|
+
if _params['owner']:
|
1052
|
+
_path_params['owner'] = _params['owner']
|
1053
|
+
|
1054
|
+
if _params['name']:
|
1055
|
+
_path_params['name'] = _params['name']
|
1056
|
+
|
1057
|
+
|
1058
|
+
# process the query parameters
|
1059
|
+
_query_params = []
|
1060
|
+
if _params.get('offset') is not None: # noqa: E501
|
1061
|
+
_query_params.append(('offset', _params['offset']))
|
1062
|
+
|
1063
|
+
if _params.get('limit') is not None: # noqa: E501
|
1064
|
+
_query_params.append(('limit', _params['limit']))
|
1065
|
+
|
1066
|
+
if _params.get('sort') is not None: # noqa: E501
|
1067
|
+
_query_params.append(('sort', _params['sort']))
|
1068
|
+
|
1069
|
+
if _params.get('query') is not None: # noqa: E501
|
1070
|
+
_query_params.append(('query', _params['query']))
|
1071
|
+
|
1072
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1073
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1074
|
+
|
1075
|
+
if _params.get('mode') is not None: # noqa: E501
|
1076
|
+
_query_params.append(('mode', _params['mode']))
|
1077
|
+
|
1078
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1079
|
+
_query_params.append(('no_page', _params['no_page']))
|
1080
|
+
|
1081
|
+
# process the header parameters
|
1082
|
+
_header_params = dict(_params.get('_headers', {}))
|
1083
|
+
# process the form parameters
|
1084
|
+
_form_params = []
|
1085
|
+
_files = {}
|
1086
|
+
# process the body parameter
|
1087
|
+
_body_params = None
|
1088
|
+
# set the HTTP header `Accept`
|
1089
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1066
1090
|
['application/json']) # noqa: E501
|
1067
1091
|
|
1068
|
-
#
|
1069
|
-
|
1092
|
+
# authentication setting
|
1093
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1070
1094
|
|
1071
|
-
|
1072
|
-
200: "V1ListQueuesResponse",
|
1073
|
-
204: "object",
|
1074
|
-
403: "object",
|
1075
|
-
404: "object",
|
1095
|
+
_response_types_map = {
|
1096
|
+
'200': "V1ListQueuesResponse",
|
1097
|
+
'204': "object",
|
1098
|
+
'403': "object",
|
1099
|
+
'404': "object",
|
1076
1100
|
}
|
1077
1101
|
|
1078
1102
|
return self.api_client.call_api(
|
1079
1103
|
'/api/v1/orgs/{owner}/agents/{name}/queues/names', 'GET',
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
body=
|
1084
|
-
post_params=
|
1085
|
-
files=
|
1086
|
-
response_types_map=
|
1087
|
-
auth_settings=
|
1088
|
-
async_req=
|
1089
|
-
_return_http_data_only=
|
1090
|
-
_preload_content=
|
1091
|
-
_request_timeout=
|
1092
|
-
collection_formats=
|
1093
|
-
_request_auth=
|
1094
|
-
|
1095
|
-
|
1104
|
+
_path_params,
|
1105
|
+
_query_params,
|
1106
|
+
_header_params,
|
1107
|
+
body=_body_params,
|
1108
|
+
post_params=_form_params,
|
1109
|
+
files=_files,
|
1110
|
+
response_types_map=_response_types_map,
|
1111
|
+
auth_settings=_auth_settings,
|
1112
|
+
async_req=_params.get('async_req'),
|
1113
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1114
|
+
_preload_content=_params.get('_preload_content', True),
|
1115
|
+
_request_timeout=_params.get('_request_timeout'),
|
1116
|
+
collection_formats=_collection_formats,
|
1117
|
+
_request_auth=_params.get('_request_auth'))
|
1118
|
+
|
1119
|
+
@validate_arguments
|
1120
|
+
def list_queues(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListQueuesResponse: # noqa: E501
|
1096
1121
|
"""List queues # noqa: E501
|
1097
1122
|
|
1098
1123
|
This method makes a synchronous HTTP request by default. To make an
|
1099
1124
|
asynchronous HTTP request, please pass async_req=True
|
1100
1125
|
|
1101
|
-
>>> thread = api.list_queues(owner, name, async_req=True)
|
1126
|
+
>>> thread = api.list_queues(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1102
1127
|
>>> result = thread.get()
|
1103
1128
|
|
1104
1129
|
:param owner: Owner of the namespace (required)
|
@@ -1135,15 +1160,16 @@ class QueuesV1Api(object):
|
|
1135
1160
|
:rtype: V1ListQueuesResponse
|
1136
1161
|
"""
|
1137
1162
|
kwargs['_return_http_data_only'] = True
|
1138
|
-
return self.list_queues_with_http_info(owner, name, **kwargs) # noqa: E501
|
1163
|
+
return self.list_queues_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1139
1164
|
|
1140
|
-
|
1165
|
+
@validate_arguments
|
1166
|
+
def list_queues_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
1141
1167
|
"""List queues # noqa: E501
|
1142
1168
|
|
1143
1169
|
This method makes a synchronous HTTP request by default. To make an
|
1144
1170
|
asynchronous HTTP request, please pass async_req=True
|
1145
1171
|
|
1146
|
-
>>> thread = api.list_queues_with_http_info(owner, name, async_req=True)
|
1172
|
+
>>> thread = api.list_queues_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1147
1173
|
>>> result = thread.get()
|
1148
1174
|
|
1149
1175
|
:param owner: Owner of the namespace (required)
|
@@ -1181,15 +1207,16 @@ class QueuesV1Api(object):
|
|
1181
1207
|
request; this effectively ignores the authentication
|
1182
1208
|
in the spec for a single request.
|
1183
1209
|
:type _request_auth: dict, optional
|
1210
|
+
:type _content_type: string, optional: force content-type for the request
|
1184
1211
|
:return: Returns the result object.
|
1185
1212
|
If the method is called asynchronously,
|
1186
1213
|
returns the request thread.
|
1187
1214
|
:rtype: tuple(V1ListQueuesResponse, status_code(int), headers(HTTPHeaderDict))
|
1188
1215
|
"""
|
1189
1216
|
|
1190
|
-
|
1217
|
+
_params = locals()
|
1191
1218
|
|
1192
|
-
|
1219
|
+
_all_params = [
|
1193
1220
|
'owner',
|
1194
1221
|
'name',
|
1195
1222
|
'offset',
|
@@ -1200,95 +1227,102 @@ class QueuesV1Api(object):
|
|
1200
1227
|
'mode',
|
1201
1228
|
'no_page'
|
1202
1229
|
]
|
1203
|
-
|
1230
|
+
_all_params.extend(
|
1204
1231
|
[
|
1205
1232
|
'async_req',
|
1206
1233
|
'_return_http_data_only',
|
1207
1234
|
'_preload_content',
|
1208
1235
|
'_request_timeout',
|
1209
|
-
'_request_auth'
|
1236
|
+
'_request_auth',
|
1237
|
+
'_content_type',
|
1238
|
+
'_headers'
|
1210
1239
|
]
|
1211
1240
|
)
|
1212
1241
|
|
1213
|
-
|
1214
|
-
|
1242
|
+
# validate the arguments
|
1243
|
+
for _key, _val in _params['kwargs'].items():
|
1244
|
+
if _key not in _all_params:
|
1215
1245
|
raise ApiTypeError(
|
1216
1246
|
"Got an unexpected keyword argument '%s'"
|
1217
|
-
" to method list_queues" %
|
1247
|
+
" to method list_queues" % _key
|
1218
1248
|
)
|
1219
|
-
|
1220
|
-
del
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
if
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
if '
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
if '
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
if 'bookmarks'
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1249
|
+
_params[_key] = _val
|
1250
|
+
del _params['kwargs']
|
1251
|
+
|
1252
|
+
_collection_formats = {}
|
1253
|
+
|
1254
|
+
# process the path parameters
|
1255
|
+
_path_params = {}
|
1256
|
+
if _params['owner']:
|
1257
|
+
_path_params['owner'] = _params['owner']
|
1258
|
+
|
1259
|
+
if _params['name']:
|
1260
|
+
_path_params['name'] = _params['name']
|
1261
|
+
|
1262
|
+
|
1263
|
+
# process the query parameters
|
1264
|
+
_query_params = []
|
1265
|
+
if _params.get('offset') is not None: # noqa: E501
|
1266
|
+
_query_params.append(('offset', _params['offset']))
|
1267
|
+
|
1268
|
+
if _params.get('limit') is not None: # noqa: E501
|
1269
|
+
_query_params.append(('limit', _params['limit']))
|
1270
|
+
|
1271
|
+
if _params.get('sort') is not None: # noqa: E501
|
1272
|
+
_query_params.append(('sort', _params['sort']))
|
1273
|
+
|
1274
|
+
if _params.get('query') is not None: # noqa: E501
|
1275
|
+
_query_params.append(('query', _params['query']))
|
1276
|
+
|
1277
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1278
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1279
|
+
|
1280
|
+
if _params.get('mode') is not None: # noqa: E501
|
1281
|
+
_query_params.append(('mode', _params['mode']))
|
1282
|
+
|
1283
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1284
|
+
_query_params.append(('no_page', _params['no_page']))
|
1285
|
+
|
1286
|
+
# process the header parameters
|
1287
|
+
_header_params = dict(_params.get('_headers', {}))
|
1288
|
+
# process the form parameters
|
1289
|
+
_form_params = []
|
1290
|
+
_files = {}
|
1291
|
+
# process the body parameter
|
1292
|
+
_body_params = None
|
1293
|
+
# set the HTTP header `Accept`
|
1294
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1262
1295
|
['application/json']) # noqa: E501
|
1263
1296
|
|
1264
|
-
#
|
1265
|
-
|
1297
|
+
# authentication setting
|
1298
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1266
1299
|
|
1267
|
-
|
1268
|
-
200: "V1ListQueuesResponse",
|
1269
|
-
204: "object",
|
1270
|
-
403: "object",
|
1271
|
-
404: "object",
|
1300
|
+
_response_types_map = {
|
1301
|
+
'200': "V1ListQueuesResponse",
|
1302
|
+
'204': "object",
|
1303
|
+
'403': "object",
|
1304
|
+
'404': "object",
|
1272
1305
|
}
|
1273
1306
|
|
1274
1307
|
return self.api_client.call_api(
|
1275
1308
|
'/api/v1/orgs/{owner}/agents/{name}/queues', 'GET',
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
body=
|
1280
|
-
post_params=
|
1281
|
-
files=
|
1282
|
-
response_types_map=
|
1283
|
-
auth_settings=
|
1284
|
-
async_req=
|
1285
|
-
_return_http_data_only=
|
1286
|
-
_preload_content=
|
1287
|
-
_request_timeout=
|
1288
|
-
collection_formats=
|
1289
|
-
_request_auth=
|
1290
|
-
|
1291
|
-
|
1309
|
+
_path_params,
|
1310
|
+
_query_params,
|
1311
|
+
_header_params,
|
1312
|
+
body=_body_params,
|
1313
|
+
post_params=_form_params,
|
1314
|
+
files=_files,
|
1315
|
+
response_types_map=_response_types_map,
|
1316
|
+
auth_settings=_auth_settings,
|
1317
|
+
async_req=_params.get('async_req'),
|
1318
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1319
|
+
_preload_content=_params.get('_preload_content', True),
|
1320
|
+
_request_timeout=_params.get('_request_timeout'),
|
1321
|
+
collection_formats=_collection_formats,
|
1322
|
+
_request_auth=_params.get('_request_auth'))
|
1323
|
+
|
1324
|
+
@validate_arguments
|
1325
|
+
def patch_queue(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], queue_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs) -> V1Queue: # noqa: E501
|
1292
1326
|
"""Patch queue # noqa: E501
|
1293
1327
|
|
1294
1328
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1323,7 +1357,8 @@ class QueuesV1Api(object):
|
|
1323
1357
|
kwargs['_return_http_data_only'] = True
|
1324
1358
|
return self.patch_queue_with_http_info(owner, agent, queue_uuid, body, **kwargs) # noqa: E501
|
1325
1359
|
|
1326
|
-
|
1360
|
+
@validate_arguments
|
1361
|
+
def patch_queue_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], queue_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs): # noqa: E501
|
1327
1362
|
"""Patch queue # noqa: E501
|
1328
1363
|
|
1329
1364
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1357,111 +1392,109 @@ class QueuesV1Api(object):
|
|
1357
1392
|
request; this effectively ignores the authentication
|
1358
1393
|
in the spec for a single request.
|
1359
1394
|
:type _request_auth: dict, optional
|
1395
|
+
:type _content_type: string, optional: force content-type for the request
|
1360
1396
|
:return: Returns the result object.
|
1361
1397
|
If the method is called asynchronously,
|
1362
1398
|
returns the request thread.
|
1363
1399
|
:rtype: tuple(V1Queue, status_code(int), headers(HTTPHeaderDict))
|
1364
1400
|
"""
|
1365
1401
|
|
1366
|
-
|
1402
|
+
_params = locals()
|
1367
1403
|
|
1368
|
-
|
1404
|
+
_all_params = [
|
1369
1405
|
'owner',
|
1370
1406
|
'agent',
|
1371
1407
|
'queue_uuid',
|
1372
1408
|
'body'
|
1373
1409
|
]
|
1374
|
-
|
1410
|
+
_all_params.extend(
|
1375
1411
|
[
|
1376
1412
|
'async_req',
|
1377
1413
|
'_return_http_data_only',
|
1378
1414
|
'_preload_content',
|
1379
1415
|
'_request_timeout',
|
1380
|
-
'_request_auth'
|
1416
|
+
'_request_auth',
|
1417
|
+
'_content_type',
|
1418
|
+
'_headers'
|
1381
1419
|
]
|
1382
1420
|
)
|
1383
1421
|
|
1384
|
-
|
1385
|
-
|
1422
|
+
# validate the arguments
|
1423
|
+
for _key, _val in _params['kwargs'].items():
|
1424
|
+
if _key not in _all_params:
|
1386
1425
|
raise ApiTypeError(
|
1387
1426
|
"Got an unexpected keyword argument '%s'"
|
1388
|
-
" to method patch_queue" %
|
1427
|
+
" to method patch_queue" % _key
|
1389
1428
|
)
|
1390
|
-
|
1391
|
-
del
|
1392
|
-
# verify the required parameter 'owner' is set
|
1393
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1394
|
-
local_var_params['owner'] is None): # noqa: E501
|
1395
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `patch_queue`") # noqa: E501
|
1396
|
-
# verify the required parameter 'agent' is set
|
1397
|
-
if self.api_client.client_side_validation and ('agent' not in local_var_params or # noqa: E501
|
1398
|
-
local_var_params['agent'] is None): # noqa: E501
|
1399
|
-
raise ApiValueError("Missing the required parameter `agent` when calling `patch_queue`") # noqa: E501
|
1400
|
-
# verify the required parameter 'queue_uuid' is set
|
1401
|
-
if self.api_client.client_side_validation and ('queue_uuid' not in local_var_params or # noqa: E501
|
1402
|
-
local_var_params['queue_uuid'] is None): # noqa: E501
|
1403
|
-
raise ApiValueError("Missing the required parameter `queue_uuid` when calling `patch_queue`") # noqa: E501
|
1404
|
-
# verify the required parameter 'body' is set
|
1405
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1406
|
-
local_var_params['body'] is None): # noqa: E501
|
1407
|
-
raise ApiValueError("Missing the required parameter `body` when calling `patch_queue`") # noqa: E501
|
1408
|
-
|
1409
|
-
collection_formats = {}
|
1410
|
-
|
1411
|
-
path_params = {}
|
1412
|
-
if 'owner' in local_var_params:
|
1413
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1414
|
-
if 'agent' in local_var_params:
|
1415
|
-
path_params['agent'] = local_var_params['agent'] # noqa: E501
|
1416
|
-
if 'queue_uuid' in local_var_params:
|
1417
|
-
path_params['queue.uuid'] = local_var_params['queue_uuid'] # noqa: E501
|
1418
|
-
|
1419
|
-
query_params = []
|
1420
|
-
|
1421
|
-
header_params = {}
|
1422
|
-
|
1423
|
-
form_params = []
|
1424
|
-
local_var_files = {}
|
1425
|
-
|
1426
|
-
body_params = None
|
1427
|
-
if 'body' in local_var_params:
|
1428
|
-
body_params = local_var_params['body']
|
1429
|
-
# HTTP header `Accept`
|
1430
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1431
|
-
['application/json']) # noqa: E501
|
1429
|
+
_params[_key] = _val
|
1430
|
+
del _params['kwargs']
|
1432
1431
|
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1432
|
+
_collection_formats = {}
|
1433
|
+
|
1434
|
+
# process the path parameters
|
1435
|
+
_path_params = {}
|
1436
|
+
if _params['owner']:
|
1437
|
+
_path_params['owner'] = _params['owner']
|
1438
|
+
|
1439
|
+
if _params['agent']:
|
1440
|
+
_path_params['agent'] = _params['agent']
|
1441
|
+
|
1442
|
+
if _params['queue_uuid']:
|
1443
|
+
_path_params['queue.uuid'] = _params['queue_uuid']
|
1444
|
+
|
1445
|
+
|
1446
|
+
# process the query parameters
|
1447
|
+
_query_params = []
|
1448
|
+
# process the header parameters
|
1449
|
+
_header_params = dict(_params.get('_headers', {}))
|
1450
|
+
# process the form parameters
|
1451
|
+
_form_params = []
|
1452
|
+
_files = {}
|
1453
|
+
# process the body parameter
|
1454
|
+
_body_params = None
|
1455
|
+
if _params['body']:
|
1456
|
+
_body_params = _params['body']
|
1436
1457
|
|
1437
|
-
#
|
1438
|
-
|
1458
|
+
# set the HTTP header `Accept`
|
1459
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1460
|
+
['application/json']) # noqa: E501
|
1439
1461
|
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1462
|
+
# set the HTTP header `Content-Type`
|
1463
|
+
_content_types_list = _params.get('_content_type',
|
1464
|
+
self.api_client.select_header_content_type(
|
1465
|
+
['application/json']))
|
1466
|
+
if _content_types_list:
|
1467
|
+
_header_params['Content-Type'] = _content_types_list
|
1468
|
+
|
1469
|
+
# authentication setting
|
1470
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1471
|
+
|
1472
|
+
_response_types_map = {
|
1473
|
+
'200': "V1Queue",
|
1474
|
+
'204': "object",
|
1475
|
+
'403': "object",
|
1476
|
+
'404': "object",
|
1445
1477
|
}
|
1446
1478
|
|
1447
1479
|
return self.api_client.call_api(
|
1448
1480
|
'/api/v1/orgs/{owner}/agents/{agent}/queues/{queue.uuid}', 'PATCH',
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
body=
|
1453
|
-
post_params=
|
1454
|
-
files=
|
1455
|
-
response_types_map=
|
1456
|
-
auth_settings=
|
1457
|
-
async_req=
|
1458
|
-
_return_http_data_only=
|
1459
|
-
_preload_content=
|
1460
|
-
_request_timeout=
|
1461
|
-
collection_formats=
|
1462
|
-
_request_auth=
|
1463
|
-
|
1464
|
-
|
1481
|
+
_path_params,
|
1482
|
+
_query_params,
|
1483
|
+
_header_params,
|
1484
|
+
body=_body_params,
|
1485
|
+
post_params=_form_params,
|
1486
|
+
files=_files,
|
1487
|
+
response_types_map=_response_types_map,
|
1488
|
+
auth_settings=_auth_settings,
|
1489
|
+
async_req=_params.get('async_req'),
|
1490
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1491
|
+
_preload_content=_params.get('_preload_content', True),
|
1492
|
+
_request_timeout=_params.get('_request_timeout'),
|
1493
|
+
collection_formats=_collection_formats,
|
1494
|
+
_request_auth=_params.get('_request_auth'))
|
1495
|
+
|
1496
|
+
@validate_arguments
|
1497
|
+
def update_queue(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], queue_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs) -> V1Queue: # noqa: E501
|
1465
1498
|
"""Update queue # noqa: E501
|
1466
1499
|
|
1467
1500
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1496,7 +1529,8 @@ class QueuesV1Api(object):
|
|
1496
1529
|
kwargs['_return_http_data_only'] = True
|
1497
1530
|
return self.update_queue_with_http_info(owner, agent, queue_uuid, body, **kwargs) # noqa: E501
|
1498
1531
|
|
1499
|
-
|
1532
|
+
@validate_arguments
|
1533
|
+
def update_queue_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], agent : Annotated[StrictStr, Field(..., description="Agent that consumes the queue")], queue_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Queue, Field(..., description="Queue body")], **kwargs): # noqa: E501
|
1500
1534
|
"""Update queue # noqa: E501
|
1501
1535
|
|
1502
1536
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1530,106 +1564,103 @@ class QueuesV1Api(object):
|
|
1530
1564
|
request; this effectively ignores the authentication
|
1531
1565
|
in the spec for a single request.
|
1532
1566
|
:type _request_auth: dict, optional
|
1567
|
+
:type _content_type: string, optional: force content-type for the request
|
1533
1568
|
:return: Returns the result object.
|
1534
1569
|
If the method is called asynchronously,
|
1535
1570
|
returns the request thread.
|
1536
1571
|
:rtype: tuple(V1Queue, status_code(int), headers(HTTPHeaderDict))
|
1537
1572
|
"""
|
1538
1573
|
|
1539
|
-
|
1574
|
+
_params = locals()
|
1540
1575
|
|
1541
|
-
|
1576
|
+
_all_params = [
|
1542
1577
|
'owner',
|
1543
1578
|
'agent',
|
1544
1579
|
'queue_uuid',
|
1545
1580
|
'body'
|
1546
1581
|
]
|
1547
|
-
|
1582
|
+
_all_params.extend(
|
1548
1583
|
[
|
1549
1584
|
'async_req',
|
1550
1585
|
'_return_http_data_only',
|
1551
1586
|
'_preload_content',
|
1552
1587
|
'_request_timeout',
|
1553
|
-
'_request_auth'
|
1588
|
+
'_request_auth',
|
1589
|
+
'_content_type',
|
1590
|
+
'_headers'
|
1554
1591
|
]
|
1555
1592
|
)
|
1556
1593
|
|
1557
|
-
|
1558
|
-
|
1594
|
+
# validate the arguments
|
1595
|
+
for _key, _val in _params['kwargs'].items():
|
1596
|
+
if _key not in _all_params:
|
1559
1597
|
raise ApiTypeError(
|
1560
1598
|
"Got an unexpected keyword argument '%s'"
|
1561
|
-
" to method update_queue" %
|
1599
|
+
" to method update_queue" % _key
|
1562
1600
|
)
|
1563
|
-
|
1564
|
-
del
|
1565
|
-
# verify the required parameter 'owner' is set
|
1566
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1567
|
-
local_var_params['owner'] is None): # noqa: E501
|
1568
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `update_queue`") # noqa: E501
|
1569
|
-
# verify the required parameter 'agent' is set
|
1570
|
-
if self.api_client.client_side_validation and ('agent' not in local_var_params or # noqa: E501
|
1571
|
-
local_var_params['agent'] is None): # noqa: E501
|
1572
|
-
raise ApiValueError("Missing the required parameter `agent` when calling `update_queue`") # noqa: E501
|
1573
|
-
# verify the required parameter 'queue_uuid' is set
|
1574
|
-
if self.api_client.client_side_validation and ('queue_uuid' not in local_var_params or # noqa: E501
|
1575
|
-
local_var_params['queue_uuid'] is None): # noqa: E501
|
1576
|
-
raise ApiValueError("Missing the required parameter `queue_uuid` when calling `update_queue`") # noqa: E501
|
1577
|
-
# verify the required parameter 'body' is set
|
1578
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1579
|
-
local_var_params['body'] is None): # noqa: E501
|
1580
|
-
raise ApiValueError("Missing the required parameter `body` when calling `update_queue`") # noqa: E501
|
1581
|
-
|
1582
|
-
collection_formats = {}
|
1583
|
-
|
1584
|
-
path_params = {}
|
1585
|
-
if 'owner' in local_var_params:
|
1586
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1587
|
-
if 'agent' in local_var_params:
|
1588
|
-
path_params['agent'] = local_var_params['agent'] # noqa: E501
|
1589
|
-
if 'queue_uuid' in local_var_params:
|
1590
|
-
path_params['queue.uuid'] = local_var_params['queue_uuid'] # noqa: E501
|
1591
|
-
|
1592
|
-
query_params = []
|
1593
|
-
|
1594
|
-
header_params = {}
|
1595
|
-
|
1596
|
-
form_params = []
|
1597
|
-
local_var_files = {}
|
1598
|
-
|
1599
|
-
body_params = None
|
1600
|
-
if 'body' in local_var_params:
|
1601
|
-
body_params = local_var_params['body']
|
1602
|
-
# HTTP header `Accept`
|
1603
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1604
|
-
['application/json']) # noqa: E501
|
1601
|
+
_params[_key] = _val
|
1602
|
+
del _params['kwargs']
|
1605
1603
|
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1604
|
+
_collection_formats = {}
|
1605
|
+
|
1606
|
+
# process the path parameters
|
1607
|
+
_path_params = {}
|
1608
|
+
if _params['owner']:
|
1609
|
+
_path_params['owner'] = _params['owner']
|
1610
|
+
|
1611
|
+
if _params['agent']:
|
1612
|
+
_path_params['agent'] = _params['agent']
|
1609
1613
|
|
1610
|
-
|
1611
|
-
|
1614
|
+
if _params['queue_uuid']:
|
1615
|
+
_path_params['queue.uuid'] = _params['queue_uuid']
|
1616
|
+
|
1617
|
+
|
1618
|
+
# process the query parameters
|
1619
|
+
_query_params = []
|
1620
|
+
# process the header parameters
|
1621
|
+
_header_params = dict(_params.get('_headers', {}))
|
1622
|
+
# process the form parameters
|
1623
|
+
_form_params = []
|
1624
|
+
_files = {}
|
1625
|
+
# process the body parameter
|
1626
|
+
_body_params = None
|
1627
|
+
if _params['body']:
|
1628
|
+
_body_params = _params['body']
|
1629
|
+
|
1630
|
+
# set the HTTP header `Accept`
|
1631
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1632
|
+
['application/json']) # noqa: E501
|
1612
1633
|
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1634
|
+
# set the HTTP header `Content-Type`
|
1635
|
+
_content_types_list = _params.get('_content_type',
|
1636
|
+
self.api_client.select_header_content_type(
|
1637
|
+
['application/json']))
|
1638
|
+
if _content_types_list:
|
1639
|
+
_header_params['Content-Type'] = _content_types_list
|
1640
|
+
|
1641
|
+
# authentication setting
|
1642
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1643
|
+
|
1644
|
+
_response_types_map = {
|
1645
|
+
'200': "V1Queue",
|
1646
|
+
'204': "object",
|
1647
|
+
'403': "object",
|
1648
|
+
'404': "object",
|
1618
1649
|
}
|
1619
1650
|
|
1620
1651
|
return self.api_client.call_api(
|
1621
1652
|
'/api/v1/orgs/{owner}/agents/{agent}/queues/{queue.uuid}', 'PUT',
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
body=
|
1626
|
-
post_params=
|
1627
|
-
files=
|
1628
|
-
response_types_map=
|
1629
|
-
auth_settings=
|
1630
|
-
async_req=
|
1631
|
-
_return_http_data_only=
|
1632
|
-
_preload_content=
|
1633
|
-
_request_timeout=
|
1634
|
-
collection_formats=
|
1635
|
-
_request_auth=
|
1653
|
+
_path_params,
|
1654
|
+
_query_params,
|
1655
|
+
_header_params,
|
1656
|
+
body=_body_params,
|
1657
|
+
post_params=_form_params,
|
1658
|
+
files=_files,
|
1659
|
+
response_types_map=_response_types_map,
|
1660
|
+
auth_settings=_auth_settings,
|
1661
|
+
async_req=_params.get('async_req'),
|
1662
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1663
|
+
_preload_content=_params.get('_preload_content', True),
|
1664
|
+
_request_timeout=_params.get('_request_timeout'),
|
1665
|
+
collection_formats=_collection_formats,
|
1666
|
+
_request_auth=_params.get('_request_auth'))
|