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/teams_v1_api.py
CHANGED
@@ -1,38 +1,31 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
27
|
-
"""
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
28
11
|
|
12
|
+
Do not edit the class manually.
|
13
|
+
"""
|
29
14
|
|
30
|
-
from __future__ import absolute_import
|
31
15
|
|
32
16
|
import re # noqa: F401
|
33
17
|
|
34
|
-
|
35
|
-
import
|
18
|
+
from pydantic import validate_arguments, ValidationError
|
19
|
+
from typing_extensions import Annotated
|
20
|
+
|
21
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
22
|
+
|
23
|
+
from typing import Optional
|
24
|
+
|
25
|
+
from polyaxon_sdk.models.v1_list_team_members_response import V1ListTeamMembersResponse
|
26
|
+
from polyaxon_sdk.models.v1_list_teams_response import V1ListTeamsResponse
|
27
|
+
from polyaxon_sdk.models.v1_team import V1Team
|
28
|
+
from polyaxon_sdk.models.v1_team_member import V1TeamMember
|
36
29
|
|
37
30
|
from polyaxon_sdk.api_client import ApiClient
|
38
31
|
from polyaxon_sdk.exceptions import ( # noqa: F401
|
@@ -50,10 +43,11 @@ class TeamsV1Api(object):
|
|
50
43
|
|
51
44
|
def __init__(self, api_client=None):
|
52
45
|
if api_client is None:
|
53
|
-
api_client = ApiClient()
|
46
|
+
api_client = ApiClient.get_default()
|
54
47
|
self.api_client = api_client
|
55
48
|
|
56
|
-
|
49
|
+
@validate_arguments
|
50
|
+
def create_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
|
57
51
|
"""Create team # noqa: E501
|
58
52
|
|
59
53
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -84,7 +78,8 @@ class TeamsV1Api(object):
|
|
84
78
|
kwargs['_return_http_data_only'] = True
|
85
79
|
return self.create_team_with_http_info(owner, body, **kwargs) # noqa: E501
|
86
80
|
|
87
|
-
|
81
|
+
@validate_arguments
|
82
|
+
def create_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
|
88
83
|
"""Create team # noqa: E501
|
89
84
|
|
90
85
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -114,97 +109,101 @@ class TeamsV1Api(object):
|
|
114
109
|
request; this effectively ignores the authentication
|
115
110
|
in the spec for a single request.
|
116
111
|
:type _request_auth: dict, optional
|
112
|
+
:type _content_type: string, optional: force content-type for the request
|
117
113
|
:return: Returns the result object.
|
118
114
|
If the method is called asynchronously,
|
119
115
|
returns the request thread.
|
120
116
|
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
121
117
|
"""
|
122
118
|
|
123
|
-
|
119
|
+
_params = locals()
|
124
120
|
|
125
|
-
|
121
|
+
_all_params = [
|
126
122
|
'owner',
|
127
123
|
'body'
|
128
124
|
]
|
129
|
-
|
125
|
+
_all_params.extend(
|
130
126
|
[
|
131
127
|
'async_req',
|
132
128
|
'_return_http_data_only',
|
133
129
|
'_preload_content',
|
134
130
|
'_request_timeout',
|
135
|
-
'_request_auth'
|
131
|
+
'_request_auth',
|
132
|
+
'_content_type',
|
133
|
+
'_headers'
|
136
134
|
]
|
137
135
|
)
|
138
136
|
|
139
|
-
|
140
|
-
|
137
|
+
# validate the arguments
|
138
|
+
for _key, _val in _params['kwargs'].items():
|
139
|
+
if _key not in _all_params:
|
141
140
|
raise ApiTypeError(
|
142
141
|
"Got an unexpected keyword argument '%s'"
|
143
|
-
" to method create_team" %
|
142
|
+
" to method create_team" % _key
|
144
143
|
)
|
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(
|
174
|
-
['application/json']) # noqa: E501
|
175
|
-
|
176
|
-
# HTTP header `Content-Type`
|
177
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
144
|
+
_params[_key] = _val
|
145
|
+
del _params['kwargs']
|
146
|
+
|
147
|
+
_collection_formats = {}
|
148
|
+
|
149
|
+
# process the path parameters
|
150
|
+
_path_params = {}
|
151
|
+
if _params['owner']:
|
152
|
+
_path_params['owner'] = _params['owner']
|
153
|
+
|
154
|
+
|
155
|
+
# process the query parameters
|
156
|
+
_query_params = []
|
157
|
+
# process the header parameters
|
158
|
+
_header_params = dict(_params.get('_headers', {}))
|
159
|
+
# process the form parameters
|
160
|
+
_form_params = []
|
161
|
+
_files = {}
|
162
|
+
# process the body parameter
|
163
|
+
_body_params = None
|
164
|
+
if _params['body']:
|
165
|
+
_body_params = _params['body']
|
166
|
+
|
167
|
+
# set the HTTP header `Accept`
|
168
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
178
169
|
['application/json']) # noqa: E501
|
179
170
|
|
180
|
-
#
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
171
|
+
# set the HTTP header `Content-Type`
|
172
|
+
_content_types_list = _params.get('_content_type',
|
173
|
+
self.api_client.select_header_content_type(
|
174
|
+
['application/json']))
|
175
|
+
if _content_types_list:
|
176
|
+
_header_params['Content-Type'] = _content_types_list
|
177
|
+
|
178
|
+
# authentication setting
|
179
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
180
|
+
|
181
|
+
_response_types_map = {
|
182
|
+
'200': "V1Team",
|
183
|
+
'204': "object",
|
184
|
+
'403': "object",
|
185
|
+
'404': "object",
|
188
186
|
}
|
189
187
|
|
190
188
|
return self.api_client.call_api(
|
191
189
|
'/api/v1/orgs/{owner}/teams', '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
|
-
|
190
|
+
_path_params,
|
191
|
+
_query_params,
|
192
|
+
_header_params,
|
193
|
+
body=_body_params,
|
194
|
+
post_params=_form_params,
|
195
|
+
files=_files,
|
196
|
+
response_types_map=_response_types_map,
|
197
|
+
auth_settings=_auth_settings,
|
198
|
+
async_req=_params.get('async_req'),
|
199
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
200
|
+
_preload_content=_params.get('_preload_content', True),
|
201
|
+
_request_timeout=_params.get('_request_timeout'),
|
202
|
+
collection_formats=_collection_formats,
|
203
|
+
_request_auth=_params.get('_request_auth'))
|
204
|
+
|
205
|
+
@validate_arguments
|
206
|
+
def create_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
|
208
207
|
"""Create team member # noqa: E501
|
209
208
|
|
210
209
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -237,7 +236,8 @@ class TeamsV1Api(object):
|
|
237
236
|
kwargs['_return_http_data_only'] = True
|
238
237
|
return self.create_team_member_with_http_info(owner, team, body, **kwargs) # noqa: E501
|
239
238
|
|
240
|
-
|
239
|
+
@validate_arguments
|
240
|
+
def create_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
|
241
241
|
"""Create team member # noqa: E501
|
242
242
|
|
243
243
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -269,104 +269,105 @@ class TeamsV1Api(object):
|
|
269
269
|
request; this effectively ignores the authentication
|
270
270
|
in the spec for a single request.
|
271
271
|
:type _request_auth: dict, optional
|
272
|
+
:type _content_type: string, optional: force content-type for the request
|
272
273
|
:return: Returns the result object.
|
273
274
|
If the method is called asynchronously,
|
274
275
|
returns the request thread.
|
275
276
|
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
276
277
|
"""
|
277
278
|
|
278
|
-
|
279
|
+
_params = locals()
|
279
280
|
|
280
|
-
|
281
|
+
_all_params = [
|
281
282
|
'owner',
|
282
283
|
'team',
|
283
284
|
'body'
|
284
285
|
]
|
285
|
-
|
286
|
+
_all_params.extend(
|
286
287
|
[
|
287
288
|
'async_req',
|
288
289
|
'_return_http_data_only',
|
289
290
|
'_preload_content',
|
290
291
|
'_request_timeout',
|
291
|
-
'_request_auth'
|
292
|
+
'_request_auth',
|
293
|
+
'_content_type',
|
294
|
+
'_headers'
|
292
295
|
]
|
293
296
|
)
|
294
297
|
|
295
|
-
|
296
|
-
|
298
|
+
# validate the arguments
|
299
|
+
for _key, _val in _params['kwargs'].items():
|
300
|
+
if _key not in _all_params:
|
297
301
|
raise ApiTypeError(
|
298
302
|
"Got an unexpected keyword argument '%s'"
|
299
|
-
" to method create_team_member" %
|
303
|
+
" to method create_team_member" % _key
|
300
304
|
)
|
301
|
-
|
302
|
-
del
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
if
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
local_var_files = {}
|
330
|
-
|
331
|
-
body_params = None
|
332
|
-
if 'body' in local_var_params:
|
333
|
-
body_params = local_var_params['body']
|
334
|
-
# HTTP header `Accept`
|
335
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
336
|
-
['application/json']) # noqa: E501
|
337
|
-
|
338
|
-
# HTTP header `Content-Type`
|
339
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
305
|
+
_params[_key] = _val
|
306
|
+
del _params['kwargs']
|
307
|
+
|
308
|
+
_collection_formats = {}
|
309
|
+
|
310
|
+
# process the path parameters
|
311
|
+
_path_params = {}
|
312
|
+
if _params['owner']:
|
313
|
+
_path_params['owner'] = _params['owner']
|
314
|
+
|
315
|
+
if _params['team']:
|
316
|
+
_path_params['team'] = _params['team']
|
317
|
+
|
318
|
+
|
319
|
+
# process the query parameters
|
320
|
+
_query_params = []
|
321
|
+
# process the header parameters
|
322
|
+
_header_params = dict(_params.get('_headers', {}))
|
323
|
+
# process the form parameters
|
324
|
+
_form_params = []
|
325
|
+
_files = {}
|
326
|
+
# process the body parameter
|
327
|
+
_body_params = None
|
328
|
+
if _params['body']:
|
329
|
+
_body_params = _params['body']
|
330
|
+
|
331
|
+
# set the HTTP header `Accept`
|
332
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
340
333
|
['application/json']) # noqa: E501
|
341
334
|
|
342
|
-
#
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
335
|
+
# set the HTTP header `Content-Type`
|
336
|
+
_content_types_list = _params.get('_content_type',
|
337
|
+
self.api_client.select_header_content_type(
|
338
|
+
['application/json']))
|
339
|
+
if _content_types_list:
|
340
|
+
_header_params['Content-Type'] = _content_types_list
|
341
|
+
|
342
|
+
# authentication setting
|
343
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
344
|
+
|
345
|
+
_response_types_map = {
|
346
|
+
'200': "V1TeamMember",
|
347
|
+
'204': "object",
|
348
|
+
'403': "object",
|
349
|
+
'404': "object",
|
350
350
|
}
|
351
351
|
|
352
352
|
return self.api_client.call_api(
|
353
353
|
'/api/v1/orgs/{owner}/teams/{team}/members', 'POST',
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
body=
|
358
|
-
post_params=
|
359
|
-
files=
|
360
|
-
response_types_map=
|
361
|
-
auth_settings=
|
362
|
-
async_req=
|
363
|
-
_return_http_data_only=
|
364
|
-
_preload_content=
|
365
|
-
_request_timeout=
|
366
|
-
collection_formats=
|
367
|
-
_request_auth=
|
368
|
-
|
369
|
-
|
354
|
+
_path_params,
|
355
|
+
_query_params,
|
356
|
+
_header_params,
|
357
|
+
body=_body_params,
|
358
|
+
post_params=_form_params,
|
359
|
+
files=_files,
|
360
|
+
response_types_map=_response_types_map,
|
361
|
+
auth_settings=_auth_settings,
|
362
|
+
async_req=_params.get('async_req'),
|
363
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
364
|
+
_preload_content=_params.get('_preload_content', True),
|
365
|
+
_request_timeout=_params.get('_request_timeout'),
|
366
|
+
collection_formats=_collection_formats,
|
367
|
+
_request_auth=_params.get('_request_auth'))
|
368
|
+
|
369
|
+
@validate_arguments
|
370
|
+
def delete_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs) -> None: # noqa: E501
|
370
371
|
"""Delete team # noqa: E501
|
371
372
|
|
372
373
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -397,7 +398,8 @@ class TeamsV1Api(object):
|
|
397
398
|
kwargs['_return_http_data_only'] = True
|
398
399
|
return self.delete_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
399
400
|
|
400
|
-
|
401
|
+
@validate_arguments
|
402
|
+
def delete_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs): # noqa: E501
|
401
403
|
"""Delete team # noqa: E501
|
402
404
|
|
403
405
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -427,88 +429,89 @@ class TeamsV1Api(object):
|
|
427
429
|
request; this effectively ignores the authentication
|
428
430
|
in the spec for a single request.
|
429
431
|
:type _request_auth: dict, optional
|
432
|
+
:type _content_type: string, optional: force content-type for the request
|
430
433
|
:return: Returns the result object.
|
431
434
|
If the method is called asynchronously,
|
432
435
|
returns the request thread.
|
433
436
|
:rtype: None
|
434
437
|
"""
|
435
438
|
|
436
|
-
|
439
|
+
_params = locals()
|
437
440
|
|
438
|
-
|
441
|
+
_all_params = [
|
439
442
|
'owner',
|
440
443
|
'name'
|
441
444
|
]
|
442
|
-
|
445
|
+
_all_params.extend(
|
443
446
|
[
|
444
447
|
'async_req',
|
445
448
|
'_return_http_data_only',
|
446
449
|
'_preload_content',
|
447
450
|
'_request_timeout',
|
448
|
-
'_request_auth'
|
451
|
+
'_request_auth',
|
452
|
+
'_content_type',
|
453
|
+
'_headers'
|
449
454
|
]
|
450
455
|
)
|
451
456
|
|
452
|
-
|
453
|
-
|
457
|
+
# validate the arguments
|
458
|
+
for _key, _val in _params['kwargs'].items():
|
459
|
+
if _key not in _all_params:
|
454
460
|
raise ApiTypeError(
|
455
461
|
"Got an unexpected keyword argument '%s'"
|
456
|
-
" to method delete_team" %
|
462
|
+
" to method delete_team" % _key
|
457
463
|
)
|
458
|
-
|
459
|
-
del
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
if
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
body_params = None
|
485
|
-
# HTTP header `Accept`
|
486
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
464
|
+
_params[_key] = _val
|
465
|
+
del _params['kwargs']
|
466
|
+
|
467
|
+
_collection_formats = {}
|
468
|
+
|
469
|
+
# process the path parameters
|
470
|
+
_path_params = {}
|
471
|
+
if _params['owner']:
|
472
|
+
_path_params['owner'] = _params['owner']
|
473
|
+
|
474
|
+
if _params['name']:
|
475
|
+
_path_params['name'] = _params['name']
|
476
|
+
|
477
|
+
|
478
|
+
# process the query parameters
|
479
|
+
_query_params = []
|
480
|
+
# process the header parameters
|
481
|
+
_header_params = dict(_params.get('_headers', {}))
|
482
|
+
# process the form parameters
|
483
|
+
_form_params = []
|
484
|
+
_files = {}
|
485
|
+
# process the body parameter
|
486
|
+
_body_params = None
|
487
|
+
# set the HTTP header `Accept`
|
488
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
487
489
|
['application/json']) # noqa: E501
|
488
490
|
|
489
|
-
#
|
490
|
-
|
491
|
+
# authentication setting
|
492
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
491
493
|
|
492
|
-
|
494
|
+
_response_types_map = {}
|
493
495
|
|
494
496
|
return self.api_client.call_api(
|
495
497
|
'/api/v1/orgs/{owner}/teams/{name}', 'DELETE',
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
body=
|
500
|
-
post_params=
|
501
|
-
files=
|
502
|
-
response_types_map=
|
503
|
-
auth_settings=
|
504
|
-
async_req=
|
505
|
-
_return_http_data_only=
|
506
|
-
_preload_content=
|
507
|
-
_request_timeout=
|
508
|
-
collection_formats=
|
509
|
-
_request_auth=
|
510
|
-
|
511
|
-
|
498
|
+
_path_params,
|
499
|
+
_query_params,
|
500
|
+
_header_params,
|
501
|
+
body=_body_params,
|
502
|
+
post_params=_form_params,
|
503
|
+
files=_files,
|
504
|
+
response_types_map=_response_types_map,
|
505
|
+
auth_settings=_auth_settings,
|
506
|
+
async_req=_params.get('async_req'),
|
507
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
508
|
+
_preload_content=_params.get('_preload_content', True),
|
509
|
+
_request_timeout=_params.get('_request_timeout'),
|
510
|
+
collection_formats=_collection_formats,
|
511
|
+
_request_auth=_params.get('_request_auth'))
|
512
|
+
|
513
|
+
@validate_arguments
|
514
|
+
def delete_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> None: # noqa: E501
|
512
515
|
"""Delete team member details # noqa: E501
|
513
516
|
|
514
517
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -541,7 +544,8 @@ class TeamsV1Api(object):
|
|
541
544
|
kwargs['_return_http_data_only'] = True
|
542
545
|
return self.delete_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
|
543
546
|
|
544
|
-
|
547
|
+
@validate_arguments
|
548
|
+
def delete_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
|
545
549
|
"""Delete team member details # noqa: E501
|
546
550
|
|
547
551
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -573,95 +577,93 @@ class TeamsV1Api(object):
|
|
573
577
|
request; this effectively ignores the authentication
|
574
578
|
in the spec for a single request.
|
575
579
|
:type _request_auth: dict, optional
|
580
|
+
:type _content_type: string, optional: force content-type for the request
|
576
581
|
:return: Returns the result object.
|
577
582
|
If the method is called asynchronously,
|
578
583
|
returns the request thread.
|
579
584
|
:rtype: None
|
580
585
|
"""
|
581
586
|
|
582
|
-
|
587
|
+
_params = locals()
|
583
588
|
|
584
|
-
|
589
|
+
_all_params = [
|
585
590
|
'owner',
|
586
591
|
'team',
|
587
592
|
'user'
|
588
593
|
]
|
589
|
-
|
594
|
+
_all_params.extend(
|
590
595
|
[
|
591
596
|
'async_req',
|
592
597
|
'_return_http_data_only',
|
593
598
|
'_preload_content',
|
594
599
|
'_request_timeout',
|
595
|
-
'_request_auth'
|
600
|
+
'_request_auth',
|
601
|
+
'_content_type',
|
602
|
+
'_headers'
|
596
603
|
]
|
597
604
|
)
|
598
605
|
|
599
|
-
|
600
|
-
|
606
|
+
# validate the arguments
|
607
|
+
for _key, _val in _params['kwargs'].items():
|
608
|
+
if _key not in _all_params:
|
601
609
|
raise ApiTypeError(
|
602
610
|
"Got an unexpected keyword argument '%s'"
|
603
|
-
" to method delete_team_member" %
|
611
|
+
" to method delete_team_member" % _key
|
604
612
|
)
|
605
|
-
|
606
|
-
del
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
if
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
form_params = []
|
635
|
-
local_var_files = {}
|
636
|
-
|
637
|
-
body_params = None
|
638
|
-
# HTTP header `Accept`
|
639
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
613
|
+
_params[_key] = _val
|
614
|
+
del _params['kwargs']
|
615
|
+
|
616
|
+
_collection_formats = {}
|
617
|
+
|
618
|
+
# process the path parameters
|
619
|
+
_path_params = {}
|
620
|
+
if _params['owner']:
|
621
|
+
_path_params['owner'] = _params['owner']
|
622
|
+
|
623
|
+
if _params['team']:
|
624
|
+
_path_params['team'] = _params['team']
|
625
|
+
|
626
|
+
if _params['user']:
|
627
|
+
_path_params['user'] = _params['user']
|
628
|
+
|
629
|
+
|
630
|
+
# process the query parameters
|
631
|
+
_query_params = []
|
632
|
+
# process the header parameters
|
633
|
+
_header_params = dict(_params.get('_headers', {}))
|
634
|
+
# process the form parameters
|
635
|
+
_form_params = []
|
636
|
+
_files = {}
|
637
|
+
# process the body parameter
|
638
|
+
_body_params = None
|
639
|
+
# set the HTTP header `Accept`
|
640
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
640
641
|
['application/json']) # noqa: E501
|
641
642
|
|
642
|
-
#
|
643
|
-
|
643
|
+
# authentication setting
|
644
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
644
645
|
|
645
|
-
|
646
|
+
_response_types_map = {}
|
646
647
|
|
647
648
|
return self.api_client.call_api(
|
648
649
|
'/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'DELETE',
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
body=
|
653
|
-
post_params=
|
654
|
-
files=
|
655
|
-
response_types_map=
|
656
|
-
auth_settings=
|
657
|
-
async_req=
|
658
|
-
_return_http_data_only=
|
659
|
-
_preload_content=
|
660
|
-
_request_timeout=
|
661
|
-
collection_formats=
|
662
|
-
_request_auth=
|
663
|
-
|
664
|
-
|
650
|
+
_path_params,
|
651
|
+
_query_params,
|
652
|
+
_header_params,
|
653
|
+
body=_body_params,
|
654
|
+
post_params=_form_params,
|
655
|
+
files=_files,
|
656
|
+
response_types_map=_response_types_map,
|
657
|
+
auth_settings=_auth_settings,
|
658
|
+
async_req=_params.get('async_req'),
|
659
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
660
|
+
_preload_content=_params.get('_preload_content', True),
|
661
|
+
_request_timeout=_params.get('_request_timeout'),
|
662
|
+
collection_formats=_collection_formats,
|
663
|
+
_request_auth=_params.get('_request_auth'))
|
664
|
+
|
665
|
+
@validate_arguments
|
666
|
+
def get_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs) -> V1Team: # noqa: E501
|
665
667
|
"""Get team # noqa: E501
|
666
668
|
|
667
669
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -692,7 +694,8 @@ class TeamsV1Api(object):
|
|
692
694
|
kwargs['_return_http_data_only'] = True
|
693
695
|
return self.get_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
694
696
|
|
695
|
-
|
697
|
+
@validate_arguments
|
698
|
+
def get_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namesapce")], **kwargs): # noqa: E501
|
696
699
|
"""Get team # noqa: E501
|
697
700
|
|
698
701
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -722,93 +725,94 @@ class TeamsV1Api(object):
|
|
722
725
|
request; this effectively ignores the authentication
|
723
726
|
in the spec for a single request.
|
724
727
|
:type _request_auth: dict, optional
|
728
|
+
:type _content_type: string, optional: force content-type for the request
|
725
729
|
:return: Returns the result object.
|
726
730
|
If the method is called asynchronously,
|
727
731
|
returns the request thread.
|
728
732
|
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
729
733
|
"""
|
730
734
|
|
731
|
-
|
735
|
+
_params = locals()
|
732
736
|
|
733
|
-
|
737
|
+
_all_params = [
|
734
738
|
'owner',
|
735
739
|
'name'
|
736
740
|
]
|
737
|
-
|
741
|
+
_all_params.extend(
|
738
742
|
[
|
739
743
|
'async_req',
|
740
744
|
'_return_http_data_only',
|
741
745
|
'_preload_content',
|
742
746
|
'_request_timeout',
|
743
|
-
'_request_auth'
|
747
|
+
'_request_auth',
|
748
|
+
'_content_type',
|
749
|
+
'_headers'
|
744
750
|
]
|
745
751
|
)
|
746
752
|
|
747
|
-
|
748
|
-
|
753
|
+
# validate the arguments
|
754
|
+
for _key, _val in _params['kwargs'].items():
|
755
|
+
if _key not in _all_params:
|
749
756
|
raise ApiTypeError(
|
750
757
|
"Got an unexpected keyword argument '%s'"
|
751
|
-
" to method get_team" %
|
758
|
+
" to method get_team" % _key
|
752
759
|
)
|
753
|
-
|
754
|
-
del
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
if
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
body_params = None
|
780
|
-
# HTTP header `Accept`
|
781
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
760
|
+
_params[_key] = _val
|
761
|
+
del _params['kwargs']
|
762
|
+
|
763
|
+
_collection_formats = {}
|
764
|
+
|
765
|
+
# process the path parameters
|
766
|
+
_path_params = {}
|
767
|
+
if _params['owner']:
|
768
|
+
_path_params['owner'] = _params['owner']
|
769
|
+
|
770
|
+
if _params['name']:
|
771
|
+
_path_params['name'] = _params['name']
|
772
|
+
|
773
|
+
|
774
|
+
# process the query parameters
|
775
|
+
_query_params = []
|
776
|
+
# process the header parameters
|
777
|
+
_header_params = dict(_params.get('_headers', {}))
|
778
|
+
# process the form parameters
|
779
|
+
_form_params = []
|
780
|
+
_files = {}
|
781
|
+
# process the body parameter
|
782
|
+
_body_params = None
|
783
|
+
# set the HTTP header `Accept`
|
784
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
782
785
|
['application/json']) # noqa: E501
|
783
786
|
|
784
|
-
#
|
785
|
-
|
787
|
+
# authentication setting
|
788
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
786
789
|
|
787
|
-
|
788
|
-
200: "V1Team",
|
789
|
-
204: "object",
|
790
|
-
403: "object",
|
791
|
-
404: "object",
|
790
|
+
_response_types_map = {
|
791
|
+
'200': "V1Team",
|
792
|
+
'204': "object",
|
793
|
+
'403': "object",
|
794
|
+
'404': "object",
|
792
795
|
}
|
793
796
|
|
794
797
|
return self.api_client.call_api(
|
795
798
|
'/api/v1/orgs/{owner}/teams/{name}', 'GET',
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
body=
|
800
|
-
post_params=
|
801
|
-
files=
|
802
|
-
response_types_map=
|
803
|
-
auth_settings=
|
804
|
-
async_req=
|
805
|
-
_return_http_data_only=
|
806
|
-
_preload_content=
|
807
|
-
_request_timeout=
|
808
|
-
collection_formats=
|
809
|
-
_request_auth=
|
810
|
-
|
811
|
-
|
799
|
+
_path_params,
|
800
|
+
_query_params,
|
801
|
+
_header_params,
|
802
|
+
body=_body_params,
|
803
|
+
post_params=_form_params,
|
804
|
+
files=_files,
|
805
|
+
response_types_map=_response_types_map,
|
806
|
+
auth_settings=_auth_settings,
|
807
|
+
async_req=_params.get('async_req'),
|
808
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
809
|
+
_preload_content=_params.get('_preload_content', True),
|
810
|
+
_request_timeout=_params.get('_request_timeout'),
|
811
|
+
collection_formats=_collection_formats,
|
812
|
+
_request_auth=_params.get('_request_auth'))
|
813
|
+
|
814
|
+
@validate_arguments
|
815
|
+
def get_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> V1TeamMember: # noqa: E501
|
812
816
|
"""Get team member details # noqa: E501
|
813
817
|
|
814
818
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -841,7 +845,8 @@ class TeamsV1Api(object):
|
|
841
845
|
kwargs['_return_http_data_only'] = True
|
842
846
|
return self.get_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
|
843
847
|
|
844
|
-
|
848
|
+
@validate_arguments
|
849
|
+
def get_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namesapce")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
|
845
850
|
"""Get team member details # noqa: E501
|
846
851
|
|
847
852
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -873,106 +878,104 @@ class TeamsV1Api(object):
|
|
873
878
|
request; this effectively ignores the authentication
|
874
879
|
in the spec for a single request.
|
875
880
|
:type _request_auth: dict, optional
|
881
|
+
:type _content_type: string, optional: force content-type for the request
|
876
882
|
:return: Returns the result object.
|
877
883
|
If the method is called asynchronously,
|
878
884
|
returns the request thread.
|
879
885
|
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
880
886
|
"""
|
881
887
|
|
882
|
-
|
888
|
+
_params = locals()
|
883
889
|
|
884
|
-
|
890
|
+
_all_params = [
|
885
891
|
'owner',
|
886
892
|
'team',
|
887
893
|
'user'
|
888
894
|
]
|
889
|
-
|
895
|
+
_all_params.extend(
|
890
896
|
[
|
891
897
|
'async_req',
|
892
898
|
'_return_http_data_only',
|
893
899
|
'_preload_content',
|
894
900
|
'_request_timeout',
|
895
|
-
'_request_auth'
|
901
|
+
'_request_auth',
|
902
|
+
'_content_type',
|
903
|
+
'_headers'
|
896
904
|
]
|
897
905
|
)
|
898
906
|
|
899
|
-
|
900
|
-
|
907
|
+
# validate the arguments
|
908
|
+
for _key, _val in _params['kwargs'].items():
|
909
|
+
if _key not in _all_params:
|
901
910
|
raise ApiTypeError(
|
902
911
|
"Got an unexpected keyword argument '%s'"
|
903
|
-
" to method get_team_member" %
|
912
|
+
" to method get_team_member" % _key
|
904
913
|
)
|
905
|
-
|
906
|
-
del
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
if
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
form_params = []
|
935
|
-
local_var_files = {}
|
936
|
-
|
937
|
-
body_params = None
|
938
|
-
# HTTP header `Accept`
|
939
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
914
|
+
_params[_key] = _val
|
915
|
+
del _params['kwargs']
|
916
|
+
|
917
|
+
_collection_formats = {}
|
918
|
+
|
919
|
+
# process the path parameters
|
920
|
+
_path_params = {}
|
921
|
+
if _params['owner']:
|
922
|
+
_path_params['owner'] = _params['owner']
|
923
|
+
|
924
|
+
if _params['team']:
|
925
|
+
_path_params['team'] = _params['team']
|
926
|
+
|
927
|
+
if _params['user']:
|
928
|
+
_path_params['user'] = _params['user']
|
929
|
+
|
930
|
+
|
931
|
+
# process the query parameters
|
932
|
+
_query_params = []
|
933
|
+
# process the header parameters
|
934
|
+
_header_params = dict(_params.get('_headers', {}))
|
935
|
+
# process the form parameters
|
936
|
+
_form_params = []
|
937
|
+
_files = {}
|
938
|
+
# process the body parameter
|
939
|
+
_body_params = None
|
940
|
+
# set the HTTP header `Accept`
|
941
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
940
942
|
['application/json']) # noqa: E501
|
941
943
|
|
942
|
-
#
|
943
|
-
|
944
|
+
# authentication setting
|
945
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
944
946
|
|
945
|
-
|
946
|
-
200: "V1TeamMember",
|
947
|
-
204: "object",
|
948
|
-
403: "object",
|
949
|
-
404: "object",
|
947
|
+
_response_types_map = {
|
948
|
+
'200': "V1TeamMember",
|
949
|
+
'204': "object",
|
950
|
+
'403': "object",
|
951
|
+
'404': "object",
|
950
952
|
}
|
951
953
|
|
952
954
|
return self.api_client.call_api(
|
953
955
|
'/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'GET',
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
body=
|
958
|
-
post_params=
|
959
|
-
files=
|
960
|
-
response_types_map=
|
961
|
-
auth_settings=
|
962
|
-
async_req=
|
963
|
-
_return_http_data_only=
|
964
|
-
_preload_content=
|
965
|
-
_request_timeout=
|
966
|
-
collection_formats=
|
967
|
-
_request_auth=
|
968
|
-
|
969
|
-
|
956
|
+
_path_params,
|
957
|
+
_query_params,
|
958
|
+
_header_params,
|
959
|
+
body=_body_params,
|
960
|
+
post_params=_form_params,
|
961
|
+
files=_files,
|
962
|
+
response_types_map=_response_types_map,
|
963
|
+
auth_settings=_auth_settings,
|
964
|
+
async_req=_params.get('async_req'),
|
965
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
966
|
+
_preload_content=_params.get('_preload_content', True),
|
967
|
+
_request_timeout=_params.get('_request_timeout'),
|
968
|
+
collection_formats=_collection_formats,
|
969
|
+
_request_auth=_params.get('_request_auth'))
|
970
|
+
|
971
|
+
@validate_arguments
|
972
|
+
def list_team_members(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) -> V1ListTeamMembersResponse: # noqa: E501
|
970
973
|
"""Get team members # noqa: E501
|
971
974
|
|
972
975
|
This method makes a synchronous HTTP request by default. To make an
|
973
976
|
asynchronous HTTP request, please pass async_req=True
|
974
977
|
|
975
|
-
>>> thread = api.list_team_members(owner, name, async_req=True)
|
978
|
+
>>> thread = api.list_team_members(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
976
979
|
>>> result = thread.get()
|
977
980
|
|
978
981
|
:param owner: Owner of the namespace (required)
|
@@ -1009,15 +1012,16 @@ class TeamsV1Api(object):
|
|
1009
1012
|
:rtype: V1ListTeamMembersResponse
|
1010
1013
|
"""
|
1011
1014
|
kwargs['_return_http_data_only'] = True
|
1012
|
-
return self.list_team_members_with_http_info(owner, name, **kwargs) # noqa: E501
|
1015
|
+
return self.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1013
1016
|
|
1014
|
-
|
1017
|
+
@validate_arguments
|
1018
|
+
def list_team_members_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
|
1015
1019
|
"""Get team members # noqa: E501
|
1016
1020
|
|
1017
1021
|
This method makes a synchronous HTTP request by default. To make an
|
1018
1022
|
asynchronous HTTP request, please pass async_req=True
|
1019
1023
|
|
1020
|
-
>>> thread = api.list_team_members_with_http_info(owner, name, async_req=True)
|
1024
|
+
>>> thread = api.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1021
1025
|
>>> result = thread.get()
|
1022
1026
|
|
1023
1027
|
:param owner: Owner of the namespace (required)
|
@@ -1055,15 +1059,16 @@ class TeamsV1Api(object):
|
|
1055
1059
|
request; this effectively ignores the authentication
|
1056
1060
|
in the spec for a single request.
|
1057
1061
|
:type _request_auth: dict, optional
|
1062
|
+
:type _content_type: string, optional: force content-type for the request
|
1058
1063
|
:return: Returns the result object.
|
1059
1064
|
If the method is called asynchronously,
|
1060
1065
|
returns the request thread.
|
1061
1066
|
:rtype: tuple(V1ListTeamMembersResponse, status_code(int), headers(HTTPHeaderDict))
|
1062
1067
|
"""
|
1063
1068
|
|
1064
|
-
|
1069
|
+
_params = locals()
|
1065
1070
|
|
1066
|
-
|
1071
|
+
_all_params = [
|
1067
1072
|
'owner',
|
1068
1073
|
'name',
|
1069
1074
|
'offset',
|
@@ -1074,101 +1079,108 @@ class TeamsV1Api(object):
|
|
1074
1079
|
'mode',
|
1075
1080
|
'no_page'
|
1076
1081
|
]
|
1077
|
-
|
1082
|
+
_all_params.extend(
|
1078
1083
|
[
|
1079
1084
|
'async_req',
|
1080
1085
|
'_return_http_data_only',
|
1081
1086
|
'_preload_content',
|
1082
1087
|
'_request_timeout',
|
1083
|
-
'_request_auth'
|
1088
|
+
'_request_auth',
|
1089
|
+
'_content_type',
|
1090
|
+
'_headers'
|
1084
1091
|
]
|
1085
1092
|
)
|
1086
1093
|
|
1087
|
-
|
1088
|
-
|
1094
|
+
# validate the arguments
|
1095
|
+
for _key, _val in _params['kwargs'].items():
|
1096
|
+
if _key not in _all_params:
|
1089
1097
|
raise ApiTypeError(
|
1090
1098
|
"Got an unexpected keyword argument '%s'"
|
1091
|
-
" to method list_team_members" %
|
1099
|
+
" to method list_team_members" % _key
|
1092
1100
|
)
|
1093
|
-
|
1094
|
-
del
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
if
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
if '
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
if '
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
if 'bookmarks'
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1101
|
+
_params[_key] = _val
|
1102
|
+
del _params['kwargs']
|
1103
|
+
|
1104
|
+
_collection_formats = {}
|
1105
|
+
|
1106
|
+
# process the path parameters
|
1107
|
+
_path_params = {}
|
1108
|
+
if _params['owner']:
|
1109
|
+
_path_params['owner'] = _params['owner']
|
1110
|
+
|
1111
|
+
if _params['name']:
|
1112
|
+
_path_params['name'] = _params['name']
|
1113
|
+
|
1114
|
+
|
1115
|
+
# process the query parameters
|
1116
|
+
_query_params = []
|
1117
|
+
if _params.get('offset') is not None: # noqa: E501
|
1118
|
+
_query_params.append(('offset', _params['offset']))
|
1119
|
+
|
1120
|
+
if _params.get('limit') is not None: # noqa: E501
|
1121
|
+
_query_params.append(('limit', _params['limit']))
|
1122
|
+
|
1123
|
+
if _params.get('sort') is not None: # noqa: E501
|
1124
|
+
_query_params.append(('sort', _params['sort']))
|
1125
|
+
|
1126
|
+
if _params.get('query') is not None: # noqa: E501
|
1127
|
+
_query_params.append(('query', _params['query']))
|
1128
|
+
|
1129
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1130
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1131
|
+
|
1132
|
+
if _params.get('mode') is not None: # noqa: E501
|
1133
|
+
_query_params.append(('mode', _params['mode']))
|
1134
|
+
|
1135
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1136
|
+
_query_params.append(('no_page', _params['no_page']))
|
1137
|
+
|
1138
|
+
# process the header parameters
|
1139
|
+
_header_params = dict(_params.get('_headers', {}))
|
1140
|
+
# process the form parameters
|
1141
|
+
_form_params = []
|
1142
|
+
_files = {}
|
1143
|
+
# process the body parameter
|
1144
|
+
_body_params = None
|
1145
|
+
# set the HTTP header `Accept`
|
1146
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1136
1147
|
['application/json']) # noqa: E501
|
1137
1148
|
|
1138
|
-
#
|
1139
|
-
|
1149
|
+
# authentication setting
|
1150
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1140
1151
|
|
1141
|
-
|
1142
|
-
200: "V1ListTeamMembersResponse",
|
1143
|
-
204: "object",
|
1144
|
-
403: "object",
|
1145
|
-
404: "object",
|
1152
|
+
_response_types_map = {
|
1153
|
+
'200': "V1ListTeamMembersResponse",
|
1154
|
+
'204': "object",
|
1155
|
+
'403': "object",
|
1156
|
+
'404': "object",
|
1146
1157
|
}
|
1147
1158
|
|
1148
1159
|
return self.api_client.call_api(
|
1149
1160
|
'/api/v1/orgs/{owner}/teams/{name}/members', 'GET',
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
body=
|
1154
|
-
post_params=
|
1155
|
-
files=
|
1156
|
-
response_types_map=
|
1157
|
-
auth_settings=
|
1158
|
-
async_req=
|
1159
|
-
_return_http_data_only=
|
1160
|
-
_preload_content=
|
1161
|
-
_request_timeout=
|
1162
|
-
collection_formats=
|
1163
|
-
_request_auth=
|
1164
|
-
|
1165
|
-
|
1161
|
+
_path_params,
|
1162
|
+
_query_params,
|
1163
|
+
_header_params,
|
1164
|
+
body=_body_params,
|
1165
|
+
post_params=_form_params,
|
1166
|
+
files=_files,
|
1167
|
+
response_types_map=_response_types_map,
|
1168
|
+
auth_settings=_auth_settings,
|
1169
|
+
async_req=_params.get('async_req'),
|
1170
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1171
|
+
_preload_content=_params.get('_preload_content', True),
|
1172
|
+
_request_timeout=_params.get('_request_timeout'),
|
1173
|
+
collection_formats=_collection_formats,
|
1174
|
+
_request_auth=_params.get('_request_auth'))
|
1175
|
+
|
1176
|
+
@validate_arguments
|
1177
|
+
def list_team_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) -> V1ListTeamsResponse: # noqa: E501
|
1166
1178
|
"""List teams names # noqa: E501
|
1167
1179
|
|
1168
1180
|
This method makes a synchronous HTTP request by default. To make an
|
1169
1181
|
asynchronous HTTP request, please pass async_req=True
|
1170
1182
|
|
1171
|
-
>>> thread = api.list_team_names(owner, async_req=True)
|
1183
|
+
>>> thread = api.list_team_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1172
1184
|
>>> result = thread.get()
|
1173
1185
|
|
1174
1186
|
:param owner: Owner of the namespace (required)
|
@@ -1203,15 +1215,16 @@ class TeamsV1Api(object):
|
|
1203
1215
|
:rtype: V1ListTeamsResponse
|
1204
1216
|
"""
|
1205
1217
|
kwargs['_return_http_data_only'] = True
|
1206
|
-
return self.list_team_names_with_http_info(owner, **kwargs) # noqa: E501
|
1218
|
+
return self.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1207
1219
|
|
1208
|
-
|
1220
|
+
@validate_arguments
|
1221
|
+
def list_team_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
|
1209
1222
|
"""List teams names # noqa: E501
|
1210
1223
|
|
1211
1224
|
This method makes a synchronous HTTP request by default. To make an
|
1212
1225
|
asynchronous HTTP request, please pass async_req=True
|
1213
1226
|
|
1214
|
-
>>> thread = api.list_team_names_with_http_info(owner, async_req=True)
|
1227
|
+
>>> thread = api.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1215
1228
|
>>> result = thread.get()
|
1216
1229
|
|
1217
1230
|
:param owner: Owner of the namespace (required)
|
@@ -1247,15 +1260,16 @@ class TeamsV1Api(object):
|
|
1247
1260
|
request; this effectively ignores the authentication
|
1248
1261
|
in the spec for a single request.
|
1249
1262
|
:type _request_auth: dict, optional
|
1263
|
+
:type _content_type: string, optional: force content-type for the request
|
1250
1264
|
:return: Returns the result object.
|
1251
1265
|
If the method is called asynchronously,
|
1252
1266
|
returns the request thread.
|
1253
1267
|
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
1254
1268
|
"""
|
1255
1269
|
|
1256
|
-
|
1270
|
+
_params = locals()
|
1257
1271
|
|
1258
|
-
|
1272
|
+
_all_params = [
|
1259
1273
|
'owner',
|
1260
1274
|
'offset',
|
1261
1275
|
'limit',
|
@@ -1265,95 +1279,105 @@ class TeamsV1Api(object):
|
|
1265
1279
|
'mode',
|
1266
1280
|
'no_page'
|
1267
1281
|
]
|
1268
|
-
|
1282
|
+
_all_params.extend(
|
1269
1283
|
[
|
1270
1284
|
'async_req',
|
1271
1285
|
'_return_http_data_only',
|
1272
1286
|
'_preload_content',
|
1273
1287
|
'_request_timeout',
|
1274
|
-
'_request_auth'
|
1288
|
+
'_request_auth',
|
1289
|
+
'_content_type',
|
1290
|
+
'_headers'
|
1275
1291
|
]
|
1276
1292
|
)
|
1277
1293
|
|
1278
|
-
|
1279
|
-
|
1294
|
+
# validate the arguments
|
1295
|
+
for _key, _val in _params['kwargs'].items():
|
1296
|
+
if _key not in _all_params:
|
1280
1297
|
raise ApiTypeError(
|
1281
1298
|
"Got an unexpected keyword argument '%s'"
|
1282
|
-
" to method list_team_names" %
|
1299
|
+
" to method list_team_names" % _key
|
1283
1300
|
)
|
1284
|
-
|
1285
|
-
del
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
if 'limit'
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
if '
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1301
|
+
_params[_key] = _val
|
1302
|
+
del _params['kwargs']
|
1303
|
+
|
1304
|
+
_collection_formats = {}
|
1305
|
+
|
1306
|
+
# process the path parameters
|
1307
|
+
_path_params = {}
|
1308
|
+
if _params['owner']:
|
1309
|
+
_path_params['owner'] = _params['owner']
|
1310
|
+
|
1311
|
+
|
1312
|
+
# process the query parameters
|
1313
|
+
_query_params = []
|
1314
|
+
if _params.get('offset') is not None: # noqa: E501
|
1315
|
+
_query_params.append(('offset', _params['offset']))
|
1316
|
+
|
1317
|
+
if _params.get('limit') is not None: # noqa: E501
|
1318
|
+
_query_params.append(('limit', _params['limit']))
|
1319
|
+
|
1320
|
+
if _params.get('sort') is not None: # noqa: E501
|
1321
|
+
_query_params.append(('sort', _params['sort']))
|
1322
|
+
|
1323
|
+
if _params.get('query') is not None: # noqa: E501
|
1324
|
+
_query_params.append(('query', _params['query']))
|
1325
|
+
|
1326
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1327
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1328
|
+
|
1329
|
+
if _params.get('mode') is not None: # noqa: E501
|
1330
|
+
_query_params.append(('mode', _params['mode']))
|
1331
|
+
|
1332
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1333
|
+
_query_params.append(('no_page', _params['no_page']))
|
1334
|
+
|
1335
|
+
# process the header parameters
|
1336
|
+
_header_params = dict(_params.get('_headers', {}))
|
1337
|
+
# process the form parameters
|
1338
|
+
_form_params = []
|
1339
|
+
_files = {}
|
1340
|
+
# process the body parameter
|
1341
|
+
_body_params = None
|
1342
|
+
# set the HTTP header `Accept`
|
1343
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1321
1344
|
['application/json']) # noqa: E501
|
1322
1345
|
|
1323
|
-
#
|
1324
|
-
|
1346
|
+
# authentication setting
|
1347
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1325
1348
|
|
1326
|
-
|
1327
|
-
200: "V1ListTeamsResponse",
|
1328
|
-
204: "object",
|
1329
|
-
403: "object",
|
1330
|
-
404: "object",
|
1349
|
+
_response_types_map = {
|
1350
|
+
'200': "V1ListTeamsResponse",
|
1351
|
+
'204': "object",
|
1352
|
+
'403': "object",
|
1353
|
+
'404': "object",
|
1331
1354
|
}
|
1332
1355
|
|
1333
1356
|
return self.api_client.call_api(
|
1334
1357
|
'/api/v1/orgs/{owner}/teams/names', 'GET',
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
body=
|
1339
|
-
post_params=
|
1340
|
-
files=
|
1341
|
-
response_types_map=
|
1342
|
-
auth_settings=
|
1343
|
-
async_req=
|
1344
|
-
_return_http_data_only=
|
1345
|
-
_preload_content=
|
1346
|
-
_request_timeout=
|
1347
|
-
collection_formats=
|
1348
|
-
_request_auth=
|
1349
|
-
|
1350
|
-
|
1358
|
+
_path_params,
|
1359
|
+
_query_params,
|
1360
|
+
_header_params,
|
1361
|
+
body=_body_params,
|
1362
|
+
post_params=_form_params,
|
1363
|
+
files=_files,
|
1364
|
+
response_types_map=_response_types_map,
|
1365
|
+
auth_settings=_auth_settings,
|
1366
|
+
async_req=_params.get('async_req'),
|
1367
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1368
|
+
_preload_content=_params.get('_preload_content', True),
|
1369
|
+
_request_timeout=_params.get('_request_timeout'),
|
1370
|
+
collection_formats=_collection_formats,
|
1371
|
+
_request_auth=_params.get('_request_auth'))
|
1372
|
+
|
1373
|
+
@validate_arguments
|
1374
|
+
def list_teams(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) -> V1ListTeamsResponse: # noqa: E501
|
1351
1375
|
"""List teams # noqa: E501
|
1352
1376
|
|
1353
1377
|
This method makes a synchronous HTTP request by default. To make an
|
1354
1378
|
asynchronous HTTP request, please pass async_req=True
|
1355
1379
|
|
1356
|
-
>>> thread = api.list_teams(owner, async_req=True)
|
1380
|
+
>>> thread = api.list_teams(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1357
1381
|
>>> result = thread.get()
|
1358
1382
|
|
1359
1383
|
:param owner: Owner of the namespace (required)
|
@@ -1388,15 +1412,16 @@ class TeamsV1Api(object):
|
|
1388
1412
|
:rtype: V1ListTeamsResponse
|
1389
1413
|
"""
|
1390
1414
|
kwargs['_return_http_data_only'] = True
|
1391
|
-
return self.list_teams_with_http_info(owner, **kwargs) # noqa: E501
|
1415
|
+
return self.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1392
1416
|
|
1393
|
-
|
1417
|
+
@validate_arguments
|
1418
|
+
def list_teams_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
|
1394
1419
|
"""List teams # noqa: E501
|
1395
1420
|
|
1396
1421
|
This method makes a synchronous HTTP request by default. To make an
|
1397
1422
|
asynchronous HTTP request, please pass async_req=True
|
1398
1423
|
|
1399
|
-
>>> thread = api.list_teams_with_http_info(owner, async_req=True)
|
1424
|
+
>>> thread = api.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1400
1425
|
>>> result = thread.get()
|
1401
1426
|
|
1402
1427
|
:param owner: Owner of the namespace (required)
|
@@ -1432,15 +1457,16 @@ class TeamsV1Api(object):
|
|
1432
1457
|
request; this effectively ignores the authentication
|
1433
1458
|
in the spec for a single request.
|
1434
1459
|
:type _request_auth: dict, optional
|
1460
|
+
:type _content_type: string, optional: force content-type for the request
|
1435
1461
|
:return: Returns the result object.
|
1436
1462
|
If the method is called asynchronously,
|
1437
1463
|
returns the request thread.
|
1438
1464
|
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
1439
1465
|
"""
|
1440
1466
|
|
1441
|
-
|
1467
|
+
_params = locals()
|
1442
1468
|
|
1443
|
-
|
1469
|
+
_all_params = [
|
1444
1470
|
'owner',
|
1445
1471
|
'offset',
|
1446
1472
|
'limit',
|
@@ -1450,89 +1476,99 @@ class TeamsV1Api(object):
|
|
1450
1476
|
'mode',
|
1451
1477
|
'no_page'
|
1452
1478
|
]
|
1453
|
-
|
1479
|
+
_all_params.extend(
|
1454
1480
|
[
|
1455
1481
|
'async_req',
|
1456
1482
|
'_return_http_data_only',
|
1457
1483
|
'_preload_content',
|
1458
1484
|
'_request_timeout',
|
1459
|
-
'_request_auth'
|
1485
|
+
'_request_auth',
|
1486
|
+
'_content_type',
|
1487
|
+
'_headers'
|
1460
1488
|
]
|
1461
1489
|
)
|
1462
1490
|
|
1463
|
-
|
1464
|
-
|
1491
|
+
# validate the arguments
|
1492
|
+
for _key, _val in _params['kwargs'].items():
|
1493
|
+
if _key not in _all_params:
|
1465
1494
|
raise ApiTypeError(
|
1466
1495
|
"Got an unexpected keyword argument '%s'"
|
1467
|
-
" to method list_teams" %
|
1496
|
+
" to method list_teams" % _key
|
1468
1497
|
)
|
1469
|
-
|
1470
|
-
del
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
if 'limit'
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
if '
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1498
|
+
_params[_key] = _val
|
1499
|
+
del _params['kwargs']
|
1500
|
+
|
1501
|
+
_collection_formats = {}
|
1502
|
+
|
1503
|
+
# process the path parameters
|
1504
|
+
_path_params = {}
|
1505
|
+
if _params['owner']:
|
1506
|
+
_path_params['owner'] = _params['owner']
|
1507
|
+
|
1508
|
+
|
1509
|
+
# process the query parameters
|
1510
|
+
_query_params = []
|
1511
|
+
if _params.get('offset') is not None: # noqa: E501
|
1512
|
+
_query_params.append(('offset', _params['offset']))
|
1513
|
+
|
1514
|
+
if _params.get('limit') is not None: # noqa: E501
|
1515
|
+
_query_params.append(('limit', _params['limit']))
|
1516
|
+
|
1517
|
+
if _params.get('sort') is not None: # noqa: E501
|
1518
|
+
_query_params.append(('sort', _params['sort']))
|
1519
|
+
|
1520
|
+
if _params.get('query') is not None: # noqa: E501
|
1521
|
+
_query_params.append(('query', _params['query']))
|
1522
|
+
|
1523
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1524
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1525
|
+
|
1526
|
+
if _params.get('mode') is not None: # noqa: E501
|
1527
|
+
_query_params.append(('mode', _params['mode']))
|
1528
|
+
|
1529
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1530
|
+
_query_params.append(('no_page', _params['no_page']))
|
1531
|
+
|
1532
|
+
# process the header parameters
|
1533
|
+
_header_params = dict(_params.get('_headers', {}))
|
1534
|
+
# process the form parameters
|
1535
|
+
_form_params = []
|
1536
|
+
_files = {}
|
1537
|
+
# process the body parameter
|
1538
|
+
_body_params = None
|
1539
|
+
# set the HTTP header `Accept`
|
1540
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1506
1541
|
['application/json']) # noqa: E501
|
1507
1542
|
|
1508
|
-
#
|
1509
|
-
|
1543
|
+
# authentication setting
|
1544
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1510
1545
|
|
1511
|
-
|
1512
|
-
200: "V1ListTeamsResponse",
|
1513
|
-
204: "object",
|
1514
|
-
403: "object",
|
1515
|
-
404: "object",
|
1546
|
+
_response_types_map = {
|
1547
|
+
'200': "V1ListTeamsResponse",
|
1548
|
+
'204': "object",
|
1549
|
+
'403': "object",
|
1550
|
+
'404': "object",
|
1516
1551
|
}
|
1517
1552
|
|
1518
1553
|
return self.api_client.call_api(
|
1519
1554
|
'/api/v1/orgs/{owner}/teams', 'GET',
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
body=
|
1524
|
-
post_params=
|
1525
|
-
files=
|
1526
|
-
response_types_map=
|
1527
|
-
auth_settings=
|
1528
|
-
async_req=
|
1529
|
-
_return_http_data_only=
|
1530
|
-
_preload_content=
|
1531
|
-
_request_timeout=
|
1532
|
-
collection_formats=
|
1533
|
-
_request_auth=
|
1534
|
-
|
1535
|
-
|
1555
|
+
_path_params,
|
1556
|
+
_query_params,
|
1557
|
+
_header_params,
|
1558
|
+
body=_body_params,
|
1559
|
+
post_params=_form_params,
|
1560
|
+
files=_files,
|
1561
|
+
response_types_map=_response_types_map,
|
1562
|
+
auth_settings=_auth_settings,
|
1563
|
+
async_req=_params.get('async_req'),
|
1564
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1565
|
+
_preload_content=_params.get('_preload_content', True),
|
1566
|
+
_request_timeout=_params.get('_request_timeout'),
|
1567
|
+
collection_formats=_collection_formats,
|
1568
|
+
_request_auth=_params.get('_request_auth'))
|
1569
|
+
|
1570
|
+
@validate_arguments
|
1571
|
+
def patch_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
|
1536
1572
|
"""Patch team # noqa: E501
|
1537
1573
|
|
1538
1574
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1565,7 +1601,8 @@ class TeamsV1Api(object):
|
|
1565
1601
|
kwargs['_return_http_data_only'] = True
|
1566
1602
|
return self.patch_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501
|
1567
1603
|
|
1568
|
-
|
1604
|
+
@validate_arguments
|
1605
|
+
def patch_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
|
1569
1606
|
"""Patch team # noqa: E501
|
1570
1607
|
|
1571
1608
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1597,104 +1634,105 @@ class TeamsV1Api(object):
|
|
1597
1634
|
request; this effectively ignores the authentication
|
1598
1635
|
in the spec for a single request.
|
1599
1636
|
:type _request_auth: dict, optional
|
1637
|
+
:type _content_type: string, optional: force content-type for the request
|
1600
1638
|
:return: Returns the result object.
|
1601
1639
|
If the method is called asynchronously,
|
1602
1640
|
returns the request thread.
|
1603
1641
|
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
1604
1642
|
"""
|
1605
1643
|
|
1606
|
-
|
1644
|
+
_params = locals()
|
1607
1645
|
|
1608
|
-
|
1646
|
+
_all_params = [
|
1609
1647
|
'owner',
|
1610
1648
|
'team_name',
|
1611
1649
|
'body'
|
1612
1650
|
]
|
1613
|
-
|
1651
|
+
_all_params.extend(
|
1614
1652
|
[
|
1615
1653
|
'async_req',
|
1616
1654
|
'_return_http_data_only',
|
1617
1655
|
'_preload_content',
|
1618
1656
|
'_request_timeout',
|
1619
|
-
'_request_auth'
|
1657
|
+
'_request_auth',
|
1658
|
+
'_content_type',
|
1659
|
+
'_headers'
|
1620
1660
|
]
|
1621
1661
|
)
|
1622
1662
|
|
1623
|
-
|
1624
|
-
|
1663
|
+
# validate the arguments
|
1664
|
+
for _key, _val in _params['kwargs'].items():
|
1665
|
+
if _key not in _all_params:
|
1625
1666
|
raise ApiTypeError(
|
1626
1667
|
"Got an unexpected keyword argument '%s'"
|
1627
|
-
" to method patch_team" %
|
1668
|
+
" to method patch_team" % _key
|
1628
1669
|
)
|
1629
|
-
|
1630
|
-
del
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
if
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
local_var_files = {}
|
1658
|
-
|
1659
|
-
body_params = None
|
1660
|
-
if 'body' in local_var_params:
|
1661
|
-
body_params = local_var_params['body']
|
1662
|
-
# HTTP header `Accept`
|
1663
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1664
|
-
['application/json']) # noqa: E501
|
1665
|
-
|
1666
|
-
# HTTP header `Content-Type`
|
1667
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1670
|
+
_params[_key] = _val
|
1671
|
+
del _params['kwargs']
|
1672
|
+
|
1673
|
+
_collection_formats = {}
|
1674
|
+
|
1675
|
+
# process the path parameters
|
1676
|
+
_path_params = {}
|
1677
|
+
if _params['owner']:
|
1678
|
+
_path_params['owner'] = _params['owner']
|
1679
|
+
|
1680
|
+
if _params['team_name']:
|
1681
|
+
_path_params['team.name'] = _params['team_name']
|
1682
|
+
|
1683
|
+
|
1684
|
+
# process the query parameters
|
1685
|
+
_query_params = []
|
1686
|
+
# process the header parameters
|
1687
|
+
_header_params = dict(_params.get('_headers', {}))
|
1688
|
+
# process the form parameters
|
1689
|
+
_form_params = []
|
1690
|
+
_files = {}
|
1691
|
+
# process the body parameter
|
1692
|
+
_body_params = None
|
1693
|
+
if _params['body']:
|
1694
|
+
_body_params = _params['body']
|
1695
|
+
|
1696
|
+
# set the HTTP header `Accept`
|
1697
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1668
1698
|
['application/json']) # noqa: E501
|
1669
1699
|
|
1670
|
-
#
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1700
|
+
# set the HTTP header `Content-Type`
|
1701
|
+
_content_types_list = _params.get('_content_type',
|
1702
|
+
self.api_client.select_header_content_type(
|
1703
|
+
['application/json']))
|
1704
|
+
if _content_types_list:
|
1705
|
+
_header_params['Content-Type'] = _content_types_list
|
1706
|
+
|
1707
|
+
# authentication setting
|
1708
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1709
|
+
|
1710
|
+
_response_types_map = {
|
1711
|
+
'200': "V1Team",
|
1712
|
+
'204': "object",
|
1713
|
+
'403': "object",
|
1714
|
+
'404': "object",
|
1678
1715
|
}
|
1679
1716
|
|
1680
1717
|
return self.api_client.call_api(
|
1681
1718
|
'/api/v1/orgs/{owner}/teams/{team.name}', 'PATCH',
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
body=
|
1686
|
-
post_params=
|
1687
|
-
files=
|
1688
|
-
response_types_map=
|
1689
|
-
auth_settings=
|
1690
|
-
async_req=
|
1691
|
-
_return_http_data_only=
|
1692
|
-
_preload_content=
|
1693
|
-
_request_timeout=
|
1694
|
-
collection_formats=
|
1695
|
-
_request_auth=
|
1696
|
-
|
1697
|
-
|
1719
|
+
_path_params,
|
1720
|
+
_query_params,
|
1721
|
+
_header_params,
|
1722
|
+
body=_body_params,
|
1723
|
+
post_params=_form_params,
|
1724
|
+
files=_files,
|
1725
|
+
response_types_map=_response_types_map,
|
1726
|
+
auth_settings=_auth_settings,
|
1727
|
+
async_req=_params.get('async_req'),
|
1728
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1729
|
+
_preload_content=_params.get('_preload_content', True),
|
1730
|
+
_request_timeout=_params.get('_request_timeout'),
|
1731
|
+
collection_formats=_collection_formats,
|
1732
|
+
_request_auth=_params.get('_request_auth'))
|
1733
|
+
|
1734
|
+
@validate_arguments
|
1735
|
+
def patch_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
|
1698
1736
|
"""Patch team member # noqa: E501
|
1699
1737
|
|
1700
1738
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1729,7 +1767,8 @@ class TeamsV1Api(object):
|
|
1729
1767
|
kwargs['_return_http_data_only'] = True
|
1730
1768
|
return self.patch_team_member_with_http_info(owner, team, member_user, body, **kwargs) # noqa: E501
|
1731
1769
|
|
1732
|
-
|
1770
|
+
@validate_arguments
|
1771
|
+
def patch_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
|
1733
1772
|
"""Patch team member # noqa: E501
|
1734
1773
|
|
1735
1774
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1763,111 +1802,109 @@ class TeamsV1Api(object):
|
|
1763
1802
|
request; this effectively ignores the authentication
|
1764
1803
|
in the spec for a single request.
|
1765
1804
|
:type _request_auth: dict, optional
|
1805
|
+
:type _content_type: string, optional: force content-type for the request
|
1766
1806
|
:return: Returns the result object.
|
1767
1807
|
If the method is called asynchronously,
|
1768
1808
|
returns the request thread.
|
1769
1809
|
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
1770
1810
|
"""
|
1771
1811
|
|
1772
|
-
|
1812
|
+
_params = locals()
|
1773
1813
|
|
1774
|
-
|
1814
|
+
_all_params = [
|
1775
1815
|
'owner',
|
1776
1816
|
'team',
|
1777
1817
|
'member_user',
|
1778
1818
|
'body'
|
1779
1819
|
]
|
1780
|
-
|
1820
|
+
_all_params.extend(
|
1781
1821
|
[
|
1782
1822
|
'async_req',
|
1783
1823
|
'_return_http_data_only',
|
1784
1824
|
'_preload_content',
|
1785
1825
|
'_request_timeout',
|
1786
|
-
'_request_auth'
|
1826
|
+
'_request_auth',
|
1827
|
+
'_content_type',
|
1828
|
+
'_headers'
|
1787
1829
|
]
|
1788
1830
|
)
|
1789
1831
|
|
1790
|
-
|
1791
|
-
|
1832
|
+
# validate the arguments
|
1833
|
+
for _key, _val in _params['kwargs'].items():
|
1834
|
+
if _key not in _all_params:
|
1792
1835
|
raise ApiTypeError(
|
1793
1836
|
"Got an unexpected keyword argument '%s'"
|
1794
|
-
" to method patch_team_member" %
|
1837
|
+
" to method patch_team_member" % _key
|
1795
1838
|
)
|
1796
|
-
|
1797
|
-
del
|
1798
|
-
# verify the required parameter 'owner' is set
|
1799
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1800
|
-
local_var_params['owner'] is None): # noqa: E501
|
1801
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `patch_team_member`") # noqa: E501
|
1802
|
-
# verify the required parameter 'team' is set
|
1803
|
-
if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
|
1804
|
-
local_var_params['team'] is None): # noqa: E501
|
1805
|
-
raise ApiValueError("Missing the required parameter `team` when calling `patch_team_member`") # noqa: E501
|
1806
|
-
# verify the required parameter 'member_user' is set
|
1807
|
-
if self.api_client.client_side_validation and ('member_user' not in local_var_params or # noqa: E501
|
1808
|
-
local_var_params['member_user'] is None): # noqa: E501
|
1809
|
-
raise ApiValueError("Missing the required parameter `member_user` when calling `patch_team_member`") # noqa: E501
|
1810
|
-
# verify the required parameter 'body' is set
|
1811
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1812
|
-
local_var_params['body'] is None): # noqa: E501
|
1813
|
-
raise ApiValueError("Missing the required parameter `body` when calling `patch_team_member`") # noqa: E501
|
1814
|
-
|
1815
|
-
collection_formats = {}
|
1816
|
-
|
1817
|
-
path_params = {}
|
1818
|
-
if 'owner' in local_var_params:
|
1819
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1820
|
-
if 'team' in local_var_params:
|
1821
|
-
path_params['team'] = local_var_params['team'] # noqa: E501
|
1822
|
-
if 'member_user' in local_var_params:
|
1823
|
-
path_params['member.user'] = local_var_params['member_user'] # noqa: E501
|
1824
|
-
|
1825
|
-
query_params = []
|
1826
|
-
|
1827
|
-
header_params = {}
|
1828
|
-
|
1829
|
-
form_params = []
|
1830
|
-
local_var_files = {}
|
1831
|
-
|
1832
|
-
body_params = None
|
1833
|
-
if 'body' in local_var_params:
|
1834
|
-
body_params = local_var_params['body']
|
1835
|
-
# HTTP header `Accept`
|
1836
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1837
|
-
['application/json']) # noqa: E501
|
1839
|
+
_params[_key] = _val
|
1840
|
+
del _params['kwargs']
|
1838
1841
|
|
1839
|
-
|
1840
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1841
|
-
['application/json']) # noqa: E501
|
1842
|
+
_collection_formats = {}
|
1842
1843
|
|
1843
|
-
#
|
1844
|
-
|
1844
|
+
# process the path parameters
|
1845
|
+
_path_params = {}
|
1846
|
+
if _params['owner']:
|
1847
|
+
_path_params['owner'] = _params['owner']
|
1845
1848
|
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1849
|
+
if _params['team']:
|
1850
|
+
_path_params['team'] = _params['team']
|
1851
|
+
|
1852
|
+
if _params['member_user']:
|
1853
|
+
_path_params['member.user'] = _params['member_user']
|
1854
|
+
|
1855
|
+
|
1856
|
+
# process the query parameters
|
1857
|
+
_query_params = []
|
1858
|
+
# process the header parameters
|
1859
|
+
_header_params = dict(_params.get('_headers', {}))
|
1860
|
+
# process the form parameters
|
1861
|
+
_form_params = []
|
1862
|
+
_files = {}
|
1863
|
+
# process the body parameter
|
1864
|
+
_body_params = None
|
1865
|
+
if _params['body']:
|
1866
|
+
_body_params = _params['body']
|
1867
|
+
|
1868
|
+
# set the HTTP header `Accept`
|
1869
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1870
|
+
['application/json']) # noqa: E501
|
1871
|
+
|
1872
|
+
# set the HTTP header `Content-Type`
|
1873
|
+
_content_types_list = _params.get('_content_type',
|
1874
|
+
self.api_client.select_header_content_type(
|
1875
|
+
['application/json']))
|
1876
|
+
if _content_types_list:
|
1877
|
+
_header_params['Content-Type'] = _content_types_list
|
1878
|
+
|
1879
|
+
# authentication setting
|
1880
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1881
|
+
|
1882
|
+
_response_types_map = {
|
1883
|
+
'200': "V1TeamMember",
|
1884
|
+
'204': "object",
|
1885
|
+
'403': "object",
|
1886
|
+
'404': "object",
|
1851
1887
|
}
|
1852
1888
|
|
1853
1889
|
return self.api_client.call_api(
|
1854
1890
|
'/api/v1/orgs/{owner}/teams/{team}/members/{member.user}', 'PATCH',
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
body=
|
1859
|
-
post_params=
|
1860
|
-
files=
|
1861
|
-
response_types_map=
|
1862
|
-
auth_settings=
|
1863
|
-
async_req=
|
1864
|
-
_return_http_data_only=
|
1865
|
-
_preload_content=
|
1866
|
-
_request_timeout=
|
1867
|
-
collection_formats=
|
1868
|
-
_request_auth=
|
1869
|
-
|
1870
|
-
|
1891
|
+
_path_params,
|
1892
|
+
_query_params,
|
1893
|
+
_header_params,
|
1894
|
+
body=_body_params,
|
1895
|
+
post_params=_form_params,
|
1896
|
+
files=_files,
|
1897
|
+
response_types_map=_response_types_map,
|
1898
|
+
auth_settings=_auth_settings,
|
1899
|
+
async_req=_params.get('async_req'),
|
1900
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1901
|
+
_preload_content=_params.get('_preload_content', True),
|
1902
|
+
_request_timeout=_params.get('_request_timeout'),
|
1903
|
+
collection_formats=_collection_formats,
|
1904
|
+
_request_auth=_params.get('_request_auth'))
|
1905
|
+
|
1906
|
+
@validate_arguments
|
1907
|
+
def update_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
|
1871
1908
|
"""Update team # noqa: E501
|
1872
1909
|
|
1873
1910
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1900,7 +1937,8 @@ class TeamsV1Api(object):
|
|
1900
1937
|
kwargs['_return_http_data_only'] = True
|
1901
1938
|
return self.update_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501
|
1902
1939
|
|
1903
|
-
|
1940
|
+
@validate_arguments
|
1941
|
+
def update_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
|
1904
1942
|
"""Update team # noqa: E501
|
1905
1943
|
|
1906
1944
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1932,104 +1970,105 @@ class TeamsV1Api(object):
|
|
1932
1970
|
request; this effectively ignores the authentication
|
1933
1971
|
in the spec for a single request.
|
1934
1972
|
:type _request_auth: dict, optional
|
1973
|
+
:type _content_type: string, optional: force content-type for the request
|
1935
1974
|
:return: Returns the result object.
|
1936
1975
|
If the method is called asynchronously,
|
1937
1976
|
returns the request thread.
|
1938
1977
|
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
1939
1978
|
"""
|
1940
1979
|
|
1941
|
-
|
1980
|
+
_params = locals()
|
1942
1981
|
|
1943
|
-
|
1982
|
+
_all_params = [
|
1944
1983
|
'owner',
|
1945
1984
|
'team_name',
|
1946
1985
|
'body'
|
1947
1986
|
]
|
1948
|
-
|
1987
|
+
_all_params.extend(
|
1949
1988
|
[
|
1950
1989
|
'async_req',
|
1951
1990
|
'_return_http_data_only',
|
1952
1991
|
'_preload_content',
|
1953
1992
|
'_request_timeout',
|
1954
|
-
'_request_auth'
|
1993
|
+
'_request_auth',
|
1994
|
+
'_content_type',
|
1995
|
+
'_headers'
|
1955
1996
|
]
|
1956
1997
|
)
|
1957
1998
|
|
1958
|
-
|
1959
|
-
|
1999
|
+
# validate the arguments
|
2000
|
+
for _key, _val in _params['kwargs'].items():
|
2001
|
+
if _key not in _all_params:
|
1960
2002
|
raise ApiTypeError(
|
1961
2003
|
"Got an unexpected keyword argument '%s'"
|
1962
|
-
" to method update_team" %
|
2004
|
+
" to method update_team" % _key
|
1963
2005
|
)
|
1964
|
-
|
1965
|
-
del
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
if
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
local_var_files = {}
|
1993
|
-
|
1994
|
-
body_params = None
|
1995
|
-
if 'body' in local_var_params:
|
1996
|
-
body_params = local_var_params['body']
|
1997
|
-
# HTTP header `Accept`
|
1998
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1999
|
-
['application/json']) # noqa: E501
|
2000
|
-
|
2001
|
-
# HTTP header `Content-Type`
|
2002
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
2006
|
+
_params[_key] = _val
|
2007
|
+
del _params['kwargs']
|
2008
|
+
|
2009
|
+
_collection_formats = {}
|
2010
|
+
|
2011
|
+
# process the path parameters
|
2012
|
+
_path_params = {}
|
2013
|
+
if _params['owner']:
|
2014
|
+
_path_params['owner'] = _params['owner']
|
2015
|
+
|
2016
|
+
if _params['team_name']:
|
2017
|
+
_path_params['team.name'] = _params['team_name']
|
2018
|
+
|
2019
|
+
|
2020
|
+
# process the query parameters
|
2021
|
+
_query_params = []
|
2022
|
+
# process the header parameters
|
2023
|
+
_header_params = dict(_params.get('_headers', {}))
|
2024
|
+
# process the form parameters
|
2025
|
+
_form_params = []
|
2026
|
+
_files = {}
|
2027
|
+
# process the body parameter
|
2028
|
+
_body_params = None
|
2029
|
+
if _params['body']:
|
2030
|
+
_body_params = _params['body']
|
2031
|
+
|
2032
|
+
# set the HTTP header `Accept`
|
2033
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2003
2034
|
['application/json']) # noqa: E501
|
2004
2035
|
|
2005
|
-
#
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2036
|
+
# set the HTTP header `Content-Type`
|
2037
|
+
_content_types_list = _params.get('_content_type',
|
2038
|
+
self.api_client.select_header_content_type(
|
2039
|
+
['application/json']))
|
2040
|
+
if _content_types_list:
|
2041
|
+
_header_params['Content-Type'] = _content_types_list
|
2042
|
+
|
2043
|
+
# authentication setting
|
2044
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2045
|
+
|
2046
|
+
_response_types_map = {
|
2047
|
+
'200': "V1Team",
|
2048
|
+
'204': "object",
|
2049
|
+
'403': "object",
|
2050
|
+
'404': "object",
|
2013
2051
|
}
|
2014
2052
|
|
2015
2053
|
return self.api_client.call_api(
|
2016
2054
|
'/api/v1/orgs/{owner}/teams/{team.name}', 'PUT',
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
body=
|
2021
|
-
post_params=
|
2022
|
-
files=
|
2023
|
-
response_types_map=
|
2024
|
-
auth_settings=
|
2025
|
-
async_req=
|
2026
|
-
_return_http_data_only=
|
2027
|
-
_preload_content=
|
2028
|
-
_request_timeout=
|
2029
|
-
collection_formats=
|
2030
|
-
_request_auth=
|
2031
|
-
|
2032
|
-
|
2055
|
+
_path_params,
|
2056
|
+
_query_params,
|
2057
|
+
_header_params,
|
2058
|
+
body=_body_params,
|
2059
|
+
post_params=_form_params,
|
2060
|
+
files=_files,
|
2061
|
+
response_types_map=_response_types_map,
|
2062
|
+
auth_settings=_auth_settings,
|
2063
|
+
async_req=_params.get('async_req'),
|
2064
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2065
|
+
_preload_content=_params.get('_preload_content', True),
|
2066
|
+
_request_timeout=_params.get('_request_timeout'),
|
2067
|
+
collection_formats=_collection_formats,
|
2068
|
+
_request_auth=_params.get('_request_auth'))
|
2069
|
+
|
2070
|
+
@validate_arguments
|
2071
|
+
def update_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
|
2033
2072
|
"""Update team member # noqa: E501
|
2034
2073
|
|
2035
2074
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -2064,7 +2103,8 @@ class TeamsV1Api(object):
|
|
2064
2103
|
kwargs['_return_http_data_only'] = True
|
2065
2104
|
return self.update_team_member_with_http_info(owner, team, member_user, body, **kwargs) # noqa: E501
|
2066
2105
|
|
2067
|
-
|
2106
|
+
@validate_arguments
|
2107
|
+
def update_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
|
2068
2108
|
"""Update team member # noqa: E501
|
2069
2109
|
|
2070
2110
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -2098,106 +2138,103 @@ class TeamsV1Api(object):
|
|
2098
2138
|
request; this effectively ignores the authentication
|
2099
2139
|
in the spec for a single request.
|
2100
2140
|
:type _request_auth: dict, optional
|
2141
|
+
:type _content_type: string, optional: force content-type for the request
|
2101
2142
|
:return: Returns the result object.
|
2102
2143
|
If the method is called asynchronously,
|
2103
2144
|
returns the request thread.
|
2104
2145
|
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
2105
2146
|
"""
|
2106
2147
|
|
2107
|
-
|
2148
|
+
_params = locals()
|
2108
2149
|
|
2109
|
-
|
2150
|
+
_all_params = [
|
2110
2151
|
'owner',
|
2111
2152
|
'team',
|
2112
2153
|
'member_user',
|
2113
2154
|
'body'
|
2114
2155
|
]
|
2115
|
-
|
2156
|
+
_all_params.extend(
|
2116
2157
|
[
|
2117
2158
|
'async_req',
|
2118
2159
|
'_return_http_data_only',
|
2119
2160
|
'_preload_content',
|
2120
2161
|
'_request_timeout',
|
2121
|
-
'_request_auth'
|
2162
|
+
'_request_auth',
|
2163
|
+
'_content_type',
|
2164
|
+
'_headers'
|
2122
2165
|
]
|
2123
2166
|
)
|
2124
2167
|
|
2125
|
-
|
2126
|
-
|
2168
|
+
# validate the arguments
|
2169
|
+
for _key, _val in _params['kwargs'].items():
|
2170
|
+
if _key not in _all_params:
|
2127
2171
|
raise ApiTypeError(
|
2128
2172
|
"Got an unexpected keyword argument '%s'"
|
2129
|
-
" to method update_team_member" %
|
2173
|
+
" to method update_team_member" % _key
|
2130
2174
|
)
|
2131
|
-
|
2132
|
-
del
|
2133
|
-
# verify the required parameter 'owner' is set
|
2134
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
2135
|
-
local_var_params['owner'] is None): # noqa: E501
|
2136
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `update_team_member`") # noqa: E501
|
2137
|
-
# verify the required parameter 'team' is set
|
2138
|
-
if self.api_client.client_side_validation and ('team' not in local_var_params or # noqa: E501
|
2139
|
-
local_var_params['team'] is None): # noqa: E501
|
2140
|
-
raise ApiValueError("Missing the required parameter `team` when calling `update_team_member`") # noqa: E501
|
2141
|
-
# verify the required parameter 'member_user' is set
|
2142
|
-
if self.api_client.client_side_validation and ('member_user' not in local_var_params or # noqa: E501
|
2143
|
-
local_var_params['member_user'] is None): # noqa: E501
|
2144
|
-
raise ApiValueError("Missing the required parameter `member_user` when calling `update_team_member`") # noqa: E501
|
2145
|
-
# verify the required parameter 'body' is set
|
2146
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
2147
|
-
local_var_params['body'] is None): # noqa: E501
|
2148
|
-
raise ApiValueError("Missing the required parameter `body` when calling `update_team_member`") # noqa: E501
|
2149
|
-
|
2150
|
-
collection_formats = {}
|
2151
|
-
|
2152
|
-
path_params = {}
|
2153
|
-
if 'owner' in local_var_params:
|
2154
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
2155
|
-
if 'team' in local_var_params:
|
2156
|
-
path_params['team'] = local_var_params['team'] # noqa: E501
|
2157
|
-
if 'member_user' in local_var_params:
|
2158
|
-
path_params['member.user'] = local_var_params['member_user'] # noqa: E501
|
2159
|
-
|
2160
|
-
query_params = []
|
2161
|
-
|
2162
|
-
header_params = {}
|
2163
|
-
|
2164
|
-
form_params = []
|
2165
|
-
local_var_files = {}
|
2166
|
-
|
2167
|
-
body_params = None
|
2168
|
-
if 'body' in local_var_params:
|
2169
|
-
body_params = local_var_params['body']
|
2170
|
-
# HTTP header `Accept`
|
2171
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
2172
|
-
['application/json']) # noqa: E501
|
2175
|
+
_params[_key] = _val
|
2176
|
+
del _params['kwargs']
|
2173
2177
|
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2178
|
+
_collection_formats = {}
|
2179
|
+
|
2180
|
+
# process the path parameters
|
2181
|
+
_path_params = {}
|
2182
|
+
if _params['owner']:
|
2183
|
+
_path_params['owner'] = _params['owner']
|
2184
|
+
|
2185
|
+
if _params['team']:
|
2186
|
+
_path_params['team'] = _params['team']
|
2177
2187
|
|
2178
|
-
|
2179
|
-
|
2188
|
+
if _params['member_user']:
|
2189
|
+
_path_params['member.user'] = _params['member_user']
|
2190
|
+
|
2191
|
+
|
2192
|
+
# process the query parameters
|
2193
|
+
_query_params = []
|
2194
|
+
# process the header parameters
|
2195
|
+
_header_params = dict(_params.get('_headers', {}))
|
2196
|
+
# process the form parameters
|
2197
|
+
_form_params = []
|
2198
|
+
_files = {}
|
2199
|
+
# process the body parameter
|
2200
|
+
_body_params = None
|
2201
|
+
if _params['body']:
|
2202
|
+
_body_params = _params['body']
|
2203
|
+
|
2204
|
+
# set the HTTP header `Accept`
|
2205
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2206
|
+
['application/json']) # noqa: E501
|
2180
2207
|
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2208
|
+
# set the HTTP header `Content-Type`
|
2209
|
+
_content_types_list = _params.get('_content_type',
|
2210
|
+
self.api_client.select_header_content_type(
|
2211
|
+
['application/json']))
|
2212
|
+
if _content_types_list:
|
2213
|
+
_header_params['Content-Type'] = _content_types_list
|
2214
|
+
|
2215
|
+
# authentication setting
|
2216
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2217
|
+
|
2218
|
+
_response_types_map = {
|
2219
|
+
'200': "V1TeamMember",
|
2220
|
+
'204': "object",
|
2221
|
+
'403': "object",
|
2222
|
+
'404': "object",
|
2186
2223
|
}
|
2187
2224
|
|
2188
2225
|
return self.api_client.call_api(
|
2189
2226
|
'/api/v1/orgs/{owner}/teams/{team}/members/{member.user}', 'PUT',
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
body=
|
2194
|
-
post_params=
|
2195
|
-
files=
|
2196
|
-
response_types_map=
|
2197
|
-
auth_settings=
|
2198
|
-
async_req=
|
2199
|
-
_return_http_data_only=
|
2200
|
-
_preload_content=
|
2201
|
-
_request_timeout=
|
2202
|
-
collection_formats=
|
2203
|
-
_request_auth=
|
2227
|
+
_path_params,
|
2228
|
+
_query_params,
|
2229
|
+
_header_params,
|
2230
|
+
body=_body_params,
|
2231
|
+
post_params=_form_params,
|
2232
|
+
files=_files,
|
2233
|
+
response_types_map=_response_types_map,
|
2234
|
+
auth_settings=_auth_settings,
|
2235
|
+
async_req=_params.get('async_req'),
|
2236
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2237
|
+
_preload_content=_params.get('_preload_content', True),
|
2238
|
+
_request_timeout=_params.get('_request_timeout'),
|
2239
|
+
collection_formats=_collection_formats,
|
2240
|
+
_request_auth=_params.get('_request_auth'))
|