polyaxon 2.1.0rc9__py3-none-any.whl → 2.6.0__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/_auxiliaries/default_scheduling.py +17 -7
- polyaxon/_auxiliaries/init.py +14 -6
- polyaxon/_auxiliaries/sidecar.py +10 -8
- polyaxon/_cli/artifacts.py +96 -11
- polyaxon/_cli/components.py +96 -11
- polyaxon/_cli/config.py +31 -0
- polyaxon/_cli/dashboard.py +12 -2
- polyaxon/_cli/init.py +1 -1
- polyaxon/_cli/models.py +96 -11
- polyaxon/_cli/operations.py +133 -58
- polyaxon/_cli/project_versions.py +139 -6
- polyaxon/_cli/projects.py +23 -9
- polyaxon/_cli/run.py +43 -9
- polyaxon/_cli/services/agent.py +2 -2
- polyaxon/_cli/version.py +4 -1
- polyaxon/_client/mixin.py +39 -0
- polyaxon/_client/project.py +218 -23
- polyaxon/_client/run.py +84 -27
- polyaxon/_compiler/contexts/contexts.py +4 -0
- polyaxon/_compiler/contexts/ray_job.py +4 -2
- polyaxon/_compiler/resolver/agent.py +22 -10
- polyaxon/_compiler/resolver/runtime.py +7 -3
- polyaxon/_constants/metadata.py +1 -0
- polyaxon/_contexts/keys.py +1 -0
- polyaxon/_contexts/paths.py +1 -1
- polyaxon/_deploy/operators/compose.py +1 -27
- polyaxon/_deploy/schemas/auth.py +3 -3
- polyaxon/_deploy/schemas/celery.py +10 -8
- polyaxon/_deploy/schemas/deployment.py +148 -115
- polyaxon/_deploy/schemas/email.py +8 -8
- polyaxon/_deploy/schemas/ingress.py +7 -7
- polyaxon/_deploy/schemas/intervals.py +2 -7
- polyaxon/_deploy/schemas/operators.py +8 -8
- polyaxon/_deploy/schemas/proxy.py +9 -8
- polyaxon/_deploy/schemas/rbac.py +1 -1
- polyaxon/_deploy/schemas/root_user.py +5 -5
- polyaxon/_deploy/schemas/security_context.py +25 -15
- polyaxon/_deploy/schemas/service.py +75 -66
- polyaxon/_deploy/schemas/ssl.py +3 -3
- polyaxon/_deploy/schemas/ui.py +10 -6
- polyaxon/_docker/builder/builder.py +4 -1
- polyaxon/_docker/converter/base/containers.py +4 -7
- polyaxon/_docker/converter/base/env_vars.py +5 -5
- polyaxon/_docker/converter/base/mounts.py +2 -2
- polyaxon/_docker/docker_types.py +57 -30
- polyaxon/_env_vars/getters/owner_entity.py +4 -2
- polyaxon/_env_vars/getters/project.py +4 -2
- polyaxon/_env_vars/getters/run.py +5 -2
- polyaxon/_env_vars/keys.py +3 -0
- polyaxon/_flow/__init__.py +3 -2
- polyaxon/_flow/builds/__init__.py +8 -8
- polyaxon/_flow/cache/__init__.py +4 -4
- polyaxon/_flow/component/base.py +25 -18
- polyaxon/_flow/component/component.py +4 -3
- polyaxon/_flow/early_stopping/__init__.py +1 -1
- polyaxon/_flow/early_stopping/policies.py +12 -10
- polyaxon/_flow/environment/__init__.py +43 -25
- polyaxon/_flow/events/__init__.py +1 -1
- polyaxon/_flow/hooks/__init__.py +11 -11
- polyaxon/_flow/init/__init__.py +41 -25
- polyaxon/_flow/io/io.py +57 -47
- polyaxon/_flow/joins/__init__.py +5 -5
- polyaxon/_flow/matrix/bayes.py +23 -17
- polyaxon/_flow/matrix/grid_search.py +16 -7
- polyaxon/_flow/matrix/hyperband.py +10 -10
- polyaxon/_flow/matrix/hyperopt.py +14 -9
- polyaxon/_flow/matrix/iterative.py +14 -8
- polyaxon/_flow/matrix/mapping.py +4 -4
- polyaxon/_flow/matrix/params.py +138 -77
- polyaxon/_flow/matrix/random_search.py +10 -5
- polyaxon/_flow/matrix/tuner.py +4 -4
- polyaxon/_flow/mounts/artifacts_mounts.py +1 -1
- polyaxon/_flow/notifications/__init__.py +1 -1
- polyaxon/_flow/operations/base.py +10 -8
- polyaxon/_flow/operations/compiled_operation.py +5 -4
- polyaxon/_flow/operations/operation.py +57 -41
- polyaxon/_flow/optimization/__init__.py +2 -2
- polyaxon/_flow/params/params.py +10 -9
- polyaxon/_flow/plugins/__init__.py +19 -13
- polyaxon/_flow/run/dag.py +12 -9
- polyaxon/_flow/run/dask/dask.py +4 -4
- polyaxon/_flow/run/dask/replica.py +17 -11
- polyaxon/_flow/run/job.py +17 -11
- polyaxon/_flow/run/kubeflow/mpi_job.py +10 -5
- polyaxon/_flow/run/kubeflow/mx_job.py +25 -9
- polyaxon/_flow/run/kubeflow/paddle_job.py +16 -9
- polyaxon/_flow/run/kubeflow/pytorch_job.py +24 -17
- polyaxon/_flow/run/kubeflow/replica.py +17 -11
- polyaxon/_flow/run/kubeflow/scheduling_policy.py +7 -5
- polyaxon/_flow/run/kubeflow/tf_job.py +15 -8
- polyaxon/_flow/run/kubeflow/xgboost_job.py +9 -4
- polyaxon/_flow/run/ray/ray.py +9 -6
- polyaxon/_flow/run/ray/replica.py +25 -16
- polyaxon/_flow/run/resources.py +14 -13
- polyaxon/_flow/run/service.py +4 -4
- polyaxon/_flow/schedules/cron.py +4 -4
- polyaxon/_flow/schedules/interval.py +4 -4
- polyaxon/_flow/templates/__init__.py +3 -3
- polyaxon/_flow/termination/__init__.py +3 -3
- polyaxon/_fs/async_manager.py +1 -1
- polyaxon/_fs/fs.py +1 -1
- polyaxon/_fs/watcher.py +26 -27
- polyaxon/_k8s/converter/base/base.py +2 -1
- polyaxon/_k8s/converter/base/main.py +1 -0
- polyaxon/_k8s/converter/common/accelerators.py +7 -4
- polyaxon/_k8s/converter/converters/ray_job.py +4 -2
- polyaxon/_k8s/custom_resources/dask_job.py +3 -0
- polyaxon/_k8s/custom_resources/kubeflow/common.py +4 -1
- polyaxon/_k8s/custom_resources/ray_job.py +3 -0
- polyaxon/_k8s/custom_resources/setter.py +1 -1
- polyaxon/_k8s/executor/async_executor.py +2 -0
- polyaxon/_k8s/k8s_validation.py +1 -1
- polyaxon/_k8s/logging/async_monitor.py +82 -11
- polyaxon/_k8s/manager/async_manager.py +15 -0
- polyaxon/_k8s/manager/manager.py +16 -1
- polyaxon/_local_process/__init__.py +0 -0
- polyaxon/_local_process/agent.py +6 -0
- polyaxon/_local_process/converter/__init__.py +1 -0
- polyaxon/_local_process/converter/base/__init__.py +1 -0
- polyaxon/_local_process/converter/base/base.py +140 -0
- polyaxon/_local_process/converter/base/containers.py +66 -0
- polyaxon/_local_process/converter/base/env_vars.py +253 -0
- polyaxon/_local_process/converter/base/init.py +414 -0
- polyaxon/_local_process/converter/base/main.py +74 -0
- polyaxon/_local_process/converter/base/mounts.py +82 -0
- polyaxon/_local_process/converter/converters/__init__.py +8 -0
- polyaxon/_local_process/converter/converters/job.py +40 -0
- polyaxon/_local_process/converter/converters/service.py +41 -0
- polyaxon/_local_process/converter/mixins.py +38 -0
- polyaxon/_local_process/executor.py +132 -0
- polyaxon/_local_process/process_types.py +42 -0
- polyaxon/_polyaxonfile/specs/compiled_operation.py +1 -1
- polyaxon/_polyaxonfile/specs/libs/parser.py +1 -1
- polyaxon/_polyaxonfile/specs/libs/validator.py +1 -1
- polyaxon/_polyaxonfile/specs/operation.py +1 -1
- polyaxon/_polyaxonfile/specs/sections.py +8 -0
- polyaxon/_pql/manager.py +1 -1
- polyaxon/_runner/agent/async_agent.py +25 -11
- polyaxon/_runner/agent/base_agent.py +19 -10
- polyaxon/_runner/agent/sync_agent.py +24 -10
- polyaxon/_runner/converter/converter.py +12 -4
- polyaxon/_runner/executor.py +1 -1
- polyaxon/_schemas/agent.py +69 -37
- polyaxon/_schemas/authentication.py +4 -4
- polyaxon/_schemas/base.py +26 -2
- polyaxon/_schemas/checks.py +3 -3
- polyaxon/_schemas/cli.py +4 -6
- polyaxon/_schemas/client.py +20 -18
- polyaxon/_schemas/compatibility.py +4 -4
- polyaxon/_schemas/container_resources.py +1 -1
- polyaxon/_schemas/home.py +3 -3
- polyaxon/_schemas/installation.py +13 -9
- polyaxon/_schemas/lifecycle.py +23 -23
- polyaxon/_schemas/log_handler.py +2 -2
- polyaxon/_schemas/services.py +26 -14
- polyaxon/_schemas/types/artifacts.py +3 -3
- polyaxon/_schemas/types/dockerfile.py +14 -12
- polyaxon/_schemas/types/event.py +2 -2
- polyaxon/_schemas/types/file.py +3 -3
- polyaxon/_schemas/types/git.py +12 -4
- polyaxon/_schemas/types/tensorboard.py +14 -8
- polyaxon/_schemas/user.py +3 -3
- polyaxon/_schemas/version.py +2 -2
- polyaxon/_sdk/api/agents_v1_api.py +222 -43
- polyaxon/_sdk/api/artifacts_stores_v1_api.py +3 -3
- polyaxon/_sdk/api/auth_v1_api.py +13 -13
- polyaxon/_sdk/api/connections_v1_api.py +15 -15
- polyaxon/_sdk/api/dashboards_v1_api.py +15 -15
- polyaxon/_sdk/api/organizations_v1_api.py +85 -85
- polyaxon/_sdk/api/presets_v1_api.py +15 -15
- polyaxon/_sdk/api/project_dashboards_v1_api.py +29 -29
- polyaxon/_sdk/api/project_searches_v1_api.py +29 -29
- polyaxon/_sdk/api/projects_v1_api.py +284 -107
- polyaxon/_sdk/api/queues_v1_api.py +19 -19
- polyaxon/_sdk/api/runs_v1_api.py +313 -359
- polyaxon/_sdk/api/searches_v1_api.py +15 -15
- polyaxon/_sdk/api/service_accounts_v1_api.py +31 -31
- polyaxon/_sdk/api/tags_v1_api.py +17 -17
- polyaxon/_sdk/api/teams_v1_api.py +2854 -402
- polyaxon/_sdk/api/users_v1_api.py +254 -78
- polyaxon/_sdk/api/versions_v1_api.py +7 -7
- polyaxon/_sdk/async_client/api_client.py +4 -0
- polyaxon/_sdk/schemas/__init__.py +1 -1
- polyaxon/_sdk/schemas/v1_activity.py +8 -8
- polyaxon/_sdk/schemas/v1_agent.py +18 -16
- polyaxon/_sdk/schemas/v1_agent_state_response.py +4 -4
- polyaxon/_sdk/schemas/v1_agent_state_response_agent_state.py +10 -10
- polyaxon/_sdk/schemas/v1_agent_status_body_request.py +3 -3
- polyaxon/_sdk/schemas/v1_analytics_spec.py +4 -4
- polyaxon/_sdk/schemas/v1_artifact_tree.py +3 -3
- polyaxon/_sdk/schemas/v1_auth.py +1 -1
- polyaxon/_sdk/schemas/v1_cloning.py +3 -3
- polyaxon/_sdk/schemas/v1_connection_response.py +9 -9
- polyaxon/_sdk/schemas/v1_dashboard.py +9 -9
- polyaxon/_sdk/schemas/v1_dashboard_spec.py +5 -1
- polyaxon/_sdk/schemas/v1_entities_tags.py +2 -2
- polyaxon/_sdk/schemas/v1_entities_transfer.py +2 -2
- polyaxon/_sdk/schemas/v1_entity_notification_body.py +7 -7
- polyaxon/_sdk/schemas/v1_entity_stage_body_request.py +5 -5
- polyaxon/_sdk/schemas/v1_entity_status_body_request.py +5 -5
- polyaxon/_sdk/schemas/v1_events_response.py +2 -2
- polyaxon/_sdk/schemas/v1_list_activities_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_agents_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_bookmarks_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_connections_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_dashboards_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_organization_members_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_organizations_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_presets_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_project_versions_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_projects_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_queues_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_run_artifacts_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_run_connections_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_run_edges_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_runs_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_searches_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_service_accounts_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_tags_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_team_members_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_teams_response.py +4 -4
- polyaxon/_sdk/schemas/v1_list_token_response.py +4 -4
- polyaxon/_sdk/schemas/v1_operation_body.py +8 -8
- polyaxon/_sdk/schemas/v1_organization.py +16 -16
- polyaxon/_sdk/schemas/v1_organization_member.py +6 -6
- polyaxon/_sdk/schemas/v1_password_change.py +3 -3
- polyaxon/_sdk/schemas/v1_pipeline.py +3 -3
- polyaxon/_sdk/schemas/v1_preset.py +16 -9
- polyaxon/_sdk/schemas/v1_project.py +17 -17
- polyaxon/_sdk/schemas/v1_project_settings.py +12 -10
- polyaxon/_sdk/schemas/v1_project_version.py +20 -20
- polyaxon/_sdk/schemas/v1_queue.py +12 -12
- polyaxon/_sdk/schemas/v1_run.py +38 -38
- polyaxon/_sdk/schemas/v1_run_connection.py +3 -3
- polyaxon/_sdk/schemas/v1_run_edge.py +5 -5
- polyaxon/_sdk/schemas/v1_run_edge_lineage.py +3 -3
- polyaxon/_sdk/schemas/v1_run_edges_graph.py +1 -1
- polyaxon/_sdk/schemas/v1_run_reference_catalog.py +4 -4
- polyaxon/_sdk/schemas/v1_run_settings.py +9 -9
- polyaxon/_sdk/schemas/v1_search.py +10 -10
- polyaxon/_sdk/schemas/v1_search_spec.py +14 -14
- polyaxon/_sdk/schemas/v1_section_spec.py +12 -7
- polyaxon/_sdk/schemas/v1_service_account.py +9 -9
- polyaxon/_sdk/schemas/v1_settings_catalog.py +4 -3
- polyaxon/_sdk/schemas/v1_tag.py +6 -6
- polyaxon/_sdk/schemas/v1_team.py +11 -8
- polyaxon/_sdk/schemas/v1_team_member.py +6 -6
- polyaxon/_sdk/schemas/v1_team_settings.py +2 -2
- polyaxon/_sdk/schemas/v1_token.py +10 -10
- polyaxon/_sdk/schemas/v1_trial_start.py +6 -6
- polyaxon/_sdk/schemas/v1_user.py +6 -7
- polyaxon/_sdk/schemas/v1_user_access.py +17 -0
- polyaxon/_sdk/schemas/v1_user_email.py +1 -1
- polyaxon/_sdk/schemas/v1_user_singup.py +5 -5
- polyaxon/_sdk/schemas/v1_uuids.py +1 -1
- polyaxon/_sidecar/container/__init__.py +39 -20
- polyaxon/_sidecar/container/monitors/logs.py +10 -13
- polyaxon/_sidecar/ignore.py +0 -1
- polyaxon/_utils/cli_constants.py +2 -0
- polyaxon/_utils/fqn_utils.py +25 -2
- polyaxon/_utils/test_utils.py +2 -1
- polyaxon/pkg.py +1 -1
- polyaxon/schemas.py +1 -1
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/METADATA +43 -43
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/RECORD +269 -252
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/WHEEL +1 -1
- polyaxon/_sdk/schemas/v1_project_user_access.py +0 -10
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/LICENSE +0 -0
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.1.0rc9.dist-info → polyaxon-2.6.0.dist-info}/top_level.txt +0 -0
@@ -1,20 +1,29 @@
|
|
1
1
|
from typing import Optional
|
2
2
|
from typing_extensions import Annotated
|
3
3
|
|
4
|
-
from clipped.compact.pydantic import Field, StrictInt, StrictStr,
|
4
|
+
from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_call
|
5
5
|
|
6
6
|
from polyaxon._sdk.base_api import BaseApi
|
7
|
+
from polyaxon._sdk.schemas.v1_entities_tags import V1EntitiesTags
|
8
|
+
from polyaxon._sdk.schemas.v1_entities_transfer import V1EntitiesTransfer
|
9
|
+
from polyaxon._sdk.schemas.v1_list_activities_response import V1ListActivitiesResponse
|
10
|
+
from polyaxon._sdk.schemas.v1_list_project_versions_response import (
|
11
|
+
V1ListProjectVersionsResponse,
|
12
|
+
)
|
13
|
+
from polyaxon._sdk.schemas.v1_list_runs_response import V1ListRunsResponse
|
7
14
|
from polyaxon._sdk.schemas.v1_list_team_members_response import (
|
8
15
|
V1ListTeamMembersResponse,
|
9
16
|
)
|
10
17
|
from polyaxon._sdk.schemas.v1_list_teams_response import V1ListTeamsResponse
|
18
|
+
from polyaxon._sdk.schemas.v1_run import V1Run
|
11
19
|
from polyaxon._sdk.schemas.v1_team import V1Team
|
12
20
|
from polyaxon._sdk.schemas.v1_team_member import V1TeamMember
|
21
|
+
from polyaxon._sdk.schemas.v1_uuids import V1Uuids
|
13
22
|
from polyaxon.exceptions import ApiTypeError
|
14
23
|
|
15
24
|
|
16
25
|
class TeamsV1Api(BaseApi):
|
17
|
-
@
|
26
|
+
@validate_call
|
18
27
|
def create_team(
|
19
28
|
self,
|
20
29
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -51,7 +60,7 @@ class TeamsV1Api(BaseApi):
|
|
51
60
|
kwargs["_return_http_data_only"] = True
|
52
61
|
return self.create_team_with_http_info(owner, body, **kwargs)
|
53
62
|
|
54
|
-
@
|
63
|
+
@validate_call
|
55
64
|
def create_team_with_http_info(
|
56
65
|
self,
|
57
66
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -183,7 +192,7 @@ class TeamsV1Api(BaseApi):
|
|
183
192
|
_request_auth=_params.get("_request_auth"),
|
184
193
|
)
|
185
194
|
|
186
|
-
@
|
195
|
+
@validate_call
|
187
196
|
def create_team_member(
|
188
197
|
self,
|
189
198
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -225,7 +234,7 @@ class TeamsV1Api(BaseApi):
|
|
225
234
|
owner, team, body, **kwargs
|
226
235
|
) # noqa: E501
|
227
236
|
|
228
|
-
@
|
237
|
+
@validate_call
|
229
238
|
def create_team_member_with_http_info(
|
230
239
|
self,
|
231
240
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -362,11 +371,11 @@ class TeamsV1Api(BaseApi):
|
|
362
371
|
_request_auth=_params.get("_request_auth"),
|
363
372
|
)
|
364
373
|
|
365
|
-
@
|
374
|
+
@validate_call
|
366
375
|
def delete_team(
|
367
376
|
self,
|
368
377
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
369
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
378
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
370
379
|
**kwargs
|
371
380
|
) -> None: # noqa: E501
|
372
381
|
"""Delete team # noqa: E501
|
@@ -379,7 +388,7 @@ class TeamsV1Api(BaseApi):
|
|
379
388
|
|
380
389
|
:param owner: Owner of the namespace (required)
|
381
390
|
:type owner: str
|
382
|
-
:param name: Component under
|
391
|
+
:param name: Component under namespace (required)
|
383
392
|
:type name: str
|
384
393
|
:param async_req: Whether to execute the request asynchronously.
|
385
394
|
:type async_req: bool, optional
|
@@ -399,11 +408,11 @@ class TeamsV1Api(BaseApi):
|
|
399
408
|
kwargs["_return_http_data_only"] = True
|
400
409
|
return self.delete_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
401
410
|
|
402
|
-
@
|
411
|
+
@validate_call
|
403
412
|
def delete_team_with_http_info(
|
404
413
|
self,
|
405
414
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
406
|
-
name: Annotated[StrictStr, Field(..., description="Component under
|
415
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
407
416
|
**kwargs
|
408
417
|
): # noqa: E501
|
409
418
|
"""Delete team # noqa: E501
|
@@ -416,7 +425,7 @@ class TeamsV1Api(BaseApi):
|
|
416
425
|
|
417
426
|
:param owner: Owner of the namespace (required)
|
418
427
|
:type owner: str
|
419
|
-
:param name: Component under
|
428
|
+
:param name: Component under namespace (required)
|
420
429
|
:type name: str
|
421
430
|
:param async_req: Whether to execute the request asynchronously.
|
422
431
|
:type async_req: bool, optional
|
@@ -518,11 +527,11 @@ class TeamsV1Api(BaseApi):
|
|
518
527
|
_request_auth=_params.get("_request_auth"),
|
519
528
|
)
|
520
529
|
|
521
|
-
@
|
530
|
+
@validate_call
|
522
531
|
def delete_team_member(
|
523
532
|
self,
|
524
533
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
525
|
-
team: Annotated[StrictStr, Field(..., description="Team under
|
534
|
+
team: Annotated[StrictStr, Field(..., description="Team under namespace")],
|
526
535
|
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
527
536
|
**kwargs
|
528
537
|
) -> None: # noqa: E501
|
@@ -536,7 +545,7 @@ class TeamsV1Api(BaseApi):
|
|
536
545
|
|
537
546
|
:param owner: Owner of the namespace (required)
|
538
547
|
:type owner: str
|
539
|
-
:param team: Team under
|
548
|
+
:param team: Team under namespace (required)
|
540
549
|
:type team: str
|
541
550
|
:param user: Member under team (required)
|
542
551
|
:type user: str
|
@@ -560,11 +569,11 @@ class TeamsV1Api(BaseApi):
|
|
560
569
|
owner, team, user, **kwargs
|
561
570
|
) # noqa: E501
|
562
571
|
|
563
|
-
@
|
572
|
+
@validate_call
|
564
573
|
def delete_team_member_with_http_info(
|
565
574
|
self,
|
566
575
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
567
|
-
team: Annotated[StrictStr, Field(..., description="Team under
|
576
|
+
team: Annotated[StrictStr, Field(..., description="Team under namespace")],
|
568
577
|
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
569
578
|
**kwargs
|
570
579
|
): # noqa: E501
|
@@ -578,7 +587,7 @@ class TeamsV1Api(BaseApi):
|
|
578
587
|
|
579
588
|
:param owner: Owner of the namespace (required)
|
580
589
|
:type owner: str
|
581
|
-
:param team: Team under
|
590
|
+
:param team: Team under namespace (required)
|
582
591
|
:type team: str
|
583
592
|
:param user: Member under team (required)
|
584
593
|
:type user: str
|
@@ -684,25 +693,28 @@ class TeamsV1Api(BaseApi):
|
|
684
693
|
_request_auth=_params.get("_request_auth"),
|
685
694
|
)
|
686
695
|
|
687
|
-
@
|
688
|
-
def
|
696
|
+
@validate_call
|
697
|
+
def delete_team_runs(
|
689
698
|
self,
|
690
699
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
691
|
-
name: Annotated[StrictStr, Field(..., description="
|
700
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
701
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
692
702
|
**kwargs
|
693
|
-
) ->
|
694
|
-
"""
|
703
|
+
) -> None: # noqa: E501
|
704
|
+
"""Delete cross-project runs selection # noqa: E501
|
695
705
|
|
696
706
|
This method makes a synchronous HTTP request by default. To make an
|
697
707
|
asynchronous HTTP request, please pass async_req=True
|
698
708
|
|
699
|
-
>>> thread = api.
|
709
|
+
>>> thread = api.delete_team_runs(owner, name, body, async_req=True)
|
700
710
|
>>> result = thread.get()
|
701
711
|
|
702
712
|
:param owner: Owner of the namespace (required)
|
703
713
|
:type owner: str
|
704
|
-
:param name:
|
714
|
+
:param name: Entity under namespace (required)
|
705
715
|
:type name: str
|
716
|
+
:param body: Uuids of the entities (required)
|
717
|
+
:type body: V1Uuids
|
706
718
|
:param async_req: Whether to execute the request asynchronously.
|
707
719
|
:type async_req: bool, optional
|
708
720
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -716,30 +728,35 @@ class TeamsV1Api(BaseApi):
|
|
716
728
|
:return: Returns the result object.
|
717
729
|
If the method is called asynchronously,
|
718
730
|
returns the request thread.
|
719
|
-
:rtype:
|
731
|
+
:rtype: None
|
720
732
|
"""
|
721
733
|
kwargs["_return_http_data_only"] = True
|
722
|
-
return self.
|
734
|
+
return self.delete_team_runs_with_http_info(
|
735
|
+
owner, name, body, **kwargs
|
736
|
+
) # noqa: E501
|
723
737
|
|
724
|
-
@
|
725
|
-
def
|
738
|
+
@validate_call
|
739
|
+
def delete_team_runs_with_http_info(
|
726
740
|
self,
|
727
741
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
728
|
-
name: Annotated[StrictStr, Field(..., description="
|
742
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
743
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
729
744
|
**kwargs
|
730
745
|
): # noqa: E501
|
731
|
-
"""
|
746
|
+
"""Delete cross-project runs selection # noqa: E501
|
732
747
|
|
733
748
|
This method makes a synchronous HTTP request by default. To make an
|
734
749
|
asynchronous HTTP request, please pass async_req=True
|
735
750
|
|
736
|
-
>>> thread = api.
|
751
|
+
>>> thread = api.delete_team_runs_with_http_info(owner, name, body, async_req=True)
|
737
752
|
>>> result = thread.get()
|
738
753
|
|
739
754
|
:param owner: Owner of the namespace (required)
|
740
755
|
:type owner: str
|
741
|
-
:param name:
|
756
|
+
:param name: Entity under namespace (required)
|
742
757
|
:type name: str
|
758
|
+
:param body: Uuids of the entities (required)
|
759
|
+
:type body: V1Uuids
|
743
760
|
:param async_req: Whether to execute the request asynchronously.
|
744
761
|
:type async_req: bool, optional
|
745
762
|
:param _return_http_data_only: response data without head status code
|
@@ -761,12 +778,12 @@ class TeamsV1Api(BaseApi):
|
|
761
778
|
:return: Returns the result object.
|
762
779
|
If the method is called asynchronously,
|
763
780
|
returns the request thread.
|
764
|
-
:rtype:
|
781
|
+
:rtype: None
|
765
782
|
"""
|
766
783
|
|
767
784
|
_params = locals()
|
768
785
|
|
769
|
-
_all_params = ["owner", "name"]
|
786
|
+
_all_params = ["owner", "name", "body"]
|
770
787
|
_all_params.extend(
|
771
788
|
[
|
772
789
|
"async_req",
|
@@ -784,7 +801,7 @@ class TeamsV1Api(BaseApi):
|
|
784
801
|
if _key not in _all_params:
|
785
802
|
raise ApiTypeError(
|
786
803
|
"Got an unexpected keyword argument '%s'"
|
787
|
-
" to method
|
804
|
+
" to method delete_team_runs" % _key
|
788
805
|
)
|
789
806
|
_params[_key] = _val
|
790
807
|
del _params["kwargs"]
|
@@ -795,40 +812,43 @@ class TeamsV1Api(BaseApi):
|
|
795
812
|
_path_params = {}
|
796
813
|
if _params["owner"]:
|
797
814
|
_path_params["owner"] = _params["owner"]
|
815
|
+
|
798
816
|
if _params["name"]:
|
799
817
|
_path_params["name"] = _params["name"]
|
800
818
|
|
801
819
|
# process the query parameters
|
802
820
|
_query_params = []
|
803
|
-
|
804
821
|
# process the header parameters
|
805
822
|
_header_params = dict(_params.get("_headers", {}))
|
806
|
-
|
807
823
|
# process the form parameters
|
808
824
|
_form_params = []
|
809
825
|
_files = {}
|
810
|
-
|
811
826
|
# process the body parameter
|
812
827
|
_body_params = None
|
828
|
+
if _params["body"]:
|
829
|
+
_body_params = _params["body"]
|
813
830
|
|
814
831
|
# set the HTTP header `Accept`
|
815
832
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
816
833
|
["application/json"]
|
817
834
|
) # noqa: E501
|
818
835
|
|
836
|
+
# set the HTTP header `Content-Type`
|
837
|
+
_content_types_list = _params.get(
|
838
|
+
"_content_type",
|
839
|
+
self.api_client.select_header_content_type(["application/json"]),
|
840
|
+
)
|
841
|
+
if _content_types_list:
|
842
|
+
_header_params["Content-Type"] = _content_types_list
|
843
|
+
|
819
844
|
# authentication setting
|
820
845
|
_auth_settings = ["ApiKey"] # noqa: E501
|
821
846
|
|
822
|
-
_response_types_map = {
|
823
|
-
"200": "V1Team",
|
824
|
-
"204": "object",
|
825
|
-
"403": "object",
|
826
|
-
"404": "object",
|
827
|
-
}
|
847
|
+
_response_types_map = {}
|
828
848
|
|
829
849
|
return self.api_client.call_api(
|
830
|
-
"/api/v1/orgs/{owner}/teams/{name}",
|
831
|
-
"
|
850
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/delete",
|
851
|
+
"DELETE",
|
832
852
|
_path_params,
|
833
853
|
_query_params,
|
834
854
|
_header_params,
|
@@ -845,28 +865,25 @@ class TeamsV1Api(BaseApi):
|
|
845
865
|
_request_auth=_params.get("_request_auth"),
|
846
866
|
)
|
847
867
|
|
848
|
-
@
|
849
|
-
def
|
868
|
+
@validate_call
|
869
|
+
def get_team(
|
850
870
|
self,
|
851
871
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
852
|
-
|
853
|
-
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
872
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
854
873
|
**kwargs
|
855
|
-
) ->
|
856
|
-
"""Get team
|
874
|
+
) -> V1Team: # noqa: E501
|
875
|
+
"""Get team # noqa: E501
|
857
876
|
|
858
877
|
This method makes a synchronous HTTP request by default. To make an
|
859
878
|
asynchronous HTTP request, please pass async_req=True
|
860
879
|
|
861
|
-
>>> thread = api.
|
880
|
+
>>> thread = api.get_team(owner, name, async_req=True)
|
862
881
|
>>> result = thread.get()
|
863
882
|
|
864
883
|
:param owner: Owner of the namespace (required)
|
865
884
|
:type owner: str
|
866
|
-
:param
|
867
|
-
:type
|
868
|
-
:param user: Member under team (required)
|
869
|
-
:type user: str
|
885
|
+
:param name: Component under namespace (required)
|
886
|
+
:type name: str
|
870
887
|
:param async_req: Whether to execute the request asynchronously.
|
871
888
|
:type async_req: bool, optional
|
872
889
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -880,35 +897,30 @@ class TeamsV1Api(BaseApi):
|
|
880
897
|
:return: Returns the result object.
|
881
898
|
If the method is called asynchronously,
|
882
899
|
returns the request thread.
|
883
|
-
:rtype:
|
900
|
+
:rtype: V1Team
|
884
901
|
"""
|
885
902
|
kwargs["_return_http_data_only"] = True
|
886
|
-
return self.
|
887
|
-
owner, team, user, **kwargs
|
888
|
-
) # noqa: E501
|
903
|
+
return self.get_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
889
904
|
|
890
|
-
@
|
891
|
-
def
|
905
|
+
@validate_call
|
906
|
+
def get_team_with_http_info(
|
892
907
|
self,
|
893
908
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
894
|
-
|
895
|
-
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
909
|
+
name: Annotated[StrictStr, Field(..., description="Component under namespace")],
|
896
910
|
**kwargs
|
897
911
|
): # noqa: E501
|
898
|
-
"""Get team
|
912
|
+
"""Get team # noqa: E501
|
899
913
|
|
900
914
|
This method makes a synchronous HTTP request by default. To make an
|
901
915
|
asynchronous HTTP request, please pass async_req=True
|
902
916
|
|
903
|
-
>>> thread = api.
|
917
|
+
>>> thread = api.get_team_with_http_info(owner, name, async_req=True)
|
904
918
|
>>> result = thread.get()
|
905
919
|
|
906
920
|
:param owner: Owner of the namespace (required)
|
907
921
|
:type owner: str
|
908
|
-
:param
|
909
|
-
:type
|
910
|
-
:param user: Member under team (required)
|
911
|
-
:type user: str
|
922
|
+
:param name: Component under namespace (required)
|
923
|
+
:type name: str
|
912
924
|
:param async_req: Whether to execute the request asynchronously.
|
913
925
|
:type async_req: bool, optional
|
914
926
|
:param _return_http_data_only: response data without head status code
|
@@ -930,12 +942,12 @@ class TeamsV1Api(BaseApi):
|
|
930
942
|
:return: Returns the result object.
|
931
943
|
If the method is called asynchronously,
|
932
944
|
returns the request thread.
|
933
|
-
:rtype: tuple(
|
945
|
+
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
934
946
|
"""
|
935
947
|
|
936
948
|
_params = locals()
|
937
949
|
|
938
|
-
_all_params = ["owner", "
|
950
|
+
_all_params = ["owner", "name"]
|
939
951
|
_all_params.extend(
|
940
952
|
[
|
941
953
|
"async_req",
|
@@ -953,7 +965,7 @@ class TeamsV1Api(BaseApi):
|
|
953
965
|
if _key not in _all_params:
|
954
966
|
raise ApiTypeError(
|
955
967
|
"Got an unexpected keyword argument '%s'"
|
956
|
-
" to method
|
968
|
+
" to method get_team" % _key
|
957
969
|
)
|
958
970
|
_params[_key] = _val
|
959
971
|
del _params["kwargs"]
|
@@ -964,10 +976,8 @@ class TeamsV1Api(BaseApi):
|
|
964
976
|
_path_params = {}
|
965
977
|
if _params["owner"]:
|
966
978
|
_path_params["owner"] = _params["owner"]
|
967
|
-
if _params["
|
968
|
-
_path_params["
|
969
|
-
if _params["user"]:
|
970
|
-
_path_params["user"] = _params["user"]
|
979
|
+
if _params["name"]:
|
980
|
+
_path_params["name"] = _params["name"]
|
971
981
|
|
972
982
|
# process the query parameters
|
973
983
|
_query_params = []
|
@@ -991,14 +1001,14 @@ class TeamsV1Api(BaseApi):
|
|
991
1001
|
_auth_settings = ["ApiKey"] # noqa: E501
|
992
1002
|
|
993
1003
|
_response_types_map = {
|
994
|
-
"200": "
|
1004
|
+
"200": "V1Team",
|
995
1005
|
"204": "object",
|
996
1006
|
"403": "object",
|
997
1007
|
"404": "object",
|
998
1008
|
}
|
999
1009
|
|
1000
1010
|
return self.api_client.call_api(
|
1001
|
-
"/api/v1/orgs/{owner}/teams/{
|
1011
|
+
"/api/v1/orgs/{owner}/teams/{name}",
|
1002
1012
|
"GET",
|
1003
1013
|
_path_params,
|
1004
1014
|
_query_params,
|
@@ -1016,8 +1026,8 @@ class TeamsV1Api(BaseApi):
|
|
1016
1026
|
_request_auth=_params.get("_request_auth"),
|
1017
1027
|
)
|
1018
1028
|
|
1019
|
-
@
|
1020
|
-
def
|
1029
|
+
@validate_call
|
1030
|
+
def get_team_activities(
|
1021
1031
|
self,
|
1022
1032
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1023
1033
|
name: Annotated[
|
@@ -1041,13 +1051,13 @@ class TeamsV1Api(BaseApi):
|
|
1041
1051
|
] = None,
|
1042
1052
|
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1043
1053
|
**kwargs
|
1044
|
-
) ->
|
1045
|
-
"""Get
|
1054
|
+
) -> V1ListActivitiesResponse: # noqa: E501
|
1055
|
+
"""Get organization activities # noqa: E501
|
1046
1056
|
|
1047
1057
|
This method makes a synchronous HTTP request by default. To make an
|
1048
1058
|
asynchronous HTTP request, please pass async_req=True
|
1049
1059
|
|
1050
|
-
>>> thread = api.
|
1060
|
+
>>> thread = api.get_team_activities(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1051
1061
|
>>> result = thread.get()
|
1052
1062
|
|
1053
1063
|
:param owner: Owner of the namespace (required)
|
@@ -1081,15 +1091,15 @@ class TeamsV1Api(BaseApi):
|
|
1081
1091
|
:return: Returns the result object.
|
1082
1092
|
If the method is called asynchronously,
|
1083
1093
|
returns the request thread.
|
1084
|
-
:rtype:
|
1094
|
+
:rtype: V1ListActivitiesResponse
|
1085
1095
|
"""
|
1086
1096
|
kwargs["_return_http_data_only"] = True
|
1087
|
-
return self.
|
1097
|
+
return self.get_team_activities_with_http_info(
|
1088
1098
|
owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
1089
1099
|
) # noqa: E501
|
1090
1100
|
|
1091
|
-
@
|
1092
|
-
def
|
1101
|
+
@validate_call
|
1102
|
+
def get_team_activities_with_http_info(
|
1093
1103
|
self,
|
1094
1104
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1095
1105
|
name: Annotated[
|
@@ -1114,12 +1124,12 @@ class TeamsV1Api(BaseApi):
|
|
1114
1124
|
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1115
1125
|
**kwargs
|
1116
1126
|
): # noqa: E501
|
1117
|
-
"""Get
|
1127
|
+
"""Get organization activities # noqa: E501
|
1118
1128
|
|
1119
1129
|
This method makes a synchronous HTTP request by default. To make an
|
1120
1130
|
asynchronous HTTP request, please pass async_req=True
|
1121
1131
|
|
1122
|
-
>>> thread = api.
|
1132
|
+
>>> thread = api.get_team_activities_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1123
1133
|
>>> result = thread.get()
|
1124
1134
|
|
1125
1135
|
:param owner: Owner of the namespace (required)
|
@@ -1161,7 +1171,7 @@ class TeamsV1Api(BaseApi):
|
|
1161
1171
|
:return: Returns the result object.
|
1162
1172
|
If the method is called asynchronously,
|
1163
1173
|
returns the request thread.
|
1164
|
-
:rtype: tuple(
|
1174
|
+
:rtype: tuple(V1ListActivitiesResponse, status_code(int), headers(HTTPHeaderDict))
|
1165
1175
|
"""
|
1166
1176
|
|
1167
1177
|
_params = locals()
|
@@ -1194,7 +1204,7 @@ class TeamsV1Api(BaseApi):
|
|
1194
1204
|
if _key not in _all_params:
|
1195
1205
|
raise ApiTypeError(
|
1196
1206
|
"Got an unexpected keyword argument '%s'"
|
1197
|
-
" to method
|
1207
|
+
" to method get_team_activities" % _key
|
1198
1208
|
)
|
1199
1209
|
_params[_key] = _val
|
1200
1210
|
del _params["kwargs"]
|
@@ -1205,6 +1215,7 @@ class TeamsV1Api(BaseApi):
|
|
1205
1215
|
_path_params = {}
|
1206
1216
|
if _params["owner"]:
|
1207
1217
|
_path_params["owner"] = _params["owner"]
|
1218
|
+
|
1208
1219
|
if _params["name"]:
|
1209
1220
|
_path_params["name"] = _params["name"]
|
1210
1221
|
|
@@ -1212,29 +1223,32 @@ class TeamsV1Api(BaseApi):
|
|
1212
1223
|
_query_params = []
|
1213
1224
|
if _params.get("offset") is not None: # noqa: E501
|
1214
1225
|
_query_params.append(("offset", _params["offset"]))
|
1226
|
+
|
1215
1227
|
if _params.get("limit") is not None: # noqa: E501
|
1216
1228
|
_query_params.append(("limit", _params["limit"]))
|
1229
|
+
|
1217
1230
|
if _params.get("sort") is not None: # noqa: E501
|
1218
1231
|
_query_params.append(("sort", _params["sort"]))
|
1232
|
+
|
1219
1233
|
if _params.get("query") is not None: # noqa: E501
|
1220
1234
|
_query_params.append(("query", _params["query"]))
|
1235
|
+
|
1221
1236
|
if _params.get("bookmarks") is not None: # noqa: E501
|
1222
1237
|
_query_params.append(("bookmarks", _params["bookmarks"]))
|
1238
|
+
|
1223
1239
|
if _params.get("mode") is not None: # noqa: E501
|
1224
1240
|
_query_params.append(("mode", _params["mode"]))
|
1241
|
+
|
1225
1242
|
if _params.get("no_page") is not None: # noqa: E501
|
1226
1243
|
_query_params.append(("no_page", _params["no_page"]))
|
1227
1244
|
|
1228
1245
|
# process the header parameters
|
1229
1246
|
_header_params = dict(_params.get("_headers", {}))
|
1230
|
-
|
1231
1247
|
# process the form parameters
|
1232
1248
|
_form_params = []
|
1233
1249
|
_files = {}
|
1234
|
-
|
1235
1250
|
# process the body parameter
|
1236
1251
|
_body_params = None
|
1237
|
-
|
1238
1252
|
# set the HTTP header `Accept`
|
1239
1253
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1240
1254
|
["application/json"]
|
@@ -1244,14 +1258,14 @@ class TeamsV1Api(BaseApi):
|
|
1244
1258
|
_auth_settings = ["ApiKey"] # noqa: E501
|
1245
1259
|
|
1246
1260
|
_response_types_map = {
|
1247
|
-
"200": "
|
1261
|
+
"200": "V1ListActivitiesResponse",
|
1248
1262
|
"204": "object",
|
1249
1263
|
"403": "object",
|
1250
1264
|
"404": "object",
|
1251
1265
|
}
|
1252
1266
|
|
1253
1267
|
return self.api_client.call_api(
|
1254
|
-
"/api/v1/orgs/{owner}/teams/{name}/
|
1268
|
+
"/api/v1/orgs/{owner}/teams/{name}/activities",
|
1255
1269
|
"GET",
|
1256
1270
|
_path_params,
|
1257
1271
|
_query_params,
|
@@ -1269,53 +1283,28 @@ class TeamsV1Api(BaseApi):
|
|
1269
1283
|
_request_auth=_params.get("_request_auth"),
|
1270
1284
|
)
|
1271
1285
|
|
1272
|
-
@
|
1273
|
-
def
|
1286
|
+
@validate_call
|
1287
|
+
def get_team_member(
|
1274
1288
|
self,
|
1275
1289
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1276
|
-
|
1277
|
-
|
1278
|
-
] = None,
|
1279
|
-
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1280
|
-
sort: Annotated[
|
1281
|
-
Optional[StrictStr], Field(description="Sort to order the search.")
|
1282
|
-
] = None,
|
1283
|
-
query: Annotated[
|
1284
|
-
Optional[StrictStr], Field(description="Query filter the search.")
|
1285
|
-
] = None,
|
1286
|
-
bookmarks: Annotated[
|
1287
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
1288
|
-
] = None,
|
1289
|
-
mode: Annotated[
|
1290
|
-
Optional[StrictStr], Field(description="Mode of the search.")
|
1291
|
-
] = None,
|
1292
|
-
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1290
|
+
team: Annotated[StrictStr, Field(..., description="Team under namespace")],
|
1291
|
+
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
1293
1292
|
**kwargs
|
1294
|
-
) ->
|
1295
|
-
"""
|
1293
|
+
) -> V1TeamMember: # noqa: E501
|
1294
|
+
"""Get team member details # noqa: E501
|
1296
1295
|
|
1297
1296
|
This method makes a synchronous HTTP request by default. To make an
|
1298
1297
|
asynchronous HTTP request, please pass async_req=True
|
1299
1298
|
|
1300
|
-
>>> thread = api.
|
1299
|
+
>>> thread = api.get_team_member(owner, team, user, async_req=True)
|
1301
1300
|
>>> result = thread.get()
|
1302
1301
|
|
1303
1302
|
:param owner: Owner of the namespace (required)
|
1304
1303
|
:type owner: str
|
1305
|
-
:param
|
1306
|
-
:type
|
1307
|
-
:param
|
1308
|
-
:type
|
1309
|
-
:param sort: Sort to order the search.
|
1310
|
-
:type sort: str
|
1311
|
-
:param query: Query filter the search.
|
1312
|
-
:type query: str
|
1313
|
-
:param bookmarks: Filter by bookmarks.
|
1314
|
-
:type bookmarks: bool
|
1315
|
-
:param mode: Mode of the search.
|
1316
|
-
:type mode: str
|
1317
|
-
:param no_page: No pagination.
|
1318
|
-
:type no_page: bool
|
1304
|
+
:param team: Team under namespace (required)
|
1305
|
+
:type team: str
|
1306
|
+
:param user: Member under team (required)
|
1307
|
+
:type user: str
|
1319
1308
|
:param async_req: Whether to execute the request asynchronously.
|
1320
1309
|
:type async_req: bool, optional
|
1321
1310
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1329,60 +1318,35 @@ class TeamsV1Api(BaseApi):
|
|
1329
1318
|
:return: Returns the result object.
|
1330
1319
|
If the method is called asynchronously,
|
1331
1320
|
returns the request thread.
|
1332
|
-
:rtype:
|
1321
|
+
:rtype: V1TeamMember
|
1333
1322
|
"""
|
1334
1323
|
kwargs["_return_http_data_only"] = True
|
1335
|
-
return self.
|
1336
|
-
owner,
|
1324
|
+
return self.get_team_member_with_http_info(
|
1325
|
+
owner, team, user, **kwargs
|
1337
1326
|
) # noqa: E501
|
1338
1327
|
|
1339
|
-
@
|
1340
|
-
def
|
1328
|
+
@validate_call
|
1329
|
+
def get_team_member_with_http_info(
|
1341
1330
|
self,
|
1342
1331
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1343
|
-
|
1344
|
-
|
1345
|
-
] = None,
|
1346
|
-
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1347
|
-
sort: Annotated[
|
1348
|
-
Optional[StrictStr], Field(description="Sort to order the search.")
|
1349
|
-
] = None,
|
1350
|
-
query: Annotated[
|
1351
|
-
Optional[StrictStr], Field(description="Query filter the search.")
|
1352
|
-
] = None,
|
1353
|
-
bookmarks: Annotated[
|
1354
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
1355
|
-
] = None,
|
1356
|
-
mode: Annotated[
|
1357
|
-
Optional[StrictStr], Field(description="Mode of the search.")
|
1358
|
-
] = None,
|
1359
|
-
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1332
|
+
team: Annotated[StrictStr, Field(..., description="Team under namespace")],
|
1333
|
+
user: Annotated[StrictStr, Field(..., description="Member under team")],
|
1360
1334
|
**kwargs
|
1361
1335
|
): # noqa: E501
|
1362
|
-
"""
|
1336
|
+
"""Get team member details # noqa: E501
|
1363
1337
|
|
1364
1338
|
This method makes a synchronous HTTP request by default. To make an
|
1365
1339
|
asynchronous HTTP request, please pass async_req=True
|
1366
1340
|
|
1367
|
-
>>> thread = api.
|
1341
|
+
>>> thread = api.get_team_member_with_http_info(owner, team, user, async_req=True)
|
1368
1342
|
>>> result = thread.get()
|
1369
1343
|
|
1370
1344
|
:param owner: Owner of the namespace (required)
|
1371
1345
|
:type owner: str
|
1372
|
-
:param
|
1373
|
-
:type
|
1374
|
-
:param
|
1375
|
-
:type
|
1376
|
-
:param sort: Sort to order the search.
|
1377
|
-
:type sort: str
|
1378
|
-
:param query: Query filter the search.
|
1379
|
-
:type query: str
|
1380
|
-
:param bookmarks: Filter by bookmarks.
|
1381
|
-
:type bookmarks: bool
|
1382
|
-
:param mode: Mode of the search.
|
1383
|
-
:type mode: str
|
1384
|
-
:param no_page: No pagination.
|
1385
|
-
:type no_page: bool
|
1346
|
+
:param team: Team under namespace (required)
|
1347
|
+
:type team: str
|
1348
|
+
:param user: Member under team (required)
|
1349
|
+
:type user: str
|
1386
1350
|
:param async_req: Whether to execute the request asynchronously.
|
1387
1351
|
:type async_req: bool, optional
|
1388
1352
|
:param _return_http_data_only: response data without head status code
|
@@ -1404,21 +1368,12 @@ class TeamsV1Api(BaseApi):
|
|
1404
1368
|
:return: Returns the result object.
|
1405
1369
|
If the method is called asynchronously,
|
1406
1370
|
returns the request thread.
|
1407
|
-
:rtype: tuple(
|
1371
|
+
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
1408
1372
|
"""
|
1409
1373
|
|
1410
1374
|
_params = locals()
|
1411
1375
|
|
1412
|
-
_all_params = [
|
1413
|
-
"owner",
|
1414
|
-
"offset",
|
1415
|
-
"limit",
|
1416
|
-
"sort",
|
1417
|
-
"query",
|
1418
|
-
"bookmarks",
|
1419
|
-
"mode",
|
1420
|
-
"no_page",
|
1421
|
-
]
|
1376
|
+
_all_params = ["owner", "team", "user"]
|
1422
1377
|
_all_params.extend(
|
1423
1378
|
[
|
1424
1379
|
"async_req",
|
@@ -1436,7 +1391,7 @@ class TeamsV1Api(BaseApi):
|
|
1436
1391
|
if _key not in _all_params:
|
1437
1392
|
raise ApiTypeError(
|
1438
1393
|
"Got an unexpected keyword argument '%s'"
|
1439
|
-
" to method
|
1394
|
+
" to method get_team_member" % _key
|
1440
1395
|
)
|
1441
1396
|
_params[_key] = _val
|
1442
1397
|
del _params["kwargs"]
|
@@ -1447,23 +1402,13 @@ class TeamsV1Api(BaseApi):
|
|
1447
1402
|
_path_params = {}
|
1448
1403
|
if _params["owner"]:
|
1449
1404
|
_path_params["owner"] = _params["owner"]
|
1405
|
+
if _params["team"]:
|
1406
|
+
_path_params["team"] = _params["team"]
|
1407
|
+
if _params["user"]:
|
1408
|
+
_path_params["user"] = _params["user"]
|
1450
1409
|
|
1451
1410
|
# process the query parameters
|
1452
1411
|
_query_params = []
|
1453
|
-
if _params.get("offset") is not None: # noqa: E501
|
1454
|
-
_query_params.append(("offset", _params["offset"]))
|
1455
|
-
if _params.get("limit") is not None: # noqa: E501
|
1456
|
-
_query_params.append(("limit", _params["limit"]))
|
1457
|
-
if _params.get("sort") is not None: # noqa: E501
|
1458
|
-
_query_params.append(("sort", _params["sort"]))
|
1459
|
-
if _params.get("query") is not None: # noqa: E501
|
1460
|
-
_query_params.append(("query", _params["query"]))
|
1461
|
-
if _params.get("bookmarks") is not None: # noqa: E501
|
1462
|
-
_query_params.append(("bookmarks", _params["bookmarks"]))
|
1463
|
-
if _params.get("mode") is not None: # noqa: E501
|
1464
|
-
_query_params.append(("mode", _params["mode"]))
|
1465
|
-
if _params.get("no_page") is not None: # noqa: E501
|
1466
|
-
_query_params.append(("no_page", _params["no_page"]))
|
1467
1412
|
|
1468
1413
|
# process the header parameters
|
1469
1414
|
_header_params = dict(_params.get("_headers", {}))
|
@@ -1484,14 +1429,14 @@ class TeamsV1Api(BaseApi):
|
|
1484
1429
|
_auth_settings = ["ApiKey"] # noqa: E501
|
1485
1430
|
|
1486
1431
|
_response_types_map = {
|
1487
|
-
"200": "
|
1432
|
+
"200": "V1TeamMember",
|
1488
1433
|
"204": "object",
|
1489
1434
|
"403": "object",
|
1490
1435
|
"404": "object",
|
1491
1436
|
}
|
1492
1437
|
|
1493
1438
|
return self.api_client.call_api(
|
1494
|
-
"/api/v1/orgs/{owner}/teams/
|
1439
|
+
"/api/v1/orgs/{owner}/teams/{team}/members/{user}",
|
1495
1440
|
"GET",
|
1496
1441
|
_path_params,
|
1497
1442
|
_query_params,
|
@@ -1509,53 +1454,2625 @@ class TeamsV1Api(BaseApi):
|
|
1509
1454
|
_request_auth=_params.get("_request_auth"),
|
1510
1455
|
)
|
1511
1456
|
|
1512
|
-
@
|
1513
|
-
def
|
1457
|
+
@validate_call
|
1458
|
+
def get_team_run(
|
1514
1459
|
self,
|
1515
1460
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1461
|
+
entity: Annotated[
|
1462
|
+
StrictStr,
|
1463
|
+
Field(
|
1464
|
+
..., description="Entity: project name, hub name, registry name, ..."
|
1465
|
+
),
|
1466
|
+
],
|
1467
|
+
uuid: Annotated[
|
1468
|
+
StrictStr, Field(..., description="Uuid identifier of the sub-entity")
|
1469
|
+
],
|
1470
|
+
**kwargs
|
1471
|
+
) -> V1Run: # noqa: E501
|
1472
|
+
"""Get a run in a team # noqa: E501
|
1473
|
+
|
1474
|
+
This method makes a synchronous HTTP request by default. To make an
|
1475
|
+
asynchronous HTTP request, please pass async_req=True
|
1476
|
+
|
1477
|
+
>>> thread = api.get_team_run(owner, entity, uuid, async_req=True)
|
1478
|
+
>>> result = thread.get()
|
1479
|
+
|
1480
|
+
:param owner: Owner of the namespace (required)
|
1481
|
+
:type owner: str
|
1482
|
+
:param entity: Entity: project name, hub name, registry name, ... (required)
|
1483
|
+
:type entity: str
|
1484
|
+
:param uuid: Uuid identifier of the sub-entity (required)
|
1485
|
+
:type uuid: str
|
1486
|
+
:param async_req: Whether to execute the request asynchronously.
|
1487
|
+
:type async_req: bool, optional
|
1488
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1489
|
+
be returned without reading/decoding response
|
1490
|
+
data. Default is True.
|
1491
|
+
:type _preload_content: bool, optional
|
1492
|
+
:param _request_timeout: timeout setting for this request. If one
|
1493
|
+
number provided, it will be total request
|
1494
|
+
timeout. It can also be a pair (tuple) of
|
1495
|
+
(connection, read) timeouts.
|
1496
|
+
:return: Returns the result object.
|
1497
|
+
If the method is called asynchronously,
|
1498
|
+
returns the request thread.
|
1499
|
+
:rtype: V1Run
|
1500
|
+
"""
|
1501
|
+
kwargs["_return_http_data_only"] = True
|
1502
|
+
return self.get_team_run_with_http_info(
|
1503
|
+
owner, entity, uuid, **kwargs
|
1504
|
+
) # noqa: E501
|
1505
|
+
|
1506
|
+
@validate_call
|
1507
|
+
def get_team_run_with_http_info(
|
1508
|
+
self,
|
1509
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1510
|
+
entity: Annotated[
|
1511
|
+
StrictStr,
|
1512
|
+
Field(
|
1513
|
+
..., description="Entity: project name, hub name, registry name, ..."
|
1514
|
+
),
|
1515
|
+
],
|
1516
|
+
uuid: Annotated[
|
1517
|
+
StrictStr, Field(..., description="Uuid identifier of the sub-entity")
|
1518
|
+
],
|
1519
|
+
**kwargs
|
1520
|
+
): # noqa: E501
|
1521
|
+
"""Get a run in a team # noqa: E501
|
1522
|
+
|
1523
|
+
This method makes a synchronous HTTP request by default. To make an
|
1524
|
+
asynchronous HTTP request, please pass async_req=True
|
1525
|
+
|
1526
|
+
>>> thread = api.get_team_run_with_http_info(owner, entity, uuid, async_req=True)
|
1527
|
+
>>> result = thread.get()
|
1528
|
+
|
1529
|
+
:param owner: Owner of the namespace (required)
|
1530
|
+
:type owner: str
|
1531
|
+
:param entity: Entity: project name, hub name, registry name, ... (required)
|
1532
|
+
:type entity: str
|
1533
|
+
:param uuid: Uuid identifier of the sub-entity (required)
|
1534
|
+
:type uuid: str
|
1535
|
+
:param async_req: Whether to execute the request asynchronously.
|
1536
|
+
:type async_req: bool, optional
|
1537
|
+
:param _return_http_data_only: response data without head status code
|
1538
|
+
and headers
|
1539
|
+
:type _return_http_data_only: bool, optional
|
1540
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1541
|
+
be returned without reading/decoding response
|
1542
|
+
data. Default is True.
|
1543
|
+
:type _preload_content: bool, optional
|
1544
|
+
:param _request_timeout: timeout setting for this request. If one
|
1545
|
+
number provided, it will be total request
|
1546
|
+
timeout. It can also be a pair (tuple) of
|
1547
|
+
(connection, read) timeouts.
|
1548
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1549
|
+
request; this effectively ignores the authentication
|
1550
|
+
in the spec for a single request.
|
1551
|
+
:type _request_auth: dict, optional
|
1552
|
+
:type _content_type: string, optional: force content-type for the request
|
1553
|
+
:return: Returns the result object.
|
1554
|
+
If the method is called asynchronously,
|
1555
|
+
returns the request thread.
|
1556
|
+
:rtype: tuple(V1Run, status_code(int), headers(HTTPHeaderDict))
|
1557
|
+
"""
|
1558
|
+
|
1559
|
+
_params = locals()
|
1560
|
+
|
1561
|
+
_all_params = ["owner", "entity", "uuid"]
|
1562
|
+
_all_params.extend(
|
1563
|
+
[
|
1564
|
+
"async_req",
|
1565
|
+
"_return_http_data_only",
|
1566
|
+
"_preload_content",
|
1567
|
+
"_request_timeout",
|
1568
|
+
"_request_auth",
|
1569
|
+
"_content_type",
|
1570
|
+
"_headers",
|
1571
|
+
]
|
1572
|
+
)
|
1573
|
+
|
1574
|
+
# validate the arguments
|
1575
|
+
for _key, _val in _params["kwargs"].items():
|
1576
|
+
if _key not in _all_params:
|
1577
|
+
raise ApiTypeError(
|
1578
|
+
"Got an unexpected keyword argument '%s'"
|
1579
|
+
" to method get_team_run" % _key
|
1580
|
+
)
|
1581
|
+
_params[_key] = _val
|
1582
|
+
del _params["kwargs"]
|
1583
|
+
|
1584
|
+
_collection_formats = {}
|
1585
|
+
|
1586
|
+
# process the path parameters
|
1587
|
+
_path_params = {}
|
1588
|
+
if _params["owner"]:
|
1589
|
+
_path_params["owner"] = _params["owner"]
|
1590
|
+
|
1591
|
+
if _params["entity"]:
|
1592
|
+
_path_params["entity"] = _params["entity"]
|
1593
|
+
|
1594
|
+
if _params["uuid"]:
|
1595
|
+
_path_params["uuid"] = _params["uuid"]
|
1596
|
+
|
1597
|
+
# process the query parameters
|
1598
|
+
_query_params = []
|
1599
|
+
# process the header parameters
|
1600
|
+
_header_params = dict(_params.get("_headers", {}))
|
1601
|
+
# process the form parameters
|
1602
|
+
_form_params = []
|
1603
|
+
_files = {}
|
1604
|
+
# process the body parameter
|
1605
|
+
_body_params = None
|
1606
|
+
# set the HTTP header `Accept`
|
1607
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1608
|
+
["application/json"]
|
1609
|
+
) # noqa: E501
|
1610
|
+
|
1611
|
+
# authentication setting
|
1612
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
1613
|
+
|
1614
|
+
_response_types_map = {
|
1615
|
+
"200": "V1Run",
|
1616
|
+
"204": "object",
|
1617
|
+
"403": "object",
|
1618
|
+
"404": "object",
|
1619
|
+
}
|
1620
|
+
|
1621
|
+
return self.api_client.call_api(
|
1622
|
+
"/api/v1/orgs/{owner}/teams/{entity}/runs/{uuid}",
|
1623
|
+
"GET",
|
1624
|
+
_path_params,
|
1625
|
+
_query_params,
|
1626
|
+
_header_params,
|
1627
|
+
body=_body_params,
|
1628
|
+
post_params=_form_params,
|
1629
|
+
files=_files,
|
1630
|
+
response_types_map=_response_types_map,
|
1631
|
+
auth_settings=_auth_settings,
|
1632
|
+
async_req=_params.get("async_req"),
|
1633
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
1634
|
+
_preload_content=_params.get("_preload_content", True),
|
1635
|
+
_request_timeout=_params.get("_request_timeout"),
|
1636
|
+
collection_formats=_collection_formats,
|
1637
|
+
_request_auth=_params.get("_request_auth"),
|
1638
|
+
)
|
1639
|
+
|
1640
|
+
@validate_call
|
1641
|
+
def get_team_runs(
|
1642
|
+
self,
|
1643
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1644
|
+
name: Annotated[
|
1645
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
1646
|
+
],
|
1647
|
+
offset: Annotated[
|
1648
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
1649
|
+
] = None,
|
1650
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1651
|
+
sort: Annotated[
|
1652
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
1653
|
+
] = None,
|
1654
|
+
query: Annotated[
|
1655
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
1656
|
+
] = None,
|
1657
|
+
bookmarks: Annotated[
|
1658
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
1659
|
+
] = None,
|
1660
|
+
mode: Annotated[
|
1661
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
1662
|
+
] = None,
|
1663
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1664
|
+
**kwargs
|
1665
|
+
) -> V1ListRunsResponse: # noqa: E501
|
1666
|
+
"""Get all runs in a team # noqa: E501
|
1667
|
+
|
1668
|
+
This method makes a synchronous HTTP request by default. To make an
|
1669
|
+
asynchronous HTTP request, please pass async_req=True
|
1670
|
+
|
1671
|
+
>>> thread = api.get_team_runs(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1672
|
+
>>> result = thread.get()
|
1673
|
+
|
1674
|
+
:param owner: Owner of the namespace (required)
|
1675
|
+
:type owner: str
|
1676
|
+
:param name: Entity managing the resource (required)
|
1677
|
+
:type name: str
|
1678
|
+
:param offset: Pagination offset.
|
1679
|
+
:type offset: int
|
1680
|
+
:param limit: Limit size.
|
1681
|
+
:type limit: int
|
1682
|
+
:param sort: Sort to order the search.
|
1683
|
+
:type sort: str
|
1684
|
+
:param query: Query filter the search.
|
1685
|
+
:type query: str
|
1686
|
+
:param bookmarks: Filter by bookmarks.
|
1687
|
+
:type bookmarks: bool
|
1688
|
+
:param mode: Mode of the search.
|
1689
|
+
:type mode: str
|
1690
|
+
:param no_page: No pagination.
|
1691
|
+
:type no_page: bool
|
1692
|
+
:param async_req: Whether to execute the request asynchronously.
|
1693
|
+
:type async_req: bool, optional
|
1694
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1695
|
+
be returned without reading/decoding response
|
1696
|
+
data. Default is True.
|
1697
|
+
:type _preload_content: bool, optional
|
1698
|
+
:param _request_timeout: timeout setting for this request. If one
|
1699
|
+
number provided, it will be total request
|
1700
|
+
timeout. It can also be a pair (tuple) of
|
1701
|
+
(connection, read) timeouts.
|
1702
|
+
:return: Returns the result object.
|
1703
|
+
If the method is called asynchronously,
|
1704
|
+
returns the request thread.
|
1705
|
+
:rtype: V1ListRunsResponse
|
1706
|
+
"""
|
1707
|
+
kwargs["_return_http_data_only"] = True
|
1708
|
+
return self.get_team_runs_with_http_info(
|
1709
|
+
owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
1710
|
+
) # noqa: E501
|
1711
|
+
|
1712
|
+
@validate_call
|
1713
|
+
def get_team_runs_with_http_info(
|
1714
|
+
self,
|
1715
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1716
|
+
name: Annotated[
|
1717
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
1718
|
+
],
|
1719
|
+
offset: Annotated[
|
1720
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
1721
|
+
] = None,
|
1722
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1723
|
+
sort: Annotated[
|
1724
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
1725
|
+
] = None,
|
1726
|
+
query: Annotated[
|
1727
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
1728
|
+
] = None,
|
1729
|
+
bookmarks: Annotated[
|
1730
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
1731
|
+
] = None,
|
1732
|
+
mode: Annotated[
|
1733
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
1734
|
+
] = None,
|
1735
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
1736
|
+
**kwargs
|
1737
|
+
): # noqa: E501
|
1738
|
+
"""Get all runs in a team # noqa: E501
|
1739
|
+
|
1740
|
+
This method makes a synchronous HTTP request by default. To make an
|
1741
|
+
asynchronous HTTP request, please pass async_req=True
|
1742
|
+
|
1743
|
+
>>> thread = api.get_team_runs_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1744
|
+
>>> result = thread.get()
|
1745
|
+
|
1746
|
+
:param owner: Owner of the namespace (required)
|
1747
|
+
:type owner: str
|
1748
|
+
:param name: Entity managing the resource (required)
|
1749
|
+
:type name: str
|
1750
|
+
:param offset: Pagination offset.
|
1751
|
+
:type offset: int
|
1752
|
+
:param limit: Limit size.
|
1753
|
+
:type limit: int
|
1754
|
+
:param sort: Sort to order the search.
|
1755
|
+
:type sort: str
|
1756
|
+
:param query: Query filter the search.
|
1757
|
+
:type query: str
|
1758
|
+
:param bookmarks: Filter by bookmarks.
|
1759
|
+
:type bookmarks: bool
|
1760
|
+
:param mode: Mode of the search.
|
1761
|
+
:type mode: str
|
1762
|
+
:param no_page: No pagination.
|
1763
|
+
:type no_page: bool
|
1764
|
+
:param async_req: Whether to execute the request asynchronously.
|
1765
|
+
:type async_req: bool, optional
|
1766
|
+
:param _return_http_data_only: response data without head status code
|
1767
|
+
and headers
|
1768
|
+
:type _return_http_data_only: bool, optional
|
1769
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1770
|
+
be returned without reading/decoding response
|
1771
|
+
data. Default is True.
|
1772
|
+
:type _preload_content: bool, optional
|
1773
|
+
:param _request_timeout: timeout setting for this request. If one
|
1774
|
+
number provided, it will be total request
|
1775
|
+
timeout. It can also be a pair (tuple) of
|
1776
|
+
(connection, read) timeouts.
|
1777
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1778
|
+
request; this effectively ignores the authentication
|
1779
|
+
in the spec for a single request.
|
1780
|
+
:type _request_auth: dict, optional
|
1781
|
+
:type _content_type: string, optional: force content-type for the request
|
1782
|
+
:return: Returns the result object.
|
1783
|
+
If the method is called asynchronously,
|
1784
|
+
returns the request thread.
|
1785
|
+
:rtype: tuple(V1ListRunsResponse, status_code(int), headers(HTTPHeaderDict))
|
1786
|
+
"""
|
1787
|
+
|
1788
|
+
_params = locals()
|
1789
|
+
|
1790
|
+
_all_params = [
|
1791
|
+
"owner",
|
1792
|
+
"name",
|
1793
|
+
"offset",
|
1794
|
+
"limit",
|
1795
|
+
"sort",
|
1796
|
+
"query",
|
1797
|
+
"bookmarks",
|
1798
|
+
"mode",
|
1799
|
+
"no_page",
|
1800
|
+
]
|
1801
|
+
_all_params.extend(
|
1802
|
+
[
|
1803
|
+
"async_req",
|
1804
|
+
"_return_http_data_only",
|
1805
|
+
"_preload_content",
|
1806
|
+
"_request_timeout",
|
1807
|
+
"_request_auth",
|
1808
|
+
"_content_type",
|
1809
|
+
"_headers",
|
1810
|
+
]
|
1811
|
+
)
|
1812
|
+
|
1813
|
+
# validate the arguments
|
1814
|
+
for _key, _val in _params["kwargs"].items():
|
1815
|
+
if _key not in _all_params:
|
1816
|
+
raise ApiTypeError(
|
1817
|
+
"Got an unexpected keyword argument '%s'"
|
1818
|
+
" to method get_team_runs" % _key
|
1819
|
+
)
|
1820
|
+
_params[_key] = _val
|
1821
|
+
del _params["kwargs"]
|
1822
|
+
|
1823
|
+
_collection_formats = {}
|
1824
|
+
|
1825
|
+
# process the path parameters
|
1826
|
+
_path_params = {}
|
1827
|
+
if _params["owner"]:
|
1828
|
+
_path_params["owner"] = _params["owner"]
|
1829
|
+
|
1830
|
+
if _params["name"]:
|
1831
|
+
_path_params["name"] = _params["name"]
|
1832
|
+
|
1833
|
+
# process the query parameters
|
1834
|
+
_query_params = []
|
1835
|
+
if _params.get("offset") is not None: # noqa: E501
|
1836
|
+
_query_params.append(("offset", _params["offset"]))
|
1837
|
+
|
1838
|
+
if _params.get("limit") is not None: # noqa: E501
|
1839
|
+
_query_params.append(("limit", _params["limit"]))
|
1840
|
+
|
1841
|
+
if _params.get("sort") is not None: # noqa: E501
|
1842
|
+
_query_params.append(("sort", _params["sort"]))
|
1843
|
+
|
1844
|
+
if _params.get("query") is not None: # noqa: E501
|
1845
|
+
_query_params.append(("query", _params["query"]))
|
1846
|
+
|
1847
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
1848
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
1849
|
+
|
1850
|
+
if _params.get("mode") is not None: # noqa: E501
|
1851
|
+
_query_params.append(("mode", _params["mode"]))
|
1852
|
+
|
1853
|
+
if _params.get("no_page") is not None: # noqa: E501
|
1854
|
+
_query_params.append(("no_page", _params["no_page"]))
|
1855
|
+
|
1856
|
+
# process the header parameters
|
1857
|
+
_header_params = dict(_params.get("_headers", {}))
|
1858
|
+
# process the form parameters
|
1859
|
+
_form_params = []
|
1860
|
+
_files = {}
|
1861
|
+
# process the body parameter
|
1862
|
+
_body_params = None
|
1863
|
+
# set the HTTP header `Accept`
|
1864
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1865
|
+
["application/json"]
|
1866
|
+
) # noqa: E501
|
1867
|
+
|
1868
|
+
# authentication setting
|
1869
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
1870
|
+
|
1871
|
+
_response_types_map = {
|
1872
|
+
"200": "V1ListRunsResponse",
|
1873
|
+
"204": "object",
|
1874
|
+
"403": "object",
|
1875
|
+
"404": "object",
|
1876
|
+
}
|
1877
|
+
|
1878
|
+
return self.api_client.call_api(
|
1879
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs",
|
1880
|
+
"GET",
|
1881
|
+
_path_params,
|
1882
|
+
_query_params,
|
1883
|
+
_header_params,
|
1884
|
+
body=_body_params,
|
1885
|
+
post_params=_form_params,
|
1886
|
+
files=_files,
|
1887
|
+
response_types_map=_response_types_map,
|
1888
|
+
auth_settings=_auth_settings,
|
1889
|
+
async_req=_params.get("async_req"),
|
1890
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
1891
|
+
_preload_content=_params.get("_preload_content", True),
|
1892
|
+
_request_timeout=_params.get("_request_timeout"),
|
1893
|
+
collection_formats=_collection_formats,
|
1894
|
+
_request_auth=_params.get("_request_auth"),
|
1895
|
+
)
|
1896
|
+
|
1897
|
+
@validate_call
|
1898
|
+
def get_team_stats(
|
1899
|
+
self,
|
1900
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1901
|
+
name: Annotated[
|
1902
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
1903
|
+
],
|
1904
|
+
offset: Annotated[
|
1905
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
1906
|
+
] = None,
|
1907
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1908
|
+
sort: Annotated[
|
1909
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
1910
|
+
] = None,
|
1911
|
+
query: Annotated[
|
1912
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
1913
|
+
] = None,
|
1914
|
+
bookmarks: Annotated[
|
1915
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
1916
|
+
] = None,
|
1917
|
+
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
1918
|
+
kind: Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None,
|
1919
|
+
aggregate: Annotated[
|
1920
|
+
Optional[StrictStr], Field(description="Stats aggregate.")
|
1921
|
+
] = None,
|
1922
|
+
groupby: Annotated[
|
1923
|
+
Optional[StrictStr], Field(description="Stats group.")
|
1924
|
+
] = None,
|
1925
|
+
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
1926
|
+
**kwargs
|
1927
|
+
) -> object: # noqa: E501
|
1928
|
+
"""Get team stats # noqa: E501
|
1929
|
+
|
1930
|
+
This method makes a synchronous HTTP request by default. To make an
|
1931
|
+
asynchronous HTTP request, please pass async_req=True
|
1932
|
+
|
1933
|
+
>>> thread = api.get_team_stats(owner, name, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
1934
|
+
>>> result = thread.get()
|
1935
|
+
|
1936
|
+
:param owner: Owner of the namespace (required)
|
1937
|
+
:type owner: str
|
1938
|
+
:param name: Entity managing the resource (required)
|
1939
|
+
:type name: str
|
1940
|
+
:param offset: Pagination offset.
|
1941
|
+
:type offset: int
|
1942
|
+
:param limit: Limit size.
|
1943
|
+
:type limit: int
|
1944
|
+
:param sort: Sort to order the search.
|
1945
|
+
:type sort: str
|
1946
|
+
:param query: Query filter the search.
|
1947
|
+
:type query: str
|
1948
|
+
:param bookmarks: Filter by bookmarks.
|
1949
|
+
:type bookmarks: bool
|
1950
|
+
:param mode: Stats Mode.
|
1951
|
+
:type mode: str
|
1952
|
+
:param kind: Stats Kind.
|
1953
|
+
:type kind: str
|
1954
|
+
:param aggregate: Stats aggregate.
|
1955
|
+
:type aggregate: str
|
1956
|
+
:param groupby: Stats group.
|
1957
|
+
:type groupby: str
|
1958
|
+
:param trunc: Stats trunc.
|
1959
|
+
:type trunc: str
|
1960
|
+
:param async_req: Whether to execute the request asynchronously.
|
1961
|
+
:type async_req: bool, optional
|
1962
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1963
|
+
be returned without reading/decoding response
|
1964
|
+
data. Default is True.
|
1965
|
+
:type _preload_content: bool, optional
|
1966
|
+
:param _request_timeout: timeout setting for this request. If one
|
1967
|
+
number provided, it will be total request
|
1968
|
+
timeout. It can also be a pair (tuple) of
|
1969
|
+
(connection, read) timeouts.
|
1970
|
+
:return: Returns the result object.
|
1971
|
+
If the method is called asynchronously,
|
1972
|
+
returns the request thread.
|
1973
|
+
:rtype: object
|
1974
|
+
"""
|
1975
|
+
kwargs["_return_http_data_only"] = True
|
1976
|
+
return self.get_team_stats_with_http_info(
|
1977
|
+
owner,
|
1978
|
+
name,
|
1979
|
+
offset,
|
1980
|
+
limit,
|
1981
|
+
sort,
|
1982
|
+
query,
|
1983
|
+
bookmarks,
|
1984
|
+
mode,
|
1985
|
+
kind,
|
1986
|
+
aggregate,
|
1987
|
+
groupby,
|
1988
|
+
trunc,
|
1989
|
+
**kwargs
|
1990
|
+
) # noqa: E501
|
1991
|
+
|
1992
|
+
@validate_call
|
1993
|
+
def get_team_stats_with_http_info(
|
1994
|
+
self,
|
1995
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1996
|
+
name: Annotated[
|
1997
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
1998
|
+
],
|
1999
|
+
offset: Annotated[
|
2000
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2001
|
+
] = None,
|
2002
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2003
|
+
sort: Annotated[
|
2004
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2005
|
+
] = None,
|
2006
|
+
query: Annotated[
|
2007
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2008
|
+
] = None,
|
2009
|
+
bookmarks: Annotated[
|
2010
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
2011
|
+
] = None,
|
2012
|
+
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
2013
|
+
kind: Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None,
|
2014
|
+
aggregate: Annotated[
|
2015
|
+
Optional[StrictStr], Field(description="Stats aggregate.")
|
2016
|
+
] = None,
|
2017
|
+
groupby: Annotated[
|
2018
|
+
Optional[StrictStr], Field(description="Stats group.")
|
2019
|
+
] = None,
|
2020
|
+
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
2021
|
+
**kwargs
|
2022
|
+
): # noqa: E501
|
2023
|
+
"""Get team stats # noqa: E501
|
2024
|
+
|
2025
|
+
This method makes a synchronous HTTP request by default. To make an
|
2026
|
+
asynchronous HTTP request, please pass async_req=True
|
2027
|
+
|
2028
|
+
>>> thread = api.get_team_stats_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
2029
|
+
>>> result = thread.get()
|
2030
|
+
|
2031
|
+
:param owner: Owner of the namespace (required)
|
2032
|
+
:type owner: str
|
2033
|
+
:param name: Entity managing the resource (required)
|
2034
|
+
:type name: str
|
2035
|
+
:param offset: Pagination offset.
|
2036
|
+
:type offset: int
|
2037
|
+
:param limit: Limit size.
|
2038
|
+
:type limit: int
|
2039
|
+
:param sort: Sort to order the search.
|
2040
|
+
:type sort: str
|
2041
|
+
:param query: Query filter the search.
|
2042
|
+
:type query: str
|
2043
|
+
:param bookmarks: Filter by bookmarks.
|
2044
|
+
:type bookmarks: bool
|
2045
|
+
:param mode: Stats Mode.
|
2046
|
+
:type mode: str
|
2047
|
+
:param kind: Stats Kind.
|
2048
|
+
:type kind: str
|
2049
|
+
:param aggregate: Stats aggregate.
|
2050
|
+
:type aggregate: str
|
2051
|
+
:param groupby: Stats group.
|
2052
|
+
:type groupby: str
|
2053
|
+
:param trunc: Stats trunc.
|
2054
|
+
:type trunc: str
|
2055
|
+
:param async_req: Whether to execute the request asynchronously.
|
2056
|
+
:type async_req: bool, optional
|
2057
|
+
:param _return_http_data_only: response data without head status code
|
2058
|
+
and headers
|
2059
|
+
:type _return_http_data_only: bool, optional
|
2060
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2061
|
+
be returned without reading/decoding response
|
2062
|
+
data. Default is True.
|
2063
|
+
:type _preload_content: bool, optional
|
2064
|
+
:param _request_timeout: timeout setting for this request. If one
|
2065
|
+
number provided, it will be total request
|
2066
|
+
timeout. It can also be a pair (tuple) of
|
2067
|
+
(connection, read) timeouts.
|
2068
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2069
|
+
request; this effectively ignores the authentication
|
2070
|
+
in the spec for a single request.
|
2071
|
+
:type _request_auth: dict, optional
|
2072
|
+
:type _content_type: string, optional: force content-type for the request
|
2073
|
+
:return: Returns the result object.
|
2074
|
+
If the method is called asynchronously,
|
2075
|
+
returns the request thread.
|
2076
|
+
:rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
2077
|
+
"""
|
2078
|
+
|
2079
|
+
_params = locals()
|
2080
|
+
|
2081
|
+
_all_params = [
|
2082
|
+
"owner",
|
2083
|
+
"name",
|
2084
|
+
"offset",
|
2085
|
+
"limit",
|
2086
|
+
"sort",
|
2087
|
+
"query",
|
2088
|
+
"bookmarks",
|
2089
|
+
"mode",
|
2090
|
+
"kind",
|
2091
|
+
"aggregate",
|
2092
|
+
"groupby",
|
2093
|
+
"trunc",
|
2094
|
+
]
|
2095
|
+
_all_params.extend(
|
2096
|
+
[
|
2097
|
+
"async_req",
|
2098
|
+
"_return_http_data_only",
|
2099
|
+
"_preload_content",
|
2100
|
+
"_request_timeout",
|
2101
|
+
"_request_auth",
|
2102
|
+
"_content_type",
|
2103
|
+
"_headers",
|
2104
|
+
]
|
2105
|
+
)
|
2106
|
+
|
2107
|
+
# validate the arguments
|
2108
|
+
for _key, _val in _params["kwargs"].items():
|
2109
|
+
if _key not in _all_params:
|
2110
|
+
raise ApiTypeError(
|
2111
|
+
"Got an unexpected keyword argument '%s'"
|
2112
|
+
" to method get_team_stats" % _key
|
2113
|
+
)
|
2114
|
+
_params[_key] = _val
|
2115
|
+
del _params["kwargs"]
|
2116
|
+
|
2117
|
+
_collection_formats = {}
|
2118
|
+
|
2119
|
+
# process the path parameters
|
2120
|
+
_path_params = {}
|
2121
|
+
if _params["owner"]:
|
2122
|
+
_path_params["owner"] = _params["owner"]
|
2123
|
+
|
2124
|
+
if _params["name"]:
|
2125
|
+
_path_params["name"] = _params["name"]
|
2126
|
+
|
2127
|
+
# process the query parameters
|
2128
|
+
_query_params = []
|
2129
|
+
if _params.get("offset") is not None: # noqa: E501
|
2130
|
+
_query_params.append(("offset", _params["offset"]))
|
2131
|
+
|
2132
|
+
if _params.get("limit") is not None: # noqa: E501
|
2133
|
+
_query_params.append(("limit", _params["limit"]))
|
2134
|
+
|
2135
|
+
if _params.get("sort") is not None: # noqa: E501
|
2136
|
+
_query_params.append(("sort", _params["sort"]))
|
2137
|
+
|
2138
|
+
if _params.get("query") is not None: # noqa: E501
|
2139
|
+
_query_params.append(("query", _params["query"]))
|
2140
|
+
|
2141
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
2142
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
2143
|
+
|
2144
|
+
if _params.get("mode") is not None: # noqa: E501
|
2145
|
+
_query_params.append(("mode", _params["mode"]))
|
2146
|
+
|
2147
|
+
if _params.get("kind") is not None: # noqa: E501
|
2148
|
+
_query_params.append(("kind", _params["kind"]))
|
2149
|
+
|
2150
|
+
if _params.get("aggregate") is not None: # noqa: E501
|
2151
|
+
_query_params.append(("aggregate", _params["aggregate"]))
|
2152
|
+
|
2153
|
+
if _params.get("groupby") is not None: # noqa: E501
|
2154
|
+
_query_params.append(("groupby", _params["groupby"]))
|
2155
|
+
|
2156
|
+
if _params.get("trunc") is not None: # noqa: E501
|
2157
|
+
_query_params.append(("trunc", _params["trunc"]))
|
2158
|
+
|
2159
|
+
# process the header parameters
|
2160
|
+
_header_params = dict(_params.get("_headers", {}))
|
2161
|
+
# process the form parameters
|
2162
|
+
_form_params = []
|
2163
|
+
_files = {}
|
2164
|
+
# process the body parameter
|
2165
|
+
_body_params = None
|
2166
|
+
# set the HTTP header `Accept`
|
2167
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
2168
|
+
["application/json"]
|
2169
|
+
) # noqa: E501
|
2170
|
+
|
2171
|
+
# authentication setting
|
2172
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
2173
|
+
|
2174
|
+
_response_types_map = {
|
2175
|
+
"200": "object",
|
2176
|
+
"204": "object",
|
2177
|
+
"403": "object",
|
2178
|
+
"404": "object",
|
2179
|
+
}
|
2180
|
+
|
2181
|
+
return self.api_client.call_api(
|
2182
|
+
"/api/v1/orgs/{owner}/teams/{name}/stats",
|
2183
|
+
"GET",
|
2184
|
+
_path_params,
|
2185
|
+
_query_params,
|
2186
|
+
_header_params,
|
2187
|
+
body=_body_params,
|
2188
|
+
post_params=_form_params,
|
2189
|
+
files=_files,
|
2190
|
+
response_types_map=_response_types_map,
|
2191
|
+
auth_settings=_auth_settings,
|
2192
|
+
async_req=_params.get("async_req"),
|
2193
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
2194
|
+
_preload_content=_params.get("_preload_content", True),
|
2195
|
+
_request_timeout=_params.get("_request_timeout"),
|
2196
|
+
collection_formats=_collection_formats,
|
2197
|
+
_request_auth=_params.get("_request_auth"),
|
2198
|
+
)
|
2199
|
+
|
2200
|
+
@validate_call
|
2201
|
+
def get_team_versions(
|
2202
|
+
self,
|
2203
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2204
|
+
entity: Annotated[
|
2205
|
+
StrictStr, Field(..., description="Entity name under namespace")
|
2206
|
+
],
|
2207
|
+
kind: Annotated[StrictStr, Field(..., description="Version Kind")],
|
2208
|
+
offset: Annotated[
|
2209
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2210
|
+
] = None,
|
2211
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2212
|
+
sort: Annotated[
|
2213
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2214
|
+
] = None,
|
2215
|
+
query: Annotated[
|
2216
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2217
|
+
] = None,
|
2218
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2219
|
+
**kwargs
|
2220
|
+
) -> V1ListProjectVersionsResponse: # noqa: E501
|
2221
|
+
"""Get all runs in a team # noqa: E501
|
2222
|
+
|
2223
|
+
This method makes a synchronous HTTP request by default. To make an
|
2224
|
+
asynchronous HTTP request, please pass async_req=True
|
2225
|
+
|
2226
|
+
>>> thread = api.get_team_versions(owner, entity, kind, offset, limit, sort, query, no_page, async_req=True)
|
2227
|
+
>>> result = thread.get()
|
2228
|
+
|
2229
|
+
:param owner: Owner of the namespace (required)
|
2230
|
+
:type owner: str
|
2231
|
+
:param entity: Entity name under namespace (required)
|
2232
|
+
:type entity: str
|
2233
|
+
:param kind: Version Kind (required)
|
2234
|
+
:type kind: str
|
2235
|
+
:param offset: Pagination offset.
|
2236
|
+
:type offset: int
|
2237
|
+
:param limit: Limit size.
|
2238
|
+
:type limit: int
|
2239
|
+
:param sort: Sort to order the search.
|
2240
|
+
:type sort: str
|
2241
|
+
:param query: Query filter the search.
|
2242
|
+
:type query: str
|
2243
|
+
:param no_page: No pagination.
|
2244
|
+
:type no_page: bool
|
2245
|
+
:param async_req: Whether to execute the request asynchronously.
|
2246
|
+
:type async_req: bool, optional
|
2247
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2248
|
+
be returned without reading/decoding response
|
2249
|
+
data. Default is True.
|
2250
|
+
:type _preload_content: bool, optional
|
2251
|
+
:param _request_timeout: timeout setting for this request. If one
|
2252
|
+
number provided, it will be total request
|
2253
|
+
timeout. It can also be a pair (tuple) of
|
2254
|
+
(connection, read) timeouts.
|
2255
|
+
:return: Returns the result object.
|
2256
|
+
If the method is called asynchronously,
|
2257
|
+
returns the request thread.
|
2258
|
+
:rtype: V1ListProjectVersionsResponse
|
2259
|
+
"""
|
2260
|
+
kwargs["_return_http_data_only"] = True
|
2261
|
+
return self.get_team_versions_with_http_info(
|
2262
|
+
owner, entity, kind, offset, limit, sort, query, no_page, **kwargs
|
2263
|
+
) # noqa: E501
|
2264
|
+
|
2265
|
+
@validate_call
|
2266
|
+
def get_team_versions_with_http_info(
|
2267
|
+
self,
|
2268
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2269
|
+
entity: Annotated[
|
2270
|
+
StrictStr, Field(..., description="Entity name under namespace")
|
2271
|
+
],
|
2272
|
+
kind: Annotated[StrictStr, Field(..., description="Version Kind")],
|
2273
|
+
offset: Annotated[
|
2274
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2275
|
+
] = None,
|
2276
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2277
|
+
sort: Annotated[
|
2278
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2279
|
+
] = None,
|
2280
|
+
query: Annotated[
|
2281
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2282
|
+
] = None,
|
2283
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2284
|
+
**kwargs
|
2285
|
+
): # noqa: E501
|
2286
|
+
"""Get all runs in a team # noqa: E501
|
2287
|
+
|
2288
|
+
This method makes a synchronous HTTP request by default. To make an
|
2289
|
+
asynchronous HTTP request, please pass async_req=True
|
2290
|
+
|
2291
|
+
>>> thread = api.get_team_versions_with_http_info(owner, entity, kind, offset, limit, sort, query, no_page, async_req=True)
|
2292
|
+
>>> result = thread.get()
|
2293
|
+
|
2294
|
+
:param owner: Owner of the namespace (required)
|
2295
|
+
:type owner: str
|
2296
|
+
:param entity: Entity name under namespace (required)
|
2297
|
+
:type entity: str
|
2298
|
+
:param kind: Version Kind (required)
|
2299
|
+
:type kind: str
|
2300
|
+
:param offset: Pagination offset.
|
2301
|
+
:type offset: int
|
2302
|
+
:param limit: Limit size.
|
2303
|
+
:type limit: int
|
2304
|
+
:param sort: Sort to order the search.
|
2305
|
+
:type sort: str
|
2306
|
+
:param query: Query filter the search.
|
2307
|
+
:type query: str
|
2308
|
+
:param no_page: No pagination.
|
2309
|
+
:type no_page: bool
|
2310
|
+
:param async_req: Whether to execute the request asynchronously.
|
2311
|
+
:type async_req: bool, optional
|
2312
|
+
:param _return_http_data_only: response data without head status code
|
2313
|
+
and headers
|
2314
|
+
:type _return_http_data_only: bool, optional
|
2315
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2316
|
+
be returned without reading/decoding response
|
2317
|
+
data. Default is True.
|
2318
|
+
:type _preload_content: bool, optional
|
2319
|
+
:param _request_timeout: timeout setting for this request. If one
|
2320
|
+
number provided, it will be total request
|
2321
|
+
timeout. It can also be a pair (tuple) of
|
2322
|
+
(connection, read) timeouts.
|
2323
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2324
|
+
request; this effectively ignores the authentication
|
2325
|
+
in the spec for a single request.
|
2326
|
+
:type _request_auth: dict, optional
|
2327
|
+
:type _content_type: string, optional: force content-type for the request
|
2328
|
+
:return: Returns the result object.
|
2329
|
+
If the method is called asynchronously,
|
2330
|
+
returns the request thread.
|
2331
|
+
:rtype: tuple(V1ListProjectVersionsResponse, status_code(int), headers(HTTPHeaderDict))
|
2332
|
+
"""
|
2333
|
+
|
2334
|
+
_params = locals()
|
2335
|
+
|
2336
|
+
_all_params = [
|
2337
|
+
"owner",
|
2338
|
+
"entity",
|
2339
|
+
"kind",
|
2340
|
+
"offset",
|
2341
|
+
"limit",
|
2342
|
+
"sort",
|
2343
|
+
"query",
|
2344
|
+
"no_page",
|
2345
|
+
]
|
2346
|
+
_all_params.extend(
|
2347
|
+
[
|
2348
|
+
"async_req",
|
2349
|
+
"_return_http_data_only",
|
2350
|
+
"_preload_content",
|
2351
|
+
"_request_timeout",
|
2352
|
+
"_request_auth",
|
2353
|
+
"_content_type",
|
2354
|
+
"_headers",
|
2355
|
+
]
|
2356
|
+
)
|
2357
|
+
|
2358
|
+
# validate the arguments
|
2359
|
+
for _key, _val in _params["kwargs"].items():
|
2360
|
+
if _key not in _all_params:
|
2361
|
+
raise ApiTypeError(
|
2362
|
+
"Got an unexpected keyword argument '%s'"
|
2363
|
+
" to method get_team_versions" % _key
|
2364
|
+
)
|
2365
|
+
_params[_key] = _val
|
2366
|
+
del _params["kwargs"]
|
2367
|
+
|
2368
|
+
_collection_formats = {}
|
2369
|
+
|
2370
|
+
# process the path parameters
|
2371
|
+
_path_params = {}
|
2372
|
+
if _params["owner"]:
|
2373
|
+
_path_params["owner"] = _params["owner"]
|
2374
|
+
|
2375
|
+
if _params["entity"]:
|
2376
|
+
_path_params["entity"] = _params["entity"]
|
2377
|
+
|
2378
|
+
if _params["kind"]:
|
2379
|
+
_path_params["kind"] = _params["kind"]
|
2380
|
+
|
2381
|
+
# process the query parameters
|
2382
|
+
_query_params = []
|
2383
|
+
if _params.get("offset") is not None: # noqa: E501
|
2384
|
+
_query_params.append(("offset", _params["offset"]))
|
2385
|
+
|
2386
|
+
if _params.get("limit") is not None: # noqa: E501
|
2387
|
+
_query_params.append(("limit", _params["limit"]))
|
2388
|
+
|
2389
|
+
if _params.get("sort") is not None: # noqa: E501
|
2390
|
+
_query_params.append(("sort", _params["sort"]))
|
2391
|
+
|
2392
|
+
if _params.get("query") is not None: # noqa: E501
|
2393
|
+
_query_params.append(("query", _params["query"]))
|
2394
|
+
|
2395
|
+
if _params.get("no_page") is not None: # noqa: E501
|
2396
|
+
_query_params.append(("no_page", _params["no_page"]))
|
2397
|
+
|
2398
|
+
# process the header parameters
|
2399
|
+
_header_params = dict(_params.get("_headers", {}))
|
2400
|
+
# process the form parameters
|
2401
|
+
_form_params = []
|
2402
|
+
_files = {}
|
2403
|
+
# process the body parameter
|
2404
|
+
_body_params = None
|
2405
|
+
# set the HTTP header `Accept`
|
2406
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
2407
|
+
["application/json"]
|
2408
|
+
) # noqa: E501
|
2409
|
+
|
2410
|
+
# authentication setting
|
2411
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
2412
|
+
|
2413
|
+
_response_types_map = {
|
2414
|
+
"200": "V1ListProjectVersionsResponse",
|
2415
|
+
"204": "object",
|
2416
|
+
"403": "object",
|
2417
|
+
"404": "object",
|
2418
|
+
}
|
2419
|
+
|
2420
|
+
return self.api_client.call_api(
|
2421
|
+
"/api/v1/orgs/{owner}/teams/{entity}/versions/{kind}",
|
2422
|
+
"GET",
|
2423
|
+
_path_params,
|
2424
|
+
_query_params,
|
2425
|
+
_header_params,
|
2426
|
+
body=_body_params,
|
2427
|
+
post_params=_form_params,
|
2428
|
+
files=_files,
|
2429
|
+
response_types_map=_response_types_map,
|
2430
|
+
auth_settings=_auth_settings,
|
2431
|
+
async_req=_params.get("async_req"),
|
2432
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
2433
|
+
_preload_content=_params.get("_preload_content", True),
|
2434
|
+
_request_timeout=_params.get("_request_timeout"),
|
2435
|
+
collection_formats=_collection_formats,
|
2436
|
+
_request_auth=_params.get("_request_auth"),
|
2437
|
+
)
|
2438
|
+
|
2439
|
+
@validate_call
|
2440
|
+
def invalidate_team_runs(
|
2441
|
+
self,
|
2442
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2443
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
2444
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
2445
|
+
**kwargs
|
2446
|
+
) -> None: # noqa: E501
|
2447
|
+
"""Invalidate cross-project runs selection # noqa: E501
|
2448
|
+
|
2449
|
+
This method makes a synchronous HTTP request by default. To make an
|
2450
|
+
asynchronous HTTP request, please pass async_req=True
|
2451
|
+
|
2452
|
+
>>> thread = api.invalidate_team_runs(owner, name, body, async_req=True)
|
2453
|
+
>>> result = thread.get()
|
2454
|
+
|
2455
|
+
:param owner: Owner of the namespace (required)
|
2456
|
+
:type owner: str
|
2457
|
+
:param name: Entity under namespace (required)
|
2458
|
+
:type name: str
|
2459
|
+
:param body: Uuids of the entities (required)
|
2460
|
+
:type body: V1Uuids
|
2461
|
+
:param async_req: Whether to execute the request asynchronously.
|
2462
|
+
:type async_req: bool, optional
|
2463
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2464
|
+
be returned without reading/decoding response
|
2465
|
+
data. Default is True.
|
2466
|
+
:type _preload_content: bool, optional
|
2467
|
+
:param _request_timeout: timeout setting for this request. If one
|
2468
|
+
number provided, it will be total request
|
2469
|
+
timeout. It can also be a pair (tuple) of
|
2470
|
+
(connection, read) timeouts.
|
2471
|
+
:return: Returns the result object.
|
2472
|
+
If the method is called asynchronously,
|
2473
|
+
returns the request thread.
|
2474
|
+
:rtype: None
|
2475
|
+
"""
|
2476
|
+
kwargs["_return_http_data_only"] = True
|
2477
|
+
return self.invalidate_team_runs_with_http_info(
|
2478
|
+
owner, name, body, **kwargs
|
2479
|
+
) # noqa: E501
|
2480
|
+
|
2481
|
+
@validate_call
|
2482
|
+
def invalidate_team_runs_with_http_info(
|
2483
|
+
self,
|
2484
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2485
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
2486
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
2487
|
+
**kwargs
|
2488
|
+
): # noqa: E501
|
2489
|
+
"""Invalidate cross-project runs selection # noqa: E501
|
2490
|
+
|
2491
|
+
This method makes a synchronous HTTP request by default. To make an
|
2492
|
+
asynchronous HTTP request, please pass async_req=True
|
2493
|
+
|
2494
|
+
>>> thread = api.invalidate_team_runs_with_http_info(owner, name, body, async_req=True)
|
2495
|
+
>>> result = thread.get()
|
2496
|
+
|
2497
|
+
:param owner: Owner of the namespace (required)
|
2498
|
+
:type owner: str
|
2499
|
+
:param name: Entity under namespace (required)
|
2500
|
+
:type name: str
|
2501
|
+
:param body: Uuids of the entities (required)
|
2502
|
+
:type body: V1Uuids
|
2503
|
+
:param async_req: Whether to execute the request asynchronously.
|
2504
|
+
:type async_req: bool, optional
|
2505
|
+
:param _return_http_data_only: response data without head status code
|
2506
|
+
and headers
|
2507
|
+
:type _return_http_data_only: bool, optional
|
2508
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2509
|
+
be returned without reading/decoding response
|
2510
|
+
data. Default is True.
|
2511
|
+
:type _preload_content: bool, optional
|
2512
|
+
:param _request_timeout: timeout setting for this request. If one
|
2513
|
+
number provided, it will be total request
|
2514
|
+
timeout. It can also be a pair (tuple) of
|
2515
|
+
(connection, read) timeouts.
|
2516
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2517
|
+
request; this effectively ignores the authentication
|
2518
|
+
in the spec for a single request.
|
2519
|
+
:type _request_auth: dict, optional
|
2520
|
+
:type _content_type: string, optional: force content-type for the request
|
2521
|
+
:return: Returns the result object.
|
2522
|
+
If the method is called asynchronously,
|
2523
|
+
returns the request thread.
|
2524
|
+
:rtype: None
|
2525
|
+
"""
|
2526
|
+
|
2527
|
+
_params = locals()
|
2528
|
+
|
2529
|
+
_all_params = ["owner", "name", "body"]
|
2530
|
+
_all_params.extend(
|
2531
|
+
[
|
2532
|
+
"async_req",
|
2533
|
+
"_return_http_data_only",
|
2534
|
+
"_preload_content",
|
2535
|
+
"_request_timeout",
|
2536
|
+
"_request_auth",
|
2537
|
+
"_content_type",
|
2538
|
+
"_headers",
|
2539
|
+
]
|
2540
|
+
)
|
2541
|
+
|
2542
|
+
# validate the arguments
|
2543
|
+
for _key, _val in _params["kwargs"].items():
|
2544
|
+
if _key not in _all_params:
|
2545
|
+
raise ApiTypeError(
|
2546
|
+
"Got an unexpected keyword argument '%s'"
|
2547
|
+
" to method invalidate_team_runs" % _key
|
2548
|
+
)
|
2549
|
+
_params[_key] = _val
|
2550
|
+
del _params["kwargs"]
|
2551
|
+
|
2552
|
+
_collection_formats = {}
|
2553
|
+
|
2554
|
+
# process the path parameters
|
2555
|
+
_path_params = {}
|
2556
|
+
if _params["owner"]:
|
2557
|
+
_path_params["owner"] = _params["owner"]
|
2558
|
+
|
2559
|
+
if _params["name"]:
|
2560
|
+
_path_params["name"] = _params["name"]
|
2561
|
+
|
2562
|
+
# process the query parameters
|
2563
|
+
_query_params = []
|
2564
|
+
# process the header parameters
|
2565
|
+
_header_params = dict(_params.get("_headers", {}))
|
2566
|
+
# process the form parameters
|
2567
|
+
_form_params = []
|
2568
|
+
_files = {}
|
2569
|
+
# process the body parameter
|
2570
|
+
_body_params = None
|
2571
|
+
if _params["body"]:
|
2572
|
+
_body_params = _params["body"]
|
2573
|
+
|
2574
|
+
# set the HTTP header `Accept`
|
2575
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
2576
|
+
["application/json"]
|
2577
|
+
) # noqa: E501
|
2578
|
+
|
2579
|
+
# set the HTTP header `Content-Type`
|
2580
|
+
_content_types_list = _params.get(
|
2581
|
+
"_content_type",
|
2582
|
+
self.api_client.select_header_content_type(["application/json"]),
|
2583
|
+
)
|
2584
|
+
if _content_types_list:
|
2585
|
+
_header_params["Content-Type"] = _content_types_list
|
2586
|
+
|
2587
|
+
# authentication setting
|
2588
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
2589
|
+
|
2590
|
+
_response_types_map = {}
|
2591
|
+
|
2592
|
+
return self.api_client.call_api(
|
2593
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/invalidate",
|
2594
|
+
"POST",
|
2595
|
+
_path_params,
|
2596
|
+
_query_params,
|
2597
|
+
_header_params,
|
2598
|
+
body=_body_params,
|
2599
|
+
post_params=_form_params,
|
2600
|
+
files=_files,
|
2601
|
+
response_types_map=_response_types_map,
|
2602
|
+
auth_settings=_auth_settings,
|
2603
|
+
async_req=_params.get("async_req"),
|
2604
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
2605
|
+
_preload_content=_params.get("_preload_content", True),
|
2606
|
+
_request_timeout=_params.get("_request_timeout"),
|
2607
|
+
collection_formats=_collection_formats,
|
2608
|
+
_request_auth=_params.get("_request_auth"),
|
2609
|
+
)
|
2610
|
+
|
2611
|
+
@validate_call
|
2612
|
+
def list_team_members(
|
2613
|
+
self,
|
2614
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2615
|
+
name: Annotated[
|
2616
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
2617
|
+
],
|
2618
|
+
offset: Annotated[
|
2619
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2620
|
+
] = None,
|
2621
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2622
|
+
sort: Annotated[
|
2623
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2624
|
+
] = None,
|
2625
|
+
query: Annotated[
|
2626
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2627
|
+
] = None,
|
2628
|
+
bookmarks: Annotated[
|
2629
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
2630
|
+
] = None,
|
2631
|
+
mode: Annotated[
|
2632
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
2633
|
+
] = None,
|
2634
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2635
|
+
**kwargs
|
2636
|
+
) -> V1ListTeamMembersResponse: # noqa: E501
|
2637
|
+
"""Get team members # noqa: E501
|
2638
|
+
|
2639
|
+
This method makes a synchronous HTTP request by default. To make an
|
2640
|
+
asynchronous HTTP request, please pass async_req=True
|
2641
|
+
|
2642
|
+
>>> thread = api.list_team_members(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2643
|
+
>>> result = thread.get()
|
2644
|
+
|
2645
|
+
:param owner: Owner of the namespace (required)
|
2646
|
+
:type owner: str
|
2647
|
+
:param name: Entity managing the resource (required)
|
2648
|
+
:type name: str
|
2649
|
+
:param offset: Pagination offset.
|
2650
|
+
:type offset: int
|
2651
|
+
:param limit: Limit size.
|
2652
|
+
:type limit: int
|
2653
|
+
:param sort: Sort to order the search.
|
2654
|
+
:type sort: str
|
2655
|
+
:param query: Query filter the search.
|
2656
|
+
:type query: str
|
2657
|
+
:param bookmarks: Filter by bookmarks.
|
2658
|
+
:type bookmarks: bool
|
2659
|
+
:param mode: Mode of the search.
|
2660
|
+
:type mode: str
|
2661
|
+
:param no_page: No pagination.
|
2662
|
+
:type no_page: bool
|
2663
|
+
:param async_req: Whether to execute the request asynchronously.
|
2664
|
+
:type async_req: bool, optional
|
2665
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2666
|
+
be returned without reading/decoding response
|
2667
|
+
data. Default is True.
|
2668
|
+
:type _preload_content: bool, optional
|
2669
|
+
:param _request_timeout: timeout setting for this request. If one
|
2670
|
+
number provided, it will be total request
|
2671
|
+
timeout. It can also be a pair (tuple) of
|
2672
|
+
(connection, read) timeouts.
|
2673
|
+
:return: Returns the result object.
|
2674
|
+
If the method is called asynchronously,
|
2675
|
+
returns the request thread.
|
2676
|
+
:rtype: V1ListTeamMembersResponse
|
2677
|
+
"""
|
2678
|
+
kwargs["_return_http_data_only"] = True
|
2679
|
+
return self.list_team_members_with_http_info(
|
2680
|
+
owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
2681
|
+
) # noqa: E501
|
2682
|
+
|
2683
|
+
@validate_call
|
2684
|
+
def list_team_members_with_http_info(
|
2685
|
+
self,
|
2686
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2687
|
+
name: Annotated[
|
2688
|
+
StrictStr, Field(..., description="Entity managing the resource")
|
2689
|
+
],
|
2690
|
+
offset: Annotated[
|
2691
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2692
|
+
] = None,
|
2693
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2694
|
+
sort: Annotated[
|
2695
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2696
|
+
] = None,
|
2697
|
+
query: Annotated[
|
2698
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2699
|
+
] = None,
|
2700
|
+
bookmarks: Annotated[
|
2701
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
2702
|
+
] = None,
|
2703
|
+
mode: Annotated[
|
2704
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
2705
|
+
] = None,
|
2706
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2707
|
+
**kwargs
|
2708
|
+
): # noqa: E501
|
2709
|
+
"""Get team members # noqa: E501
|
2710
|
+
|
2711
|
+
This method makes a synchronous HTTP request by default. To make an
|
2712
|
+
asynchronous HTTP request, please pass async_req=True
|
2713
|
+
|
2714
|
+
>>> thread = api.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2715
|
+
>>> result = thread.get()
|
2716
|
+
|
2717
|
+
:param owner: Owner of the namespace (required)
|
2718
|
+
:type owner: str
|
2719
|
+
:param name: Entity managing the resource (required)
|
2720
|
+
:type name: str
|
2721
|
+
:param offset: Pagination offset.
|
2722
|
+
:type offset: int
|
2723
|
+
:param limit: Limit size.
|
2724
|
+
:type limit: int
|
2725
|
+
:param sort: Sort to order the search.
|
2726
|
+
:type sort: str
|
2727
|
+
:param query: Query filter the search.
|
2728
|
+
:type query: str
|
2729
|
+
:param bookmarks: Filter by bookmarks.
|
2730
|
+
:type bookmarks: bool
|
2731
|
+
:param mode: Mode of the search.
|
2732
|
+
:type mode: str
|
2733
|
+
:param no_page: No pagination.
|
2734
|
+
:type no_page: bool
|
2735
|
+
:param async_req: Whether to execute the request asynchronously.
|
2736
|
+
:type async_req: bool, optional
|
2737
|
+
:param _return_http_data_only: response data without head status code
|
2738
|
+
and headers
|
2739
|
+
:type _return_http_data_only: bool, optional
|
2740
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2741
|
+
be returned without reading/decoding response
|
2742
|
+
data. Default is True.
|
2743
|
+
:type _preload_content: bool, optional
|
2744
|
+
:param _request_timeout: timeout setting for this request. If one
|
2745
|
+
number provided, it will be total request
|
2746
|
+
timeout. It can also be a pair (tuple) of
|
2747
|
+
(connection, read) timeouts.
|
2748
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2749
|
+
request; this effectively ignores the authentication
|
2750
|
+
in the spec for a single request.
|
2751
|
+
:type _request_auth: dict, optional
|
2752
|
+
:type _content_type: string, optional: force content-type for the request
|
2753
|
+
:return: Returns the result object.
|
2754
|
+
If the method is called asynchronously,
|
2755
|
+
returns the request thread.
|
2756
|
+
:rtype: tuple(V1ListTeamMembersResponse, status_code(int), headers(HTTPHeaderDict))
|
2757
|
+
"""
|
2758
|
+
|
2759
|
+
_params = locals()
|
2760
|
+
|
2761
|
+
_all_params = [
|
2762
|
+
"owner",
|
2763
|
+
"name",
|
2764
|
+
"offset",
|
2765
|
+
"limit",
|
2766
|
+
"sort",
|
2767
|
+
"query",
|
2768
|
+
"bookmarks",
|
2769
|
+
"mode",
|
2770
|
+
"no_page",
|
2771
|
+
]
|
2772
|
+
_all_params.extend(
|
2773
|
+
[
|
2774
|
+
"async_req",
|
2775
|
+
"_return_http_data_only",
|
2776
|
+
"_preload_content",
|
2777
|
+
"_request_timeout",
|
2778
|
+
"_request_auth",
|
2779
|
+
"_content_type",
|
2780
|
+
"_headers",
|
2781
|
+
]
|
2782
|
+
)
|
2783
|
+
|
2784
|
+
# validate the arguments
|
2785
|
+
for _key, _val in _params["kwargs"].items():
|
2786
|
+
if _key not in _all_params:
|
2787
|
+
raise ApiTypeError(
|
2788
|
+
"Got an unexpected keyword argument '%s'"
|
2789
|
+
" to method list_team_members" % _key
|
2790
|
+
)
|
2791
|
+
_params[_key] = _val
|
2792
|
+
del _params["kwargs"]
|
2793
|
+
|
2794
|
+
_collection_formats = {}
|
2795
|
+
|
2796
|
+
# process the path parameters
|
2797
|
+
_path_params = {}
|
2798
|
+
if _params["owner"]:
|
2799
|
+
_path_params["owner"] = _params["owner"]
|
2800
|
+
if _params["name"]:
|
2801
|
+
_path_params["name"] = _params["name"]
|
2802
|
+
|
2803
|
+
# process the query parameters
|
2804
|
+
_query_params = []
|
2805
|
+
if _params.get("offset") is not None: # noqa: E501
|
2806
|
+
_query_params.append(("offset", _params["offset"]))
|
2807
|
+
if _params.get("limit") is not None: # noqa: E501
|
2808
|
+
_query_params.append(("limit", _params["limit"]))
|
2809
|
+
if _params.get("sort") is not None: # noqa: E501
|
2810
|
+
_query_params.append(("sort", _params["sort"]))
|
2811
|
+
if _params.get("query") is not None: # noqa: E501
|
2812
|
+
_query_params.append(("query", _params["query"]))
|
2813
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
2814
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
2815
|
+
if _params.get("mode") is not None: # noqa: E501
|
2816
|
+
_query_params.append(("mode", _params["mode"]))
|
2817
|
+
if _params.get("no_page") is not None: # noqa: E501
|
2818
|
+
_query_params.append(("no_page", _params["no_page"]))
|
2819
|
+
|
2820
|
+
# process the header parameters
|
2821
|
+
_header_params = dict(_params.get("_headers", {}))
|
2822
|
+
|
2823
|
+
# process the form parameters
|
2824
|
+
_form_params = []
|
2825
|
+
_files = {}
|
2826
|
+
|
2827
|
+
# process the body parameter
|
2828
|
+
_body_params = None
|
2829
|
+
|
2830
|
+
# set the HTTP header `Accept`
|
2831
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
2832
|
+
["application/json"]
|
2833
|
+
) # noqa: E501
|
2834
|
+
|
2835
|
+
# authentication setting
|
2836
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
2837
|
+
|
2838
|
+
_response_types_map = {
|
2839
|
+
"200": "V1ListTeamMembersResponse",
|
2840
|
+
"204": "object",
|
2841
|
+
"403": "object",
|
2842
|
+
"404": "object",
|
2843
|
+
}
|
2844
|
+
|
2845
|
+
return self.api_client.call_api(
|
2846
|
+
"/api/v1/orgs/{owner}/teams/{name}/members",
|
2847
|
+
"GET",
|
2848
|
+
_path_params,
|
2849
|
+
_query_params,
|
2850
|
+
_header_params,
|
2851
|
+
body=_body_params,
|
2852
|
+
post_params=_form_params,
|
2853
|
+
files=_files,
|
2854
|
+
response_types_map=_response_types_map,
|
2855
|
+
auth_settings=_auth_settings,
|
2856
|
+
async_req=_params.get("async_req"),
|
2857
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
2858
|
+
_preload_content=_params.get("_preload_content", True),
|
2859
|
+
_request_timeout=_params.get("_request_timeout"),
|
2860
|
+
collection_formats=_collection_formats,
|
2861
|
+
_request_auth=_params.get("_request_auth"),
|
2862
|
+
)
|
2863
|
+
|
2864
|
+
@validate_call
|
2865
|
+
def list_team_names(
|
2866
|
+
self,
|
2867
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2868
|
+
offset: Annotated[
|
2869
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2870
|
+
] = None,
|
2871
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2872
|
+
sort: Annotated[
|
2873
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2874
|
+
] = None,
|
2875
|
+
query: Annotated[
|
2876
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2877
|
+
] = None,
|
2878
|
+
bookmarks: Annotated[
|
2879
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
2880
|
+
] = None,
|
2881
|
+
mode: Annotated[
|
2882
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
2883
|
+
] = None,
|
2884
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2885
|
+
**kwargs
|
2886
|
+
) -> V1ListTeamsResponse: # noqa: E501
|
2887
|
+
"""List teams names # noqa: E501
|
2888
|
+
|
2889
|
+
This method makes a synchronous HTTP request by default. To make an
|
2890
|
+
asynchronous HTTP request, please pass async_req=True
|
2891
|
+
|
2892
|
+
>>> thread = api.list_team_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2893
|
+
>>> result = thread.get()
|
2894
|
+
|
2895
|
+
:param owner: Owner of the namespace (required)
|
2896
|
+
:type owner: str
|
2897
|
+
:param offset: Pagination offset.
|
2898
|
+
:type offset: int
|
2899
|
+
:param limit: Limit size.
|
2900
|
+
:type limit: int
|
2901
|
+
:param sort: Sort to order the search.
|
2902
|
+
:type sort: str
|
2903
|
+
:param query: Query filter the search.
|
2904
|
+
:type query: str
|
2905
|
+
:param bookmarks: Filter by bookmarks.
|
2906
|
+
:type bookmarks: bool
|
2907
|
+
:param mode: Mode of the search.
|
2908
|
+
:type mode: str
|
2909
|
+
:param no_page: No pagination.
|
2910
|
+
:type no_page: bool
|
2911
|
+
:param async_req: Whether to execute the request asynchronously.
|
2912
|
+
:type async_req: bool, optional
|
2913
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2914
|
+
be returned without reading/decoding response
|
2915
|
+
data. Default is True.
|
2916
|
+
:type _preload_content: bool, optional
|
2917
|
+
:param _request_timeout: timeout setting for this request. If one
|
2918
|
+
number provided, it will be total request
|
2919
|
+
timeout. It can also be a pair (tuple) of
|
2920
|
+
(connection, read) timeouts.
|
2921
|
+
:return: Returns the result object.
|
2922
|
+
If the method is called asynchronously,
|
2923
|
+
returns the request thread.
|
2924
|
+
:rtype: V1ListTeamsResponse
|
2925
|
+
"""
|
2926
|
+
kwargs["_return_http_data_only"] = True
|
2927
|
+
return self.list_team_names_with_http_info(
|
2928
|
+
owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
2929
|
+
) # noqa: E501
|
2930
|
+
|
2931
|
+
@validate_call
|
2932
|
+
def list_team_names_with_http_info(
|
2933
|
+
self,
|
2934
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2935
|
+
offset: Annotated[
|
2936
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
2937
|
+
] = None,
|
2938
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
2939
|
+
sort: Annotated[
|
2940
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
2941
|
+
] = None,
|
2942
|
+
query: Annotated[
|
2943
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
2944
|
+
] = None,
|
2945
|
+
bookmarks: Annotated[
|
2946
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
2947
|
+
] = None,
|
2948
|
+
mode: Annotated[
|
2949
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
2950
|
+
] = None,
|
2951
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2952
|
+
**kwargs
|
2953
|
+
): # noqa: E501
|
2954
|
+
"""List teams names # noqa: E501
|
2955
|
+
|
2956
|
+
This method makes a synchronous HTTP request by default. To make an
|
2957
|
+
asynchronous HTTP request, please pass async_req=True
|
2958
|
+
|
2959
|
+
>>> thread = api.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2960
|
+
>>> result = thread.get()
|
2961
|
+
|
2962
|
+
:param owner: Owner of the namespace (required)
|
2963
|
+
:type owner: str
|
2964
|
+
:param offset: Pagination offset.
|
2965
|
+
:type offset: int
|
2966
|
+
:param limit: Limit size.
|
2967
|
+
:type limit: int
|
2968
|
+
:param sort: Sort to order the search.
|
2969
|
+
:type sort: str
|
2970
|
+
:param query: Query filter the search.
|
2971
|
+
:type query: str
|
2972
|
+
:param bookmarks: Filter by bookmarks.
|
2973
|
+
:type bookmarks: bool
|
2974
|
+
:param mode: Mode of the search.
|
2975
|
+
:type mode: str
|
2976
|
+
:param no_page: No pagination.
|
2977
|
+
:type no_page: bool
|
2978
|
+
:param async_req: Whether to execute the request asynchronously.
|
2979
|
+
:type async_req: bool, optional
|
2980
|
+
:param _return_http_data_only: response data without head status code
|
2981
|
+
and headers
|
2982
|
+
:type _return_http_data_only: bool, optional
|
2983
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2984
|
+
be returned without reading/decoding response
|
2985
|
+
data. Default is True.
|
2986
|
+
:type _preload_content: bool, optional
|
2987
|
+
:param _request_timeout: timeout setting for this request. If one
|
2988
|
+
number provided, it will be total request
|
2989
|
+
timeout. It can also be a pair (tuple) of
|
2990
|
+
(connection, read) timeouts.
|
2991
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2992
|
+
request; this effectively ignores the authentication
|
2993
|
+
in the spec for a single request.
|
2994
|
+
:type _request_auth: dict, optional
|
2995
|
+
:type _content_type: string, optional: force content-type for the request
|
2996
|
+
:return: Returns the result object.
|
2997
|
+
If the method is called asynchronously,
|
2998
|
+
returns the request thread.
|
2999
|
+
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
3000
|
+
"""
|
3001
|
+
|
3002
|
+
_params = locals()
|
3003
|
+
|
3004
|
+
_all_params = [
|
3005
|
+
"owner",
|
3006
|
+
"offset",
|
3007
|
+
"limit",
|
3008
|
+
"sort",
|
3009
|
+
"query",
|
3010
|
+
"bookmarks",
|
3011
|
+
"mode",
|
3012
|
+
"no_page",
|
3013
|
+
]
|
3014
|
+
_all_params.extend(
|
3015
|
+
[
|
3016
|
+
"async_req",
|
3017
|
+
"_return_http_data_only",
|
3018
|
+
"_preload_content",
|
3019
|
+
"_request_timeout",
|
3020
|
+
"_request_auth",
|
3021
|
+
"_content_type",
|
3022
|
+
"_headers",
|
3023
|
+
]
|
3024
|
+
)
|
3025
|
+
|
3026
|
+
# validate the arguments
|
3027
|
+
for _key, _val in _params["kwargs"].items():
|
3028
|
+
if _key not in _all_params:
|
3029
|
+
raise ApiTypeError(
|
3030
|
+
"Got an unexpected keyword argument '%s'"
|
3031
|
+
" to method list_team_names" % _key
|
3032
|
+
)
|
3033
|
+
_params[_key] = _val
|
3034
|
+
del _params["kwargs"]
|
3035
|
+
|
3036
|
+
_collection_formats = {}
|
3037
|
+
|
3038
|
+
# process the path parameters
|
3039
|
+
_path_params = {}
|
3040
|
+
if _params["owner"]:
|
3041
|
+
_path_params["owner"] = _params["owner"]
|
3042
|
+
|
3043
|
+
# process the query parameters
|
3044
|
+
_query_params = []
|
3045
|
+
if _params.get("offset") is not None: # noqa: E501
|
3046
|
+
_query_params.append(("offset", _params["offset"]))
|
3047
|
+
if _params.get("limit") is not None: # noqa: E501
|
3048
|
+
_query_params.append(("limit", _params["limit"]))
|
3049
|
+
if _params.get("sort") is not None: # noqa: E501
|
3050
|
+
_query_params.append(("sort", _params["sort"]))
|
3051
|
+
if _params.get("query") is not None: # noqa: E501
|
3052
|
+
_query_params.append(("query", _params["query"]))
|
3053
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
3054
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
3055
|
+
if _params.get("mode") is not None: # noqa: E501
|
3056
|
+
_query_params.append(("mode", _params["mode"]))
|
3057
|
+
if _params.get("no_page") is not None: # noqa: E501
|
3058
|
+
_query_params.append(("no_page", _params["no_page"]))
|
3059
|
+
|
3060
|
+
# process the header parameters
|
3061
|
+
_header_params = dict(_params.get("_headers", {}))
|
3062
|
+
|
3063
|
+
# process the form parameters
|
3064
|
+
_form_params = []
|
3065
|
+
_files = {}
|
3066
|
+
|
3067
|
+
# process the body parameter
|
3068
|
+
_body_params = None
|
3069
|
+
|
3070
|
+
# set the HTTP header `Accept`
|
3071
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3072
|
+
["application/json"]
|
3073
|
+
) # noqa: E501
|
3074
|
+
|
3075
|
+
# authentication setting
|
3076
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3077
|
+
|
3078
|
+
_response_types_map = {
|
3079
|
+
"200": "V1ListTeamsResponse",
|
3080
|
+
"204": "object",
|
3081
|
+
"403": "object",
|
3082
|
+
"404": "object",
|
3083
|
+
}
|
3084
|
+
|
3085
|
+
return self.api_client.call_api(
|
3086
|
+
"/api/v1/orgs/{owner}/teams/names",
|
3087
|
+
"GET",
|
3088
|
+
_path_params,
|
3089
|
+
_query_params,
|
3090
|
+
_header_params,
|
3091
|
+
body=_body_params,
|
3092
|
+
post_params=_form_params,
|
3093
|
+
files=_files,
|
3094
|
+
response_types_map=_response_types_map,
|
3095
|
+
auth_settings=_auth_settings,
|
3096
|
+
async_req=_params.get("async_req"),
|
3097
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3098
|
+
_preload_content=_params.get("_preload_content", True),
|
3099
|
+
_request_timeout=_params.get("_request_timeout"),
|
3100
|
+
collection_formats=_collection_formats,
|
3101
|
+
_request_auth=_params.get("_request_auth"),
|
3102
|
+
)
|
3103
|
+
|
3104
|
+
@validate_call
|
3105
|
+
def list_teams(
|
3106
|
+
self,
|
3107
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3108
|
+
offset: Annotated[
|
3109
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3110
|
+
] = None,
|
3111
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3112
|
+
sort: Annotated[
|
3113
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3114
|
+
] = None,
|
3115
|
+
query: Annotated[
|
3116
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3117
|
+
] = None,
|
3118
|
+
bookmarks: Annotated[
|
3119
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3120
|
+
] = None,
|
3121
|
+
mode: Annotated[
|
3122
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3123
|
+
] = None,
|
3124
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3125
|
+
**kwargs
|
1534
3126
|
) -> V1ListTeamsResponse: # noqa: E501
|
1535
3127
|
"""List teams # noqa: E501
|
1536
3128
|
|
1537
3129
|
This method makes a synchronous HTTP request by default. To make an
|
1538
3130
|
asynchronous HTTP request, please pass async_req=True
|
1539
3131
|
|
1540
|
-
>>> thread = api.list_teams(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3132
|
+
>>> thread = api.list_teams(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3133
|
+
>>> result = thread.get()
|
3134
|
+
|
3135
|
+
:param owner: Owner of the namespace (required)
|
3136
|
+
:type owner: str
|
3137
|
+
:param offset: Pagination offset.
|
3138
|
+
:type offset: int
|
3139
|
+
:param limit: Limit size.
|
3140
|
+
:type limit: int
|
3141
|
+
:param sort: Sort to order the search.
|
3142
|
+
:type sort: str
|
3143
|
+
:param query: Query filter the search.
|
3144
|
+
:type query: str
|
3145
|
+
:param bookmarks: Filter by bookmarks.
|
3146
|
+
:type bookmarks: bool
|
3147
|
+
:param mode: Mode of the search.
|
3148
|
+
:type mode: str
|
3149
|
+
:param no_page: No pagination.
|
3150
|
+
:type no_page: bool
|
3151
|
+
:param async_req: Whether to execute the request asynchronously.
|
3152
|
+
:type async_req: bool, optional
|
3153
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3154
|
+
be returned without reading/decoding response
|
3155
|
+
data. Default is True.
|
3156
|
+
:type _preload_content: bool, optional
|
3157
|
+
:param _request_timeout: timeout setting for this request. If one
|
3158
|
+
number provided, it will be total request
|
3159
|
+
timeout. It can also be a pair (tuple) of
|
3160
|
+
(connection, read) timeouts.
|
3161
|
+
:return: Returns the result object.
|
3162
|
+
If the method is called asynchronously,
|
3163
|
+
returns the request thread.
|
3164
|
+
:rtype: V1ListTeamsResponse
|
3165
|
+
"""
|
3166
|
+
kwargs["_return_http_data_only"] = True
|
3167
|
+
return self.list_teams_with_http_info(
|
3168
|
+
owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
3169
|
+
) # noqa: E501
|
3170
|
+
|
3171
|
+
@validate_call
|
3172
|
+
def list_teams_with_http_info(
|
3173
|
+
self,
|
3174
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3175
|
+
offset: Annotated[
|
3176
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3177
|
+
] = None,
|
3178
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3179
|
+
sort: Annotated[
|
3180
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3181
|
+
] = None,
|
3182
|
+
query: Annotated[
|
3183
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3184
|
+
] = None,
|
3185
|
+
bookmarks: Annotated[
|
3186
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3187
|
+
] = None,
|
3188
|
+
mode: Annotated[
|
3189
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3190
|
+
] = None,
|
3191
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3192
|
+
**kwargs
|
3193
|
+
): # noqa: E501
|
3194
|
+
"""List teams # noqa: E501
|
3195
|
+
|
3196
|
+
This method makes a synchronous HTTP request by default. To make an
|
3197
|
+
asynchronous HTTP request, please pass async_req=True
|
3198
|
+
|
3199
|
+
>>> thread = api.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3200
|
+
>>> result = thread.get()
|
3201
|
+
|
3202
|
+
:param owner: Owner of the namespace (required)
|
3203
|
+
:type owner: str
|
3204
|
+
:param offset: Pagination offset.
|
3205
|
+
:type offset: int
|
3206
|
+
:param limit: Limit size.
|
3207
|
+
:type limit: int
|
3208
|
+
:param sort: Sort to order the search.
|
3209
|
+
:type sort: str
|
3210
|
+
:param query: Query filter the search.
|
3211
|
+
:type query: str
|
3212
|
+
:param bookmarks: Filter by bookmarks.
|
3213
|
+
:type bookmarks: bool
|
3214
|
+
:param mode: Mode of the search.
|
3215
|
+
:type mode: str
|
3216
|
+
:param no_page: No pagination.
|
3217
|
+
:type no_page: bool
|
3218
|
+
:param async_req: Whether to execute the request asynchronously.
|
3219
|
+
:type async_req: bool, optional
|
3220
|
+
:param _return_http_data_only: response data without head status code
|
3221
|
+
and headers
|
3222
|
+
:type _return_http_data_only: bool, optional
|
3223
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3224
|
+
be returned without reading/decoding response
|
3225
|
+
data. Default is True.
|
3226
|
+
:type _preload_content: bool, optional
|
3227
|
+
:param _request_timeout: timeout setting for this request. If one
|
3228
|
+
number provided, it will be total request
|
3229
|
+
timeout. It can also be a pair (tuple) of
|
3230
|
+
(connection, read) timeouts.
|
3231
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3232
|
+
request; this effectively ignores the authentication
|
3233
|
+
in the spec for a single request.
|
3234
|
+
:type _request_auth: dict, optional
|
3235
|
+
:type _content_type: string, optional: force content-type for the request
|
3236
|
+
:return: Returns the result object.
|
3237
|
+
If the method is called asynchronously,
|
3238
|
+
returns the request thread.
|
3239
|
+
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
3240
|
+
"""
|
3241
|
+
|
3242
|
+
_params = locals()
|
3243
|
+
|
3244
|
+
_all_params = [
|
3245
|
+
"owner",
|
3246
|
+
"offset",
|
3247
|
+
"limit",
|
3248
|
+
"sort",
|
3249
|
+
"query",
|
3250
|
+
"bookmarks",
|
3251
|
+
"mode",
|
3252
|
+
"no_page",
|
3253
|
+
]
|
3254
|
+
_all_params.extend(
|
3255
|
+
[
|
3256
|
+
"async_req",
|
3257
|
+
"_return_http_data_only",
|
3258
|
+
"_preload_content",
|
3259
|
+
"_request_timeout",
|
3260
|
+
"_request_auth",
|
3261
|
+
"_content_type",
|
3262
|
+
"_headers",
|
3263
|
+
]
|
3264
|
+
)
|
3265
|
+
|
3266
|
+
# validate the arguments
|
3267
|
+
for _key, _val in _params["kwargs"].items():
|
3268
|
+
if _key not in _all_params:
|
3269
|
+
raise ApiTypeError(
|
3270
|
+
"Got an unexpected keyword argument '%s'"
|
3271
|
+
" to method list_teams" % _key
|
3272
|
+
)
|
3273
|
+
_params[_key] = _val
|
3274
|
+
del _params["kwargs"]
|
3275
|
+
|
3276
|
+
_collection_formats = {}
|
3277
|
+
|
3278
|
+
# process the path parameters
|
3279
|
+
_path_params = {}
|
3280
|
+
if _params["owner"]:
|
3281
|
+
_path_params["owner"] = _params["owner"]
|
3282
|
+
|
3283
|
+
# process the query parameters
|
3284
|
+
_query_params = []
|
3285
|
+
if _params.get("offset") is not None: # noqa: E501
|
3286
|
+
_query_params.append(("offset", _params["offset"]))
|
3287
|
+
if _params.get("limit") is not None: # noqa: E501
|
3288
|
+
_query_params.append(("limit", _params["limit"]))
|
3289
|
+
if _params.get("sort") is not None: # noqa: E501
|
3290
|
+
_query_params.append(("sort", _params["sort"]))
|
3291
|
+
if _params.get("query") is not None: # noqa: E501
|
3292
|
+
_query_params.append(("query", _params["query"]))
|
3293
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
3294
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
3295
|
+
if _params.get("mode") is not None: # noqa: E501
|
3296
|
+
_query_params.append(("mode", _params["mode"]))
|
3297
|
+
if _params.get("no_page") is not None: # noqa: E501
|
3298
|
+
_query_params.append(("no_page", _params["no_page"]))
|
3299
|
+
|
3300
|
+
# process the header parameters
|
3301
|
+
_header_params = dict(_params.get("_headers", {}))
|
3302
|
+
|
3303
|
+
# process the form parameters
|
3304
|
+
_form_params = []
|
3305
|
+
_files = {}
|
3306
|
+
|
3307
|
+
# process the body parameter
|
3308
|
+
_body_params = None
|
3309
|
+
|
3310
|
+
# set the HTTP header `Accept`
|
3311
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3312
|
+
["application/json"]
|
3313
|
+
) # noqa: E501
|
3314
|
+
|
3315
|
+
# authentication setting
|
3316
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3317
|
+
|
3318
|
+
_response_types_map = {
|
3319
|
+
"200": "V1ListTeamsResponse",
|
3320
|
+
"204": "object",
|
3321
|
+
"403": "object",
|
3322
|
+
"404": "object",
|
3323
|
+
}
|
3324
|
+
|
3325
|
+
return self.api_client.call_api(
|
3326
|
+
"/api/v1/orgs/{owner}/teams",
|
3327
|
+
"GET",
|
3328
|
+
_path_params,
|
3329
|
+
_query_params,
|
3330
|
+
_header_params,
|
3331
|
+
body=_body_params,
|
3332
|
+
post_params=_form_params,
|
3333
|
+
files=_files,
|
3334
|
+
response_types_map=_response_types_map,
|
3335
|
+
auth_settings=_auth_settings,
|
3336
|
+
async_req=_params.get("async_req"),
|
3337
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3338
|
+
_preload_content=_params.get("_preload_content", True),
|
3339
|
+
_request_timeout=_params.get("_request_timeout"),
|
3340
|
+
collection_formats=_collection_formats,
|
3341
|
+
_request_auth=_params.get("_request_auth"),
|
3342
|
+
)
|
3343
|
+
|
3344
|
+
@validate_call
|
3345
|
+
def patch_team(
|
3346
|
+
self,
|
3347
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3348
|
+
team_name: Annotated[StrictStr, Field(..., description="Name")],
|
3349
|
+
body: Annotated[V1Team, Field(..., description="Team body")],
|
3350
|
+
**kwargs
|
3351
|
+
) -> V1Team: # noqa: E501
|
3352
|
+
"""Patch team # noqa: E501
|
3353
|
+
|
3354
|
+
This method makes a synchronous HTTP request by default. To make an
|
3355
|
+
asynchronous HTTP request, please pass async_req=True
|
3356
|
+
|
3357
|
+
>>> thread = api.patch_team(owner, team_name, body, async_req=True)
|
3358
|
+
>>> result = thread.get()
|
3359
|
+
|
3360
|
+
:param owner: Owner of the namespace (required)
|
3361
|
+
:type owner: str
|
3362
|
+
:param team_name: Name (required)
|
3363
|
+
:type team_name: str
|
3364
|
+
:param body: Team body (required)
|
3365
|
+
:type body: V1Team
|
3366
|
+
:param async_req: Whether to execute the request asynchronously.
|
3367
|
+
:type async_req: bool, optional
|
3368
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3369
|
+
be returned without reading/decoding response
|
3370
|
+
data. Default is True.
|
3371
|
+
:type _preload_content: bool, optional
|
3372
|
+
:param _request_timeout: timeout setting for this request. If one
|
3373
|
+
number provided, it will be total request
|
3374
|
+
timeout. It can also be a pair (tuple) of
|
3375
|
+
(connection, read) timeouts.
|
3376
|
+
:return: Returns the result object.
|
3377
|
+
If the method is called asynchronously,
|
3378
|
+
returns the request thread.
|
3379
|
+
:rtype: V1Team
|
3380
|
+
"""
|
3381
|
+
kwargs["_return_http_data_only"] = True
|
3382
|
+
return self.patch_team_with_http_info(
|
3383
|
+
owner, team_name, body, **kwargs
|
3384
|
+
) # noqa: E501
|
3385
|
+
|
3386
|
+
@validate_call
|
3387
|
+
def patch_team_with_http_info(
|
3388
|
+
self,
|
3389
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3390
|
+
team_name: Annotated[StrictStr, Field(..., description="Name")],
|
3391
|
+
body: Annotated[V1Team, Field(..., description="Team body")],
|
3392
|
+
**kwargs
|
3393
|
+
): # noqa: E501
|
3394
|
+
"""Patch team # noqa: E501
|
3395
|
+
|
3396
|
+
This method makes a synchronous HTTP request by default. To make an
|
3397
|
+
asynchronous HTTP request, please pass async_req=True
|
3398
|
+
|
3399
|
+
>>> thread = api.patch_team_with_http_info(owner, team_name, body, async_req=True)
|
3400
|
+
>>> result = thread.get()
|
3401
|
+
|
3402
|
+
:param owner: Owner of the namespace (required)
|
3403
|
+
:type owner: str
|
3404
|
+
:param team_name: Name (required)
|
3405
|
+
:type team_name: str
|
3406
|
+
:param body: Team body (required)
|
3407
|
+
:type body: V1Team
|
3408
|
+
:param async_req: Whether to execute the request asynchronously.
|
3409
|
+
:type async_req: bool, optional
|
3410
|
+
:param _return_http_data_only: response data without head status code
|
3411
|
+
and headers
|
3412
|
+
:type _return_http_data_only: bool, optional
|
3413
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3414
|
+
be returned without reading/decoding response
|
3415
|
+
data. Default is True.
|
3416
|
+
:type _preload_content: bool, optional
|
3417
|
+
:param _request_timeout: timeout setting for this request. If one
|
3418
|
+
number provided, it will be total request
|
3419
|
+
timeout. It can also be a pair (tuple) of
|
3420
|
+
(connection, read) timeouts.
|
3421
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3422
|
+
request; this effectively ignores the authentication
|
3423
|
+
in the spec for a single request.
|
3424
|
+
:type _request_auth: dict, optional
|
3425
|
+
:type _content_type: string, optional: force content-type for the request
|
3426
|
+
:return: Returns the result object.
|
3427
|
+
If the method is called asynchronously,
|
3428
|
+
returns the request thread.
|
3429
|
+
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
3430
|
+
"""
|
3431
|
+
|
3432
|
+
_params = locals()
|
3433
|
+
|
3434
|
+
_all_params = ["owner", "team_name", "body"]
|
3435
|
+
_all_params.extend(
|
3436
|
+
[
|
3437
|
+
"async_req",
|
3438
|
+
"_return_http_data_only",
|
3439
|
+
"_preload_content",
|
3440
|
+
"_request_timeout",
|
3441
|
+
"_request_auth",
|
3442
|
+
"_content_type",
|
3443
|
+
"_headers",
|
3444
|
+
]
|
3445
|
+
)
|
3446
|
+
|
3447
|
+
# validate the arguments
|
3448
|
+
for _key, _val in _params["kwargs"].items():
|
3449
|
+
if _key not in _all_params:
|
3450
|
+
raise ApiTypeError(
|
3451
|
+
"Got an unexpected keyword argument '%s'"
|
3452
|
+
" to method patch_team" % _key
|
3453
|
+
)
|
3454
|
+
_params[_key] = _val
|
3455
|
+
del _params["kwargs"]
|
3456
|
+
|
3457
|
+
_collection_formats = {}
|
3458
|
+
|
3459
|
+
# process the path parameters
|
3460
|
+
_path_params = {}
|
3461
|
+
if _params["owner"]:
|
3462
|
+
_path_params["owner"] = _params["owner"]
|
3463
|
+
if _params["team_name"]:
|
3464
|
+
_path_params["team.name"] = _params["team_name"]
|
3465
|
+
|
3466
|
+
# process the query parameters
|
3467
|
+
_query_params = []
|
3468
|
+
|
3469
|
+
# process the header parameters
|
3470
|
+
_header_params = dict(_params.get("_headers", {}))
|
3471
|
+
|
3472
|
+
# process the form parameters
|
3473
|
+
_form_params = []
|
3474
|
+
_files = {}
|
3475
|
+
|
3476
|
+
# process the body parameter
|
3477
|
+
_body_params = None
|
3478
|
+
if _params["body"]:
|
3479
|
+
_body_params = _params["body"]
|
3480
|
+
|
3481
|
+
# set the HTTP header `Accept`
|
3482
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3483
|
+
["application/json"]
|
3484
|
+
) # noqa: E501
|
3485
|
+
|
3486
|
+
# set the HTTP header `Content-Type`
|
3487
|
+
_content_types_list = _params.get(
|
3488
|
+
"_content_type",
|
3489
|
+
self.api_client.select_header_content_type(["application/json"]),
|
3490
|
+
)
|
3491
|
+
if _content_types_list:
|
3492
|
+
_header_params["Content-Type"] = _content_types_list
|
3493
|
+
|
3494
|
+
# authentication setting
|
3495
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3496
|
+
|
3497
|
+
_response_types_map = {
|
3498
|
+
"200": "V1Team",
|
3499
|
+
"204": "object",
|
3500
|
+
"403": "object",
|
3501
|
+
"404": "object",
|
3502
|
+
}
|
3503
|
+
|
3504
|
+
return self.api_client.call_api(
|
3505
|
+
"/api/v1/orgs/{owner}/teams/{team.name}",
|
3506
|
+
"PATCH",
|
3507
|
+
_path_params,
|
3508
|
+
_query_params,
|
3509
|
+
_header_params,
|
3510
|
+
body=_body_params,
|
3511
|
+
post_params=_form_params,
|
3512
|
+
files=_files,
|
3513
|
+
response_types_map=_response_types_map,
|
3514
|
+
auth_settings=_auth_settings,
|
3515
|
+
async_req=_params.get("async_req"),
|
3516
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3517
|
+
_preload_content=_params.get("_preload_content", True),
|
3518
|
+
_request_timeout=_params.get("_request_timeout"),
|
3519
|
+
collection_formats=_collection_formats,
|
3520
|
+
_request_auth=_params.get("_request_auth"),
|
3521
|
+
)
|
3522
|
+
|
3523
|
+
@validate_call
|
3524
|
+
def patch_team_member(
|
3525
|
+
self,
|
3526
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3527
|
+
team: Annotated[StrictStr, Field(..., description="Team")],
|
3528
|
+
member_user: Annotated[StrictStr, Field(..., description="User")],
|
3529
|
+
body: Annotated[V1TeamMember, Field(..., description="Team body")],
|
3530
|
+
**kwargs
|
3531
|
+
) -> V1TeamMember: # noqa: E501
|
3532
|
+
"""Patch team member # noqa: E501
|
3533
|
+
|
3534
|
+
This method makes a synchronous HTTP request by default. To make an
|
3535
|
+
asynchronous HTTP request, please pass async_req=True
|
3536
|
+
|
3537
|
+
>>> thread = api.patch_team_member(owner, team, member_user, body, async_req=True)
|
3538
|
+
>>> result = thread.get()
|
3539
|
+
|
3540
|
+
:param owner: Owner of the namespace (required)
|
3541
|
+
:type owner: str
|
3542
|
+
:param team: Team (required)
|
3543
|
+
:type team: str
|
3544
|
+
:param member_user: User (required)
|
3545
|
+
:type member_user: str
|
3546
|
+
:param body: Team body (required)
|
3547
|
+
:type body: V1TeamMember
|
3548
|
+
:param async_req: Whether to execute the request asynchronously.
|
3549
|
+
:type async_req: bool, optional
|
3550
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3551
|
+
be returned without reading/decoding response
|
3552
|
+
data. Default is True.
|
3553
|
+
:type _preload_content: bool, optional
|
3554
|
+
:param _request_timeout: timeout setting for this request. If one
|
3555
|
+
number provided, it will be total request
|
3556
|
+
timeout. It can also be a pair (tuple) of
|
3557
|
+
(connection, read) timeouts.
|
3558
|
+
:return: Returns the result object.
|
3559
|
+
If the method is called asynchronously,
|
3560
|
+
returns the request thread.
|
3561
|
+
:rtype: V1TeamMember
|
3562
|
+
"""
|
3563
|
+
kwargs["_return_http_data_only"] = True
|
3564
|
+
return self.patch_team_member_with_http_info(
|
3565
|
+
owner, team, member_user, body, **kwargs
|
3566
|
+
) # noqa: E501
|
3567
|
+
|
3568
|
+
@validate_call
|
3569
|
+
def patch_team_member_with_http_info(
|
3570
|
+
self,
|
3571
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3572
|
+
team: Annotated[StrictStr, Field(..., description="Team")],
|
3573
|
+
member_user: Annotated[StrictStr, Field(..., description="User")],
|
3574
|
+
body: Annotated[V1TeamMember, Field(..., description="Team body")],
|
3575
|
+
**kwargs
|
3576
|
+
): # noqa: E501
|
3577
|
+
"""Patch team member # noqa: E501
|
3578
|
+
|
3579
|
+
This method makes a synchronous HTTP request by default. To make an
|
3580
|
+
asynchronous HTTP request, please pass async_req=True
|
3581
|
+
|
3582
|
+
>>> thread = api.patch_team_member_with_http_info(owner, team, member_user, body, async_req=True)
|
3583
|
+
>>> result = thread.get()
|
3584
|
+
|
3585
|
+
:param owner: Owner of the namespace (required)
|
3586
|
+
:type owner: str
|
3587
|
+
:param team: Team (required)
|
3588
|
+
:type team: str
|
3589
|
+
:param member_user: User (required)
|
3590
|
+
:type member_user: str
|
3591
|
+
:param body: Team body (required)
|
3592
|
+
:type body: V1TeamMember
|
3593
|
+
:param async_req: Whether to execute the request asynchronously.
|
3594
|
+
:type async_req: bool, optional
|
3595
|
+
:param _return_http_data_only: response data without head status code
|
3596
|
+
and headers
|
3597
|
+
:type _return_http_data_only: bool, optional
|
3598
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3599
|
+
be returned without reading/decoding response
|
3600
|
+
data. Default is True.
|
3601
|
+
:type _preload_content: bool, optional
|
3602
|
+
:param _request_timeout: timeout setting for this request. If one
|
3603
|
+
number provided, it will be total request
|
3604
|
+
timeout. It can also be a pair (tuple) of
|
3605
|
+
(connection, read) timeouts.
|
3606
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3607
|
+
request; this effectively ignores the authentication
|
3608
|
+
in the spec for a single request.
|
3609
|
+
:type _request_auth: dict, optional
|
3610
|
+
:type _content_type: string, optional: force content-type for the request
|
3611
|
+
:return: Returns the result object.
|
3612
|
+
If the method is called asynchronously,
|
3613
|
+
returns the request thread.
|
3614
|
+
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
3615
|
+
"""
|
3616
|
+
|
3617
|
+
_params = locals()
|
3618
|
+
|
3619
|
+
_all_params = ["owner", "team", "member_user", "body"]
|
3620
|
+
_all_params.extend(
|
3621
|
+
[
|
3622
|
+
"async_req",
|
3623
|
+
"_return_http_data_only",
|
3624
|
+
"_preload_content",
|
3625
|
+
"_request_timeout",
|
3626
|
+
"_request_auth",
|
3627
|
+
"_content_type",
|
3628
|
+
"_headers",
|
3629
|
+
]
|
3630
|
+
)
|
3631
|
+
|
3632
|
+
# validate the arguments
|
3633
|
+
for _key, _val in _params["kwargs"].items():
|
3634
|
+
if _key not in _all_params:
|
3635
|
+
raise ApiTypeError(
|
3636
|
+
"Got an unexpected keyword argument '%s'"
|
3637
|
+
" to method patch_team_member" % _key
|
3638
|
+
)
|
3639
|
+
_params[_key] = _val
|
3640
|
+
del _params["kwargs"]
|
3641
|
+
|
3642
|
+
_collection_formats = {}
|
3643
|
+
|
3644
|
+
# process the path parameters
|
3645
|
+
_path_params = {}
|
3646
|
+
if _params["owner"]:
|
3647
|
+
_path_params["owner"] = _params["owner"]
|
3648
|
+
if _params["team"]:
|
3649
|
+
_path_params["team"] = _params["team"]
|
3650
|
+
if _params["member_user"]:
|
3651
|
+
_path_params["member.user"] = _params["member_user"]
|
3652
|
+
|
3653
|
+
# process the query parameters
|
3654
|
+
_query_params = []
|
3655
|
+
|
3656
|
+
# process the header parameters
|
3657
|
+
_header_params = dict(_params.get("_headers", {}))
|
3658
|
+
|
3659
|
+
# process the form parameters
|
3660
|
+
_form_params = []
|
3661
|
+
_files = {}
|
3662
|
+
|
3663
|
+
# process the body parameter
|
3664
|
+
_body_params = None
|
3665
|
+
if _params["body"]:
|
3666
|
+
_body_params = _params["body"]
|
3667
|
+
|
3668
|
+
# set the HTTP header `Accept`
|
3669
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3670
|
+
["application/json"]
|
3671
|
+
) # noqa: E501
|
3672
|
+
|
3673
|
+
# set the HTTP header `Content-Type`
|
3674
|
+
_content_types_list = _params.get(
|
3675
|
+
"_content_type",
|
3676
|
+
self.api_client.select_header_content_type(["application/json"]),
|
3677
|
+
)
|
3678
|
+
if _content_types_list:
|
3679
|
+
_header_params["Content-Type"] = _content_types_list
|
3680
|
+
|
3681
|
+
# authentication setting
|
3682
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3683
|
+
|
3684
|
+
_response_types_map = {
|
3685
|
+
"200": "V1TeamMember",
|
3686
|
+
"204": "object",
|
3687
|
+
"403": "object",
|
3688
|
+
"404": "object",
|
3689
|
+
}
|
3690
|
+
|
3691
|
+
return self.api_client.call_api(
|
3692
|
+
"/api/v1/orgs/{owner}/teams/{team}/members/{member.user}",
|
3693
|
+
"PATCH",
|
3694
|
+
_path_params,
|
3695
|
+
_query_params,
|
3696
|
+
_header_params,
|
3697
|
+
body=_body_params,
|
3698
|
+
post_params=_form_params,
|
3699
|
+
files=_files,
|
3700
|
+
response_types_map=_response_types_map,
|
3701
|
+
auth_settings=_auth_settings,
|
3702
|
+
async_req=_params.get("async_req"),
|
3703
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3704
|
+
_preload_content=_params.get("_preload_content", True),
|
3705
|
+
_request_timeout=_params.get("_request_timeout"),
|
3706
|
+
collection_formats=_collection_formats,
|
3707
|
+
_request_auth=_params.get("_request_auth"),
|
3708
|
+
)
|
3709
|
+
|
3710
|
+
@validate_call
|
3711
|
+
def restore_team_runs(
|
3712
|
+
self,
|
3713
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3714
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
3715
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
3716
|
+
**kwargs
|
3717
|
+
) -> None: # noqa: E501
|
3718
|
+
"""Restore cross-project runs selection # noqa: E501
|
3719
|
+
|
3720
|
+
This method makes a synchronous HTTP request by default. To make an
|
3721
|
+
asynchronous HTTP request, please pass async_req=True
|
3722
|
+
|
3723
|
+
>>> thread = api.restore_team_runs(owner, name, body, async_req=True)
|
3724
|
+
>>> result = thread.get()
|
3725
|
+
|
3726
|
+
:param owner: Owner of the namespace (required)
|
3727
|
+
:type owner: str
|
3728
|
+
:param name: Entity under namespace (required)
|
3729
|
+
:type name: str
|
3730
|
+
:param body: Uuids of the entities (required)
|
3731
|
+
:type body: V1Uuids
|
3732
|
+
:param async_req: Whether to execute the request asynchronously.
|
3733
|
+
:type async_req: bool, optional
|
3734
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3735
|
+
be returned without reading/decoding response
|
3736
|
+
data. Default is True.
|
3737
|
+
:type _preload_content: bool, optional
|
3738
|
+
:param _request_timeout: timeout setting for this request. If one
|
3739
|
+
number provided, it will be total request
|
3740
|
+
timeout. It can also be a pair (tuple) of
|
3741
|
+
(connection, read) timeouts.
|
3742
|
+
:return: Returns the result object.
|
3743
|
+
If the method is called asynchronously,
|
3744
|
+
returns the request thread.
|
3745
|
+
:rtype: None
|
3746
|
+
"""
|
3747
|
+
kwargs["_return_http_data_only"] = True
|
3748
|
+
return self.restore_team_runs_with_http_info(
|
3749
|
+
owner, name, body, **kwargs
|
3750
|
+
) # noqa: E501
|
3751
|
+
|
3752
|
+
@validate_call
|
3753
|
+
def restore_team_runs_with_http_info(
|
3754
|
+
self,
|
3755
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3756
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
3757
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
3758
|
+
**kwargs
|
3759
|
+
): # noqa: E501
|
3760
|
+
"""Restore cross-project runs selection # noqa: E501
|
3761
|
+
|
3762
|
+
This method makes a synchronous HTTP request by default. To make an
|
3763
|
+
asynchronous HTTP request, please pass async_req=True
|
3764
|
+
|
3765
|
+
>>> thread = api.restore_team_runs_with_http_info(owner, name, body, async_req=True)
|
3766
|
+
>>> result = thread.get()
|
3767
|
+
|
3768
|
+
:param owner: Owner of the namespace (required)
|
3769
|
+
:type owner: str
|
3770
|
+
:param name: Entity under namespace (required)
|
3771
|
+
:type name: str
|
3772
|
+
:param body: Uuids of the entities (required)
|
3773
|
+
:type body: V1Uuids
|
3774
|
+
:param async_req: Whether to execute the request asynchronously.
|
3775
|
+
:type async_req: bool, optional
|
3776
|
+
:param _return_http_data_only: response data without head status code
|
3777
|
+
and headers
|
3778
|
+
:type _return_http_data_only: bool, optional
|
3779
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3780
|
+
be returned without reading/decoding response
|
3781
|
+
data. Default is True.
|
3782
|
+
:type _preload_content: bool, optional
|
3783
|
+
:param _request_timeout: timeout setting for this request. If one
|
3784
|
+
number provided, it will be total request
|
3785
|
+
timeout. It can also be a pair (tuple) of
|
3786
|
+
(connection, read) timeouts.
|
3787
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3788
|
+
request; this effectively ignores the authentication
|
3789
|
+
in the spec for a single request.
|
3790
|
+
:type _request_auth: dict, optional
|
3791
|
+
:type _content_type: string, optional: force content-type for the request
|
3792
|
+
:return: Returns the result object.
|
3793
|
+
If the method is called asynchronously,
|
3794
|
+
returns the request thread.
|
3795
|
+
:rtype: None
|
3796
|
+
"""
|
3797
|
+
|
3798
|
+
_params = locals()
|
3799
|
+
|
3800
|
+
_all_params = ["owner", "name", "body"]
|
3801
|
+
_all_params.extend(
|
3802
|
+
[
|
3803
|
+
"async_req",
|
3804
|
+
"_return_http_data_only",
|
3805
|
+
"_preload_content",
|
3806
|
+
"_request_timeout",
|
3807
|
+
"_request_auth",
|
3808
|
+
"_content_type",
|
3809
|
+
"_headers",
|
3810
|
+
]
|
3811
|
+
)
|
3812
|
+
|
3813
|
+
# validate the arguments
|
3814
|
+
for _key, _val in _params["kwargs"].items():
|
3815
|
+
if _key not in _all_params:
|
3816
|
+
raise ApiTypeError(
|
3817
|
+
"Got an unexpected keyword argument '%s'"
|
3818
|
+
" to method restore_team_runs" % _key
|
3819
|
+
)
|
3820
|
+
_params[_key] = _val
|
3821
|
+
del _params["kwargs"]
|
3822
|
+
|
3823
|
+
_collection_formats = {}
|
3824
|
+
|
3825
|
+
# process the path parameters
|
3826
|
+
_path_params = {}
|
3827
|
+
if _params["owner"]:
|
3828
|
+
_path_params["owner"] = _params["owner"]
|
3829
|
+
|
3830
|
+
if _params["name"]:
|
3831
|
+
_path_params["name"] = _params["name"]
|
3832
|
+
|
3833
|
+
# process the query parameters
|
3834
|
+
_query_params = []
|
3835
|
+
# process the header parameters
|
3836
|
+
_header_params = dict(_params.get("_headers", {}))
|
3837
|
+
# process the form parameters
|
3838
|
+
_form_params = []
|
3839
|
+
_files = {}
|
3840
|
+
# process the body parameter
|
3841
|
+
_body_params = None
|
3842
|
+
if _params["body"]:
|
3843
|
+
_body_params = _params["body"]
|
3844
|
+
|
3845
|
+
# set the HTTP header `Accept`
|
3846
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3847
|
+
["application/json"]
|
3848
|
+
) # noqa: E501
|
3849
|
+
|
3850
|
+
# set the HTTP header `Content-Type`
|
3851
|
+
_content_types_list = _params.get(
|
3852
|
+
"_content_type",
|
3853
|
+
self.api_client.select_header_content_type(["application/json"]),
|
3854
|
+
)
|
3855
|
+
if _content_types_list:
|
3856
|
+
_header_params["Content-Type"] = _content_types_list
|
3857
|
+
|
3858
|
+
# authentication setting
|
3859
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3860
|
+
|
3861
|
+
_response_types_map = {}
|
3862
|
+
|
3863
|
+
return self.api_client.call_api(
|
3864
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/restore",
|
3865
|
+
"POST",
|
3866
|
+
_path_params,
|
3867
|
+
_query_params,
|
3868
|
+
_header_params,
|
3869
|
+
body=_body_params,
|
3870
|
+
post_params=_form_params,
|
3871
|
+
files=_files,
|
3872
|
+
response_types_map=_response_types_map,
|
3873
|
+
auth_settings=_auth_settings,
|
3874
|
+
async_req=_params.get("async_req"),
|
3875
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3876
|
+
_preload_content=_params.get("_preload_content", True),
|
3877
|
+
_request_timeout=_params.get("_request_timeout"),
|
3878
|
+
collection_formats=_collection_formats,
|
3879
|
+
_request_auth=_params.get("_request_auth"),
|
3880
|
+
)
|
3881
|
+
|
3882
|
+
@validate_call
|
3883
|
+
def skip_team_runs(
|
3884
|
+
self,
|
3885
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3886
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
3887
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
3888
|
+
**kwargs
|
3889
|
+
) -> None: # noqa: E501
|
3890
|
+
"""Skip cross-project runs selection # noqa: E501
|
3891
|
+
|
3892
|
+
This method makes a synchronous HTTP request by default. To make an
|
3893
|
+
asynchronous HTTP request, please pass async_req=True
|
3894
|
+
|
3895
|
+
>>> thread = api.skip_team_runs(owner, name, body, async_req=True)
|
3896
|
+
>>> result = thread.get()
|
3897
|
+
|
3898
|
+
:param owner: Owner of the namespace (required)
|
3899
|
+
:type owner: str
|
3900
|
+
:param name: Entity under namespace (required)
|
3901
|
+
:type name: str
|
3902
|
+
:param body: Uuids of the entities (required)
|
3903
|
+
:type body: V1Uuids
|
3904
|
+
:param async_req: Whether to execute the request asynchronously.
|
3905
|
+
:type async_req: bool, optional
|
3906
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3907
|
+
be returned without reading/decoding response
|
3908
|
+
data. Default is True.
|
3909
|
+
:type _preload_content: bool, optional
|
3910
|
+
:param _request_timeout: timeout setting for this request. If one
|
3911
|
+
number provided, it will be total request
|
3912
|
+
timeout. It can also be a pair (tuple) of
|
3913
|
+
(connection, read) timeouts.
|
3914
|
+
:return: Returns the result object.
|
3915
|
+
If the method is called asynchronously,
|
3916
|
+
returns the request thread.
|
3917
|
+
:rtype: None
|
3918
|
+
"""
|
3919
|
+
kwargs["_return_http_data_only"] = True
|
3920
|
+
return self.skip_team_runs_with_http_info(
|
3921
|
+
owner, name, body, **kwargs
|
3922
|
+
) # noqa: E501
|
3923
|
+
|
3924
|
+
@validate_call
|
3925
|
+
def skip_team_runs_with_http_info(
|
3926
|
+
self,
|
3927
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3928
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
3929
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
3930
|
+
**kwargs
|
3931
|
+
): # noqa: E501
|
3932
|
+
"""Skip cross-project runs selection # noqa: E501
|
3933
|
+
|
3934
|
+
This method makes a synchronous HTTP request by default. To make an
|
3935
|
+
asynchronous HTTP request, please pass async_req=True
|
3936
|
+
|
3937
|
+
>>> thread = api.skip_team_runs_with_http_info(owner, name, body, async_req=True)
|
3938
|
+
>>> result = thread.get()
|
3939
|
+
|
3940
|
+
:param owner: Owner of the namespace (required)
|
3941
|
+
:type owner: str
|
3942
|
+
:param name: Entity under namespace (required)
|
3943
|
+
:type name: str
|
3944
|
+
:param body: Uuids of the entities (required)
|
3945
|
+
:type body: V1Uuids
|
3946
|
+
:param async_req: Whether to execute the request asynchronously.
|
3947
|
+
:type async_req: bool, optional
|
3948
|
+
:param _return_http_data_only: response data without head status code
|
3949
|
+
and headers
|
3950
|
+
:type _return_http_data_only: bool, optional
|
3951
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3952
|
+
be returned without reading/decoding response
|
3953
|
+
data. Default is True.
|
3954
|
+
:type _preload_content: bool, optional
|
3955
|
+
:param _request_timeout: timeout setting for this request. If one
|
3956
|
+
number provided, it will be total request
|
3957
|
+
timeout. It can also be a pair (tuple) of
|
3958
|
+
(connection, read) timeouts.
|
3959
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3960
|
+
request; this effectively ignores the authentication
|
3961
|
+
in the spec for a single request.
|
3962
|
+
:type _request_auth: dict, optional
|
3963
|
+
:type _content_type: string, optional: force content-type for the request
|
3964
|
+
:return: Returns the result object.
|
3965
|
+
If the method is called asynchronously,
|
3966
|
+
returns the request thread.
|
3967
|
+
:rtype: None
|
3968
|
+
"""
|
3969
|
+
|
3970
|
+
_params = locals()
|
3971
|
+
|
3972
|
+
_all_params = ["owner", "name", "body"]
|
3973
|
+
_all_params.extend(
|
3974
|
+
[
|
3975
|
+
"async_req",
|
3976
|
+
"_return_http_data_only",
|
3977
|
+
"_preload_content",
|
3978
|
+
"_request_timeout",
|
3979
|
+
"_request_auth",
|
3980
|
+
"_content_type",
|
3981
|
+
"_headers",
|
3982
|
+
]
|
3983
|
+
)
|
3984
|
+
|
3985
|
+
# validate the arguments
|
3986
|
+
for _key, _val in _params["kwargs"].items():
|
3987
|
+
if _key not in _all_params:
|
3988
|
+
raise ApiTypeError(
|
3989
|
+
"Got an unexpected keyword argument '%s'"
|
3990
|
+
" to method skip_team_runs" % _key
|
3991
|
+
)
|
3992
|
+
_params[_key] = _val
|
3993
|
+
del _params["kwargs"]
|
3994
|
+
|
3995
|
+
_collection_formats = {}
|
3996
|
+
|
3997
|
+
# process the path parameters
|
3998
|
+
_path_params = {}
|
3999
|
+
if _params["owner"]:
|
4000
|
+
_path_params["owner"] = _params["owner"]
|
4001
|
+
|
4002
|
+
if _params["name"]:
|
4003
|
+
_path_params["name"] = _params["name"]
|
4004
|
+
|
4005
|
+
# process the query parameters
|
4006
|
+
_query_params = []
|
4007
|
+
# process the header parameters
|
4008
|
+
_header_params = dict(_params.get("_headers", {}))
|
4009
|
+
# process the form parameters
|
4010
|
+
_form_params = []
|
4011
|
+
_files = {}
|
4012
|
+
# process the body parameter
|
4013
|
+
_body_params = None
|
4014
|
+
if _params["body"]:
|
4015
|
+
_body_params = _params["body"]
|
4016
|
+
|
4017
|
+
# set the HTTP header `Accept`
|
4018
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
4019
|
+
["application/json"]
|
4020
|
+
) # noqa: E501
|
4021
|
+
|
4022
|
+
# set the HTTP header `Content-Type`
|
4023
|
+
_content_types_list = _params.get(
|
4024
|
+
"_content_type",
|
4025
|
+
self.api_client.select_header_content_type(["application/json"]),
|
4026
|
+
)
|
4027
|
+
if _content_types_list:
|
4028
|
+
_header_params["Content-Type"] = _content_types_list
|
4029
|
+
|
4030
|
+
# authentication setting
|
4031
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
4032
|
+
|
4033
|
+
_response_types_map = {}
|
4034
|
+
|
4035
|
+
return self.api_client.call_api(
|
4036
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/Skip",
|
4037
|
+
"POST",
|
4038
|
+
_path_params,
|
4039
|
+
_query_params,
|
4040
|
+
_header_params,
|
4041
|
+
body=_body_params,
|
4042
|
+
post_params=_form_params,
|
4043
|
+
files=_files,
|
4044
|
+
response_types_map=_response_types_map,
|
4045
|
+
auth_settings=_auth_settings,
|
4046
|
+
async_req=_params.get("async_req"),
|
4047
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
4048
|
+
_preload_content=_params.get("_preload_content", True),
|
4049
|
+
_request_timeout=_params.get("_request_timeout"),
|
4050
|
+
collection_formats=_collection_formats,
|
4051
|
+
_request_auth=_params.get("_request_auth"),
|
4052
|
+
)
|
4053
|
+
|
4054
|
+
@validate_call
|
4055
|
+
def stop_team_runs(
|
4056
|
+
self,
|
4057
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4058
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4059
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
4060
|
+
**kwargs
|
4061
|
+
) -> None: # noqa: E501
|
4062
|
+
"""Stop cross-project runs selection # noqa: E501
|
4063
|
+
|
4064
|
+
This method makes a synchronous HTTP request by default. To make an
|
4065
|
+
asynchronous HTTP request, please pass async_req=True
|
4066
|
+
|
4067
|
+
>>> thread = api.stop_team_runs(owner, name, body, async_req=True)
|
1541
4068
|
>>> result = thread.get()
|
1542
4069
|
|
1543
4070
|
:param owner: Owner of the namespace (required)
|
1544
4071
|
:type owner: str
|
1545
|
-
:param
|
1546
|
-
:type
|
1547
|
-
:param
|
1548
|
-
:type
|
1549
|
-
:param sort: Sort to order the search.
|
1550
|
-
:type sort: str
|
1551
|
-
:param query: Query filter the search.
|
1552
|
-
:type query: str
|
1553
|
-
:param bookmarks: Filter by bookmarks.
|
1554
|
-
:type bookmarks: bool
|
1555
|
-
:param mode: Mode of the search.
|
1556
|
-
:type mode: str
|
1557
|
-
:param no_page: No pagination.
|
1558
|
-
:type no_page: bool
|
4072
|
+
:param name: Entity under namespace (required)
|
4073
|
+
:type name: str
|
4074
|
+
:param body: Uuids of the entities (required)
|
4075
|
+
:type body: V1Uuids
|
1559
4076
|
:param async_req: Whether to execute the request asynchronously.
|
1560
4077
|
:type async_req: bool, optional
|
1561
4078
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1569,60 +4086,35 @@ class TeamsV1Api(BaseApi):
|
|
1569
4086
|
:return: Returns the result object.
|
1570
4087
|
If the method is called asynchronously,
|
1571
4088
|
returns the request thread.
|
1572
|
-
:rtype:
|
4089
|
+
:rtype: None
|
1573
4090
|
"""
|
1574
4091
|
kwargs["_return_http_data_only"] = True
|
1575
|
-
return self.
|
1576
|
-
owner,
|
4092
|
+
return self.stop_team_runs_with_http_info(
|
4093
|
+
owner, name, body, **kwargs
|
1577
4094
|
) # noqa: E501
|
1578
4095
|
|
1579
|
-
@
|
1580
|
-
def
|
4096
|
+
@validate_call
|
4097
|
+
def stop_team_runs_with_http_info(
|
1581
4098
|
self,
|
1582
4099
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1583
|
-
|
1584
|
-
|
1585
|
-
] = None,
|
1586
|
-
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
1587
|
-
sort: Annotated[
|
1588
|
-
Optional[StrictStr], Field(description="Sort to order the search.")
|
1589
|
-
] = None,
|
1590
|
-
query: Annotated[
|
1591
|
-
Optional[StrictStr], Field(description="Query filter the search.")
|
1592
|
-
] = None,
|
1593
|
-
bookmarks: Annotated[
|
1594
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
1595
|
-
] = None,
|
1596
|
-
mode: Annotated[
|
1597
|
-
Optional[StrictStr], Field(description="Mode of the search.")
|
1598
|
-
] = None,
|
1599
|
-
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
4100
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4101
|
+
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
1600
4102
|
**kwargs
|
1601
4103
|
): # noqa: E501
|
1602
|
-
"""
|
4104
|
+
"""Stop cross-project runs selection # noqa: E501
|
1603
4105
|
|
1604
4106
|
This method makes a synchronous HTTP request by default. To make an
|
1605
4107
|
asynchronous HTTP request, please pass async_req=True
|
1606
4108
|
|
1607
|
-
>>> thread = api.
|
4109
|
+
>>> thread = api.stop_team_runs_with_http_info(owner, name, body, async_req=True)
|
1608
4110
|
>>> result = thread.get()
|
1609
4111
|
|
1610
4112
|
:param owner: Owner of the namespace (required)
|
1611
4113
|
:type owner: str
|
1612
|
-
:param
|
1613
|
-
:type
|
1614
|
-
:param
|
1615
|
-
:type
|
1616
|
-
:param sort: Sort to order the search.
|
1617
|
-
:type sort: str
|
1618
|
-
:param query: Query filter the search.
|
1619
|
-
:type query: str
|
1620
|
-
:param bookmarks: Filter by bookmarks.
|
1621
|
-
:type bookmarks: bool
|
1622
|
-
:param mode: Mode of the search.
|
1623
|
-
:type mode: str
|
1624
|
-
:param no_page: No pagination.
|
1625
|
-
:type no_page: bool
|
4114
|
+
:param name: Entity under namespace (required)
|
4115
|
+
:type name: str
|
4116
|
+
:param body: Uuids of the entities (required)
|
4117
|
+
:type body: V1Uuids
|
1626
4118
|
:param async_req: Whether to execute the request asynchronously.
|
1627
4119
|
:type async_req: bool, optional
|
1628
4120
|
:param _return_http_data_only: response data without head status code
|
@@ -1644,21 +4136,12 @@ class TeamsV1Api(BaseApi):
|
|
1644
4136
|
:return: Returns the result object.
|
1645
4137
|
If the method is called asynchronously,
|
1646
4138
|
returns the request thread.
|
1647
|
-
:rtype:
|
4139
|
+
:rtype: None
|
1648
4140
|
"""
|
1649
4141
|
|
1650
4142
|
_params = locals()
|
1651
4143
|
|
1652
|
-
_all_params = [
|
1653
|
-
"owner",
|
1654
|
-
"offset",
|
1655
|
-
"limit",
|
1656
|
-
"sort",
|
1657
|
-
"query",
|
1658
|
-
"bookmarks",
|
1659
|
-
"mode",
|
1660
|
-
"no_page",
|
1661
|
-
]
|
4144
|
+
_all_params = ["owner", "name", "body"]
|
1662
4145
|
_all_params.extend(
|
1663
4146
|
[
|
1664
4147
|
"async_req",
|
@@ -1676,7 +4159,7 @@ class TeamsV1Api(BaseApi):
|
|
1676
4159
|
if _key not in _all_params:
|
1677
4160
|
raise ApiTypeError(
|
1678
4161
|
"Got an unexpected keyword argument '%s'"
|
1679
|
-
" to method
|
4162
|
+
" to method stop_team_runs" % _key
|
1680
4163
|
)
|
1681
4164
|
_params[_key] = _val
|
1682
4165
|
del _params["kwargs"]
|
@@ -1688,51 +4171,42 @@ class TeamsV1Api(BaseApi):
|
|
1688
4171
|
if _params["owner"]:
|
1689
4172
|
_path_params["owner"] = _params["owner"]
|
1690
4173
|
|
4174
|
+
if _params["name"]:
|
4175
|
+
_path_params["name"] = _params["name"]
|
4176
|
+
|
1691
4177
|
# process the query parameters
|
1692
4178
|
_query_params = []
|
1693
|
-
if _params.get("offset") is not None: # noqa: E501
|
1694
|
-
_query_params.append(("offset", _params["offset"]))
|
1695
|
-
if _params.get("limit") is not None: # noqa: E501
|
1696
|
-
_query_params.append(("limit", _params["limit"]))
|
1697
|
-
if _params.get("sort") is not None: # noqa: E501
|
1698
|
-
_query_params.append(("sort", _params["sort"]))
|
1699
|
-
if _params.get("query") is not None: # noqa: E501
|
1700
|
-
_query_params.append(("query", _params["query"]))
|
1701
|
-
if _params.get("bookmarks") is not None: # noqa: E501
|
1702
|
-
_query_params.append(("bookmarks", _params["bookmarks"]))
|
1703
|
-
if _params.get("mode") is not None: # noqa: E501
|
1704
|
-
_query_params.append(("mode", _params["mode"]))
|
1705
|
-
if _params.get("no_page") is not None: # noqa: E501
|
1706
|
-
_query_params.append(("no_page", _params["no_page"]))
|
1707
|
-
|
1708
4179
|
# process the header parameters
|
1709
4180
|
_header_params = dict(_params.get("_headers", {}))
|
1710
|
-
|
1711
4181
|
# process the form parameters
|
1712
4182
|
_form_params = []
|
1713
4183
|
_files = {}
|
1714
|
-
|
1715
4184
|
# process the body parameter
|
1716
4185
|
_body_params = None
|
4186
|
+
if _params["body"]:
|
4187
|
+
_body_params = _params["body"]
|
1717
4188
|
|
1718
4189
|
# set the HTTP header `Accept`
|
1719
4190
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1720
4191
|
["application/json"]
|
1721
4192
|
) # noqa: E501
|
1722
4193
|
|
4194
|
+
# set the HTTP header `Content-Type`
|
4195
|
+
_content_types_list = _params.get(
|
4196
|
+
"_content_type",
|
4197
|
+
self.api_client.select_header_content_type(["application/json"]),
|
4198
|
+
)
|
4199
|
+
if _content_types_list:
|
4200
|
+
_header_params["Content-Type"] = _content_types_list
|
4201
|
+
|
1723
4202
|
# authentication setting
|
1724
4203
|
_auth_settings = ["ApiKey"] # noqa: E501
|
1725
4204
|
|
1726
|
-
_response_types_map = {
|
1727
|
-
"200": "V1ListTeamsResponse",
|
1728
|
-
"204": "object",
|
1729
|
-
"403": "object",
|
1730
|
-
"404": "object",
|
1731
|
-
}
|
4205
|
+
_response_types_map = {}
|
1732
4206
|
|
1733
4207
|
return self.api_client.call_api(
|
1734
|
-
"/api/v1/orgs/{owner}/teams",
|
1735
|
-
"
|
4208
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/stop",
|
4209
|
+
"POST",
|
1736
4210
|
_path_params,
|
1737
4211
|
_query_params,
|
1738
4212
|
_header_params,
|
@@ -1749,28 +4223,28 @@ class TeamsV1Api(BaseApi):
|
|
1749
4223
|
_request_auth=_params.get("_request_auth"),
|
1750
4224
|
)
|
1751
4225
|
|
1752
|
-
@
|
1753
|
-
def
|
4226
|
+
@validate_call
|
4227
|
+
def tag_team_runs(
|
1754
4228
|
self,
|
1755
4229
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1756
|
-
|
1757
|
-
body: Annotated[
|
4230
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4231
|
+
body: Annotated[V1EntitiesTags, Field(..., description="Data")],
|
1758
4232
|
**kwargs
|
1759
|
-
) ->
|
1760
|
-
"""
|
4233
|
+
) -> None: # noqa: E501
|
4234
|
+
"""Tag cross-project runs selection # noqa: E501
|
1761
4235
|
|
1762
4236
|
This method makes a synchronous HTTP request by default. To make an
|
1763
4237
|
asynchronous HTTP request, please pass async_req=True
|
1764
4238
|
|
1765
|
-
>>> thread = api.
|
4239
|
+
>>> thread = api.tag_team_runs(owner, name, body, async_req=True)
|
1766
4240
|
>>> result = thread.get()
|
1767
4241
|
|
1768
4242
|
:param owner: Owner of the namespace (required)
|
1769
4243
|
:type owner: str
|
1770
|
-
:param
|
1771
|
-
:type
|
1772
|
-
:param body:
|
1773
|
-
:type body:
|
4244
|
+
:param name: Entity under namespace (required)
|
4245
|
+
:type name: str
|
4246
|
+
:param body: Data (required)
|
4247
|
+
:type body: V1EntitiesTags
|
1774
4248
|
:param async_req: Whether to execute the request asynchronously.
|
1775
4249
|
:type async_req: bool, optional
|
1776
4250
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1784,35 +4258,35 @@ class TeamsV1Api(BaseApi):
|
|
1784
4258
|
:return: Returns the result object.
|
1785
4259
|
If the method is called asynchronously,
|
1786
4260
|
returns the request thread.
|
1787
|
-
:rtype:
|
4261
|
+
:rtype: None
|
1788
4262
|
"""
|
1789
4263
|
kwargs["_return_http_data_only"] = True
|
1790
|
-
return self.
|
1791
|
-
owner,
|
4264
|
+
return self.tag_team_runs_with_http_info(
|
4265
|
+
owner, name, body, **kwargs
|
1792
4266
|
) # noqa: E501
|
1793
4267
|
|
1794
|
-
@
|
1795
|
-
def
|
4268
|
+
@validate_call
|
4269
|
+
def tag_team_runs_with_http_info(
|
1796
4270
|
self,
|
1797
4271
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1798
|
-
|
1799
|
-
body: Annotated[
|
4272
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4273
|
+
body: Annotated[V1EntitiesTags, Field(..., description="Data")],
|
1800
4274
|
**kwargs
|
1801
4275
|
): # noqa: E501
|
1802
|
-
"""
|
4276
|
+
"""Tag cross-project runs selection # noqa: E501
|
1803
4277
|
|
1804
4278
|
This method makes a synchronous HTTP request by default. To make an
|
1805
4279
|
asynchronous HTTP request, please pass async_req=True
|
1806
4280
|
|
1807
|
-
>>> thread = api.
|
4281
|
+
>>> thread = api.tag_team_runs_with_http_info(owner, name, body, async_req=True)
|
1808
4282
|
>>> result = thread.get()
|
1809
4283
|
|
1810
4284
|
:param owner: Owner of the namespace (required)
|
1811
4285
|
:type owner: str
|
1812
|
-
:param
|
1813
|
-
:type
|
1814
|
-
:param body:
|
1815
|
-
:type body:
|
4286
|
+
:param name: Entity under namespace (required)
|
4287
|
+
:type name: str
|
4288
|
+
:param body: Data (required)
|
4289
|
+
:type body: V1EntitiesTags
|
1816
4290
|
:param async_req: Whether to execute the request asynchronously.
|
1817
4291
|
:type async_req: bool, optional
|
1818
4292
|
:param _return_http_data_only: response data without head status code
|
@@ -1834,12 +4308,12 @@ class TeamsV1Api(BaseApi):
|
|
1834
4308
|
:return: Returns the result object.
|
1835
4309
|
If the method is called asynchronously,
|
1836
4310
|
returns the request thread.
|
1837
|
-
:rtype:
|
4311
|
+
:rtype: None
|
1838
4312
|
"""
|
1839
4313
|
|
1840
4314
|
_params = locals()
|
1841
4315
|
|
1842
|
-
_all_params = ["owner", "
|
4316
|
+
_all_params = ["owner", "name", "body"]
|
1843
4317
|
_all_params.extend(
|
1844
4318
|
[
|
1845
4319
|
"async_req",
|
@@ -1857,7 +4331,7 @@ class TeamsV1Api(BaseApi):
|
|
1857
4331
|
if _key not in _all_params:
|
1858
4332
|
raise ApiTypeError(
|
1859
4333
|
"Got an unexpected keyword argument '%s'"
|
1860
|
-
" to method
|
4334
|
+
" to method tag_team_runs" % _key
|
1861
4335
|
)
|
1862
4336
|
_params[_key] = _val
|
1863
4337
|
del _params["kwargs"]
|
@@ -1868,19 +4342,17 @@ class TeamsV1Api(BaseApi):
|
|
1868
4342
|
_path_params = {}
|
1869
4343
|
if _params["owner"]:
|
1870
4344
|
_path_params["owner"] = _params["owner"]
|
1871
|
-
|
1872
|
-
|
4345
|
+
|
4346
|
+
if _params["name"]:
|
4347
|
+
_path_params["name"] = _params["name"]
|
1873
4348
|
|
1874
4349
|
# process the query parameters
|
1875
4350
|
_query_params = []
|
1876
|
-
|
1877
4351
|
# process the header parameters
|
1878
4352
|
_header_params = dict(_params.get("_headers", {}))
|
1879
|
-
|
1880
4353
|
# process the form parameters
|
1881
4354
|
_form_params = []
|
1882
4355
|
_files = {}
|
1883
|
-
|
1884
4356
|
# process the body parameter
|
1885
4357
|
_body_params = None
|
1886
4358
|
if _params["body"]:
|
@@ -1902,16 +4374,11 @@ class TeamsV1Api(BaseApi):
|
|
1902
4374
|
# authentication setting
|
1903
4375
|
_auth_settings = ["ApiKey"] # noqa: E501
|
1904
4376
|
|
1905
|
-
_response_types_map = {
|
1906
|
-
"200": "V1Team",
|
1907
|
-
"204": "object",
|
1908
|
-
"403": "object",
|
1909
|
-
"404": "object",
|
1910
|
-
}
|
4377
|
+
_response_types_map = {}
|
1911
4378
|
|
1912
4379
|
return self.api_client.call_api(
|
1913
|
-
"/api/v1/orgs/{owner}/teams/{
|
1914
|
-
"
|
4380
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/tag",
|
4381
|
+
"POST",
|
1915
4382
|
_path_params,
|
1916
4383
|
_query_params,
|
1917
4384
|
_header_params,
|
@@ -1928,31 +4395,28 @@ class TeamsV1Api(BaseApi):
|
|
1928
4395
|
_request_auth=_params.get("_request_auth"),
|
1929
4396
|
)
|
1930
4397
|
|
1931
|
-
@
|
1932
|
-
def
|
4398
|
+
@validate_call
|
4399
|
+
def transfer_team_runs(
|
1933
4400
|
self,
|
1934
4401
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1935
|
-
|
1936
|
-
|
1937
|
-
body: Annotated[V1TeamMember, Field(..., description="Team body")],
|
4402
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4403
|
+
body: Annotated[V1EntitiesTransfer, Field(..., description="Data")],
|
1938
4404
|
**kwargs
|
1939
|
-
) ->
|
1940
|
-
"""
|
4405
|
+
) -> None: # noqa: E501
|
4406
|
+
"""Transfer cross-project runs selection to a new project # noqa: E501
|
1941
4407
|
|
1942
4408
|
This method makes a synchronous HTTP request by default. To make an
|
1943
4409
|
asynchronous HTTP request, please pass async_req=True
|
1944
4410
|
|
1945
|
-
>>> thread = api.
|
4411
|
+
>>> thread = api.transfer_team_runs(owner, name, body, async_req=True)
|
1946
4412
|
>>> result = thread.get()
|
1947
4413
|
|
1948
4414
|
:param owner: Owner of the namespace (required)
|
1949
4415
|
:type owner: str
|
1950
|
-
:param
|
1951
|
-
:type
|
1952
|
-
:param
|
1953
|
-
:type
|
1954
|
-
:param body: Team body (required)
|
1955
|
-
:type body: V1TeamMember
|
4416
|
+
:param name: Entity under namespace (required)
|
4417
|
+
:type name: str
|
4418
|
+
:param body: Data (required)
|
4419
|
+
:type body: V1EntitiesTransfer
|
1956
4420
|
:param async_req: Whether to execute the request asynchronously.
|
1957
4421
|
:type async_req: bool, optional
|
1958
4422
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1966,38 +4430,35 @@ class TeamsV1Api(BaseApi):
|
|
1966
4430
|
:return: Returns the result object.
|
1967
4431
|
If the method is called asynchronously,
|
1968
4432
|
returns the request thread.
|
1969
|
-
:rtype:
|
4433
|
+
:rtype: None
|
1970
4434
|
"""
|
1971
4435
|
kwargs["_return_http_data_only"] = True
|
1972
|
-
return self.
|
1973
|
-
owner,
|
4436
|
+
return self.transfer_team_runs_with_http_info(
|
4437
|
+
owner, name, body, **kwargs
|
1974
4438
|
) # noqa: E501
|
1975
4439
|
|
1976
|
-
@
|
1977
|
-
def
|
4440
|
+
@validate_call
|
4441
|
+
def transfer_team_runs_with_http_info(
|
1978
4442
|
self,
|
1979
4443
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
1980
|
-
|
1981
|
-
|
1982
|
-
body: Annotated[V1TeamMember, Field(..., description="Team body")],
|
4444
|
+
name: Annotated[StrictStr, Field(..., description="Entity under namespace")],
|
4445
|
+
body: Annotated[V1EntitiesTransfer, Field(..., description="Data")],
|
1983
4446
|
**kwargs
|
1984
4447
|
): # noqa: E501
|
1985
|
-
"""
|
4448
|
+
"""Transfer cross-project runs selection to a new project # noqa: E501
|
1986
4449
|
|
1987
4450
|
This method makes a synchronous HTTP request by default. To make an
|
1988
4451
|
asynchronous HTTP request, please pass async_req=True
|
1989
4452
|
|
1990
|
-
>>> thread = api.
|
4453
|
+
>>> thread = api.transfer_team_runs_with_http_info(owner, name, body, async_req=True)
|
1991
4454
|
>>> result = thread.get()
|
1992
4455
|
|
1993
4456
|
:param owner: Owner of the namespace (required)
|
1994
4457
|
:type owner: str
|
1995
|
-
:param
|
1996
|
-
:type
|
1997
|
-
:param
|
1998
|
-
:type
|
1999
|
-
:param body: Team body (required)
|
2000
|
-
:type body: V1TeamMember
|
4458
|
+
:param name: Entity under namespace (required)
|
4459
|
+
:type name: str
|
4460
|
+
:param body: Data (required)
|
4461
|
+
:type body: V1EntitiesTransfer
|
2001
4462
|
:param async_req: Whether to execute the request asynchronously.
|
2002
4463
|
:type async_req: bool, optional
|
2003
4464
|
:param _return_http_data_only: response data without head status code
|
@@ -2019,12 +4480,12 @@ class TeamsV1Api(BaseApi):
|
|
2019
4480
|
:return: Returns the result object.
|
2020
4481
|
If the method is called asynchronously,
|
2021
4482
|
returns the request thread.
|
2022
|
-
:rtype:
|
4483
|
+
:rtype: None
|
2023
4484
|
"""
|
2024
4485
|
|
2025
4486
|
_params = locals()
|
2026
4487
|
|
2027
|
-
_all_params = ["owner", "
|
4488
|
+
_all_params = ["owner", "name", "body"]
|
2028
4489
|
_all_params.extend(
|
2029
4490
|
[
|
2030
4491
|
"async_req",
|
@@ -2042,7 +4503,7 @@ class TeamsV1Api(BaseApi):
|
|
2042
4503
|
if _key not in _all_params:
|
2043
4504
|
raise ApiTypeError(
|
2044
4505
|
"Got an unexpected keyword argument '%s'"
|
2045
|
-
" to method
|
4506
|
+
" to method transfer_team_runs" % _key
|
2046
4507
|
)
|
2047
4508
|
_params[_key] = _val
|
2048
4509
|
del _params["kwargs"]
|
@@ -2053,21 +4514,17 @@ class TeamsV1Api(BaseApi):
|
|
2053
4514
|
_path_params = {}
|
2054
4515
|
if _params["owner"]:
|
2055
4516
|
_path_params["owner"] = _params["owner"]
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
_path_params["member.user"] = _params["member_user"]
|
4517
|
+
|
4518
|
+
if _params["name"]:
|
4519
|
+
_path_params["name"] = _params["name"]
|
2060
4520
|
|
2061
4521
|
# process the query parameters
|
2062
4522
|
_query_params = []
|
2063
|
-
|
2064
4523
|
# process the header parameters
|
2065
4524
|
_header_params = dict(_params.get("_headers", {}))
|
2066
|
-
|
2067
4525
|
# process the form parameters
|
2068
4526
|
_form_params = []
|
2069
4527
|
_files = {}
|
2070
|
-
|
2071
4528
|
# process the body parameter
|
2072
4529
|
_body_params = None
|
2073
4530
|
if _params["body"]:
|
@@ -2089,16 +4546,11 @@ class TeamsV1Api(BaseApi):
|
|
2089
4546
|
# authentication setting
|
2090
4547
|
_auth_settings = ["ApiKey"] # noqa: E501
|
2091
4548
|
|
2092
|
-
_response_types_map = {
|
2093
|
-
"200": "V1TeamMember",
|
2094
|
-
"204": "object",
|
2095
|
-
"403": "object",
|
2096
|
-
"404": "object",
|
2097
|
-
}
|
4549
|
+
_response_types_map = {}
|
2098
4550
|
|
2099
4551
|
return self.api_client.call_api(
|
2100
|
-
"/api/v1/orgs/{owner}/teams/{
|
2101
|
-
"
|
4552
|
+
"/api/v1/orgs/{owner}/teams/{name}/runs/transfer",
|
4553
|
+
"POST",
|
2102
4554
|
_path_params,
|
2103
4555
|
_query_params,
|
2104
4556
|
_header_params,
|
@@ -2115,7 +4567,7 @@ class TeamsV1Api(BaseApi):
|
|
2115
4567
|
_request_auth=_params.get("_request_auth"),
|
2116
4568
|
)
|
2117
4569
|
|
2118
|
-
@
|
4570
|
+
@validate_call
|
2119
4571
|
def update_team(
|
2120
4572
|
self,
|
2121
4573
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -2157,7 +4609,7 @@ class TeamsV1Api(BaseApi):
|
|
2157
4609
|
owner, team_name, body, **kwargs
|
2158
4610
|
) # noqa: E501
|
2159
4611
|
|
2160
|
-
@
|
4612
|
+
@validate_call
|
2161
4613
|
def update_team_with_http_info(
|
2162
4614
|
self,
|
2163
4615
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -2294,7 +4746,7 @@ class TeamsV1Api(BaseApi):
|
|
2294
4746
|
_request_auth=_params.get("_request_auth"),
|
2295
4747
|
)
|
2296
4748
|
|
2297
|
-
@
|
4749
|
+
@validate_call
|
2298
4750
|
def update_team_member(
|
2299
4751
|
self,
|
2300
4752
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
@@ -2339,7 +4791,7 @@ class TeamsV1Api(BaseApi):
|
|
2339
4791
|
owner, team, member_user, body, **kwargs
|
2340
4792
|
) # noqa: E501
|
2341
4793
|
|
2342
|
-
@
|
4794
|
+
@validate_call
|
2343
4795
|
def update_team_member_with_http_info(
|
2344
4796
|
self,
|
2345
4797
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|