polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon_sdk/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,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_service_accounts_response import V1ListServiceAccountsResponse
|
26
|
+
from polyaxon_sdk.models.v1_list_token_response import V1ListTokenResponse
|
27
|
+
from polyaxon_sdk.models.v1_service_account import V1ServiceAccount
|
28
|
+
from polyaxon_sdk.models.v1_token import V1Token
|
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 ServiceAccountsV1Api(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_service_account(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs) -> V1ServiceAccount: # noqa: E501
|
57
51
|
"""Create service account # noqa: E501
|
58
52
|
|
59
53
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -84,7 +78,8 @@ class ServiceAccountsV1Api(object):
|
|
84
78
|
kwargs['_return_http_data_only'] = True
|
85
79
|
return self.create_service_account_with_http_info(owner, body, **kwargs) # noqa: E501
|
86
80
|
|
87
|
-
|
81
|
+
@validate_arguments
|
82
|
+
def create_service_account_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs): # noqa: E501
|
88
83
|
"""Create service account # noqa: E501
|
89
84
|
|
90
85
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -114,97 +109,101 @@ class ServiceAccountsV1Api(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(V1ServiceAccount, 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_service_account" %
|
142
|
+
" to method create_service_account" % _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': "V1ServiceAccount",
|
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}/sa', '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_service_account_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
208
207
|
"""Create service account token # noqa: E501
|
209
208
|
|
210
209
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -215,7 +214,7 @@ class ServiceAccountsV1Api(object):
|
|
215
214
|
|
216
215
|
:param owner: Owner of the namespace (required)
|
217
216
|
:type owner: str
|
218
|
-
:param entity:
|
217
|
+
:param entity: Entity (required)
|
219
218
|
:type entity: str
|
220
219
|
:param body: Token body (required)
|
221
220
|
:type body: V1Token
|
@@ -237,7 +236,8 @@ class ServiceAccountsV1Api(object):
|
|
237
236
|
kwargs['_return_http_data_only'] = True
|
238
237
|
return self.create_service_account_token_with_http_info(owner, entity, body, **kwargs) # noqa: E501
|
239
238
|
|
240
|
-
|
239
|
+
@validate_arguments
|
240
|
+
def create_service_account_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
241
241
|
"""Create service account token # noqa: E501
|
242
242
|
|
243
243
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -248,7 +248,7 @@ class ServiceAccountsV1Api(object):
|
|
248
248
|
|
249
249
|
:param owner: Owner of the namespace (required)
|
250
250
|
:type owner: str
|
251
|
-
:param entity:
|
251
|
+
:param entity: Entity (required)
|
252
252
|
:type entity: str
|
253
253
|
:param body: Token body (required)
|
254
254
|
:type body: V1Token
|
@@ -269,104 +269,105 @@ class ServiceAccountsV1Api(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(V1Token, status_code(int), headers(HTTPHeaderDict))
|
276
277
|
"""
|
277
278
|
|
278
|
-
|
279
|
+
_params = locals()
|
279
280
|
|
280
|
-
|
281
|
+
_all_params = [
|
281
282
|
'owner',
|
282
283
|
'entity',
|
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_service_account_token" %
|
303
|
+
" to method create_service_account_token" % _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['entity']:
|
316
|
+
_path_params['entity'] = _params['entity']
|
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': "V1Token",
|
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}/sa/{entity}/tokens', '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_service_account(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> None: # noqa: E501
|
370
371
|
"""Delete service account # noqa: E501
|
371
372
|
|
372
373
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -397,7 +398,8 @@ class ServiceAccountsV1Api(object):
|
|
397
398
|
kwargs['_return_http_data_only'] = True
|
398
399
|
return self.delete_service_account_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
399
400
|
|
400
|
-
|
401
|
+
@validate_arguments
|
402
|
+
def delete_service_account_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
|
401
403
|
"""Delete service account # noqa: E501
|
402
404
|
|
403
405
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -427,88 +429,89 @@ class ServiceAccountsV1Api(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
|
'uuid'
|
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_service_account" %
|
462
|
+
" to method delete_service_account" % _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['uuid']:
|
475
|
+
_path_params['uuid'] = _params['uuid']
|
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}/sa/{uuid}', '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_service_account_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> None: # noqa: E501
|
512
515
|
"""Delete service account token # noqa: E501
|
513
516
|
|
514
517
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -541,7 +544,8 @@ class ServiceAccountsV1Api(object):
|
|
541
544
|
kwargs['_return_http_data_only'] = True
|
542
545
|
return self.delete_service_account_token_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
543
546
|
|
544
|
-
|
547
|
+
@validate_arguments
|
548
|
+
def delete_service_account_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
545
549
|
"""Delete service account token # noqa: E501
|
546
550
|
|
547
551
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -573,95 +577,93 @@ class ServiceAccountsV1Api(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
|
'entity',
|
587
592
|
'uuid'
|
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_service_account_token" %
|
611
|
+
" to method delete_service_account_token" % _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['entity']:
|
624
|
+
_path_params['entity'] = _params['entity']
|
625
|
+
|
626
|
+
if _params['uuid']:
|
627
|
+
_path_params['uuid'] = _params['uuid']
|
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}/sa/{entity}/tokens/{uuid}', '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_service_account(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs) -> V1ServiceAccount: # noqa: E501
|
665
667
|
"""Get service account # noqa: E501
|
666
668
|
|
667
669
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -692,7 +694,8 @@ class ServiceAccountsV1Api(object):
|
|
692
694
|
kwargs['_return_http_data_only'] = True
|
693
695
|
return self.get_service_account_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
694
696
|
|
695
|
-
|
697
|
+
@validate_arguments
|
698
|
+
def get_service_account_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the entity")], **kwargs): # noqa: E501
|
696
699
|
"""Get service account # noqa: E501
|
697
700
|
|
698
701
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -722,93 +725,94 @@ class ServiceAccountsV1Api(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(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict))
|
729
733
|
"""
|
730
734
|
|
731
|
-
|
735
|
+
_params = locals()
|
732
736
|
|
733
|
-
|
737
|
+
_all_params = [
|
734
738
|
'owner',
|
735
739
|
'uuid'
|
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_service_account" %
|
758
|
+
" to method get_service_account" % _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['uuid']:
|
771
|
+
_path_params['uuid'] = _params['uuid']
|
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: "V1ServiceAccount",
|
789
|
-
204: "object",
|
790
|
-
403: "object",
|
791
|
-
404: "object",
|
790
|
+
_response_types_map = {
|
791
|
+
'200': "V1ServiceAccount",
|
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}/sa/{uuid}', '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_service_account_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> V1Token: # noqa: E501
|
812
816
|
"""Get service account token # noqa: E501
|
813
817
|
|
814
818
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -841,7 +845,8 @@ class ServiceAccountsV1Api(object):
|
|
841
845
|
kwargs['_return_http_data_only'] = True
|
842
846
|
return self.get_service_account_token_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
843
847
|
|
844
|
-
|
848
|
+
@validate_arguments
|
849
|
+
def get_service_account_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
845
850
|
"""Get service account token # noqa: E501
|
846
851
|
|
847
852
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -873,106 +878,104 @@ class ServiceAccountsV1Api(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(V1Token, status_code(int), headers(HTTPHeaderDict))
|
880
886
|
"""
|
881
887
|
|
882
|
-
|
888
|
+
_params = locals()
|
883
889
|
|
884
|
-
|
890
|
+
_all_params = [
|
885
891
|
'owner',
|
886
892
|
'entity',
|
887
893
|
'uuid'
|
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_service_account_token" %
|
912
|
+
" to method get_service_account_token" % _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['entity']:
|
925
|
+
_path_params['entity'] = _params['entity']
|
926
|
+
|
927
|
+
if _params['uuid']:
|
928
|
+
_path_params['uuid'] = _params['uuid']
|
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: "V1Token",
|
947
|
-
204: "object",
|
948
|
-
403: "object",
|
949
|
-
404: "object",
|
947
|
+
_response_types_map = {
|
948
|
+
'200': "V1Token",
|
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}/sa/{entity}/tokens/{uuid}', '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_service_account_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) -> V1ListServiceAccountsResponse: # noqa: E501
|
970
973
|
"""List service accounts names # 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_service_account_names(owner, async_req=True)
|
978
|
+
>>> thread = api.list_service_account_names(owner, 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)
|
@@ -1007,15 +1010,16 @@ class ServiceAccountsV1Api(object):
|
|
1007
1010
|
:rtype: V1ListServiceAccountsResponse
|
1008
1011
|
"""
|
1009
1012
|
kwargs['_return_http_data_only'] = True
|
1010
|
-
return self.list_service_account_names_with_http_info(owner, **kwargs) # noqa: E501
|
1013
|
+
return self.list_service_account_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1011
1014
|
|
1012
|
-
|
1015
|
+
@validate_arguments
|
1016
|
+
def list_service_account_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
|
1013
1017
|
"""List service accounts names # noqa: E501
|
1014
1018
|
|
1015
1019
|
This method makes a synchronous HTTP request by default. To make an
|
1016
1020
|
asynchronous HTTP request, please pass async_req=True
|
1017
1021
|
|
1018
|
-
>>> thread = api.list_service_account_names_with_http_info(owner, async_req=True)
|
1022
|
+
>>> thread = api.list_service_account_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1019
1023
|
>>> result = thread.get()
|
1020
1024
|
|
1021
1025
|
:param owner: Owner of the namespace (required)
|
@@ -1051,15 +1055,16 @@ class ServiceAccountsV1Api(object):
|
|
1051
1055
|
request; this effectively ignores the authentication
|
1052
1056
|
in the spec for a single request.
|
1053
1057
|
:type _request_auth: dict, optional
|
1058
|
+
:type _content_type: string, optional: force content-type for the request
|
1054
1059
|
:return: Returns the result object.
|
1055
1060
|
If the method is called asynchronously,
|
1056
1061
|
returns the request thread.
|
1057
1062
|
:rtype: tuple(V1ListServiceAccountsResponse, status_code(int), headers(HTTPHeaderDict))
|
1058
1063
|
"""
|
1059
1064
|
|
1060
|
-
|
1065
|
+
_params = locals()
|
1061
1066
|
|
1062
|
-
|
1067
|
+
_all_params = [
|
1063
1068
|
'owner',
|
1064
1069
|
'offset',
|
1065
1070
|
'limit',
|
@@ -1069,95 +1074,105 @@ class ServiceAccountsV1Api(object):
|
|
1069
1074
|
'mode',
|
1070
1075
|
'no_page'
|
1071
1076
|
]
|
1072
|
-
|
1077
|
+
_all_params.extend(
|
1073
1078
|
[
|
1074
1079
|
'async_req',
|
1075
1080
|
'_return_http_data_only',
|
1076
1081
|
'_preload_content',
|
1077
1082
|
'_request_timeout',
|
1078
|
-
'_request_auth'
|
1083
|
+
'_request_auth',
|
1084
|
+
'_content_type',
|
1085
|
+
'_headers'
|
1079
1086
|
]
|
1080
1087
|
)
|
1081
1088
|
|
1082
|
-
|
1083
|
-
|
1089
|
+
# validate the arguments
|
1090
|
+
for _key, _val in _params['kwargs'].items():
|
1091
|
+
if _key not in _all_params:
|
1084
1092
|
raise ApiTypeError(
|
1085
1093
|
"Got an unexpected keyword argument '%s'"
|
1086
|
-
" to method list_service_account_names" %
|
1094
|
+
" to method list_service_account_names" % _key
|
1087
1095
|
)
|
1088
|
-
|
1089
|
-
del
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
if 'limit'
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
if '
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1096
|
+
_params[_key] = _val
|
1097
|
+
del _params['kwargs']
|
1098
|
+
|
1099
|
+
_collection_formats = {}
|
1100
|
+
|
1101
|
+
# process the path parameters
|
1102
|
+
_path_params = {}
|
1103
|
+
if _params['owner']:
|
1104
|
+
_path_params['owner'] = _params['owner']
|
1105
|
+
|
1106
|
+
|
1107
|
+
# process the query parameters
|
1108
|
+
_query_params = []
|
1109
|
+
if _params.get('offset') is not None: # noqa: E501
|
1110
|
+
_query_params.append(('offset', _params['offset']))
|
1111
|
+
|
1112
|
+
if _params.get('limit') is not None: # noqa: E501
|
1113
|
+
_query_params.append(('limit', _params['limit']))
|
1114
|
+
|
1115
|
+
if _params.get('sort') is not None: # noqa: E501
|
1116
|
+
_query_params.append(('sort', _params['sort']))
|
1117
|
+
|
1118
|
+
if _params.get('query') is not None: # noqa: E501
|
1119
|
+
_query_params.append(('query', _params['query']))
|
1120
|
+
|
1121
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1122
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1123
|
+
|
1124
|
+
if _params.get('mode') is not None: # noqa: E501
|
1125
|
+
_query_params.append(('mode', _params['mode']))
|
1126
|
+
|
1127
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1128
|
+
_query_params.append(('no_page', _params['no_page']))
|
1129
|
+
|
1130
|
+
# process the header parameters
|
1131
|
+
_header_params = dict(_params.get('_headers', {}))
|
1132
|
+
# process the form parameters
|
1133
|
+
_form_params = []
|
1134
|
+
_files = {}
|
1135
|
+
# process the body parameter
|
1136
|
+
_body_params = None
|
1137
|
+
# set the HTTP header `Accept`
|
1138
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1125
1139
|
['application/json']) # noqa: E501
|
1126
1140
|
|
1127
|
-
#
|
1128
|
-
|
1141
|
+
# authentication setting
|
1142
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1129
1143
|
|
1130
|
-
|
1131
|
-
200: "V1ListServiceAccountsResponse",
|
1132
|
-
204: "object",
|
1133
|
-
403: "object",
|
1134
|
-
404: "object",
|
1144
|
+
_response_types_map = {
|
1145
|
+
'200': "V1ListServiceAccountsResponse",
|
1146
|
+
'204': "object",
|
1147
|
+
'403': "object",
|
1148
|
+
'404': "object",
|
1135
1149
|
}
|
1136
1150
|
|
1137
1151
|
return self.api_client.call_api(
|
1138
1152
|
'/api/v1/orgs/{owner}/sa/names', 'GET',
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
body=
|
1143
|
-
post_params=
|
1144
|
-
files=
|
1145
|
-
response_types_map=
|
1146
|
-
auth_settings=
|
1147
|
-
async_req=
|
1148
|
-
_return_http_data_only=
|
1149
|
-
_preload_content=
|
1150
|
-
_request_timeout=
|
1151
|
-
collection_formats=
|
1152
|
-
_request_auth=
|
1153
|
-
|
1154
|
-
|
1153
|
+
_path_params,
|
1154
|
+
_query_params,
|
1155
|
+
_header_params,
|
1156
|
+
body=_body_params,
|
1157
|
+
post_params=_form_params,
|
1158
|
+
files=_files,
|
1159
|
+
response_types_map=_response_types_map,
|
1160
|
+
auth_settings=_auth_settings,
|
1161
|
+
async_req=_params.get('async_req'),
|
1162
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1163
|
+
_preload_content=_params.get('_preload_content', True),
|
1164
|
+
_request_timeout=_params.get('_request_timeout'),
|
1165
|
+
collection_formats=_collection_formats,
|
1166
|
+
_request_auth=_params.get('_request_auth'))
|
1167
|
+
|
1168
|
+
@validate_arguments
|
1169
|
+
def list_service_account_tokens(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="SubEntity uuid")], entity : Annotated[Optional[StrictStr], Field(description="Entity name under namesapce.")] = None, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTokenResponse: # noqa: E501
|
1155
1170
|
"""List service account tokens # noqa: E501
|
1156
1171
|
|
1157
1172
|
This method makes a synchronous HTTP request by default. To make an
|
1158
1173
|
asynchronous HTTP request, please pass async_req=True
|
1159
1174
|
|
1160
|
-
>>> thread = api.list_service_account_tokens(owner, uuid, async_req=True)
|
1175
|
+
>>> thread = api.list_service_account_tokens(owner, uuid, entity, offset, limit, sort, query, no_page, async_req=True)
|
1161
1176
|
>>> result = thread.get()
|
1162
1177
|
|
1163
1178
|
:param owner: Owner of the namespace (required)
|
@@ -1192,15 +1207,16 @@ class ServiceAccountsV1Api(object):
|
|
1192
1207
|
:rtype: V1ListTokenResponse
|
1193
1208
|
"""
|
1194
1209
|
kwargs['_return_http_data_only'] = True
|
1195
|
-
return self.list_service_account_tokens_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
1210
|
+
return self.list_service_account_tokens_with_http_info(owner, uuid, entity, offset, limit, sort, query, no_page, **kwargs) # noqa: E501
|
1196
1211
|
|
1197
|
-
|
1212
|
+
@validate_arguments
|
1213
|
+
def list_service_account_tokens_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], uuid : Annotated[StrictStr, Field(..., description="SubEntity uuid")], entity : Annotated[Optional[StrictStr], Field(description="Entity name under namesapce.")] = None, 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, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
1198
1214
|
"""List service account tokens # noqa: E501
|
1199
1215
|
|
1200
1216
|
This method makes a synchronous HTTP request by default. To make an
|
1201
1217
|
asynchronous HTTP request, please pass async_req=True
|
1202
1218
|
|
1203
|
-
>>> thread = api.list_service_account_tokens_with_http_info(owner, uuid, async_req=True)
|
1219
|
+
>>> thread = api.list_service_account_tokens_with_http_info(owner, uuid, entity, offset, limit, sort, query, no_page, async_req=True)
|
1204
1220
|
>>> result = thread.get()
|
1205
1221
|
|
1206
1222
|
:param owner: Owner of the namespace (required)
|
@@ -1236,15 +1252,16 @@ class ServiceAccountsV1Api(object):
|
|
1236
1252
|
request; this effectively ignores the authentication
|
1237
1253
|
in the spec for a single request.
|
1238
1254
|
:type _request_auth: dict, optional
|
1255
|
+
:type _content_type: string, optional: force content-type for the request
|
1239
1256
|
:return: Returns the result object.
|
1240
1257
|
If the method is called asynchronously,
|
1241
1258
|
returns the request thread.
|
1242
1259
|
:rtype: tuple(V1ListTokenResponse, status_code(int), headers(HTTPHeaderDict))
|
1243
1260
|
"""
|
1244
1261
|
|
1245
|
-
|
1262
|
+
_params = locals()
|
1246
1263
|
|
1247
|
-
|
1264
|
+
_all_params = [
|
1248
1265
|
'owner',
|
1249
1266
|
'uuid',
|
1250
1267
|
'entity',
|
@@ -1254,99 +1271,105 @@ class ServiceAccountsV1Api(object):
|
|
1254
1271
|
'query',
|
1255
1272
|
'no_page'
|
1256
1273
|
]
|
1257
|
-
|
1274
|
+
_all_params.extend(
|
1258
1275
|
[
|
1259
1276
|
'async_req',
|
1260
1277
|
'_return_http_data_only',
|
1261
1278
|
'_preload_content',
|
1262
1279
|
'_request_timeout',
|
1263
|
-
'_request_auth'
|
1280
|
+
'_request_auth',
|
1281
|
+
'_content_type',
|
1282
|
+
'_headers'
|
1264
1283
|
]
|
1265
1284
|
)
|
1266
1285
|
|
1267
|
-
|
1268
|
-
|
1286
|
+
# validate the arguments
|
1287
|
+
for _key, _val in _params['kwargs'].items():
|
1288
|
+
if _key not in _all_params:
|
1269
1289
|
raise ApiTypeError(
|
1270
1290
|
"Got an unexpected keyword argument '%s'"
|
1271
|
-
" to method list_service_account_tokens" %
|
1291
|
+
" to method list_service_account_tokens" % _key
|
1272
1292
|
)
|
1273
|
-
|
1274
|
-
del
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
if
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
if '
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
if '
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
if 'query'
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
#
|
1313
|
-
|
1293
|
+
_params[_key] = _val
|
1294
|
+
del _params['kwargs']
|
1295
|
+
|
1296
|
+
_collection_formats = {}
|
1297
|
+
|
1298
|
+
# process the path parameters
|
1299
|
+
_path_params = {}
|
1300
|
+
if _params['owner']:
|
1301
|
+
_path_params['owner'] = _params['owner']
|
1302
|
+
|
1303
|
+
if _params['uuid']:
|
1304
|
+
_path_params['uuid'] = _params['uuid']
|
1305
|
+
|
1306
|
+
|
1307
|
+
# process the query parameters
|
1308
|
+
_query_params = []
|
1309
|
+
if _params.get('entity') is not None: # noqa: E501
|
1310
|
+
_query_params.append(('entity', _params['entity']))
|
1311
|
+
|
1312
|
+
if _params.get('offset') is not None: # noqa: E501
|
1313
|
+
_query_params.append(('offset', _params['offset']))
|
1314
|
+
|
1315
|
+
if _params.get('limit') is not None: # noqa: E501
|
1316
|
+
_query_params.append(('limit', _params['limit']))
|
1317
|
+
|
1318
|
+
if _params.get('sort') is not None: # noqa: E501
|
1319
|
+
_query_params.append(('sort', _params['sort']))
|
1320
|
+
|
1321
|
+
if _params.get('query') is not None: # noqa: E501
|
1322
|
+
_query_params.append(('query', _params['query']))
|
1323
|
+
|
1324
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1325
|
+
_query_params.append(('no_page', _params['no_page']))
|
1326
|
+
|
1327
|
+
# process the header parameters
|
1328
|
+
_header_params = dict(_params.get('_headers', {}))
|
1329
|
+
# process the form parameters
|
1330
|
+
_form_params = []
|
1331
|
+
_files = {}
|
1332
|
+
# process the body parameter
|
1333
|
+
_body_params = None
|
1334
|
+
# set the HTTP header `Accept`
|
1335
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1314
1336
|
['application/json']) # noqa: E501
|
1315
1337
|
|
1316
|
-
#
|
1317
|
-
|
1338
|
+
# authentication setting
|
1339
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1318
1340
|
|
1319
|
-
|
1320
|
-
200: "V1ListTokenResponse",
|
1321
|
-
204: "object",
|
1322
|
-
403: "object",
|
1323
|
-
404: "object",
|
1341
|
+
_response_types_map = {
|
1342
|
+
'200': "V1ListTokenResponse",
|
1343
|
+
'204': "object",
|
1344
|
+
'403': "object",
|
1345
|
+
'404': "object",
|
1324
1346
|
}
|
1325
1347
|
|
1326
1348
|
return self.api_client.call_api(
|
1327
1349
|
'/api/v1/orgs/{owner}/sa/{uuid}/tokens', 'GET',
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
body=
|
1332
|
-
post_params=
|
1333
|
-
files=
|
1334
|
-
response_types_map=
|
1335
|
-
auth_settings=
|
1336
|
-
async_req=
|
1337
|
-
_return_http_data_only=
|
1338
|
-
_preload_content=
|
1339
|
-
_request_timeout=
|
1340
|
-
collection_formats=
|
1341
|
-
_request_auth=
|
1342
|
-
|
1343
|
-
|
1350
|
+
_path_params,
|
1351
|
+
_query_params,
|
1352
|
+
_header_params,
|
1353
|
+
body=_body_params,
|
1354
|
+
post_params=_form_params,
|
1355
|
+
files=_files,
|
1356
|
+
response_types_map=_response_types_map,
|
1357
|
+
auth_settings=_auth_settings,
|
1358
|
+
async_req=_params.get('async_req'),
|
1359
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1360
|
+
_preload_content=_params.get('_preload_content', True),
|
1361
|
+
_request_timeout=_params.get('_request_timeout'),
|
1362
|
+
collection_formats=_collection_formats,
|
1363
|
+
_request_auth=_params.get('_request_auth'))
|
1364
|
+
|
1365
|
+
@validate_arguments
|
1366
|
+
def list_service_accounts(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) -> V1ListServiceAccountsResponse: # noqa: E501
|
1344
1367
|
"""List service accounts # noqa: E501
|
1345
1368
|
|
1346
1369
|
This method makes a synchronous HTTP request by default. To make an
|
1347
1370
|
asynchronous HTTP request, please pass async_req=True
|
1348
1371
|
|
1349
|
-
>>> thread = api.list_service_accounts(owner, async_req=True)
|
1372
|
+
>>> thread = api.list_service_accounts(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1350
1373
|
>>> result = thread.get()
|
1351
1374
|
|
1352
1375
|
:param owner: Owner of the namespace (required)
|
@@ -1381,15 +1404,16 @@ class ServiceAccountsV1Api(object):
|
|
1381
1404
|
:rtype: V1ListServiceAccountsResponse
|
1382
1405
|
"""
|
1383
1406
|
kwargs['_return_http_data_only'] = True
|
1384
|
-
return self.list_service_accounts_with_http_info(owner, **kwargs) # noqa: E501
|
1407
|
+
return self.list_service_accounts_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1385
1408
|
|
1386
|
-
|
1409
|
+
@validate_arguments
|
1410
|
+
def list_service_accounts_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
|
1387
1411
|
"""List service accounts # noqa: E501
|
1388
1412
|
|
1389
1413
|
This method makes a synchronous HTTP request by default. To make an
|
1390
1414
|
asynchronous HTTP request, please pass async_req=True
|
1391
1415
|
|
1392
|
-
>>> thread = api.list_service_accounts_with_http_info(owner, async_req=True)
|
1416
|
+
>>> thread = api.list_service_accounts_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1393
1417
|
>>> result = thread.get()
|
1394
1418
|
|
1395
1419
|
:param owner: Owner of the namespace (required)
|
@@ -1425,15 +1449,16 @@ class ServiceAccountsV1Api(object):
|
|
1425
1449
|
request; this effectively ignores the authentication
|
1426
1450
|
in the spec for a single request.
|
1427
1451
|
:type _request_auth: dict, optional
|
1452
|
+
:type _content_type: string, optional: force content-type for the request
|
1428
1453
|
:return: Returns the result object.
|
1429
1454
|
If the method is called asynchronously,
|
1430
1455
|
returns the request thread.
|
1431
1456
|
:rtype: tuple(V1ListServiceAccountsResponse, status_code(int), headers(HTTPHeaderDict))
|
1432
1457
|
"""
|
1433
1458
|
|
1434
|
-
|
1459
|
+
_params = locals()
|
1435
1460
|
|
1436
|
-
|
1461
|
+
_all_params = [
|
1437
1462
|
'owner',
|
1438
1463
|
'offset',
|
1439
1464
|
'limit',
|
@@ -1443,89 +1468,99 @@ class ServiceAccountsV1Api(object):
|
|
1443
1468
|
'mode',
|
1444
1469
|
'no_page'
|
1445
1470
|
]
|
1446
|
-
|
1471
|
+
_all_params.extend(
|
1447
1472
|
[
|
1448
1473
|
'async_req',
|
1449
1474
|
'_return_http_data_only',
|
1450
1475
|
'_preload_content',
|
1451
1476
|
'_request_timeout',
|
1452
|
-
'_request_auth'
|
1477
|
+
'_request_auth',
|
1478
|
+
'_content_type',
|
1479
|
+
'_headers'
|
1453
1480
|
]
|
1454
1481
|
)
|
1455
1482
|
|
1456
|
-
|
1457
|
-
|
1483
|
+
# validate the arguments
|
1484
|
+
for _key, _val in _params['kwargs'].items():
|
1485
|
+
if _key not in _all_params:
|
1458
1486
|
raise ApiTypeError(
|
1459
1487
|
"Got an unexpected keyword argument '%s'"
|
1460
|
-
" to method list_service_accounts" %
|
1488
|
+
" to method list_service_accounts" % _key
|
1461
1489
|
)
|
1462
|
-
|
1463
|
-
del
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
if 'limit'
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
if '
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1490
|
+
_params[_key] = _val
|
1491
|
+
del _params['kwargs']
|
1492
|
+
|
1493
|
+
_collection_formats = {}
|
1494
|
+
|
1495
|
+
# process the path parameters
|
1496
|
+
_path_params = {}
|
1497
|
+
if _params['owner']:
|
1498
|
+
_path_params['owner'] = _params['owner']
|
1499
|
+
|
1500
|
+
|
1501
|
+
# process the query parameters
|
1502
|
+
_query_params = []
|
1503
|
+
if _params.get('offset') is not None: # noqa: E501
|
1504
|
+
_query_params.append(('offset', _params['offset']))
|
1505
|
+
|
1506
|
+
if _params.get('limit') is not None: # noqa: E501
|
1507
|
+
_query_params.append(('limit', _params['limit']))
|
1508
|
+
|
1509
|
+
if _params.get('sort') is not None: # noqa: E501
|
1510
|
+
_query_params.append(('sort', _params['sort']))
|
1511
|
+
|
1512
|
+
if _params.get('query') is not None: # noqa: E501
|
1513
|
+
_query_params.append(('query', _params['query']))
|
1514
|
+
|
1515
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1516
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1517
|
+
|
1518
|
+
if _params.get('mode') is not None: # noqa: E501
|
1519
|
+
_query_params.append(('mode', _params['mode']))
|
1520
|
+
|
1521
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1522
|
+
_query_params.append(('no_page', _params['no_page']))
|
1523
|
+
|
1524
|
+
# process the header parameters
|
1525
|
+
_header_params = dict(_params.get('_headers', {}))
|
1526
|
+
# process the form parameters
|
1527
|
+
_form_params = []
|
1528
|
+
_files = {}
|
1529
|
+
# process the body parameter
|
1530
|
+
_body_params = None
|
1531
|
+
# set the HTTP header `Accept`
|
1532
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1499
1533
|
['application/json']) # noqa: E501
|
1500
1534
|
|
1501
|
-
#
|
1502
|
-
|
1535
|
+
# authentication setting
|
1536
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1503
1537
|
|
1504
|
-
|
1505
|
-
200: "V1ListServiceAccountsResponse",
|
1506
|
-
204: "object",
|
1507
|
-
403: "object",
|
1508
|
-
404: "object",
|
1538
|
+
_response_types_map = {
|
1539
|
+
'200': "V1ListServiceAccountsResponse",
|
1540
|
+
'204': "object",
|
1541
|
+
'403': "object",
|
1542
|
+
'404': "object",
|
1509
1543
|
}
|
1510
1544
|
|
1511
1545
|
return self.api_client.call_api(
|
1512
1546
|
'/api/v1/orgs/{owner}/sa', 'GET',
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
body=
|
1517
|
-
post_params=
|
1518
|
-
files=
|
1519
|
-
response_types_map=
|
1520
|
-
auth_settings=
|
1521
|
-
async_req=
|
1522
|
-
_return_http_data_only=
|
1523
|
-
_preload_content=
|
1524
|
-
_request_timeout=
|
1525
|
-
collection_formats=
|
1526
|
-
_request_auth=
|
1527
|
-
|
1528
|
-
|
1547
|
+
_path_params,
|
1548
|
+
_query_params,
|
1549
|
+
_header_params,
|
1550
|
+
body=_body_params,
|
1551
|
+
post_params=_form_params,
|
1552
|
+
files=_files,
|
1553
|
+
response_types_map=_response_types_map,
|
1554
|
+
auth_settings=_auth_settings,
|
1555
|
+
async_req=_params.get('async_req'),
|
1556
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1557
|
+
_preload_content=_params.get('_preload_content', True),
|
1558
|
+
_request_timeout=_params.get('_request_timeout'),
|
1559
|
+
collection_formats=_collection_formats,
|
1560
|
+
_request_auth=_params.get('_request_auth'))
|
1561
|
+
|
1562
|
+
@validate_arguments
|
1563
|
+
def patch_service_account(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], sa_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs) -> V1ServiceAccount: # noqa: E501
|
1529
1564
|
"""Patch service account # noqa: E501
|
1530
1565
|
|
1531
1566
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1558,7 +1593,8 @@ class ServiceAccountsV1Api(object):
|
|
1558
1593
|
kwargs['_return_http_data_only'] = True
|
1559
1594
|
return self.patch_service_account_with_http_info(owner, sa_uuid, body, **kwargs) # noqa: E501
|
1560
1595
|
|
1561
|
-
|
1596
|
+
@validate_arguments
|
1597
|
+
def patch_service_account_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], sa_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs): # noqa: E501
|
1562
1598
|
"""Patch service account # noqa: E501
|
1563
1599
|
|
1564
1600
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1590,104 +1626,105 @@ class ServiceAccountsV1Api(object):
|
|
1590
1626
|
request; this effectively ignores the authentication
|
1591
1627
|
in the spec for a single request.
|
1592
1628
|
:type _request_auth: dict, optional
|
1629
|
+
:type _content_type: string, optional: force content-type for the request
|
1593
1630
|
:return: Returns the result object.
|
1594
1631
|
If the method is called asynchronously,
|
1595
1632
|
returns the request thread.
|
1596
1633
|
:rtype: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict))
|
1597
1634
|
"""
|
1598
1635
|
|
1599
|
-
|
1636
|
+
_params = locals()
|
1600
1637
|
|
1601
|
-
|
1638
|
+
_all_params = [
|
1602
1639
|
'owner',
|
1603
1640
|
'sa_uuid',
|
1604
1641
|
'body'
|
1605
1642
|
]
|
1606
|
-
|
1643
|
+
_all_params.extend(
|
1607
1644
|
[
|
1608
1645
|
'async_req',
|
1609
1646
|
'_return_http_data_only',
|
1610
1647
|
'_preload_content',
|
1611
1648
|
'_request_timeout',
|
1612
|
-
'_request_auth'
|
1649
|
+
'_request_auth',
|
1650
|
+
'_content_type',
|
1651
|
+
'_headers'
|
1613
1652
|
]
|
1614
1653
|
)
|
1615
1654
|
|
1616
|
-
|
1617
|
-
|
1655
|
+
# validate the arguments
|
1656
|
+
for _key, _val in _params['kwargs'].items():
|
1657
|
+
if _key not in _all_params:
|
1618
1658
|
raise ApiTypeError(
|
1619
1659
|
"Got an unexpected keyword argument '%s'"
|
1620
|
-
" to method patch_service_account" %
|
1660
|
+
" to method patch_service_account" % _key
|
1621
1661
|
)
|
1622
|
-
|
1623
|
-
del
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
if
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
local_var_files = {}
|
1651
|
-
|
1652
|
-
body_params = None
|
1653
|
-
if 'body' in local_var_params:
|
1654
|
-
body_params = local_var_params['body']
|
1655
|
-
# HTTP header `Accept`
|
1656
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1657
|
-
['application/json']) # noqa: E501
|
1658
|
-
|
1659
|
-
# HTTP header `Content-Type`
|
1660
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1662
|
+
_params[_key] = _val
|
1663
|
+
del _params['kwargs']
|
1664
|
+
|
1665
|
+
_collection_formats = {}
|
1666
|
+
|
1667
|
+
# process the path parameters
|
1668
|
+
_path_params = {}
|
1669
|
+
if _params['owner']:
|
1670
|
+
_path_params['owner'] = _params['owner']
|
1671
|
+
|
1672
|
+
if _params['sa_uuid']:
|
1673
|
+
_path_params['sa.uuid'] = _params['sa_uuid']
|
1674
|
+
|
1675
|
+
|
1676
|
+
# process the query parameters
|
1677
|
+
_query_params = []
|
1678
|
+
# process the header parameters
|
1679
|
+
_header_params = dict(_params.get('_headers', {}))
|
1680
|
+
# process the form parameters
|
1681
|
+
_form_params = []
|
1682
|
+
_files = {}
|
1683
|
+
# process the body parameter
|
1684
|
+
_body_params = None
|
1685
|
+
if _params['body']:
|
1686
|
+
_body_params = _params['body']
|
1687
|
+
|
1688
|
+
# set the HTTP header `Accept`
|
1689
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1661
1690
|
['application/json']) # noqa: E501
|
1662
1691
|
|
1663
|
-
#
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1692
|
+
# set the HTTP header `Content-Type`
|
1693
|
+
_content_types_list = _params.get('_content_type',
|
1694
|
+
self.api_client.select_header_content_type(
|
1695
|
+
['application/json']))
|
1696
|
+
if _content_types_list:
|
1697
|
+
_header_params['Content-Type'] = _content_types_list
|
1698
|
+
|
1699
|
+
# authentication setting
|
1700
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1701
|
+
|
1702
|
+
_response_types_map = {
|
1703
|
+
'200': "V1ServiceAccount",
|
1704
|
+
'204': "object",
|
1705
|
+
'403': "object",
|
1706
|
+
'404': "object",
|
1671
1707
|
}
|
1672
1708
|
|
1673
1709
|
return self.api_client.call_api(
|
1674
1710
|
'/api/v1/orgs/{owner}/sa/{sa.uuid}', 'PATCH',
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
body=
|
1679
|
-
post_params=
|
1680
|
-
files=
|
1681
|
-
response_types_map=
|
1682
|
-
auth_settings=
|
1683
|
-
async_req=
|
1684
|
-
_return_http_data_only=
|
1685
|
-
_preload_content=
|
1686
|
-
_request_timeout=
|
1687
|
-
collection_formats=
|
1688
|
-
_request_auth=
|
1689
|
-
|
1690
|
-
|
1711
|
+
_path_params,
|
1712
|
+
_query_params,
|
1713
|
+
_header_params,
|
1714
|
+
body=_body_params,
|
1715
|
+
post_params=_form_params,
|
1716
|
+
files=_files,
|
1717
|
+
response_types_map=_response_types_map,
|
1718
|
+
auth_settings=_auth_settings,
|
1719
|
+
async_req=_params.get('async_req'),
|
1720
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1721
|
+
_preload_content=_params.get('_preload_content', True),
|
1722
|
+
_request_timeout=_params.get('_request_timeout'),
|
1723
|
+
collection_formats=_collection_formats,
|
1724
|
+
_request_auth=_params.get('_request_auth'))
|
1725
|
+
|
1726
|
+
@validate_arguments
|
1727
|
+
def patch_service_account_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
1691
1728
|
"""Patch service account token # noqa: E501
|
1692
1729
|
|
1693
1730
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1698,7 +1735,7 @@ class ServiceAccountsV1Api(object):
|
|
1698
1735
|
|
1699
1736
|
:param owner: Owner of the namespace (required)
|
1700
1737
|
:type owner: str
|
1701
|
-
:param entity:
|
1738
|
+
:param entity: Entity (required)
|
1702
1739
|
:type entity: str
|
1703
1740
|
:param token_uuid: UUID (required)
|
1704
1741
|
:type token_uuid: str
|
@@ -1722,7 +1759,8 @@ class ServiceAccountsV1Api(object):
|
|
1722
1759
|
kwargs['_return_http_data_only'] = True
|
1723
1760
|
return self.patch_service_account_token_with_http_info(owner, entity, token_uuid, body, **kwargs) # noqa: E501
|
1724
1761
|
|
1725
|
-
|
1762
|
+
@validate_arguments
|
1763
|
+
def patch_service_account_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
1726
1764
|
"""Patch service account token # noqa: E501
|
1727
1765
|
|
1728
1766
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1733,7 +1771,7 @@ class ServiceAccountsV1Api(object):
|
|
1733
1771
|
|
1734
1772
|
:param owner: Owner of the namespace (required)
|
1735
1773
|
:type owner: str
|
1736
|
-
:param entity:
|
1774
|
+
:param entity: Entity (required)
|
1737
1775
|
:type entity: str
|
1738
1776
|
:param token_uuid: UUID (required)
|
1739
1777
|
:type token_uuid: str
|
@@ -1756,111 +1794,109 @@ class ServiceAccountsV1Api(object):
|
|
1756
1794
|
request; this effectively ignores the authentication
|
1757
1795
|
in the spec for a single request.
|
1758
1796
|
:type _request_auth: dict, optional
|
1797
|
+
:type _content_type: string, optional: force content-type for the request
|
1759
1798
|
:return: Returns the result object.
|
1760
1799
|
If the method is called asynchronously,
|
1761
1800
|
returns the request thread.
|
1762
1801
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
1763
1802
|
"""
|
1764
1803
|
|
1765
|
-
|
1804
|
+
_params = locals()
|
1766
1805
|
|
1767
|
-
|
1806
|
+
_all_params = [
|
1768
1807
|
'owner',
|
1769
1808
|
'entity',
|
1770
1809
|
'token_uuid',
|
1771
1810
|
'body'
|
1772
1811
|
]
|
1773
|
-
|
1812
|
+
_all_params.extend(
|
1774
1813
|
[
|
1775
1814
|
'async_req',
|
1776
1815
|
'_return_http_data_only',
|
1777
1816
|
'_preload_content',
|
1778
1817
|
'_request_timeout',
|
1779
|
-
'_request_auth'
|
1818
|
+
'_request_auth',
|
1819
|
+
'_content_type',
|
1820
|
+
'_headers'
|
1780
1821
|
]
|
1781
1822
|
)
|
1782
1823
|
|
1783
|
-
|
1784
|
-
|
1824
|
+
# validate the arguments
|
1825
|
+
for _key, _val in _params['kwargs'].items():
|
1826
|
+
if _key not in _all_params:
|
1785
1827
|
raise ApiTypeError(
|
1786
1828
|
"Got an unexpected keyword argument '%s'"
|
1787
|
-
" to method patch_service_account_token" %
|
1829
|
+
" to method patch_service_account_token" % _key
|
1788
1830
|
)
|
1789
|
-
|
1790
|
-
del
|
1791
|
-
# verify the required parameter 'owner' is set
|
1792
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
1793
|
-
local_var_params['owner'] is None): # noqa: E501
|
1794
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `patch_service_account_token`") # noqa: E501
|
1795
|
-
# verify the required parameter 'entity' is set
|
1796
|
-
if self.api_client.client_side_validation and ('entity' not in local_var_params or # noqa: E501
|
1797
|
-
local_var_params['entity'] is None): # noqa: E501
|
1798
|
-
raise ApiValueError("Missing the required parameter `entity` when calling `patch_service_account_token`") # noqa: E501
|
1799
|
-
# verify the required parameter 'token_uuid' is set
|
1800
|
-
if self.api_client.client_side_validation and ('token_uuid' not in local_var_params or # noqa: E501
|
1801
|
-
local_var_params['token_uuid'] is None): # noqa: E501
|
1802
|
-
raise ApiValueError("Missing the required parameter `token_uuid` when calling `patch_service_account_token`") # noqa: E501
|
1803
|
-
# verify the required parameter 'body' is set
|
1804
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
1805
|
-
local_var_params['body'] is None): # noqa: E501
|
1806
|
-
raise ApiValueError("Missing the required parameter `body` when calling `patch_service_account_token`") # noqa: E501
|
1807
|
-
|
1808
|
-
collection_formats = {}
|
1809
|
-
|
1810
|
-
path_params = {}
|
1811
|
-
if 'owner' in local_var_params:
|
1812
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
1813
|
-
if 'entity' in local_var_params:
|
1814
|
-
path_params['entity'] = local_var_params['entity'] # noqa: E501
|
1815
|
-
if 'token_uuid' in local_var_params:
|
1816
|
-
path_params['token.uuid'] = local_var_params['token_uuid'] # noqa: E501
|
1817
|
-
|
1818
|
-
query_params = []
|
1819
|
-
|
1820
|
-
header_params = {}
|
1821
|
-
|
1822
|
-
form_params = []
|
1823
|
-
local_var_files = {}
|
1824
|
-
|
1825
|
-
body_params = None
|
1826
|
-
if 'body' in local_var_params:
|
1827
|
-
body_params = local_var_params['body']
|
1828
|
-
# HTTP header `Accept`
|
1829
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1830
|
-
['application/json']) # noqa: E501
|
1831
|
+
_params[_key] = _val
|
1832
|
+
del _params['kwargs']
|
1831
1833
|
|
1832
|
-
|
1833
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1834
|
-
['application/json']) # noqa: E501
|
1834
|
+
_collection_formats = {}
|
1835
1835
|
|
1836
|
-
#
|
1837
|
-
|
1836
|
+
# process the path parameters
|
1837
|
+
_path_params = {}
|
1838
|
+
if _params['owner']:
|
1839
|
+
_path_params['owner'] = _params['owner']
|
1838
1840
|
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1841
|
+
if _params['entity']:
|
1842
|
+
_path_params['entity'] = _params['entity']
|
1843
|
+
|
1844
|
+
if _params['token_uuid']:
|
1845
|
+
_path_params['token.uuid'] = _params['token_uuid']
|
1846
|
+
|
1847
|
+
|
1848
|
+
# process the query parameters
|
1849
|
+
_query_params = []
|
1850
|
+
# process the header parameters
|
1851
|
+
_header_params = dict(_params.get('_headers', {}))
|
1852
|
+
# process the form parameters
|
1853
|
+
_form_params = []
|
1854
|
+
_files = {}
|
1855
|
+
# process the body parameter
|
1856
|
+
_body_params = None
|
1857
|
+
if _params['body']:
|
1858
|
+
_body_params = _params['body']
|
1859
|
+
|
1860
|
+
# set the HTTP header `Accept`
|
1861
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1862
|
+
['application/json']) # noqa: E501
|
1863
|
+
|
1864
|
+
# set the HTTP header `Content-Type`
|
1865
|
+
_content_types_list = _params.get('_content_type',
|
1866
|
+
self.api_client.select_header_content_type(
|
1867
|
+
['application/json']))
|
1868
|
+
if _content_types_list:
|
1869
|
+
_header_params['Content-Type'] = _content_types_list
|
1870
|
+
|
1871
|
+
# authentication setting
|
1872
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1873
|
+
|
1874
|
+
_response_types_map = {
|
1875
|
+
'200': "V1Token",
|
1876
|
+
'204': "object",
|
1877
|
+
'403': "object",
|
1878
|
+
'404': "object",
|
1844
1879
|
}
|
1845
1880
|
|
1846
1881
|
return self.api_client.call_api(
|
1847
1882
|
'/api/v1/orgs/{owner}/sa/{entity}/tokens/{token.uuid}', 'PATCH',
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
body=
|
1852
|
-
post_params=
|
1853
|
-
files=
|
1854
|
-
response_types_map=
|
1855
|
-
auth_settings=
|
1856
|
-
async_req=
|
1857
|
-
_return_http_data_only=
|
1858
|
-
_preload_content=
|
1859
|
-
_request_timeout=
|
1860
|
-
collection_formats=
|
1861
|
-
_request_auth=
|
1862
|
-
|
1863
|
-
|
1883
|
+
_path_params,
|
1884
|
+
_query_params,
|
1885
|
+
_header_params,
|
1886
|
+
body=_body_params,
|
1887
|
+
post_params=_form_params,
|
1888
|
+
files=_files,
|
1889
|
+
response_types_map=_response_types_map,
|
1890
|
+
auth_settings=_auth_settings,
|
1891
|
+
async_req=_params.get('async_req'),
|
1892
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1893
|
+
_preload_content=_params.get('_preload_content', True),
|
1894
|
+
_request_timeout=_params.get('_request_timeout'),
|
1895
|
+
collection_formats=_collection_formats,
|
1896
|
+
_request_auth=_params.get('_request_auth'))
|
1897
|
+
|
1898
|
+
@validate_arguments
|
1899
|
+
def update_service_account(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], sa_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs) -> V1ServiceAccount: # noqa: E501
|
1864
1900
|
"""Update service account # noqa: E501
|
1865
1901
|
|
1866
1902
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1893,7 +1929,8 @@ class ServiceAccountsV1Api(object):
|
|
1893
1929
|
kwargs['_return_http_data_only'] = True
|
1894
1930
|
return self.update_service_account_with_http_info(owner, sa_uuid, body, **kwargs) # noqa: E501
|
1895
1931
|
|
1896
|
-
|
1932
|
+
@validate_arguments
|
1933
|
+
def update_service_account_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], sa_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1ServiceAccount, Field(..., description="ServiceAccount body")], **kwargs): # noqa: E501
|
1897
1934
|
"""Update service account # noqa: E501
|
1898
1935
|
|
1899
1936
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -1925,104 +1962,105 @@ class ServiceAccountsV1Api(object):
|
|
1925
1962
|
request; this effectively ignores the authentication
|
1926
1963
|
in the spec for a single request.
|
1927
1964
|
:type _request_auth: dict, optional
|
1965
|
+
:type _content_type: string, optional: force content-type for the request
|
1928
1966
|
:return: Returns the result object.
|
1929
1967
|
If the method is called asynchronously,
|
1930
1968
|
returns the request thread.
|
1931
1969
|
:rtype: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict))
|
1932
1970
|
"""
|
1933
1971
|
|
1934
|
-
|
1972
|
+
_params = locals()
|
1935
1973
|
|
1936
|
-
|
1974
|
+
_all_params = [
|
1937
1975
|
'owner',
|
1938
1976
|
'sa_uuid',
|
1939
1977
|
'body'
|
1940
1978
|
]
|
1941
|
-
|
1979
|
+
_all_params.extend(
|
1942
1980
|
[
|
1943
1981
|
'async_req',
|
1944
1982
|
'_return_http_data_only',
|
1945
1983
|
'_preload_content',
|
1946
1984
|
'_request_timeout',
|
1947
|
-
'_request_auth'
|
1985
|
+
'_request_auth',
|
1986
|
+
'_content_type',
|
1987
|
+
'_headers'
|
1948
1988
|
]
|
1949
1989
|
)
|
1950
1990
|
|
1951
|
-
|
1952
|
-
|
1991
|
+
# validate the arguments
|
1992
|
+
for _key, _val in _params['kwargs'].items():
|
1993
|
+
if _key not in _all_params:
|
1953
1994
|
raise ApiTypeError(
|
1954
1995
|
"Got an unexpected keyword argument '%s'"
|
1955
|
-
" to method update_service_account" %
|
1996
|
+
" to method update_service_account" % _key
|
1956
1997
|
)
|
1957
|
-
|
1958
|
-
del
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
if
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
local_var_files = {}
|
1986
|
-
|
1987
|
-
body_params = None
|
1988
|
-
if 'body' in local_var_params:
|
1989
|
-
body_params = local_var_params['body']
|
1990
|
-
# HTTP header `Accept`
|
1991
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1992
|
-
['application/json']) # noqa: E501
|
1993
|
-
|
1994
|
-
# HTTP header `Content-Type`
|
1995
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1998
|
+
_params[_key] = _val
|
1999
|
+
del _params['kwargs']
|
2000
|
+
|
2001
|
+
_collection_formats = {}
|
2002
|
+
|
2003
|
+
# process the path parameters
|
2004
|
+
_path_params = {}
|
2005
|
+
if _params['owner']:
|
2006
|
+
_path_params['owner'] = _params['owner']
|
2007
|
+
|
2008
|
+
if _params['sa_uuid']:
|
2009
|
+
_path_params['sa.uuid'] = _params['sa_uuid']
|
2010
|
+
|
2011
|
+
|
2012
|
+
# process the query parameters
|
2013
|
+
_query_params = []
|
2014
|
+
# process the header parameters
|
2015
|
+
_header_params = dict(_params.get('_headers', {}))
|
2016
|
+
# process the form parameters
|
2017
|
+
_form_params = []
|
2018
|
+
_files = {}
|
2019
|
+
# process the body parameter
|
2020
|
+
_body_params = None
|
2021
|
+
if _params['body']:
|
2022
|
+
_body_params = _params['body']
|
2023
|
+
|
2024
|
+
# set the HTTP header `Accept`
|
2025
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1996
2026
|
['application/json']) # noqa: E501
|
1997
2027
|
|
1998
|
-
#
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2028
|
+
# set the HTTP header `Content-Type`
|
2029
|
+
_content_types_list = _params.get('_content_type',
|
2030
|
+
self.api_client.select_header_content_type(
|
2031
|
+
['application/json']))
|
2032
|
+
if _content_types_list:
|
2033
|
+
_header_params['Content-Type'] = _content_types_list
|
2034
|
+
|
2035
|
+
# authentication setting
|
2036
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2037
|
+
|
2038
|
+
_response_types_map = {
|
2039
|
+
'200': "V1ServiceAccount",
|
2040
|
+
'204': "object",
|
2041
|
+
'403': "object",
|
2042
|
+
'404': "object",
|
2006
2043
|
}
|
2007
2044
|
|
2008
2045
|
return self.api_client.call_api(
|
2009
2046
|
'/api/v1/orgs/{owner}/sa/{sa.uuid}', 'PUT',
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
body=
|
2014
|
-
post_params=
|
2015
|
-
files=
|
2016
|
-
response_types_map=
|
2017
|
-
auth_settings=
|
2018
|
-
async_req=
|
2019
|
-
_return_http_data_only=
|
2020
|
-
_preload_content=
|
2021
|
-
_request_timeout=
|
2022
|
-
collection_formats=
|
2023
|
-
_request_auth=
|
2024
|
-
|
2025
|
-
|
2047
|
+
_path_params,
|
2048
|
+
_query_params,
|
2049
|
+
_header_params,
|
2050
|
+
body=_body_params,
|
2051
|
+
post_params=_form_params,
|
2052
|
+
files=_files,
|
2053
|
+
response_types_map=_response_types_map,
|
2054
|
+
auth_settings=_auth_settings,
|
2055
|
+
async_req=_params.get('async_req'),
|
2056
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2057
|
+
_preload_content=_params.get('_preload_content', True),
|
2058
|
+
_request_timeout=_params.get('_request_timeout'),
|
2059
|
+
collection_formats=_collection_formats,
|
2060
|
+
_request_auth=_params.get('_request_auth'))
|
2061
|
+
|
2062
|
+
@validate_arguments
|
2063
|
+
def update_service_account_token(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs) -> V1Token: # noqa: E501
|
2026
2064
|
"""Update service account token # noqa: E501
|
2027
2065
|
|
2028
2066
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -2033,7 +2071,7 @@ class ServiceAccountsV1Api(object):
|
|
2033
2071
|
|
2034
2072
|
:param owner: Owner of the namespace (required)
|
2035
2073
|
:type owner: str
|
2036
|
-
:param entity:
|
2074
|
+
:param entity: Entity (required)
|
2037
2075
|
:type entity: str
|
2038
2076
|
:param token_uuid: UUID (required)
|
2039
2077
|
:type token_uuid: str
|
@@ -2057,7 +2095,8 @@ class ServiceAccountsV1Api(object):
|
|
2057
2095
|
kwargs['_return_http_data_only'] = True
|
2058
2096
|
return self.update_service_account_token_with_http_info(owner, entity, token_uuid, body, **kwargs) # noqa: E501
|
2059
2097
|
|
2060
|
-
|
2098
|
+
@validate_arguments
|
2099
|
+
def update_service_account_token_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity")], token_uuid : Annotated[StrictStr, Field(..., description="UUID")], body : Annotated[V1Token, Field(..., description="Token body")], **kwargs): # noqa: E501
|
2061
2100
|
"""Update service account token # noqa: E501
|
2062
2101
|
|
2063
2102
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -2068,7 +2107,7 @@ class ServiceAccountsV1Api(object):
|
|
2068
2107
|
|
2069
2108
|
:param owner: Owner of the namespace (required)
|
2070
2109
|
:type owner: str
|
2071
|
-
:param entity:
|
2110
|
+
:param entity: Entity (required)
|
2072
2111
|
:type entity: str
|
2073
2112
|
:param token_uuid: UUID (required)
|
2074
2113
|
:type token_uuid: str
|
@@ -2091,106 +2130,103 @@ class ServiceAccountsV1Api(object):
|
|
2091
2130
|
request; this effectively ignores the authentication
|
2092
2131
|
in the spec for a single request.
|
2093
2132
|
:type _request_auth: dict, optional
|
2133
|
+
:type _content_type: string, optional: force content-type for the request
|
2094
2134
|
:return: Returns the result object.
|
2095
2135
|
If the method is called asynchronously,
|
2096
2136
|
returns the request thread.
|
2097
2137
|
:rtype: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
|
2098
2138
|
"""
|
2099
2139
|
|
2100
|
-
|
2140
|
+
_params = locals()
|
2101
2141
|
|
2102
|
-
|
2142
|
+
_all_params = [
|
2103
2143
|
'owner',
|
2104
2144
|
'entity',
|
2105
2145
|
'token_uuid',
|
2106
2146
|
'body'
|
2107
2147
|
]
|
2108
|
-
|
2148
|
+
_all_params.extend(
|
2109
2149
|
[
|
2110
2150
|
'async_req',
|
2111
2151
|
'_return_http_data_only',
|
2112
2152
|
'_preload_content',
|
2113
2153
|
'_request_timeout',
|
2114
|
-
'_request_auth'
|
2154
|
+
'_request_auth',
|
2155
|
+
'_content_type',
|
2156
|
+
'_headers'
|
2115
2157
|
]
|
2116
2158
|
)
|
2117
2159
|
|
2118
|
-
|
2119
|
-
|
2160
|
+
# validate the arguments
|
2161
|
+
for _key, _val in _params['kwargs'].items():
|
2162
|
+
if _key not in _all_params:
|
2120
2163
|
raise ApiTypeError(
|
2121
2164
|
"Got an unexpected keyword argument '%s'"
|
2122
|
-
" to method update_service_account_token" %
|
2165
|
+
" to method update_service_account_token" % _key
|
2123
2166
|
)
|
2124
|
-
|
2125
|
-
del
|
2126
|
-
# verify the required parameter 'owner' is set
|
2127
|
-
if self.api_client.client_side_validation and ('owner' not in local_var_params or # noqa: E501
|
2128
|
-
local_var_params['owner'] is None): # noqa: E501
|
2129
|
-
raise ApiValueError("Missing the required parameter `owner` when calling `update_service_account_token`") # noqa: E501
|
2130
|
-
# verify the required parameter 'entity' is set
|
2131
|
-
if self.api_client.client_side_validation and ('entity' not in local_var_params or # noqa: E501
|
2132
|
-
local_var_params['entity'] is None): # noqa: E501
|
2133
|
-
raise ApiValueError("Missing the required parameter `entity` when calling `update_service_account_token`") # noqa: E501
|
2134
|
-
# verify the required parameter 'token_uuid' is set
|
2135
|
-
if self.api_client.client_side_validation and ('token_uuid' not in local_var_params or # noqa: E501
|
2136
|
-
local_var_params['token_uuid'] is None): # noqa: E501
|
2137
|
-
raise ApiValueError("Missing the required parameter `token_uuid` when calling `update_service_account_token`") # noqa: E501
|
2138
|
-
# verify the required parameter 'body' is set
|
2139
|
-
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
2140
|
-
local_var_params['body'] is None): # noqa: E501
|
2141
|
-
raise ApiValueError("Missing the required parameter `body` when calling `update_service_account_token`") # noqa: E501
|
2142
|
-
|
2143
|
-
collection_formats = {}
|
2144
|
-
|
2145
|
-
path_params = {}
|
2146
|
-
if 'owner' in local_var_params:
|
2147
|
-
path_params['owner'] = local_var_params['owner'] # noqa: E501
|
2148
|
-
if 'entity' in local_var_params:
|
2149
|
-
path_params['entity'] = local_var_params['entity'] # noqa: E501
|
2150
|
-
if 'token_uuid' in local_var_params:
|
2151
|
-
path_params['token.uuid'] = local_var_params['token_uuid'] # noqa: E501
|
2152
|
-
|
2153
|
-
query_params = []
|
2154
|
-
|
2155
|
-
header_params = {}
|
2156
|
-
|
2157
|
-
form_params = []
|
2158
|
-
local_var_files = {}
|
2159
|
-
|
2160
|
-
body_params = None
|
2161
|
-
if 'body' in local_var_params:
|
2162
|
-
body_params = local_var_params['body']
|
2163
|
-
# HTTP header `Accept`
|
2164
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
2165
|
-
['application/json']) # noqa: E501
|
2167
|
+
_params[_key] = _val
|
2168
|
+
del _params['kwargs']
|
2166
2169
|
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
+
_collection_formats = {}
|
2171
|
+
|
2172
|
+
# process the path parameters
|
2173
|
+
_path_params = {}
|
2174
|
+
if _params['owner']:
|
2175
|
+
_path_params['owner'] = _params['owner']
|
2176
|
+
|
2177
|
+
if _params['entity']:
|
2178
|
+
_path_params['entity'] = _params['entity']
|
2170
2179
|
|
2171
|
-
|
2172
|
-
|
2180
|
+
if _params['token_uuid']:
|
2181
|
+
_path_params['token.uuid'] = _params['token_uuid']
|
2182
|
+
|
2183
|
+
|
2184
|
+
# process the query parameters
|
2185
|
+
_query_params = []
|
2186
|
+
# process the header parameters
|
2187
|
+
_header_params = dict(_params.get('_headers', {}))
|
2188
|
+
# process the form parameters
|
2189
|
+
_form_params = []
|
2190
|
+
_files = {}
|
2191
|
+
# process the body parameter
|
2192
|
+
_body_params = None
|
2193
|
+
if _params['body']:
|
2194
|
+
_body_params = _params['body']
|
2195
|
+
|
2196
|
+
# set the HTTP header `Accept`
|
2197
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2198
|
+
['application/json']) # noqa: E501
|
2173
2199
|
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2200
|
+
# set the HTTP header `Content-Type`
|
2201
|
+
_content_types_list = _params.get('_content_type',
|
2202
|
+
self.api_client.select_header_content_type(
|
2203
|
+
['application/json']))
|
2204
|
+
if _content_types_list:
|
2205
|
+
_header_params['Content-Type'] = _content_types_list
|
2206
|
+
|
2207
|
+
# authentication setting
|
2208
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2209
|
+
|
2210
|
+
_response_types_map = {
|
2211
|
+
'200': "V1Token",
|
2212
|
+
'204': "object",
|
2213
|
+
'403': "object",
|
2214
|
+
'404': "object",
|
2179
2215
|
}
|
2180
2216
|
|
2181
2217
|
return self.api_client.call_api(
|
2182
2218
|
'/api/v1/orgs/{owner}/sa/{entity}/tokens/{token.uuid}', 'PUT',
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
body=
|
2187
|
-
post_params=
|
2188
|
-
files=
|
2189
|
-
response_types_map=
|
2190
|
-
auth_settings=
|
2191
|
-
async_req=
|
2192
|
-
_return_http_data_only=
|
2193
|
-
_preload_content=
|
2194
|
-
_request_timeout=
|
2195
|
-
collection_formats=
|
2196
|
-
_request_auth=
|
2219
|
+
_path_params,
|
2220
|
+
_query_params,
|
2221
|
+
_header_params,
|
2222
|
+
body=_body_params,
|
2223
|
+
post_params=_form_params,
|
2224
|
+
files=_files,
|
2225
|
+
response_types_map=_response_types_map,
|
2226
|
+
auth_settings=_auth_settings,
|
2227
|
+
async_req=_params.get('async_req'),
|
2228
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2229
|
+
_preload_content=_params.get('_preload_content', True),
|
2230
|
+
_request_timeout=_params.get('_request_timeout'),
|
2231
|
+
collection_formats=_collection_formats,
|
2232
|
+
_request_auth=_params.get('_request_auth'))
|