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