polyaxon-sdk 2.1.8__py2.py3-none-any.whl → 2.2.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon_sdk/__init__.py +2 -2
- polyaxon_sdk/api/agents_v1_api.py +1 -1
- polyaxon_sdk/api/artifacts_stores_v1_api.py +1 -1
- polyaxon_sdk/api/auth_v1_api.py +1 -1
- polyaxon_sdk/api/connections_v1_api.py +1 -1
- polyaxon_sdk/api/dashboards_v1_api.py +1 -1
- polyaxon_sdk/api/organizations_v1_api.py +9 -9
- polyaxon_sdk/api/policies_v1_api.py +1 -1
- polyaxon_sdk/api/presets_v1_api.py +1 -1
- polyaxon_sdk/api/project_dashboards_v1_api.py +13 -13
- polyaxon_sdk/api/project_searches_v1_api.py +13 -13
- polyaxon_sdk/api/projects_v1_api.py +209 -45
- polyaxon_sdk/api/queues_v1_api.py +1 -1
- polyaxon_sdk/api/runs_v1_api.py +159 -159
- polyaxon_sdk/api/schemas_v1_api.py +1 -1
- polyaxon_sdk/api/searches_v1_api.py +1 -1
- polyaxon_sdk/api/service_accounts_v1_api.py +5 -5
- polyaxon_sdk/api/tags_v1_api.py +1 -1
- polyaxon_sdk/api/teams_v1_api.py +3016 -426
- polyaxon_sdk/api/users_v1_api.py +174 -1
- polyaxon_sdk/api/versions_v1_api.py +1 -1
- polyaxon_sdk/api_client.py +2 -2
- polyaxon_sdk/configuration.py +3 -3
- polyaxon_sdk/exceptions.py +1 -1
- polyaxon_sdk/models/__init__.py +1 -1
- polyaxon_sdk/models/agent_state_response_agent_state.py +1 -1
- polyaxon_sdk/models/mx_job_mode.py +1 -1
- polyaxon_sdk/models/protobuf_any.py +1 -1
- polyaxon_sdk/models/protobuf_null_value.py +1 -1
- polyaxon_sdk/models/runtime_error.py +1 -1
- polyaxon_sdk/models/search_view.py +1 -1
- polyaxon_sdk/models/v1_activity.py +1 -1
- polyaxon_sdk/models/v1_agent.py +1 -1
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +1 -1
- polyaxon_sdk/models/v1_agent_state_response.py +1 -1
- polyaxon_sdk/models/v1_agent_status_body_request.py +1 -1
- polyaxon_sdk/models/v1_analytics_spec.py +1 -1
- polyaxon_sdk/models/v1_artifact_kind.py +1 -1
- polyaxon_sdk/models/v1_artifact_tree.py +1 -1
- polyaxon_sdk/models/v1_artifacts_mount.py +1 -1
- polyaxon_sdk/models/v1_artifacts_type.py +1 -1
- polyaxon_sdk/models/v1_auth.py +1 -1
- polyaxon_sdk/models/v1_auth_type.py +1 -1
- polyaxon_sdk/models/v1_average_stopping_policy.py +1 -1
- polyaxon_sdk/models/v1_bayes.py +1 -1
- polyaxon_sdk/models/v1_bucket_connection.py +1 -1
- polyaxon_sdk/models/v1_build.py +1 -1
- polyaxon_sdk/models/v1_cache.py +1 -1
- polyaxon_sdk/models/v1_claim_connection.py +1 -1
- polyaxon_sdk/models/v1_clean_pod_policy.py +1 -1
- polyaxon_sdk/models/v1_cloning.py +1 -1
- polyaxon_sdk/models/v1_cloning_kind.py +1 -1
- polyaxon_sdk/models/v1_compatibility.py +1 -1
- polyaxon_sdk/models/v1_compiled_operation.py +1 -1
- polyaxon_sdk/models/v1_component.py +1 -1
- polyaxon_sdk/models/v1_connection_kind.py +1 -1
- polyaxon_sdk/models/v1_connection_resource.py +1 -1
- polyaxon_sdk/models/v1_connection_response.py +1 -1
- polyaxon_sdk/models/v1_connection_schema.py +1 -1
- polyaxon_sdk/models/v1_connection_type.py +1 -1
- polyaxon_sdk/models/v1_credentials.py +1 -1
- polyaxon_sdk/models/v1_cron_schedule.py +1 -1
- polyaxon_sdk/models/v1_dag.py +1 -1
- polyaxon_sdk/models/v1_dag_ref.py +1 -1
- polyaxon_sdk/models/v1_dashboard.py +1 -1
- polyaxon_sdk/models/v1_dashboard_spec.py +1 -1
- polyaxon_sdk/models/v1_dask_job.py +1 -1
- polyaxon_sdk/models/v1_dask_replica.py +1 -1
- polyaxon_sdk/models/v1_date_time_schedule.py +1 -1
- polyaxon_sdk/models/v1_diff_stopping_policy.py +1 -1
- polyaxon_sdk/models/v1_dockerfile_type.py +1 -1
- polyaxon_sdk/models/v1_early_stopping.py +1 -1
- polyaxon_sdk/models/v1_entities_tags.py +1 -1
- polyaxon_sdk/models/v1_entities_transfer.py +1 -1
- polyaxon_sdk/models/v1_entity_notification_body.py +1 -1
- polyaxon_sdk/models/v1_entity_stage_body_request.py +1 -1
- polyaxon_sdk/models/v1_entity_status_body_request.py +1 -1
- polyaxon_sdk/models/v1_environment.py +1 -1
- polyaxon_sdk/models/v1_event.py +1 -1
- polyaxon_sdk/models/v1_event_artifact.py +1 -1
- polyaxon_sdk/models/v1_event_audio.py +1 -1
- polyaxon_sdk/models/v1_event_chart.py +1 -1
- polyaxon_sdk/models/v1_event_chart_kind.py +1 -1
- polyaxon_sdk/models/v1_event_confusion_matrix.py +1 -1
- polyaxon_sdk/models/v1_event_curve.py +1 -1
- polyaxon_sdk/models/v1_event_curve_kind.py +1 -1
- polyaxon_sdk/models/v1_event_dataframe.py +1 -1
- polyaxon_sdk/models/v1_event_histogram.py +1 -1
- polyaxon_sdk/models/v1_event_image.py +1 -1
- polyaxon_sdk/models/v1_event_kind.py +1 -1
- polyaxon_sdk/models/v1_event_model.py +1 -1
- polyaxon_sdk/models/v1_event_span.py +1 -1
- polyaxon_sdk/models/v1_event_span_kind.py +1 -1
- polyaxon_sdk/models/v1_event_trigger.py +1 -1
- polyaxon_sdk/models/v1_event_type.py +1 -1
- polyaxon_sdk/models/v1_event_video.py +1 -1
- polyaxon_sdk/models/v1_events_response.py +1 -1
- polyaxon_sdk/models/v1_failure_early_stopping.py +1 -1
- polyaxon_sdk/models/v1_file_type.py +1 -1
- polyaxon_sdk/models/v1_gcs_type.py +1 -1
- polyaxon_sdk/models/v1_git_connection.py +1 -1
- polyaxon_sdk/models/v1_git_type.py +1 -1
- polyaxon_sdk/models/v1_grid_search.py +1 -1
- polyaxon_sdk/models/v1_hook.py +1 -1
- polyaxon_sdk/models/v1_host_connection.py +1 -1
- polyaxon_sdk/models/v1_host_path_connection.py +1 -1
- polyaxon_sdk/models/v1_hp_choice.py +1 -1
- polyaxon_sdk/models/v1_hp_date_range.py +1 -1
- polyaxon_sdk/models/v1_hp_date_time_range.py +1 -1
- polyaxon_sdk/models/v1_hp_geom_space.py +1 -1
- polyaxon_sdk/models/v1_hp_lin_space.py +1 -1
- polyaxon_sdk/models/v1_hp_log_normal.py +1 -1
- polyaxon_sdk/models/v1_hp_log_space.py +1 -1
- polyaxon_sdk/models/v1_hp_log_uniform.py +1 -1
- polyaxon_sdk/models/v1_hp_normal.py +1 -1
- polyaxon_sdk/models/v1_hp_p_choice.py +1 -1
- polyaxon_sdk/models/v1_hp_params.py +1 -1
- polyaxon_sdk/models/v1_hp_q_log_normal.py +1 -1
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +1 -1
- polyaxon_sdk/models/v1_hp_q_normal.py +1 -1
- polyaxon_sdk/models/v1_hp_q_uniform.py +1 -1
- polyaxon_sdk/models/v1_hp_range.py +1 -1
- polyaxon_sdk/models/v1_hp_uniform.py +1 -1
- polyaxon_sdk/models/v1_hub_ref.py +1 -1
- polyaxon_sdk/models/v1_hyperband.py +1 -1
- polyaxon_sdk/models/v1_hyperopt.py +1 -1
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +1 -1
- polyaxon_sdk/models/v1_init.py +1 -1
- polyaxon_sdk/models/v1_installation.py +1 -1
- polyaxon_sdk/models/v1_interval_schedule.py +1 -1
- polyaxon_sdk/models/v1_io.py +1 -1
- polyaxon_sdk/models/v1_iterative.py +1 -1
- polyaxon_sdk/models/v1_job.py +1 -1
- polyaxon_sdk/models/v1_join.py +1 -1
- polyaxon_sdk/models/v1_join_param.py +1 -1
- polyaxon_sdk/models/v1_kf_replica.py +1 -1
- polyaxon_sdk/models/v1_list_activities_response.py +1 -1
- polyaxon_sdk/models/v1_list_agents_response.py +1 -1
- polyaxon_sdk/models/v1_list_bookmarks_response.py +1 -1
- polyaxon_sdk/models/v1_list_connections_response.py +1 -1
- polyaxon_sdk/models/v1_list_dashboards_response.py +1 -1
- polyaxon_sdk/models/v1_list_organization_members_response.py +1 -1
- polyaxon_sdk/models/v1_list_organizations_response.py +1 -1
- polyaxon_sdk/models/v1_list_policies_response.py +1 -1
- polyaxon_sdk/models/v1_list_presets_response.py +1 -1
- polyaxon_sdk/models/v1_list_project_versions_response.py +1 -1
- polyaxon_sdk/models/v1_list_projects_response.py +1 -1
- polyaxon_sdk/models/v1_list_queues_response.py +1 -1
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +1 -1
- polyaxon_sdk/models/v1_list_run_connections_response.py +1 -1
- polyaxon_sdk/models/v1_list_run_edges_response.py +1 -1
- polyaxon_sdk/models/v1_list_runs_response.py +1 -1
- polyaxon_sdk/models/v1_list_searches_response.py +1 -1
- polyaxon_sdk/models/v1_list_service_accounts_response.py +1 -1
- polyaxon_sdk/models/v1_list_tags_response.py +1 -1
- polyaxon_sdk/models/v1_list_team_members_response.py +1 -1
- polyaxon_sdk/models/v1_list_teams_response.py +1 -1
- polyaxon_sdk/models/v1_list_token_response.py +1 -1
- polyaxon_sdk/models/v1_log.py +1 -1
- polyaxon_sdk/models/v1_log_handler.py +1 -1
- polyaxon_sdk/models/v1_logs.py +1 -1
- polyaxon_sdk/models/v1_managed_by.py +1 -1
- polyaxon_sdk/models/v1_mapping.py +1 -1
- polyaxon_sdk/models/v1_matrix.py +1 -1
- polyaxon_sdk/models/v1_matrix_kind.py +1 -1
- polyaxon_sdk/models/v1_median_stopping_policy.py +1 -1
- polyaxon_sdk/models/v1_metric_early_stopping.py +1 -1
- polyaxon_sdk/models/v1_mpi_job.py +1 -1
- polyaxon_sdk/models/v1_multi_events_response.py +1 -1
- polyaxon_sdk/models/v1_mx_job.py +1 -1
- polyaxon_sdk/models/v1_notification.py +1 -1
- polyaxon_sdk/models/v1_operation.py +1 -1
- polyaxon_sdk/models/v1_operation_body.py +1 -1
- polyaxon_sdk/models/v1_optimization.py +1 -1
- polyaxon_sdk/models/v1_optimization_metric.py +1 -1
- polyaxon_sdk/models/v1_optimization_resource.py +1 -1
- polyaxon_sdk/models/v1_organization.py +1 -1
- polyaxon_sdk/models/v1_organization_member.py +1 -1
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +1 -1
- polyaxon_sdk/models/v1_paddle_job.py +1 -1
- polyaxon_sdk/models/v1_param.py +1 -1
- polyaxon_sdk/models/v1_password_change.py +1 -1
- polyaxon_sdk/models/v1_patch_strategy.py +1 -1
- polyaxon_sdk/models/v1_path_ref.py +1 -1
- polyaxon_sdk/models/v1_pipeline.py +1 -1
- polyaxon_sdk/models/v1_pipeline_kind.py +1 -1
- polyaxon_sdk/models/v1_plugins.py +1 -1
- polyaxon_sdk/models/v1_policy.py +1 -1
- polyaxon_sdk/models/v1_polyaxon_init_container.py +1 -1
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +1 -1
- polyaxon_sdk/models/v1_preset.py +1 -1
- polyaxon_sdk/models/v1_project.py +1 -1
- polyaxon_sdk/models/v1_project_settings.py +1 -1
- polyaxon_sdk/models/v1_project_version.py +1 -1
- polyaxon_sdk/models/v1_project_version_kind.py +1 -1
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +1 -1
- polyaxon_sdk/models/v1_pytorch_job.py +1 -1
- polyaxon_sdk/models/v1_queue.py +1 -1
- polyaxon_sdk/models/v1_random_search.py +1 -1
- polyaxon_sdk/models/v1_ray_job.py +1 -1
- polyaxon_sdk/models/v1_ray_replica.py +1 -1
- polyaxon_sdk/models/v1_reference.py +1 -1
- polyaxon_sdk/models/v1_resource_type.py +1 -1
- polyaxon_sdk/models/v1_run.py +1 -1
- polyaxon_sdk/models/v1_run_artifact.py +1 -1
- polyaxon_sdk/models/v1_run_artifacts.py +1 -1
- polyaxon_sdk/models/v1_run_connection.py +1 -1
- polyaxon_sdk/models/v1_run_edge.py +1 -1
- polyaxon_sdk/models/v1_run_edge_kind.py +1 -1
- polyaxon_sdk/models/v1_run_edge_lineage.py +1 -1
- polyaxon_sdk/models/v1_run_edges_graph.py +1 -1
- polyaxon_sdk/models/v1_run_kind.py +1 -1
- polyaxon_sdk/models/v1_run_pending.py +1 -1
- polyaxon_sdk/models/v1_run_reference_catalog.py +1 -1
- polyaxon_sdk/models/v1_run_resources.py +1 -1
- polyaxon_sdk/models/v1_run_schema.py +1 -1
- polyaxon_sdk/models/v1_run_settings.py +1 -1
- polyaxon_sdk/models/v1_s3_type.py +1 -1
- polyaxon_sdk/models/v1_schedule.py +1 -1
- polyaxon_sdk/models/v1_schedule_kind.py +1 -1
- polyaxon_sdk/models/v1_scheduling_policy.py +1 -1
- polyaxon_sdk/models/v1_schemas.py +1 -1
- polyaxon_sdk/models/v1_search.py +1 -1
- polyaxon_sdk/models/v1_search_spec.py +1 -1
- polyaxon_sdk/models/v1_section_spec.py +1 -1
- polyaxon_sdk/models/v1_service.py +1 -1
- polyaxon_sdk/models/v1_service_account.py +1 -1
- polyaxon_sdk/models/v1_settings_catalog.py +1 -1
- polyaxon_sdk/models/v1_stage.py +1 -1
- polyaxon_sdk/models/v1_stage_condition.py +1 -1
- polyaxon_sdk/models/v1_stages.py +1 -1
- polyaxon_sdk/models/v1_status.py +1 -1
- polyaxon_sdk/models/v1_status_condition.py +1 -1
- polyaxon_sdk/models/v1_statuses.py +1 -1
- polyaxon_sdk/models/v1_tag.py +1 -1
- polyaxon_sdk/models/v1_team.py +8 -2
- polyaxon_sdk/models/v1_team_member.py +1 -1
- polyaxon_sdk/models/v1_team_settings.py +1 -1
- polyaxon_sdk/models/v1_template.py +1 -1
- polyaxon_sdk/models/v1_tensorboard_type.py +1 -1
- polyaxon_sdk/models/v1_termination.py +1 -1
- polyaxon_sdk/models/v1_tf_job.py +1 -1
- polyaxon_sdk/models/v1_token.py +1 -1
- polyaxon_sdk/models/v1_trial_start.py +1 -1
- polyaxon_sdk/models/v1_trigger_policy.py +1 -1
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +1 -1
- polyaxon_sdk/models/v1_tuner.py +1 -1
- polyaxon_sdk/models/v1_uri_type.py +1 -1
- polyaxon_sdk/models/v1_url_ref.py +1 -1
- polyaxon_sdk/models/v1_user.py +1 -1
- polyaxon_sdk/models/v1_user_access.py +1 -1
- polyaxon_sdk/models/v1_user_email.py +1 -1
- polyaxon_sdk/models/v1_user_singup.py +1 -1
- polyaxon_sdk/models/v1_uuids.py +1 -1
- polyaxon_sdk/models/v1_validation.py +1 -1
- polyaxon_sdk/models/v1_version.py +1 -1
- polyaxon_sdk/models/v1_wasb_type.py +1 -1
- polyaxon_sdk/models/v1_xg_boost_job.py +1 -1
- polyaxon_sdk/rest.py +1 -1
- {polyaxon_sdk-2.1.8.dist-info → polyaxon_sdk-2.2.0.dist-info}/METADATA +1 -1
- polyaxon_sdk-2.2.0.dist-info/RECORD +264 -0
- polyaxon_sdk-2.1.8.dist-info/RECORD +0 -264
- {polyaxon_sdk-2.1.8.dist-info → polyaxon_sdk-2.2.0.dist-info}/WHEEL +0 -0
- {polyaxon_sdk-2.1.8.dist-info → polyaxon_sdk-2.2.0.dist-info}/top_level.txt +0 -0
polyaxon_sdk/api/teams_v1_api.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# noqa: E501
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 2.
|
8
|
+
The version of the OpenAPI document: 2.2.0
|
9
9
|
Contact: contact@polyaxon.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -20,12 +20,19 @@ from typing_extensions import Annotated
|
|
20
20
|
|
21
21
|
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
22
22
|
|
23
|
-
from typing import Optional
|
23
|
+
from typing import Any, Dict, Optional
|
24
24
|
|
25
|
+
from polyaxon_sdk.models.v1_entities_tags import V1EntitiesTags
|
26
|
+
from polyaxon_sdk.models.v1_entities_transfer import V1EntitiesTransfer
|
27
|
+
from polyaxon_sdk.models.v1_list_activities_response import V1ListActivitiesResponse
|
28
|
+
from polyaxon_sdk.models.v1_list_project_versions_response import V1ListProjectVersionsResponse
|
29
|
+
from polyaxon_sdk.models.v1_list_runs_response import V1ListRunsResponse
|
25
30
|
from polyaxon_sdk.models.v1_list_team_members_response import V1ListTeamMembersResponse
|
26
31
|
from polyaxon_sdk.models.v1_list_teams_response import V1ListTeamsResponse
|
32
|
+
from polyaxon_sdk.models.v1_run import V1Run
|
27
33
|
from polyaxon_sdk.models.v1_team import V1Team
|
28
34
|
from polyaxon_sdk.models.v1_team_member import V1TeamMember
|
35
|
+
from polyaxon_sdk.models.v1_uuids import V1Uuids
|
29
36
|
|
30
37
|
from polyaxon_sdk.api_client import ApiClient
|
31
38
|
from polyaxon_sdk.exceptions import ( # noqa: F401
|
@@ -47,19 +54,21 @@ class TeamsV1Api(object):
|
|
47
54
|
self.api_client = api_client
|
48
55
|
|
49
56
|
@validate_arguments
|
50
|
-
def
|
51
|
-
"""
|
57
|
+
def approve_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
58
|
+
"""Approve cross-project runs selection # noqa: E501
|
52
59
|
|
53
60
|
This method makes a synchronous HTTP request by default. To make an
|
54
61
|
asynchronous HTTP request, please pass async_req=True
|
55
62
|
|
56
|
-
>>> thread = api.
|
63
|
+
>>> thread = api.approve_team_runs(owner, name, body, async_req=True)
|
57
64
|
>>> result = thread.get()
|
58
65
|
|
59
66
|
:param owner: Owner of the namespace (required)
|
60
67
|
:type owner: str
|
61
|
-
:param
|
62
|
-
:type
|
68
|
+
:param name: Entity under namespace (required)
|
69
|
+
:type name: str
|
70
|
+
:param body: Uuids of the entities (required)
|
71
|
+
:type body: V1Uuids
|
63
72
|
:param async_req: Whether to execute the request asynchronously.
|
64
73
|
:type async_req: bool, optional
|
65
74
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -73,25 +82,27 @@ class TeamsV1Api(object):
|
|
73
82
|
:return: Returns the result object.
|
74
83
|
If the method is called asynchronously,
|
75
84
|
returns the request thread.
|
76
|
-
:rtype:
|
85
|
+
:rtype: None
|
77
86
|
"""
|
78
87
|
kwargs['_return_http_data_only'] = True
|
79
|
-
return self.
|
88
|
+
return self.approve_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
80
89
|
|
81
90
|
@validate_arguments
|
82
|
-
def
|
83
|
-
"""
|
91
|
+
def approve_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
92
|
+
"""Approve cross-project runs selection # noqa: E501
|
84
93
|
|
85
94
|
This method makes a synchronous HTTP request by default. To make an
|
86
95
|
asynchronous HTTP request, please pass async_req=True
|
87
96
|
|
88
|
-
>>> thread = api.
|
97
|
+
>>> thread = api.approve_team_runs_with_http_info(owner, name, body, async_req=True)
|
89
98
|
>>> result = thread.get()
|
90
99
|
|
91
100
|
:param owner: Owner of the namespace (required)
|
92
101
|
:type owner: str
|
93
|
-
:param
|
94
|
-
:type
|
102
|
+
:param name: Entity under namespace (required)
|
103
|
+
:type name: str
|
104
|
+
:param body: Uuids of the entities (required)
|
105
|
+
:type body: V1Uuids
|
95
106
|
:param async_req: Whether to execute the request asynchronously.
|
96
107
|
:type async_req: bool, optional
|
97
108
|
:param _return_http_data_only: response data without head status code
|
@@ -113,13 +124,14 @@ class TeamsV1Api(object):
|
|
113
124
|
:return: Returns the result object.
|
114
125
|
If the method is called asynchronously,
|
115
126
|
returns the request thread.
|
116
|
-
:rtype:
|
127
|
+
:rtype: None
|
117
128
|
"""
|
118
129
|
|
119
130
|
_params = locals()
|
120
131
|
|
121
132
|
_all_params = [
|
122
133
|
'owner',
|
134
|
+
'name',
|
123
135
|
'body'
|
124
136
|
]
|
125
137
|
_all_params.extend(
|
@@ -139,7 +151,7 @@ class TeamsV1Api(object):
|
|
139
151
|
if _key not in _all_params:
|
140
152
|
raise ApiTypeError(
|
141
153
|
"Got an unexpected keyword argument '%s'"
|
142
|
-
" to method
|
154
|
+
" to method approve_team_runs" % _key
|
143
155
|
)
|
144
156
|
_params[_key] = _val
|
145
157
|
del _params['kwargs']
|
@@ -151,6 +163,9 @@ class TeamsV1Api(object):
|
|
151
163
|
if _params['owner']:
|
152
164
|
_path_params['owner'] = _params['owner']
|
153
165
|
|
166
|
+
if _params['name']:
|
167
|
+
_path_params['name'] = _params['name']
|
168
|
+
|
154
169
|
|
155
170
|
# process the query parameters
|
156
171
|
_query_params = []
|
@@ -178,15 +193,10 @@ class TeamsV1Api(object):
|
|
178
193
|
# authentication setting
|
179
194
|
_auth_settings = ['ApiKey'] # noqa: E501
|
180
195
|
|
181
|
-
_response_types_map = {
|
182
|
-
'200': "V1Team",
|
183
|
-
'204': "object",
|
184
|
-
'403': "object",
|
185
|
-
'404': "object",
|
186
|
-
}
|
196
|
+
_response_types_map = {}
|
187
197
|
|
188
198
|
return self.api_client.call_api(
|
189
|
-
'/api/v1/orgs/{owner}/teams', 'POST',
|
199
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/approve', 'POST',
|
190
200
|
_path_params,
|
191
201
|
_query_params,
|
192
202
|
_header_params,
|
@@ -203,21 +213,21 @@ class TeamsV1Api(object):
|
|
203
213
|
_request_auth=_params.get('_request_auth'))
|
204
214
|
|
205
215
|
@validate_arguments
|
206
|
-
def
|
207
|
-
"""
|
216
|
+
def archive_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
217
|
+
"""Archive cross-project runs selection # noqa: E501
|
208
218
|
|
209
219
|
This method makes a synchronous HTTP request by default. To make an
|
210
220
|
asynchronous HTTP request, please pass async_req=True
|
211
221
|
|
212
|
-
>>> thread = api.
|
222
|
+
>>> thread = api.archive_team_runs(owner, name, body, async_req=True)
|
213
223
|
>>> result = thread.get()
|
214
224
|
|
215
225
|
:param owner: Owner of the namespace (required)
|
216
226
|
:type owner: str
|
217
|
-
:param
|
218
|
-
:type
|
219
|
-
:param body:
|
220
|
-
:type body:
|
227
|
+
:param name: Entity under namespace (required)
|
228
|
+
:type name: str
|
229
|
+
:param body: Uuids of the entities (required)
|
230
|
+
:type body: V1Uuids
|
221
231
|
:param async_req: Whether to execute the request asynchronously.
|
222
232
|
:type async_req: bool, optional
|
223
233
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -231,27 +241,27 @@ class TeamsV1Api(object):
|
|
231
241
|
:return: Returns the result object.
|
232
242
|
If the method is called asynchronously,
|
233
243
|
returns the request thread.
|
234
|
-
:rtype:
|
244
|
+
:rtype: None
|
235
245
|
"""
|
236
246
|
kwargs['_return_http_data_only'] = True
|
237
|
-
return self.
|
247
|
+
return self.archive_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
238
248
|
|
239
249
|
@validate_arguments
|
240
|
-
def
|
241
|
-
"""
|
250
|
+
def archive_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
251
|
+
"""Archive cross-project runs selection # noqa: E501
|
242
252
|
|
243
253
|
This method makes a synchronous HTTP request by default. To make an
|
244
254
|
asynchronous HTTP request, please pass async_req=True
|
245
255
|
|
246
|
-
>>> thread = api.
|
256
|
+
>>> thread = api.archive_team_runs_with_http_info(owner, name, body, async_req=True)
|
247
257
|
>>> result = thread.get()
|
248
258
|
|
249
259
|
:param owner: Owner of the namespace (required)
|
250
260
|
:type owner: str
|
251
|
-
:param
|
252
|
-
:type
|
253
|
-
:param body:
|
254
|
-
:type body:
|
261
|
+
:param name: Entity under namespace (required)
|
262
|
+
:type name: str
|
263
|
+
:param body: Uuids of the entities (required)
|
264
|
+
:type body: V1Uuids
|
255
265
|
:param async_req: Whether to execute the request asynchronously.
|
256
266
|
:type async_req: bool, optional
|
257
267
|
:param _return_http_data_only: response data without head status code
|
@@ -273,14 +283,14 @@ class TeamsV1Api(object):
|
|
273
283
|
:return: Returns the result object.
|
274
284
|
If the method is called asynchronously,
|
275
285
|
returns the request thread.
|
276
|
-
:rtype:
|
286
|
+
:rtype: None
|
277
287
|
"""
|
278
288
|
|
279
289
|
_params = locals()
|
280
290
|
|
281
291
|
_all_params = [
|
282
292
|
'owner',
|
283
|
-
'
|
293
|
+
'name',
|
284
294
|
'body'
|
285
295
|
]
|
286
296
|
_all_params.extend(
|
@@ -300,7 +310,7 @@ class TeamsV1Api(object):
|
|
300
310
|
if _key not in _all_params:
|
301
311
|
raise ApiTypeError(
|
302
312
|
"Got an unexpected keyword argument '%s'"
|
303
|
-
" to method
|
313
|
+
" to method archive_team_runs" % _key
|
304
314
|
)
|
305
315
|
_params[_key] = _val
|
306
316
|
del _params['kwargs']
|
@@ -312,8 +322,8 @@ class TeamsV1Api(object):
|
|
312
322
|
if _params['owner']:
|
313
323
|
_path_params['owner'] = _params['owner']
|
314
324
|
|
315
|
-
if _params['
|
316
|
-
_path_params['
|
325
|
+
if _params['name']:
|
326
|
+
_path_params['name'] = _params['name']
|
317
327
|
|
318
328
|
|
319
329
|
# process the query parameters
|
@@ -342,15 +352,10 @@ class TeamsV1Api(object):
|
|
342
352
|
# authentication setting
|
343
353
|
_auth_settings = ['ApiKey'] # noqa: E501
|
344
354
|
|
345
|
-
_response_types_map = {
|
346
|
-
'200': "V1TeamMember",
|
347
|
-
'204': "object",
|
348
|
-
'403': "object",
|
349
|
-
'404': "object",
|
350
|
-
}
|
355
|
+
_response_types_map = {}
|
351
356
|
|
352
357
|
return self.api_client.call_api(
|
353
|
-
'/api/v1/orgs/{owner}/teams/{
|
358
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/archive', 'POST',
|
354
359
|
_path_params,
|
355
360
|
_query_params,
|
356
361
|
_header_params,
|
@@ -367,19 +372,21 @@ class TeamsV1Api(object):
|
|
367
372
|
_request_auth=_params.get('_request_auth'))
|
368
373
|
|
369
374
|
@validate_arguments
|
370
|
-
def
|
371
|
-
"""
|
375
|
+
def bookmark_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
376
|
+
"""Bookmark cross-project runs selection # noqa: E501
|
372
377
|
|
373
378
|
This method makes a synchronous HTTP request by default. To make an
|
374
379
|
asynchronous HTTP request, please pass async_req=True
|
375
380
|
|
376
|
-
>>> thread = api.
|
381
|
+
>>> thread = api.bookmark_team_runs(owner, name, body, async_req=True)
|
377
382
|
>>> result = thread.get()
|
378
383
|
|
379
384
|
:param owner: Owner of the namespace (required)
|
380
385
|
:type owner: str
|
381
|
-
:param name:
|
386
|
+
:param name: Entity under namespace (required)
|
382
387
|
:type name: str
|
388
|
+
:param body: Uuids of the entities (required)
|
389
|
+
:type body: V1Uuids
|
383
390
|
:param async_req: Whether to execute the request asynchronously.
|
384
391
|
:type async_req: bool, optional
|
385
392
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -396,22 +403,24 @@ class TeamsV1Api(object):
|
|
396
403
|
:rtype: None
|
397
404
|
"""
|
398
405
|
kwargs['_return_http_data_only'] = True
|
399
|
-
return self.
|
406
|
+
return self.bookmark_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
400
407
|
|
401
408
|
@validate_arguments
|
402
|
-
def
|
403
|
-
"""
|
409
|
+
def bookmark_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
410
|
+
"""Bookmark cross-project runs selection # noqa: E501
|
404
411
|
|
405
412
|
This method makes a synchronous HTTP request by default. To make an
|
406
413
|
asynchronous HTTP request, please pass async_req=True
|
407
414
|
|
408
|
-
>>> thread = api.
|
415
|
+
>>> thread = api.bookmark_team_runs_with_http_info(owner, name, body, async_req=True)
|
409
416
|
>>> result = thread.get()
|
410
417
|
|
411
418
|
:param owner: Owner of the namespace (required)
|
412
419
|
:type owner: str
|
413
|
-
:param name:
|
420
|
+
:param name: Entity under namespace (required)
|
414
421
|
:type name: str
|
422
|
+
:param body: Uuids of the entities (required)
|
423
|
+
:type body: V1Uuids
|
415
424
|
:param async_req: Whether to execute the request asynchronously.
|
416
425
|
:type async_req: bool, optional
|
417
426
|
:param _return_http_data_only: response data without head status code
|
@@ -440,7 +449,8 @@ class TeamsV1Api(object):
|
|
440
449
|
|
441
450
|
_all_params = [
|
442
451
|
'owner',
|
443
|
-
'name'
|
452
|
+
'name',
|
453
|
+
'body'
|
444
454
|
]
|
445
455
|
_all_params.extend(
|
446
456
|
[
|
@@ -459,7 +469,7 @@ class TeamsV1Api(object):
|
|
459
469
|
if _key not in _all_params:
|
460
470
|
raise ApiTypeError(
|
461
471
|
"Got an unexpected keyword argument '%s'"
|
462
|
-
" to method
|
472
|
+
" to method bookmark_team_runs" % _key
|
463
473
|
)
|
464
474
|
_params[_key] = _val
|
465
475
|
del _params['kwargs']
|
@@ -484,17 +494,27 @@ class TeamsV1Api(object):
|
|
484
494
|
_files = {}
|
485
495
|
# process the body parameter
|
486
496
|
_body_params = None
|
497
|
+
if _params['body']:
|
498
|
+
_body_params = _params['body']
|
499
|
+
|
487
500
|
# set the HTTP header `Accept`
|
488
501
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
489
502
|
['application/json']) # noqa: E501
|
490
503
|
|
504
|
+
# set the HTTP header `Content-Type`
|
505
|
+
_content_types_list = _params.get('_content_type',
|
506
|
+
self.api_client.select_header_content_type(
|
507
|
+
['application/json']))
|
508
|
+
if _content_types_list:
|
509
|
+
_header_params['Content-Type'] = _content_types_list
|
510
|
+
|
491
511
|
# authentication setting
|
492
512
|
_auth_settings = ['ApiKey'] # noqa: E501
|
493
513
|
|
494
514
|
_response_types_map = {}
|
495
515
|
|
496
516
|
return self.api_client.call_api(
|
497
|
-
'/api/v1/orgs/{owner}/teams/{name}', '
|
517
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/bookmark', 'POST',
|
498
518
|
_path_params,
|
499
519
|
_query_params,
|
500
520
|
_header_params,
|
@@ -511,21 +531,19 @@ class TeamsV1Api(object):
|
|
511
531
|
_request_auth=_params.get('_request_auth'))
|
512
532
|
|
513
533
|
@validate_arguments
|
514
|
-
def
|
515
|
-
"""
|
534
|
+
def create_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
|
535
|
+
"""Create team # noqa: E501
|
516
536
|
|
517
537
|
This method makes a synchronous HTTP request by default. To make an
|
518
538
|
asynchronous HTTP request, please pass async_req=True
|
519
539
|
|
520
|
-
>>> thread = api.
|
540
|
+
>>> thread = api.create_team(owner, body, async_req=True)
|
521
541
|
>>> result = thread.get()
|
522
542
|
|
523
543
|
:param owner: Owner of the namespace (required)
|
524
544
|
:type owner: str
|
525
|
-
:param
|
526
|
-
:type
|
527
|
-
:param user: Member under team (required)
|
528
|
-
:type user: str
|
545
|
+
:param body: Team body (required)
|
546
|
+
:type body: V1Team
|
529
547
|
:param async_req: Whether to execute the request asynchronously.
|
530
548
|
:type async_req: bool, optional
|
531
549
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -539,27 +557,25 @@ class TeamsV1Api(object):
|
|
539
557
|
:return: Returns the result object.
|
540
558
|
If the method is called asynchronously,
|
541
559
|
returns the request thread.
|
542
|
-
:rtype:
|
560
|
+
:rtype: V1Team
|
543
561
|
"""
|
544
562
|
kwargs['_return_http_data_only'] = True
|
545
|
-
return self.
|
563
|
+
return self.create_team_with_http_info(owner, body, **kwargs) # noqa: E501
|
546
564
|
|
547
565
|
@validate_arguments
|
548
|
-
def
|
549
|
-
"""
|
566
|
+
def create_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
|
567
|
+
"""Create team # noqa: E501
|
550
568
|
|
551
569
|
This method makes a synchronous HTTP request by default. To make an
|
552
570
|
asynchronous HTTP request, please pass async_req=True
|
553
571
|
|
554
|
-
>>> thread = api.
|
572
|
+
>>> thread = api.create_team_with_http_info(owner, body, async_req=True)
|
555
573
|
>>> result = thread.get()
|
556
574
|
|
557
575
|
:param owner: Owner of the namespace (required)
|
558
576
|
:type owner: str
|
559
|
-
:param
|
560
|
-
:type
|
561
|
-
:param user: Member under team (required)
|
562
|
-
:type user: str
|
577
|
+
:param body: Team body (required)
|
578
|
+
:type body: V1Team
|
563
579
|
:param async_req: Whether to execute the request asynchronously.
|
564
580
|
:type async_req: bool, optional
|
565
581
|
:param _return_http_data_only: response data without head status code
|
@@ -581,15 +597,14 @@ class TeamsV1Api(object):
|
|
581
597
|
:return: Returns the result object.
|
582
598
|
If the method is called asynchronously,
|
583
599
|
returns the request thread.
|
584
|
-
:rtype:
|
600
|
+
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
585
601
|
"""
|
586
602
|
|
587
603
|
_params = locals()
|
588
604
|
|
589
605
|
_all_params = [
|
590
606
|
'owner',
|
591
|
-
'
|
592
|
-
'user'
|
607
|
+
'body'
|
593
608
|
]
|
594
609
|
_all_params.extend(
|
595
610
|
[
|
@@ -608,7 +623,7 @@ class TeamsV1Api(object):
|
|
608
623
|
if _key not in _all_params:
|
609
624
|
raise ApiTypeError(
|
610
625
|
"Got an unexpected keyword argument '%s'"
|
611
|
-
" to method
|
626
|
+
" to method create_team" % _key
|
612
627
|
)
|
613
628
|
_params[_key] = _val
|
614
629
|
del _params['kwargs']
|
@@ -620,12 +635,6 @@ class TeamsV1Api(object):
|
|
620
635
|
if _params['owner']:
|
621
636
|
_path_params['owner'] = _params['owner']
|
622
637
|
|
623
|
-
if _params['team']:
|
624
|
-
_path_params['team'] = _params['team']
|
625
|
-
|
626
|
-
if _params['user']:
|
627
|
-
_path_params['user'] = _params['user']
|
628
|
-
|
629
638
|
|
630
639
|
# process the query parameters
|
631
640
|
_query_params = []
|
@@ -636,17 +645,32 @@ class TeamsV1Api(object):
|
|
636
645
|
_files = {}
|
637
646
|
# process the body parameter
|
638
647
|
_body_params = None
|
648
|
+
if _params['body']:
|
649
|
+
_body_params = _params['body']
|
650
|
+
|
639
651
|
# set the HTTP header `Accept`
|
640
652
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
641
653
|
['application/json']) # noqa: E501
|
642
654
|
|
655
|
+
# set the HTTP header `Content-Type`
|
656
|
+
_content_types_list = _params.get('_content_type',
|
657
|
+
self.api_client.select_header_content_type(
|
658
|
+
['application/json']))
|
659
|
+
if _content_types_list:
|
660
|
+
_header_params['Content-Type'] = _content_types_list
|
661
|
+
|
643
662
|
# authentication setting
|
644
663
|
_auth_settings = ['ApiKey'] # noqa: E501
|
645
664
|
|
646
|
-
_response_types_map = {
|
665
|
+
_response_types_map = {
|
666
|
+
'200': "V1Team",
|
667
|
+
'204': "object",
|
668
|
+
'403': "object",
|
669
|
+
'404': "object",
|
670
|
+
}
|
647
671
|
|
648
672
|
return self.api_client.call_api(
|
649
|
-
'/api/v1/orgs/{owner}/teams
|
673
|
+
'/api/v1/orgs/{owner}/teams', 'POST',
|
650
674
|
_path_params,
|
651
675
|
_query_params,
|
652
676
|
_header_params,
|
@@ -663,19 +687,21 @@ class TeamsV1Api(object):
|
|
663
687
|
_request_auth=_params.get('_request_auth'))
|
664
688
|
|
665
689
|
@validate_arguments
|
666
|
-
def
|
667
|
-
"""
|
690
|
+
def create_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
|
691
|
+
"""Create team member # noqa: E501
|
668
692
|
|
669
693
|
This method makes a synchronous HTTP request by default. To make an
|
670
694
|
asynchronous HTTP request, please pass async_req=True
|
671
695
|
|
672
|
-
>>> thread = api.
|
696
|
+
>>> thread = api.create_team_member(owner, team, body, async_req=True)
|
673
697
|
>>> result = thread.get()
|
674
698
|
|
675
699
|
:param owner: Owner of the namespace (required)
|
676
700
|
:type owner: str
|
677
|
-
:param
|
678
|
-
:type
|
701
|
+
:param team: Team (required)
|
702
|
+
:type team: str
|
703
|
+
:param body: Team body (required)
|
704
|
+
:type body: V1TeamMember
|
679
705
|
:param async_req: Whether to execute the request asynchronously.
|
680
706
|
:type async_req: bool, optional
|
681
707
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -689,25 +715,27 @@ class TeamsV1Api(object):
|
|
689
715
|
:return: Returns the result object.
|
690
716
|
If the method is called asynchronously,
|
691
717
|
returns the request thread.
|
692
|
-
:rtype:
|
718
|
+
:rtype: V1TeamMember
|
693
719
|
"""
|
694
720
|
kwargs['_return_http_data_only'] = True
|
695
|
-
return self.
|
721
|
+
return self.create_team_member_with_http_info(owner, team, body, **kwargs) # noqa: E501
|
696
722
|
|
697
723
|
@validate_arguments
|
698
|
-
def
|
699
|
-
"""
|
724
|
+
def create_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
|
725
|
+
"""Create team member # noqa: E501
|
700
726
|
|
701
727
|
This method makes a synchronous HTTP request by default. To make an
|
702
728
|
asynchronous HTTP request, please pass async_req=True
|
703
729
|
|
704
|
-
>>> thread = api.
|
730
|
+
>>> thread = api.create_team_member_with_http_info(owner, team, body, async_req=True)
|
705
731
|
>>> result = thread.get()
|
706
732
|
|
707
733
|
:param owner: Owner of the namespace (required)
|
708
734
|
:type owner: str
|
709
|
-
:param
|
710
|
-
:type
|
735
|
+
:param team: Team (required)
|
736
|
+
:type team: str
|
737
|
+
:param body: Team body (required)
|
738
|
+
:type body: V1TeamMember
|
711
739
|
:param async_req: Whether to execute the request asynchronously.
|
712
740
|
:type async_req: bool, optional
|
713
741
|
:param _return_http_data_only: response data without head status code
|
@@ -729,14 +757,15 @@ class TeamsV1Api(object):
|
|
729
757
|
:return: Returns the result object.
|
730
758
|
If the method is called asynchronously,
|
731
759
|
returns the request thread.
|
732
|
-
:rtype: tuple(
|
760
|
+
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
733
761
|
"""
|
734
762
|
|
735
763
|
_params = locals()
|
736
764
|
|
737
765
|
_all_params = [
|
738
766
|
'owner',
|
739
|
-
'
|
767
|
+
'team',
|
768
|
+
'body'
|
740
769
|
]
|
741
770
|
_all_params.extend(
|
742
771
|
[
|
@@ -755,7 +784,7 @@ class TeamsV1Api(object):
|
|
755
784
|
if _key not in _all_params:
|
756
785
|
raise ApiTypeError(
|
757
786
|
"Got an unexpected keyword argument '%s'"
|
758
|
-
" to method
|
787
|
+
" to method create_team_member" % _key
|
759
788
|
)
|
760
789
|
_params[_key] = _val
|
761
790
|
del _params['kwargs']
|
@@ -767,8 +796,8 @@ class TeamsV1Api(object):
|
|
767
796
|
if _params['owner']:
|
768
797
|
_path_params['owner'] = _params['owner']
|
769
798
|
|
770
|
-
if _params['
|
771
|
-
_path_params['
|
799
|
+
if _params['team']:
|
800
|
+
_path_params['team'] = _params['team']
|
772
801
|
|
773
802
|
|
774
803
|
# process the query parameters
|
@@ -780,22 +809,32 @@ class TeamsV1Api(object):
|
|
780
809
|
_files = {}
|
781
810
|
# process the body parameter
|
782
811
|
_body_params = None
|
812
|
+
if _params['body']:
|
813
|
+
_body_params = _params['body']
|
814
|
+
|
783
815
|
# set the HTTP header `Accept`
|
784
816
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
785
817
|
['application/json']) # noqa: E501
|
786
818
|
|
819
|
+
# set the HTTP header `Content-Type`
|
820
|
+
_content_types_list = _params.get('_content_type',
|
821
|
+
self.api_client.select_header_content_type(
|
822
|
+
['application/json']))
|
823
|
+
if _content_types_list:
|
824
|
+
_header_params['Content-Type'] = _content_types_list
|
825
|
+
|
787
826
|
# authentication setting
|
788
827
|
_auth_settings = ['ApiKey'] # noqa: E501
|
789
828
|
|
790
829
|
_response_types_map = {
|
791
|
-
'200': "
|
830
|
+
'200': "V1TeamMember",
|
792
831
|
'204': "object",
|
793
832
|
'403': "object",
|
794
833
|
'404': "object",
|
795
834
|
}
|
796
835
|
|
797
836
|
return self.api_client.call_api(
|
798
|
-
'/api/v1/orgs/{owner}/teams/{
|
837
|
+
'/api/v1/orgs/{owner}/teams/{team}/members', 'POST',
|
799
838
|
_path_params,
|
800
839
|
_query_params,
|
801
840
|
_header_params,
|
@@ -812,21 +851,19 @@ class TeamsV1Api(object):
|
|
812
851
|
_request_auth=_params.get('_request_auth'))
|
813
852
|
|
814
853
|
@validate_arguments
|
815
|
-
def
|
816
|
-
"""
|
854
|
+
def delete_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namespace")], **kwargs) -> None: # noqa: E501
|
855
|
+
"""Delete team # noqa: E501
|
817
856
|
|
818
857
|
This method makes a synchronous HTTP request by default. To make an
|
819
858
|
asynchronous HTTP request, please pass async_req=True
|
820
859
|
|
821
|
-
>>> thread = api.
|
860
|
+
>>> thread = api.delete_team(owner, name, async_req=True)
|
822
861
|
>>> result = thread.get()
|
823
862
|
|
824
863
|
:param owner: Owner of the namespace (required)
|
825
864
|
:type owner: str
|
826
|
-
:param
|
827
|
-
:type
|
828
|
-
:param user: Member under team (required)
|
829
|
-
:type user: str
|
865
|
+
:param name: Component under namespace (required)
|
866
|
+
:type name: str
|
830
867
|
:param async_req: Whether to execute the request asynchronously.
|
831
868
|
:type async_req: bool, optional
|
832
869
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -840,27 +877,25 @@ class TeamsV1Api(object):
|
|
840
877
|
:return: Returns the result object.
|
841
878
|
If the method is called asynchronously,
|
842
879
|
returns the request thread.
|
843
|
-
:rtype:
|
880
|
+
:rtype: None
|
844
881
|
"""
|
845
882
|
kwargs['_return_http_data_only'] = True
|
846
|
-
return self.
|
883
|
+
return self.delete_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
847
884
|
|
848
885
|
@validate_arguments
|
849
|
-
def
|
850
|
-
"""
|
886
|
+
def delete_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namespace")], **kwargs): # noqa: E501
|
887
|
+
"""Delete team # noqa: E501
|
851
888
|
|
852
889
|
This method makes a synchronous HTTP request by default. To make an
|
853
890
|
asynchronous HTTP request, please pass async_req=True
|
854
891
|
|
855
|
-
>>> thread = api.
|
892
|
+
>>> thread = api.delete_team_with_http_info(owner, name, async_req=True)
|
856
893
|
>>> result = thread.get()
|
857
894
|
|
858
895
|
:param owner: Owner of the namespace (required)
|
859
896
|
:type owner: str
|
860
|
-
:param
|
861
|
-
:type
|
862
|
-
:param user: Member under team (required)
|
863
|
-
:type user: str
|
897
|
+
:param name: Component under namespace (required)
|
898
|
+
:type name: str
|
864
899
|
:param async_req: Whether to execute the request asynchronously.
|
865
900
|
:type async_req: bool, optional
|
866
901
|
:param _return_http_data_only: response data without head status code
|
@@ -882,15 +917,14 @@ class TeamsV1Api(object):
|
|
882
917
|
:return: Returns the result object.
|
883
918
|
If the method is called asynchronously,
|
884
919
|
returns the request thread.
|
885
|
-
:rtype:
|
920
|
+
:rtype: None
|
886
921
|
"""
|
887
922
|
|
888
923
|
_params = locals()
|
889
924
|
|
890
925
|
_all_params = [
|
891
926
|
'owner',
|
892
|
-
'
|
893
|
-
'user'
|
927
|
+
'name'
|
894
928
|
]
|
895
929
|
_all_params.extend(
|
896
930
|
[
|
@@ -909,7 +943,7 @@ class TeamsV1Api(object):
|
|
909
943
|
if _key not in _all_params:
|
910
944
|
raise ApiTypeError(
|
911
945
|
"Got an unexpected keyword argument '%s'"
|
912
|
-
" to method
|
946
|
+
" to method delete_team" % _key
|
913
947
|
)
|
914
948
|
_params[_key] = _val
|
915
949
|
del _params['kwargs']
|
@@ -921,11 +955,8 @@ class TeamsV1Api(object):
|
|
921
955
|
if _params['owner']:
|
922
956
|
_path_params['owner'] = _params['owner']
|
923
957
|
|
924
|
-
if _params['
|
925
|
-
_path_params['
|
926
|
-
|
927
|
-
if _params['user']:
|
928
|
-
_path_params['user'] = _params['user']
|
958
|
+
if _params['name']:
|
959
|
+
_path_params['name'] = _params['name']
|
929
960
|
|
930
961
|
|
931
962
|
# process the query parameters
|
@@ -944,15 +975,10 @@ class TeamsV1Api(object):
|
|
944
975
|
# authentication setting
|
945
976
|
_auth_settings = ['ApiKey'] # noqa: E501
|
946
977
|
|
947
|
-
_response_types_map = {
|
948
|
-
'200': "V1TeamMember",
|
949
|
-
'204': "object",
|
950
|
-
'403': "object",
|
951
|
-
'404': "object",
|
952
|
-
}
|
978
|
+
_response_types_map = {}
|
953
979
|
|
954
980
|
return self.api_client.call_api(
|
955
|
-
'/api/v1/orgs/{owner}/teams/{
|
981
|
+
'/api/v1/orgs/{owner}/teams/{name}', 'DELETE',
|
956
982
|
_path_params,
|
957
983
|
_query_params,
|
958
984
|
_header_params,
|
@@ -969,34 +995,22 @@ class TeamsV1Api(object):
|
|
969
995
|
_request_auth=_params.get('_request_auth'))
|
970
996
|
|
971
997
|
@validate_arguments
|
972
|
-
def
|
973
|
-
"""
|
998
|
+
def delete_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namespace")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> None: # noqa: E501
|
999
|
+
"""Delete team member details # noqa: E501
|
974
1000
|
|
975
1001
|
This method makes a synchronous HTTP request by default. To make an
|
976
1002
|
asynchronous HTTP request, please pass async_req=True
|
977
1003
|
|
978
|
-
>>> thread = api.
|
1004
|
+
>>> thread = api.delete_team_member(owner, team, user, async_req=True)
|
979
1005
|
>>> result = thread.get()
|
980
1006
|
|
981
1007
|
:param owner: Owner of the namespace (required)
|
982
1008
|
:type owner: str
|
983
|
-
:param
|
984
|
-
:type
|
985
|
-
:param
|
986
|
-
:type
|
987
|
-
:param
|
988
|
-
:type limit: int
|
989
|
-
:param sort: Sort to order the search.
|
990
|
-
:type sort: str
|
991
|
-
:param query: Query filter the search.
|
992
|
-
:type query: str
|
993
|
-
:param bookmarks: Filter by bookmarks.
|
994
|
-
:type bookmarks: bool
|
995
|
-
:param mode: Mode of the search.
|
996
|
-
:type mode: str
|
997
|
-
:param no_page: No pagination.
|
998
|
-
:type no_page: bool
|
999
|
-
:param async_req: Whether to execute the request asynchronously.
|
1009
|
+
:param team: Team under namespace (required)
|
1010
|
+
:type team: str
|
1011
|
+
:param user: Member under team (required)
|
1012
|
+
:type user: str
|
1013
|
+
:param async_req: Whether to execute the request asynchronously.
|
1000
1014
|
:type async_req: bool, optional
|
1001
1015
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1002
1016
|
be returned without reading/decoding response
|
@@ -1009,39 +1023,27 @@ class TeamsV1Api(object):
|
|
1009
1023
|
:return: Returns the result object.
|
1010
1024
|
If the method is called asynchronously,
|
1011
1025
|
returns the request thread.
|
1012
|
-
:rtype:
|
1026
|
+
:rtype: None
|
1013
1027
|
"""
|
1014
1028
|
kwargs['_return_http_data_only'] = True
|
1015
|
-
return self.
|
1029
|
+
return self.delete_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
|
1016
1030
|
|
1017
1031
|
@validate_arguments
|
1018
|
-
def
|
1019
|
-
"""
|
1032
|
+
def delete_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namespace")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
|
1033
|
+
"""Delete team member details # noqa: E501
|
1020
1034
|
|
1021
1035
|
This method makes a synchronous HTTP request by default. To make an
|
1022
1036
|
asynchronous HTTP request, please pass async_req=True
|
1023
1037
|
|
1024
|
-
>>> thread = api.
|
1038
|
+
>>> thread = api.delete_team_member_with_http_info(owner, team, user, async_req=True)
|
1025
1039
|
>>> result = thread.get()
|
1026
1040
|
|
1027
1041
|
:param owner: Owner of the namespace (required)
|
1028
1042
|
:type owner: str
|
1029
|
-
:param
|
1030
|
-
:type
|
1031
|
-
:param
|
1032
|
-
:type
|
1033
|
-
:param limit: Limit size.
|
1034
|
-
:type limit: int
|
1035
|
-
:param sort: Sort to order the search.
|
1036
|
-
:type sort: str
|
1037
|
-
:param query: Query filter the search.
|
1038
|
-
:type query: str
|
1039
|
-
:param bookmarks: Filter by bookmarks.
|
1040
|
-
:type bookmarks: bool
|
1041
|
-
:param mode: Mode of the search.
|
1042
|
-
:type mode: str
|
1043
|
-
:param no_page: No pagination.
|
1044
|
-
:type no_page: bool
|
1043
|
+
:param team: Team under namespace (required)
|
1044
|
+
:type team: str
|
1045
|
+
:param user: Member under team (required)
|
1046
|
+
:type user: str
|
1045
1047
|
:param async_req: Whether to execute the request asynchronously.
|
1046
1048
|
:type async_req: bool, optional
|
1047
1049
|
:param _return_http_data_only: response data without head status code
|
@@ -1063,21 +1065,15 @@ class TeamsV1Api(object):
|
|
1063
1065
|
:return: Returns the result object.
|
1064
1066
|
If the method is called asynchronously,
|
1065
1067
|
returns the request thread.
|
1066
|
-
:rtype:
|
1068
|
+
:rtype: None
|
1067
1069
|
"""
|
1068
1070
|
|
1069
1071
|
_params = locals()
|
1070
1072
|
|
1071
1073
|
_all_params = [
|
1072
1074
|
'owner',
|
1073
|
-
'
|
1074
|
-
'
|
1075
|
-
'limit',
|
1076
|
-
'sort',
|
1077
|
-
'query',
|
1078
|
-
'bookmarks',
|
1079
|
-
'mode',
|
1080
|
-
'no_page'
|
1075
|
+
'team',
|
1076
|
+
'user'
|
1081
1077
|
]
|
1082
1078
|
_all_params.extend(
|
1083
1079
|
[
|
@@ -1096,7 +1092,7 @@ class TeamsV1Api(object):
|
|
1096
1092
|
if _key not in _all_params:
|
1097
1093
|
raise ApiTypeError(
|
1098
1094
|
"Got an unexpected keyword argument '%s'"
|
1099
|
-
" to method
|
1095
|
+
" to method delete_team_member" % _key
|
1100
1096
|
)
|
1101
1097
|
_params[_key] = _val
|
1102
1098
|
del _params['kwargs']
|
@@ -1108,33 +1104,164 @@ class TeamsV1Api(object):
|
|
1108
1104
|
if _params['owner']:
|
1109
1105
|
_path_params['owner'] = _params['owner']
|
1110
1106
|
|
1111
|
-
if _params['
|
1112
|
-
_path_params['
|
1107
|
+
if _params['team']:
|
1108
|
+
_path_params['team'] = _params['team']
|
1109
|
+
|
1110
|
+
if _params['user']:
|
1111
|
+
_path_params['user'] = _params['user']
|
1113
1112
|
|
1114
1113
|
|
1115
1114
|
# process the query parameters
|
1116
1115
|
_query_params = []
|
1117
|
-
|
1118
|
-
|
1116
|
+
# process the header parameters
|
1117
|
+
_header_params = dict(_params.get('_headers', {}))
|
1118
|
+
# process the form parameters
|
1119
|
+
_form_params = []
|
1120
|
+
_files = {}
|
1121
|
+
# process the body parameter
|
1122
|
+
_body_params = None
|
1123
|
+
# set the HTTP header `Accept`
|
1124
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1125
|
+
['application/json']) # noqa: E501
|
1119
1126
|
|
1120
|
-
|
1121
|
-
|
1127
|
+
# authentication setting
|
1128
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1122
1129
|
|
1123
|
-
|
1124
|
-
_query_params.append(('sort', _params['sort']))
|
1130
|
+
_response_types_map = {}
|
1125
1131
|
|
1126
|
-
|
1127
|
-
|
1132
|
+
return self.api_client.call_api(
|
1133
|
+
'/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'DELETE',
|
1134
|
+
_path_params,
|
1135
|
+
_query_params,
|
1136
|
+
_header_params,
|
1137
|
+
body=_body_params,
|
1138
|
+
post_params=_form_params,
|
1139
|
+
files=_files,
|
1140
|
+
response_types_map=_response_types_map,
|
1141
|
+
auth_settings=_auth_settings,
|
1142
|
+
async_req=_params.get('async_req'),
|
1143
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1144
|
+
_preload_content=_params.get('_preload_content', True),
|
1145
|
+
_request_timeout=_params.get('_request_timeout'),
|
1146
|
+
collection_formats=_collection_formats,
|
1147
|
+
_request_auth=_params.get('_request_auth'))
|
1128
1148
|
|
1129
|
-
|
1130
|
-
|
1149
|
+
@validate_arguments
|
1150
|
+
def delete_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
1151
|
+
"""Delete cross-project runs selection # noqa: E501
|
1131
1152
|
|
1132
|
-
|
1133
|
-
|
1153
|
+
This method makes a synchronous HTTP request by default. To make an
|
1154
|
+
asynchronous HTTP request, please pass async_req=True
|
1134
1155
|
|
1135
|
-
|
1136
|
-
|
1156
|
+
>>> thread = api.delete_team_runs(owner, name, body, async_req=True)
|
1157
|
+
>>> result = thread.get()
|
1158
|
+
|
1159
|
+
:param owner: Owner of the namespace (required)
|
1160
|
+
:type owner: str
|
1161
|
+
:param name: Entity under namespace (required)
|
1162
|
+
:type name: str
|
1163
|
+
:param body: Uuids of the entities (required)
|
1164
|
+
:type body: V1Uuids
|
1165
|
+
:param async_req: Whether to execute the request asynchronously.
|
1166
|
+
:type async_req: bool, optional
|
1167
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1168
|
+
be returned without reading/decoding response
|
1169
|
+
data. Default is True.
|
1170
|
+
:type _preload_content: bool, optional
|
1171
|
+
:param _request_timeout: timeout setting for this request. If one
|
1172
|
+
number provided, it will be total request
|
1173
|
+
timeout. It can also be a pair (tuple) of
|
1174
|
+
(connection, read) timeouts.
|
1175
|
+
:return: Returns the result object.
|
1176
|
+
If the method is called asynchronously,
|
1177
|
+
returns the request thread.
|
1178
|
+
:rtype: None
|
1179
|
+
"""
|
1180
|
+
kwargs['_return_http_data_only'] = True
|
1181
|
+
return self.delete_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
1182
|
+
|
1183
|
+
@validate_arguments
|
1184
|
+
def delete_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
1185
|
+
"""Delete cross-project runs selection # noqa: E501
|
1186
|
+
|
1187
|
+
This method makes a synchronous HTTP request by default. To make an
|
1188
|
+
asynchronous HTTP request, please pass async_req=True
|
1189
|
+
|
1190
|
+
>>> thread = api.delete_team_runs_with_http_info(owner, name, body, async_req=True)
|
1191
|
+
>>> result = thread.get()
|
1192
|
+
|
1193
|
+
:param owner: Owner of the namespace (required)
|
1194
|
+
:type owner: str
|
1195
|
+
:param name: Entity under namespace (required)
|
1196
|
+
:type name: str
|
1197
|
+
:param body: Uuids of the entities (required)
|
1198
|
+
:type body: V1Uuids
|
1199
|
+
:param async_req: Whether to execute the request asynchronously.
|
1200
|
+
:type async_req: bool, optional
|
1201
|
+
:param _return_http_data_only: response data without head status code
|
1202
|
+
and headers
|
1203
|
+
:type _return_http_data_only: bool, optional
|
1204
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1205
|
+
be returned without reading/decoding response
|
1206
|
+
data. Default is True.
|
1207
|
+
:type _preload_content: bool, optional
|
1208
|
+
:param _request_timeout: timeout setting for this request. If one
|
1209
|
+
number provided, it will be total request
|
1210
|
+
timeout. It can also be a pair (tuple) of
|
1211
|
+
(connection, read) timeouts.
|
1212
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1213
|
+
request; this effectively ignores the authentication
|
1214
|
+
in the spec for a single request.
|
1215
|
+
:type _request_auth: dict, optional
|
1216
|
+
:type _content_type: string, optional: force content-type for the request
|
1217
|
+
:return: Returns the result object.
|
1218
|
+
If the method is called asynchronously,
|
1219
|
+
returns the request thread.
|
1220
|
+
:rtype: None
|
1221
|
+
"""
|
1222
|
+
|
1223
|
+
_params = locals()
|
1224
|
+
|
1225
|
+
_all_params = [
|
1226
|
+
'owner',
|
1227
|
+
'name',
|
1228
|
+
'body'
|
1229
|
+
]
|
1230
|
+
_all_params.extend(
|
1231
|
+
[
|
1232
|
+
'async_req',
|
1233
|
+
'_return_http_data_only',
|
1234
|
+
'_preload_content',
|
1235
|
+
'_request_timeout',
|
1236
|
+
'_request_auth',
|
1237
|
+
'_content_type',
|
1238
|
+
'_headers'
|
1239
|
+
]
|
1240
|
+
)
|
1241
|
+
|
1242
|
+
# validate the arguments
|
1243
|
+
for _key, _val in _params['kwargs'].items():
|
1244
|
+
if _key not in _all_params:
|
1245
|
+
raise ApiTypeError(
|
1246
|
+
"Got an unexpected keyword argument '%s'"
|
1247
|
+
" to method delete_team_runs" % _key
|
1248
|
+
)
|
1249
|
+
_params[_key] = _val
|
1250
|
+
del _params['kwargs']
|
1251
|
+
|
1252
|
+
_collection_formats = {}
|
1253
|
+
|
1254
|
+
# process the path parameters
|
1255
|
+
_path_params = {}
|
1256
|
+
if _params['owner']:
|
1257
|
+
_path_params['owner'] = _params['owner']
|
1258
|
+
|
1259
|
+
if _params['name']:
|
1260
|
+
_path_params['name'] = _params['name']
|
1137
1261
|
|
1262
|
+
|
1263
|
+
# process the query parameters
|
1264
|
+
_query_params = []
|
1138
1265
|
# process the header parameters
|
1139
1266
|
_header_params = dict(_params.get('_headers', {}))
|
1140
1267
|
# process the form parameters
|
@@ -1142,22 +1269,27 @@ class TeamsV1Api(object):
|
|
1142
1269
|
_files = {}
|
1143
1270
|
# process the body parameter
|
1144
1271
|
_body_params = None
|
1272
|
+
if _params['body']:
|
1273
|
+
_body_params = _params['body']
|
1274
|
+
|
1145
1275
|
# set the HTTP header `Accept`
|
1146
1276
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
1147
1277
|
['application/json']) # noqa: E501
|
1148
1278
|
|
1279
|
+
# set the HTTP header `Content-Type`
|
1280
|
+
_content_types_list = _params.get('_content_type',
|
1281
|
+
self.api_client.select_header_content_type(
|
1282
|
+
['application/json']))
|
1283
|
+
if _content_types_list:
|
1284
|
+
_header_params['Content-Type'] = _content_types_list
|
1285
|
+
|
1149
1286
|
# authentication setting
|
1150
1287
|
_auth_settings = ['ApiKey'] # noqa: E501
|
1151
1288
|
|
1152
|
-
_response_types_map = {
|
1153
|
-
'200': "V1ListTeamMembersResponse",
|
1154
|
-
'204': "object",
|
1155
|
-
'403': "object",
|
1156
|
-
'404': "object",
|
1157
|
-
}
|
1289
|
+
_response_types_map = {}
|
1158
1290
|
|
1159
1291
|
return self.api_client.call_api(
|
1160
|
-
'/api/v1/orgs/{owner}/teams/{name}/
|
1292
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/delete', 'DELETE',
|
1161
1293
|
_path_params,
|
1162
1294
|
_query_params,
|
1163
1295
|
_header_params,
|
@@ -1174,31 +1306,2573 @@ class TeamsV1Api(object):
|
|
1174
1306
|
_request_auth=_params.get('_request_auth'))
|
1175
1307
|
|
1176
1308
|
@validate_arguments
|
1177
|
-
def
|
1178
|
-
"""
|
1309
|
+
def get_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namespace")], **kwargs) -> V1Team: # noqa: E501
|
1310
|
+
"""Get team # noqa: E501
|
1179
1311
|
|
1180
1312
|
This method makes a synchronous HTTP request by default. To make an
|
1181
1313
|
asynchronous HTTP request, please pass async_req=True
|
1182
1314
|
|
1183
|
-
>>> thread = api.
|
1315
|
+
>>> thread = api.get_team(owner, name, async_req=True)
|
1184
1316
|
>>> result = thread.get()
|
1185
1317
|
|
1186
1318
|
:param owner: Owner of the namespace (required)
|
1187
1319
|
:type owner: str
|
1188
|
-
:param
|
1189
|
-
:type
|
1190
|
-
:param
|
1191
|
-
:type
|
1192
|
-
:param
|
1193
|
-
|
1194
|
-
|
1195
|
-
:type
|
1196
|
-
:param
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
:
|
1201
|
-
|
1320
|
+
:param name: Component under namespace (required)
|
1321
|
+
:type name: str
|
1322
|
+
:param async_req: Whether to execute the request asynchronously.
|
1323
|
+
:type async_req: bool, optional
|
1324
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1325
|
+
be returned without reading/decoding response
|
1326
|
+
data. Default is True.
|
1327
|
+
:type _preload_content: bool, optional
|
1328
|
+
:param _request_timeout: timeout setting for this request. If one
|
1329
|
+
number provided, it will be total request
|
1330
|
+
timeout. It can also be a pair (tuple) of
|
1331
|
+
(connection, read) timeouts.
|
1332
|
+
:return: Returns the result object.
|
1333
|
+
If the method is called asynchronously,
|
1334
|
+
returns the request thread.
|
1335
|
+
:rtype: V1Team
|
1336
|
+
"""
|
1337
|
+
kwargs['_return_http_data_only'] = True
|
1338
|
+
return self.get_team_with_http_info(owner, name, **kwargs) # noqa: E501
|
1339
|
+
|
1340
|
+
@validate_arguments
|
1341
|
+
def get_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Component under namespace")], **kwargs): # noqa: E501
|
1342
|
+
"""Get team # noqa: E501
|
1343
|
+
|
1344
|
+
This method makes a synchronous HTTP request by default. To make an
|
1345
|
+
asynchronous HTTP request, please pass async_req=True
|
1346
|
+
|
1347
|
+
>>> thread = api.get_team_with_http_info(owner, name, async_req=True)
|
1348
|
+
>>> result = thread.get()
|
1349
|
+
|
1350
|
+
:param owner: Owner of the namespace (required)
|
1351
|
+
:type owner: str
|
1352
|
+
:param name: Component under namespace (required)
|
1353
|
+
:type name: str
|
1354
|
+
:param async_req: Whether to execute the request asynchronously.
|
1355
|
+
:type async_req: bool, optional
|
1356
|
+
:param _return_http_data_only: response data without head status code
|
1357
|
+
and headers
|
1358
|
+
:type _return_http_data_only: bool, optional
|
1359
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1360
|
+
be returned without reading/decoding response
|
1361
|
+
data. Default is True.
|
1362
|
+
:type _preload_content: bool, optional
|
1363
|
+
:param _request_timeout: timeout setting for this request. If one
|
1364
|
+
number provided, it will be total request
|
1365
|
+
timeout. It can also be a pair (tuple) of
|
1366
|
+
(connection, read) timeouts.
|
1367
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1368
|
+
request; this effectively ignores the authentication
|
1369
|
+
in the spec for a single request.
|
1370
|
+
:type _request_auth: dict, optional
|
1371
|
+
:type _content_type: string, optional: force content-type for the request
|
1372
|
+
:return: Returns the result object.
|
1373
|
+
If the method is called asynchronously,
|
1374
|
+
returns the request thread.
|
1375
|
+
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
1376
|
+
"""
|
1377
|
+
|
1378
|
+
_params = locals()
|
1379
|
+
|
1380
|
+
_all_params = [
|
1381
|
+
'owner',
|
1382
|
+
'name'
|
1383
|
+
]
|
1384
|
+
_all_params.extend(
|
1385
|
+
[
|
1386
|
+
'async_req',
|
1387
|
+
'_return_http_data_only',
|
1388
|
+
'_preload_content',
|
1389
|
+
'_request_timeout',
|
1390
|
+
'_request_auth',
|
1391
|
+
'_content_type',
|
1392
|
+
'_headers'
|
1393
|
+
]
|
1394
|
+
)
|
1395
|
+
|
1396
|
+
# validate the arguments
|
1397
|
+
for _key, _val in _params['kwargs'].items():
|
1398
|
+
if _key not in _all_params:
|
1399
|
+
raise ApiTypeError(
|
1400
|
+
"Got an unexpected keyword argument '%s'"
|
1401
|
+
" to method get_team" % _key
|
1402
|
+
)
|
1403
|
+
_params[_key] = _val
|
1404
|
+
del _params['kwargs']
|
1405
|
+
|
1406
|
+
_collection_formats = {}
|
1407
|
+
|
1408
|
+
# process the path parameters
|
1409
|
+
_path_params = {}
|
1410
|
+
if _params['owner']:
|
1411
|
+
_path_params['owner'] = _params['owner']
|
1412
|
+
|
1413
|
+
if _params['name']:
|
1414
|
+
_path_params['name'] = _params['name']
|
1415
|
+
|
1416
|
+
|
1417
|
+
# process the query parameters
|
1418
|
+
_query_params = []
|
1419
|
+
# process the header parameters
|
1420
|
+
_header_params = dict(_params.get('_headers', {}))
|
1421
|
+
# process the form parameters
|
1422
|
+
_form_params = []
|
1423
|
+
_files = {}
|
1424
|
+
# process the body parameter
|
1425
|
+
_body_params = None
|
1426
|
+
# set the HTTP header `Accept`
|
1427
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1428
|
+
['application/json']) # noqa: E501
|
1429
|
+
|
1430
|
+
# authentication setting
|
1431
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1432
|
+
|
1433
|
+
_response_types_map = {
|
1434
|
+
'200': "V1Team",
|
1435
|
+
'204': "object",
|
1436
|
+
'403': "object",
|
1437
|
+
'404': "object",
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
return self.api_client.call_api(
|
1441
|
+
'/api/v1/orgs/{owner}/teams/{name}', 'GET',
|
1442
|
+
_path_params,
|
1443
|
+
_query_params,
|
1444
|
+
_header_params,
|
1445
|
+
body=_body_params,
|
1446
|
+
post_params=_form_params,
|
1447
|
+
files=_files,
|
1448
|
+
response_types_map=_response_types_map,
|
1449
|
+
auth_settings=_auth_settings,
|
1450
|
+
async_req=_params.get('async_req'),
|
1451
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1452
|
+
_preload_content=_params.get('_preload_content', True),
|
1453
|
+
_request_timeout=_params.get('_request_timeout'),
|
1454
|
+
collection_formats=_collection_formats,
|
1455
|
+
_request_auth=_params.get('_request_auth'))
|
1456
|
+
|
1457
|
+
@validate_arguments
|
1458
|
+
def get_team_activities(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListActivitiesResponse: # noqa: E501
|
1459
|
+
"""Get organization activities # noqa: E501
|
1460
|
+
|
1461
|
+
This method makes a synchronous HTTP request by default. To make an
|
1462
|
+
asynchronous HTTP request, please pass async_req=True
|
1463
|
+
|
1464
|
+
>>> thread = api.get_team_activities(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1465
|
+
>>> result = thread.get()
|
1466
|
+
|
1467
|
+
:param owner: Owner of the namespace (required)
|
1468
|
+
:type owner: str
|
1469
|
+
:param name: Entity managing the resource (required)
|
1470
|
+
:type name: str
|
1471
|
+
:param offset: Pagination offset.
|
1472
|
+
:type offset: int
|
1473
|
+
:param limit: Limit size.
|
1474
|
+
:type limit: int
|
1475
|
+
:param sort: Sort to order the search.
|
1476
|
+
:type sort: str
|
1477
|
+
:param query: Query filter the search.
|
1478
|
+
:type query: str
|
1479
|
+
:param bookmarks: Filter by bookmarks.
|
1480
|
+
:type bookmarks: bool
|
1481
|
+
:param mode: Mode of the search.
|
1482
|
+
:type mode: str
|
1483
|
+
:param no_page: No pagination.
|
1484
|
+
:type no_page: bool
|
1485
|
+
:param async_req: Whether to execute the request asynchronously.
|
1486
|
+
:type async_req: bool, optional
|
1487
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1488
|
+
be returned without reading/decoding response
|
1489
|
+
data. Default is True.
|
1490
|
+
:type _preload_content: bool, optional
|
1491
|
+
:param _request_timeout: timeout setting for this request. If one
|
1492
|
+
number provided, it will be total request
|
1493
|
+
timeout. It can also be a pair (tuple) of
|
1494
|
+
(connection, read) timeouts.
|
1495
|
+
:return: Returns the result object.
|
1496
|
+
If the method is called asynchronously,
|
1497
|
+
returns the request thread.
|
1498
|
+
:rtype: V1ListActivitiesResponse
|
1499
|
+
"""
|
1500
|
+
kwargs['_return_http_data_only'] = True
|
1501
|
+
return self.get_team_activities_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
1502
|
+
|
1503
|
+
@validate_arguments
|
1504
|
+
def get_team_activities_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
1505
|
+
"""Get organization activities # noqa: E501
|
1506
|
+
|
1507
|
+
This method makes a synchronous HTTP request by default. To make an
|
1508
|
+
asynchronous HTTP request, please pass async_req=True
|
1509
|
+
|
1510
|
+
>>> thread = api.get_team_activities_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1511
|
+
>>> result = thread.get()
|
1512
|
+
|
1513
|
+
:param owner: Owner of the namespace (required)
|
1514
|
+
:type owner: str
|
1515
|
+
:param name: Entity managing the resource (required)
|
1516
|
+
:type name: str
|
1517
|
+
:param offset: Pagination offset.
|
1518
|
+
:type offset: int
|
1519
|
+
:param limit: Limit size.
|
1520
|
+
:type limit: int
|
1521
|
+
:param sort: Sort to order the search.
|
1522
|
+
:type sort: str
|
1523
|
+
:param query: Query filter the search.
|
1524
|
+
:type query: str
|
1525
|
+
:param bookmarks: Filter by bookmarks.
|
1526
|
+
:type bookmarks: bool
|
1527
|
+
:param mode: Mode of the search.
|
1528
|
+
:type mode: str
|
1529
|
+
:param no_page: No pagination.
|
1530
|
+
:type no_page: bool
|
1531
|
+
:param async_req: Whether to execute the request asynchronously.
|
1532
|
+
:type async_req: bool, optional
|
1533
|
+
:param _return_http_data_only: response data without head status code
|
1534
|
+
and headers
|
1535
|
+
:type _return_http_data_only: bool, optional
|
1536
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1537
|
+
be returned without reading/decoding response
|
1538
|
+
data. Default is True.
|
1539
|
+
:type _preload_content: bool, optional
|
1540
|
+
:param _request_timeout: timeout setting for this request. If one
|
1541
|
+
number provided, it will be total request
|
1542
|
+
timeout. It can also be a pair (tuple) of
|
1543
|
+
(connection, read) timeouts.
|
1544
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1545
|
+
request; this effectively ignores the authentication
|
1546
|
+
in the spec for a single request.
|
1547
|
+
:type _request_auth: dict, optional
|
1548
|
+
:type _content_type: string, optional: force content-type for the request
|
1549
|
+
:return: Returns the result object.
|
1550
|
+
If the method is called asynchronously,
|
1551
|
+
returns the request thread.
|
1552
|
+
:rtype: tuple(V1ListActivitiesResponse, status_code(int), headers(HTTPHeaderDict))
|
1553
|
+
"""
|
1554
|
+
|
1555
|
+
_params = locals()
|
1556
|
+
|
1557
|
+
_all_params = [
|
1558
|
+
'owner',
|
1559
|
+
'name',
|
1560
|
+
'offset',
|
1561
|
+
'limit',
|
1562
|
+
'sort',
|
1563
|
+
'query',
|
1564
|
+
'bookmarks',
|
1565
|
+
'mode',
|
1566
|
+
'no_page'
|
1567
|
+
]
|
1568
|
+
_all_params.extend(
|
1569
|
+
[
|
1570
|
+
'async_req',
|
1571
|
+
'_return_http_data_only',
|
1572
|
+
'_preload_content',
|
1573
|
+
'_request_timeout',
|
1574
|
+
'_request_auth',
|
1575
|
+
'_content_type',
|
1576
|
+
'_headers'
|
1577
|
+
]
|
1578
|
+
)
|
1579
|
+
|
1580
|
+
# validate the arguments
|
1581
|
+
for _key, _val in _params['kwargs'].items():
|
1582
|
+
if _key not in _all_params:
|
1583
|
+
raise ApiTypeError(
|
1584
|
+
"Got an unexpected keyword argument '%s'"
|
1585
|
+
" to method get_team_activities" % _key
|
1586
|
+
)
|
1587
|
+
_params[_key] = _val
|
1588
|
+
del _params['kwargs']
|
1589
|
+
|
1590
|
+
_collection_formats = {}
|
1591
|
+
|
1592
|
+
# process the path parameters
|
1593
|
+
_path_params = {}
|
1594
|
+
if _params['owner']:
|
1595
|
+
_path_params['owner'] = _params['owner']
|
1596
|
+
|
1597
|
+
if _params['name']:
|
1598
|
+
_path_params['name'] = _params['name']
|
1599
|
+
|
1600
|
+
|
1601
|
+
# process the query parameters
|
1602
|
+
_query_params = []
|
1603
|
+
if _params.get('offset') is not None: # noqa: E501
|
1604
|
+
_query_params.append(('offset', _params['offset']))
|
1605
|
+
|
1606
|
+
if _params.get('limit') is not None: # noqa: E501
|
1607
|
+
_query_params.append(('limit', _params['limit']))
|
1608
|
+
|
1609
|
+
if _params.get('sort') is not None: # noqa: E501
|
1610
|
+
_query_params.append(('sort', _params['sort']))
|
1611
|
+
|
1612
|
+
if _params.get('query') is not None: # noqa: E501
|
1613
|
+
_query_params.append(('query', _params['query']))
|
1614
|
+
|
1615
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
1616
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
1617
|
+
|
1618
|
+
if _params.get('mode') is not None: # noqa: E501
|
1619
|
+
_query_params.append(('mode', _params['mode']))
|
1620
|
+
|
1621
|
+
if _params.get('no_page') is not None: # noqa: E501
|
1622
|
+
_query_params.append(('no_page', _params['no_page']))
|
1623
|
+
|
1624
|
+
# process the header parameters
|
1625
|
+
_header_params = dict(_params.get('_headers', {}))
|
1626
|
+
# process the form parameters
|
1627
|
+
_form_params = []
|
1628
|
+
_files = {}
|
1629
|
+
# process the body parameter
|
1630
|
+
_body_params = None
|
1631
|
+
# set the HTTP header `Accept`
|
1632
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1633
|
+
['application/json']) # noqa: E501
|
1634
|
+
|
1635
|
+
# authentication setting
|
1636
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1637
|
+
|
1638
|
+
_response_types_map = {
|
1639
|
+
'200': "V1ListActivitiesResponse",
|
1640
|
+
'204': "object",
|
1641
|
+
'403': "object",
|
1642
|
+
'404': "object",
|
1643
|
+
}
|
1644
|
+
|
1645
|
+
return self.api_client.call_api(
|
1646
|
+
'/api/v1/orgs/{owner}/teams/{name}/activities', 'GET',
|
1647
|
+
_path_params,
|
1648
|
+
_query_params,
|
1649
|
+
_header_params,
|
1650
|
+
body=_body_params,
|
1651
|
+
post_params=_form_params,
|
1652
|
+
files=_files,
|
1653
|
+
response_types_map=_response_types_map,
|
1654
|
+
auth_settings=_auth_settings,
|
1655
|
+
async_req=_params.get('async_req'),
|
1656
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1657
|
+
_preload_content=_params.get('_preload_content', True),
|
1658
|
+
_request_timeout=_params.get('_request_timeout'),
|
1659
|
+
collection_formats=_collection_formats,
|
1660
|
+
_request_auth=_params.get('_request_auth'))
|
1661
|
+
|
1662
|
+
@validate_arguments
|
1663
|
+
def get_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namespace")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs) -> V1TeamMember: # noqa: E501
|
1664
|
+
"""Get team member details # noqa: E501
|
1665
|
+
|
1666
|
+
This method makes a synchronous HTTP request by default. To make an
|
1667
|
+
asynchronous HTTP request, please pass async_req=True
|
1668
|
+
|
1669
|
+
>>> thread = api.get_team_member(owner, team, user, async_req=True)
|
1670
|
+
>>> result = thread.get()
|
1671
|
+
|
1672
|
+
:param owner: Owner of the namespace (required)
|
1673
|
+
:type owner: str
|
1674
|
+
:param team: Team under namespace (required)
|
1675
|
+
:type team: str
|
1676
|
+
:param user: Member under team (required)
|
1677
|
+
:type user: str
|
1678
|
+
:param async_req: Whether to execute the request asynchronously.
|
1679
|
+
:type async_req: bool, optional
|
1680
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1681
|
+
be returned without reading/decoding response
|
1682
|
+
data. Default is True.
|
1683
|
+
:type _preload_content: bool, optional
|
1684
|
+
:param _request_timeout: timeout setting for this request. If one
|
1685
|
+
number provided, it will be total request
|
1686
|
+
timeout. It can also be a pair (tuple) of
|
1687
|
+
(connection, read) timeouts.
|
1688
|
+
:return: Returns the result object.
|
1689
|
+
If the method is called asynchronously,
|
1690
|
+
returns the request thread.
|
1691
|
+
:rtype: V1TeamMember
|
1692
|
+
"""
|
1693
|
+
kwargs['_return_http_data_only'] = True
|
1694
|
+
return self.get_team_member_with_http_info(owner, team, user, **kwargs) # noqa: E501
|
1695
|
+
|
1696
|
+
@validate_arguments
|
1697
|
+
def get_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team under namespace")], user : Annotated[StrictStr, Field(..., description="Member under team")], **kwargs): # noqa: E501
|
1698
|
+
"""Get team member details # noqa: E501
|
1699
|
+
|
1700
|
+
This method makes a synchronous HTTP request by default. To make an
|
1701
|
+
asynchronous HTTP request, please pass async_req=True
|
1702
|
+
|
1703
|
+
>>> thread = api.get_team_member_with_http_info(owner, team, user, async_req=True)
|
1704
|
+
>>> result = thread.get()
|
1705
|
+
|
1706
|
+
:param owner: Owner of the namespace (required)
|
1707
|
+
:type owner: str
|
1708
|
+
:param team: Team under namespace (required)
|
1709
|
+
:type team: str
|
1710
|
+
:param user: Member under team (required)
|
1711
|
+
:type user: str
|
1712
|
+
:param async_req: Whether to execute the request asynchronously.
|
1713
|
+
:type async_req: bool, optional
|
1714
|
+
:param _return_http_data_only: response data without head status code
|
1715
|
+
and headers
|
1716
|
+
:type _return_http_data_only: bool, optional
|
1717
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1718
|
+
be returned without reading/decoding response
|
1719
|
+
data. Default is True.
|
1720
|
+
:type _preload_content: bool, optional
|
1721
|
+
:param _request_timeout: timeout setting for this request. If one
|
1722
|
+
number provided, it will be total request
|
1723
|
+
timeout. It can also be a pair (tuple) of
|
1724
|
+
(connection, read) timeouts.
|
1725
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1726
|
+
request; this effectively ignores the authentication
|
1727
|
+
in the spec for a single request.
|
1728
|
+
:type _request_auth: dict, optional
|
1729
|
+
:type _content_type: string, optional: force content-type for the request
|
1730
|
+
:return: Returns the result object.
|
1731
|
+
If the method is called asynchronously,
|
1732
|
+
returns the request thread.
|
1733
|
+
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
1734
|
+
"""
|
1735
|
+
|
1736
|
+
_params = locals()
|
1737
|
+
|
1738
|
+
_all_params = [
|
1739
|
+
'owner',
|
1740
|
+
'team',
|
1741
|
+
'user'
|
1742
|
+
]
|
1743
|
+
_all_params.extend(
|
1744
|
+
[
|
1745
|
+
'async_req',
|
1746
|
+
'_return_http_data_only',
|
1747
|
+
'_preload_content',
|
1748
|
+
'_request_timeout',
|
1749
|
+
'_request_auth',
|
1750
|
+
'_content_type',
|
1751
|
+
'_headers'
|
1752
|
+
]
|
1753
|
+
)
|
1754
|
+
|
1755
|
+
# validate the arguments
|
1756
|
+
for _key, _val in _params['kwargs'].items():
|
1757
|
+
if _key not in _all_params:
|
1758
|
+
raise ApiTypeError(
|
1759
|
+
"Got an unexpected keyword argument '%s'"
|
1760
|
+
" to method get_team_member" % _key
|
1761
|
+
)
|
1762
|
+
_params[_key] = _val
|
1763
|
+
del _params['kwargs']
|
1764
|
+
|
1765
|
+
_collection_formats = {}
|
1766
|
+
|
1767
|
+
# process the path parameters
|
1768
|
+
_path_params = {}
|
1769
|
+
if _params['owner']:
|
1770
|
+
_path_params['owner'] = _params['owner']
|
1771
|
+
|
1772
|
+
if _params['team']:
|
1773
|
+
_path_params['team'] = _params['team']
|
1774
|
+
|
1775
|
+
if _params['user']:
|
1776
|
+
_path_params['user'] = _params['user']
|
1777
|
+
|
1778
|
+
|
1779
|
+
# process the query parameters
|
1780
|
+
_query_params = []
|
1781
|
+
# process the header parameters
|
1782
|
+
_header_params = dict(_params.get('_headers', {}))
|
1783
|
+
# process the form parameters
|
1784
|
+
_form_params = []
|
1785
|
+
_files = {}
|
1786
|
+
# process the body parameter
|
1787
|
+
_body_params = None
|
1788
|
+
# set the HTTP header `Accept`
|
1789
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1790
|
+
['application/json']) # noqa: E501
|
1791
|
+
|
1792
|
+
# authentication setting
|
1793
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1794
|
+
|
1795
|
+
_response_types_map = {
|
1796
|
+
'200': "V1TeamMember",
|
1797
|
+
'204': "object",
|
1798
|
+
'403': "object",
|
1799
|
+
'404': "object",
|
1800
|
+
}
|
1801
|
+
|
1802
|
+
return self.api_client.call_api(
|
1803
|
+
'/api/v1/orgs/{owner}/teams/{team}/members/{user}', 'GET',
|
1804
|
+
_path_params,
|
1805
|
+
_query_params,
|
1806
|
+
_header_params,
|
1807
|
+
body=_body_params,
|
1808
|
+
post_params=_form_params,
|
1809
|
+
files=_files,
|
1810
|
+
response_types_map=_response_types_map,
|
1811
|
+
auth_settings=_auth_settings,
|
1812
|
+
async_req=_params.get('async_req'),
|
1813
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1814
|
+
_preload_content=_params.get('_preload_content', True),
|
1815
|
+
_request_timeout=_params.get('_request_timeout'),
|
1816
|
+
collection_formats=_collection_formats,
|
1817
|
+
_request_auth=_params.get('_request_auth'))
|
1818
|
+
|
1819
|
+
@validate_arguments
|
1820
|
+
def get_team_run(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs) -> V1Run: # noqa: E501
|
1821
|
+
"""Get a run in a team # noqa: E501
|
1822
|
+
|
1823
|
+
This method makes a synchronous HTTP request by default. To make an
|
1824
|
+
asynchronous HTTP request, please pass async_req=True
|
1825
|
+
|
1826
|
+
>>> thread = api.get_team_run(owner, entity, uuid, async_req=True)
|
1827
|
+
>>> result = thread.get()
|
1828
|
+
|
1829
|
+
:param owner: Owner of the namespace (required)
|
1830
|
+
:type owner: str
|
1831
|
+
:param entity: Entity: project name, hub name, registry name, ... (required)
|
1832
|
+
:type entity: str
|
1833
|
+
:param uuid: Uuid identifier of the sub-entity (required)
|
1834
|
+
:type uuid: str
|
1835
|
+
:param async_req: Whether to execute the request asynchronously.
|
1836
|
+
:type async_req: bool, optional
|
1837
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1838
|
+
be returned without reading/decoding response
|
1839
|
+
data. Default is True.
|
1840
|
+
:type _preload_content: bool, optional
|
1841
|
+
:param _request_timeout: timeout setting for this request. If one
|
1842
|
+
number provided, it will be total request
|
1843
|
+
timeout. It can also be a pair (tuple) of
|
1844
|
+
(connection, read) timeouts.
|
1845
|
+
:return: Returns the result object.
|
1846
|
+
If the method is called asynchronously,
|
1847
|
+
returns the request thread.
|
1848
|
+
:rtype: V1Run
|
1849
|
+
"""
|
1850
|
+
kwargs['_return_http_data_only'] = True
|
1851
|
+
return self.get_team_run_with_http_info(owner, entity, uuid, **kwargs) # noqa: E501
|
1852
|
+
|
1853
|
+
@validate_arguments
|
1854
|
+
def get_team_run_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity: project name, hub name, registry name, ...")], uuid : Annotated[StrictStr, Field(..., description="Uuid identifier of the sub-entity")], **kwargs): # noqa: E501
|
1855
|
+
"""Get a run in a team # noqa: E501
|
1856
|
+
|
1857
|
+
This method makes a synchronous HTTP request by default. To make an
|
1858
|
+
asynchronous HTTP request, please pass async_req=True
|
1859
|
+
|
1860
|
+
>>> thread = api.get_team_run_with_http_info(owner, entity, uuid, async_req=True)
|
1861
|
+
>>> result = thread.get()
|
1862
|
+
|
1863
|
+
:param owner: Owner of the namespace (required)
|
1864
|
+
:type owner: str
|
1865
|
+
:param entity: Entity: project name, hub name, registry name, ... (required)
|
1866
|
+
:type entity: str
|
1867
|
+
:param uuid: Uuid identifier of the sub-entity (required)
|
1868
|
+
:type uuid: str
|
1869
|
+
:param async_req: Whether to execute the request asynchronously.
|
1870
|
+
:type async_req: bool, optional
|
1871
|
+
:param _return_http_data_only: response data without head status code
|
1872
|
+
and headers
|
1873
|
+
:type _return_http_data_only: bool, optional
|
1874
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1875
|
+
be returned without reading/decoding response
|
1876
|
+
data. Default is True.
|
1877
|
+
:type _preload_content: bool, optional
|
1878
|
+
:param _request_timeout: timeout setting for this request. If one
|
1879
|
+
number provided, it will be total request
|
1880
|
+
timeout. It can also be a pair (tuple) of
|
1881
|
+
(connection, read) timeouts.
|
1882
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1883
|
+
request; this effectively ignores the authentication
|
1884
|
+
in the spec for a single request.
|
1885
|
+
:type _request_auth: dict, optional
|
1886
|
+
:type _content_type: string, optional: force content-type for the request
|
1887
|
+
:return: Returns the result object.
|
1888
|
+
If the method is called asynchronously,
|
1889
|
+
returns the request thread.
|
1890
|
+
:rtype: tuple(V1Run, status_code(int), headers(HTTPHeaderDict))
|
1891
|
+
"""
|
1892
|
+
|
1893
|
+
_params = locals()
|
1894
|
+
|
1895
|
+
_all_params = [
|
1896
|
+
'owner',
|
1897
|
+
'entity',
|
1898
|
+
'uuid'
|
1899
|
+
]
|
1900
|
+
_all_params.extend(
|
1901
|
+
[
|
1902
|
+
'async_req',
|
1903
|
+
'_return_http_data_only',
|
1904
|
+
'_preload_content',
|
1905
|
+
'_request_timeout',
|
1906
|
+
'_request_auth',
|
1907
|
+
'_content_type',
|
1908
|
+
'_headers'
|
1909
|
+
]
|
1910
|
+
)
|
1911
|
+
|
1912
|
+
# validate the arguments
|
1913
|
+
for _key, _val in _params['kwargs'].items():
|
1914
|
+
if _key not in _all_params:
|
1915
|
+
raise ApiTypeError(
|
1916
|
+
"Got an unexpected keyword argument '%s'"
|
1917
|
+
" to method get_team_run" % _key
|
1918
|
+
)
|
1919
|
+
_params[_key] = _val
|
1920
|
+
del _params['kwargs']
|
1921
|
+
|
1922
|
+
_collection_formats = {}
|
1923
|
+
|
1924
|
+
# process the path parameters
|
1925
|
+
_path_params = {}
|
1926
|
+
if _params['owner']:
|
1927
|
+
_path_params['owner'] = _params['owner']
|
1928
|
+
|
1929
|
+
if _params['entity']:
|
1930
|
+
_path_params['entity'] = _params['entity']
|
1931
|
+
|
1932
|
+
if _params['uuid']:
|
1933
|
+
_path_params['uuid'] = _params['uuid']
|
1934
|
+
|
1935
|
+
|
1936
|
+
# process the query parameters
|
1937
|
+
_query_params = []
|
1938
|
+
# process the header parameters
|
1939
|
+
_header_params = dict(_params.get('_headers', {}))
|
1940
|
+
# process the form parameters
|
1941
|
+
_form_params = []
|
1942
|
+
_files = {}
|
1943
|
+
# process the body parameter
|
1944
|
+
_body_params = None
|
1945
|
+
# set the HTTP header `Accept`
|
1946
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1947
|
+
['application/json']) # noqa: E501
|
1948
|
+
|
1949
|
+
# authentication setting
|
1950
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
1951
|
+
|
1952
|
+
_response_types_map = {
|
1953
|
+
'200': "V1Run",
|
1954
|
+
'204': "object",
|
1955
|
+
'403': "object",
|
1956
|
+
'404': "object",
|
1957
|
+
}
|
1958
|
+
|
1959
|
+
return self.api_client.call_api(
|
1960
|
+
'/api/v1/orgs/{owner}/teams/{entity}/runs/{uuid}', 'GET',
|
1961
|
+
_path_params,
|
1962
|
+
_query_params,
|
1963
|
+
_header_params,
|
1964
|
+
body=_body_params,
|
1965
|
+
post_params=_form_params,
|
1966
|
+
files=_files,
|
1967
|
+
response_types_map=_response_types_map,
|
1968
|
+
auth_settings=_auth_settings,
|
1969
|
+
async_req=_params.get('async_req'),
|
1970
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
1971
|
+
_preload_content=_params.get('_preload_content', True),
|
1972
|
+
_request_timeout=_params.get('_request_timeout'),
|
1973
|
+
collection_formats=_collection_formats,
|
1974
|
+
_request_auth=_params.get('_request_auth'))
|
1975
|
+
|
1976
|
+
@validate_arguments
|
1977
|
+
def get_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListRunsResponse: # noqa: E501
|
1978
|
+
"""Get all runs in a team # noqa: E501
|
1979
|
+
|
1980
|
+
This method makes a synchronous HTTP request by default. To make an
|
1981
|
+
asynchronous HTTP request, please pass async_req=True
|
1982
|
+
|
1983
|
+
>>> thread = api.get_team_runs(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
1984
|
+
>>> result = thread.get()
|
1985
|
+
|
1986
|
+
:param owner: Owner of the namespace (required)
|
1987
|
+
:type owner: str
|
1988
|
+
:param name: Entity managing the resource (required)
|
1989
|
+
:type name: str
|
1990
|
+
:param offset: Pagination offset.
|
1991
|
+
:type offset: int
|
1992
|
+
:param limit: Limit size.
|
1993
|
+
:type limit: int
|
1994
|
+
:param sort: Sort to order the search.
|
1995
|
+
:type sort: str
|
1996
|
+
:param query: Query filter the search.
|
1997
|
+
:type query: str
|
1998
|
+
:param bookmarks: Filter by bookmarks.
|
1999
|
+
:type bookmarks: bool
|
2000
|
+
:param mode: Mode of the search.
|
2001
|
+
:type mode: str
|
2002
|
+
:param no_page: No pagination.
|
2003
|
+
:type no_page: bool
|
2004
|
+
:param async_req: Whether to execute the request asynchronously.
|
2005
|
+
:type async_req: bool, optional
|
2006
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2007
|
+
be returned without reading/decoding response
|
2008
|
+
data. Default is True.
|
2009
|
+
:type _preload_content: bool, optional
|
2010
|
+
:param _request_timeout: timeout setting for this request. If one
|
2011
|
+
number provided, it will be total request
|
2012
|
+
timeout. It can also be a pair (tuple) of
|
2013
|
+
(connection, read) timeouts.
|
2014
|
+
:return: Returns the result object.
|
2015
|
+
If the method is called asynchronously,
|
2016
|
+
returns the request thread.
|
2017
|
+
:rtype: V1ListRunsResponse
|
2018
|
+
"""
|
2019
|
+
kwargs['_return_http_data_only'] = True
|
2020
|
+
return self.get_team_runs_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
2021
|
+
|
2022
|
+
@validate_arguments
|
2023
|
+
def get_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
2024
|
+
"""Get all runs in a team # noqa: E501
|
2025
|
+
|
2026
|
+
This method makes a synchronous HTTP request by default. To make an
|
2027
|
+
asynchronous HTTP request, please pass async_req=True
|
2028
|
+
|
2029
|
+
>>> thread = api.get_team_runs_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2030
|
+
>>> result = thread.get()
|
2031
|
+
|
2032
|
+
:param owner: Owner of the namespace (required)
|
2033
|
+
:type owner: str
|
2034
|
+
:param name: Entity managing the resource (required)
|
2035
|
+
:type name: str
|
2036
|
+
:param offset: Pagination offset.
|
2037
|
+
:type offset: int
|
2038
|
+
:param limit: Limit size.
|
2039
|
+
:type limit: int
|
2040
|
+
:param sort: Sort to order the search.
|
2041
|
+
:type sort: str
|
2042
|
+
:param query: Query filter the search.
|
2043
|
+
:type query: str
|
2044
|
+
:param bookmarks: Filter by bookmarks.
|
2045
|
+
:type bookmarks: bool
|
2046
|
+
:param mode: Mode of the search.
|
2047
|
+
:type mode: str
|
2048
|
+
:param no_page: No pagination.
|
2049
|
+
:type no_page: bool
|
2050
|
+
:param async_req: Whether to execute the request asynchronously.
|
2051
|
+
:type async_req: bool, optional
|
2052
|
+
:param _return_http_data_only: response data without head status code
|
2053
|
+
and headers
|
2054
|
+
:type _return_http_data_only: bool, optional
|
2055
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2056
|
+
be returned without reading/decoding response
|
2057
|
+
data. Default is True.
|
2058
|
+
:type _preload_content: bool, optional
|
2059
|
+
:param _request_timeout: timeout setting for this request. If one
|
2060
|
+
number provided, it will be total request
|
2061
|
+
timeout. It can also be a pair (tuple) of
|
2062
|
+
(connection, read) timeouts.
|
2063
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2064
|
+
request; this effectively ignores the authentication
|
2065
|
+
in the spec for a single request.
|
2066
|
+
:type _request_auth: dict, optional
|
2067
|
+
:type _content_type: string, optional: force content-type for the request
|
2068
|
+
:return: Returns the result object.
|
2069
|
+
If the method is called asynchronously,
|
2070
|
+
returns the request thread.
|
2071
|
+
:rtype: tuple(V1ListRunsResponse, status_code(int), headers(HTTPHeaderDict))
|
2072
|
+
"""
|
2073
|
+
|
2074
|
+
_params = locals()
|
2075
|
+
|
2076
|
+
_all_params = [
|
2077
|
+
'owner',
|
2078
|
+
'name',
|
2079
|
+
'offset',
|
2080
|
+
'limit',
|
2081
|
+
'sort',
|
2082
|
+
'query',
|
2083
|
+
'bookmarks',
|
2084
|
+
'mode',
|
2085
|
+
'no_page'
|
2086
|
+
]
|
2087
|
+
_all_params.extend(
|
2088
|
+
[
|
2089
|
+
'async_req',
|
2090
|
+
'_return_http_data_only',
|
2091
|
+
'_preload_content',
|
2092
|
+
'_request_timeout',
|
2093
|
+
'_request_auth',
|
2094
|
+
'_content_type',
|
2095
|
+
'_headers'
|
2096
|
+
]
|
2097
|
+
)
|
2098
|
+
|
2099
|
+
# validate the arguments
|
2100
|
+
for _key, _val in _params['kwargs'].items():
|
2101
|
+
if _key not in _all_params:
|
2102
|
+
raise ApiTypeError(
|
2103
|
+
"Got an unexpected keyword argument '%s'"
|
2104
|
+
" to method get_team_runs" % _key
|
2105
|
+
)
|
2106
|
+
_params[_key] = _val
|
2107
|
+
del _params['kwargs']
|
2108
|
+
|
2109
|
+
_collection_formats = {}
|
2110
|
+
|
2111
|
+
# process the path parameters
|
2112
|
+
_path_params = {}
|
2113
|
+
if _params['owner']:
|
2114
|
+
_path_params['owner'] = _params['owner']
|
2115
|
+
|
2116
|
+
if _params['name']:
|
2117
|
+
_path_params['name'] = _params['name']
|
2118
|
+
|
2119
|
+
|
2120
|
+
# process the query parameters
|
2121
|
+
_query_params = []
|
2122
|
+
if _params.get('offset') is not None: # noqa: E501
|
2123
|
+
_query_params.append(('offset', _params['offset']))
|
2124
|
+
|
2125
|
+
if _params.get('limit') is not None: # noqa: E501
|
2126
|
+
_query_params.append(('limit', _params['limit']))
|
2127
|
+
|
2128
|
+
if _params.get('sort') is not None: # noqa: E501
|
2129
|
+
_query_params.append(('sort', _params['sort']))
|
2130
|
+
|
2131
|
+
if _params.get('query') is not None: # noqa: E501
|
2132
|
+
_query_params.append(('query', _params['query']))
|
2133
|
+
|
2134
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
2135
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
2136
|
+
|
2137
|
+
if _params.get('mode') is not None: # noqa: E501
|
2138
|
+
_query_params.append(('mode', _params['mode']))
|
2139
|
+
|
2140
|
+
if _params.get('no_page') is not None: # noqa: E501
|
2141
|
+
_query_params.append(('no_page', _params['no_page']))
|
2142
|
+
|
2143
|
+
# process the header parameters
|
2144
|
+
_header_params = dict(_params.get('_headers', {}))
|
2145
|
+
# process the form parameters
|
2146
|
+
_form_params = []
|
2147
|
+
_files = {}
|
2148
|
+
# process the body parameter
|
2149
|
+
_body_params = None
|
2150
|
+
# set the HTTP header `Accept`
|
2151
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2152
|
+
['application/json']) # noqa: E501
|
2153
|
+
|
2154
|
+
# authentication setting
|
2155
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2156
|
+
|
2157
|
+
_response_types_map = {
|
2158
|
+
'200': "V1ListRunsResponse",
|
2159
|
+
'204': "object",
|
2160
|
+
'403': "object",
|
2161
|
+
'404': "object",
|
2162
|
+
}
|
2163
|
+
|
2164
|
+
return self.api_client.call_api(
|
2165
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs', 'GET',
|
2166
|
+
_path_params,
|
2167
|
+
_query_params,
|
2168
|
+
_header_params,
|
2169
|
+
body=_body_params,
|
2170
|
+
post_params=_form_params,
|
2171
|
+
files=_files,
|
2172
|
+
response_types_map=_response_types_map,
|
2173
|
+
auth_settings=_auth_settings,
|
2174
|
+
async_req=_params.get('async_req'),
|
2175
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2176
|
+
_preload_content=_params.get('_preload_content', True),
|
2177
|
+
_request_timeout=_params.get('_request_timeout'),
|
2178
|
+
collection_formats=_collection_formats,
|
2179
|
+
_request_auth=_params.get('_request_auth'))
|
2180
|
+
|
2181
|
+
@validate_arguments
|
2182
|
+
def get_team_stats(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None, kind : Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None, aggregate : Annotated[Optional[StrictStr], Field(description="Stats aggregate.")] = None, groupby : Annotated[Optional[StrictStr], Field(description="Stats group.")] = None, trunc : Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, **kwargs) -> object: # noqa: E501
|
2183
|
+
"""Get team stats # noqa: E501
|
2184
|
+
|
2185
|
+
This method makes a synchronous HTTP request by default. To make an
|
2186
|
+
asynchronous HTTP request, please pass async_req=True
|
2187
|
+
|
2188
|
+
>>> thread = api.get_team_stats(owner, name, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
2189
|
+
>>> result = thread.get()
|
2190
|
+
|
2191
|
+
:param owner: Owner of the namespace (required)
|
2192
|
+
:type owner: str
|
2193
|
+
:param name: Entity managing the resource (required)
|
2194
|
+
:type name: str
|
2195
|
+
:param offset: Pagination offset.
|
2196
|
+
:type offset: int
|
2197
|
+
:param limit: Limit size.
|
2198
|
+
:type limit: int
|
2199
|
+
:param sort: Sort to order the search.
|
2200
|
+
:type sort: str
|
2201
|
+
:param query: Query filter the search.
|
2202
|
+
:type query: str
|
2203
|
+
:param bookmarks: Filter by bookmarks.
|
2204
|
+
:type bookmarks: bool
|
2205
|
+
:param mode: Stats Mode.
|
2206
|
+
:type mode: str
|
2207
|
+
:param kind: Stats Kind.
|
2208
|
+
:type kind: str
|
2209
|
+
:param aggregate: Stats aggregate.
|
2210
|
+
:type aggregate: str
|
2211
|
+
:param groupby: Stats group.
|
2212
|
+
:type groupby: str
|
2213
|
+
:param trunc: Stats trunc.
|
2214
|
+
:type trunc: str
|
2215
|
+
:param async_req: Whether to execute the request asynchronously.
|
2216
|
+
:type async_req: bool, optional
|
2217
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2218
|
+
be returned without reading/decoding response
|
2219
|
+
data. Default is True.
|
2220
|
+
:type _preload_content: bool, optional
|
2221
|
+
:param _request_timeout: timeout setting for this request. If one
|
2222
|
+
number provided, it will be total request
|
2223
|
+
timeout. It can also be a pair (tuple) of
|
2224
|
+
(connection, read) timeouts.
|
2225
|
+
:return: Returns the result object.
|
2226
|
+
If the method is called asynchronously,
|
2227
|
+
returns the request thread.
|
2228
|
+
:rtype: object
|
2229
|
+
"""
|
2230
|
+
kwargs['_return_http_data_only'] = True
|
2231
|
+
return self.get_team_stats_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, **kwargs) # noqa: E501
|
2232
|
+
|
2233
|
+
@validate_arguments
|
2234
|
+
def get_team_stats_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None, kind : Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None, aggregate : Annotated[Optional[StrictStr], Field(description="Stats aggregate.")] = None, groupby : Annotated[Optional[StrictStr], Field(description="Stats group.")] = None, trunc : Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None, **kwargs): # noqa: E501
|
2235
|
+
"""Get team stats # noqa: E501
|
2236
|
+
|
2237
|
+
This method makes a synchronous HTTP request by default. To make an
|
2238
|
+
asynchronous HTTP request, please pass async_req=True
|
2239
|
+
|
2240
|
+
>>> thread = api.get_team_stats_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
2241
|
+
>>> result = thread.get()
|
2242
|
+
|
2243
|
+
:param owner: Owner of the namespace (required)
|
2244
|
+
:type owner: str
|
2245
|
+
:param name: Entity managing the resource (required)
|
2246
|
+
:type name: str
|
2247
|
+
:param offset: Pagination offset.
|
2248
|
+
:type offset: int
|
2249
|
+
:param limit: Limit size.
|
2250
|
+
:type limit: int
|
2251
|
+
:param sort: Sort to order the search.
|
2252
|
+
:type sort: str
|
2253
|
+
:param query: Query filter the search.
|
2254
|
+
:type query: str
|
2255
|
+
:param bookmarks: Filter by bookmarks.
|
2256
|
+
:type bookmarks: bool
|
2257
|
+
:param mode: Stats Mode.
|
2258
|
+
:type mode: str
|
2259
|
+
:param kind: Stats Kind.
|
2260
|
+
:type kind: str
|
2261
|
+
:param aggregate: Stats aggregate.
|
2262
|
+
:type aggregate: str
|
2263
|
+
:param groupby: Stats group.
|
2264
|
+
:type groupby: str
|
2265
|
+
:param trunc: Stats trunc.
|
2266
|
+
:type trunc: str
|
2267
|
+
:param async_req: Whether to execute the request asynchronously.
|
2268
|
+
:type async_req: bool, optional
|
2269
|
+
:param _return_http_data_only: response data without head status code
|
2270
|
+
and headers
|
2271
|
+
:type _return_http_data_only: bool, optional
|
2272
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2273
|
+
be returned without reading/decoding response
|
2274
|
+
data. Default is True.
|
2275
|
+
:type _preload_content: bool, optional
|
2276
|
+
:param _request_timeout: timeout setting for this request. If one
|
2277
|
+
number provided, it will be total request
|
2278
|
+
timeout. It can also be a pair (tuple) of
|
2279
|
+
(connection, read) timeouts.
|
2280
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2281
|
+
request; this effectively ignores the authentication
|
2282
|
+
in the spec for a single request.
|
2283
|
+
:type _request_auth: dict, optional
|
2284
|
+
:type _content_type: string, optional: force content-type for the request
|
2285
|
+
:return: Returns the result object.
|
2286
|
+
If the method is called asynchronously,
|
2287
|
+
returns the request thread.
|
2288
|
+
:rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
2289
|
+
"""
|
2290
|
+
|
2291
|
+
_params = locals()
|
2292
|
+
|
2293
|
+
_all_params = [
|
2294
|
+
'owner',
|
2295
|
+
'name',
|
2296
|
+
'offset',
|
2297
|
+
'limit',
|
2298
|
+
'sort',
|
2299
|
+
'query',
|
2300
|
+
'bookmarks',
|
2301
|
+
'mode',
|
2302
|
+
'kind',
|
2303
|
+
'aggregate',
|
2304
|
+
'groupby',
|
2305
|
+
'trunc'
|
2306
|
+
]
|
2307
|
+
_all_params.extend(
|
2308
|
+
[
|
2309
|
+
'async_req',
|
2310
|
+
'_return_http_data_only',
|
2311
|
+
'_preload_content',
|
2312
|
+
'_request_timeout',
|
2313
|
+
'_request_auth',
|
2314
|
+
'_content_type',
|
2315
|
+
'_headers'
|
2316
|
+
]
|
2317
|
+
)
|
2318
|
+
|
2319
|
+
# validate the arguments
|
2320
|
+
for _key, _val in _params['kwargs'].items():
|
2321
|
+
if _key not in _all_params:
|
2322
|
+
raise ApiTypeError(
|
2323
|
+
"Got an unexpected keyword argument '%s'"
|
2324
|
+
" to method get_team_stats" % _key
|
2325
|
+
)
|
2326
|
+
_params[_key] = _val
|
2327
|
+
del _params['kwargs']
|
2328
|
+
|
2329
|
+
_collection_formats = {}
|
2330
|
+
|
2331
|
+
# process the path parameters
|
2332
|
+
_path_params = {}
|
2333
|
+
if _params['owner']:
|
2334
|
+
_path_params['owner'] = _params['owner']
|
2335
|
+
|
2336
|
+
if _params['name']:
|
2337
|
+
_path_params['name'] = _params['name']
|
2338
|
+
|
2339
|
+
|
2340
|
+
# process the query parameters
|
2341
|
+
_query_params = []
|
2342
|
+
if _params.get('offset') is not None: # noqa: E501
|
2343
|
+
_query_params.append(('offset', _params['offset']))
|
2344
|
+
|
2345
|
+
if _params.get('limit') is not None: # noqa: E501
|
2346
|
+
_query_params.append(('limit', _params['limit']))
|
2347
|
+
|
2348
|
+
if _params.get('sort') is not None: # noqa: E501
|
2349
|
+
_query_params.append(('sort', _params['sort']))
|
2350
|
+
|
2351
|
+
if _params.get('query') is not None: # noqa: E501
|
2352
|
+
_query_params.append(('query', _params['query']))
|
2353
|
+
|
2354
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
2355
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
2356
|
+
|
2357
|
+
if _params.get('mode') is not None: # noqa: E501
|
2358
|
+
_query_params.append(('mode', _params['mode']))
|
2359
|
+
|
2360
|
+
if _params.get('kind') is not None: # noqa: E501
|
2361
|
+
_query_params.append(('kind', _params['kind']))
|
2362
|
+
|
2363
|
+
if _params.get('aggregate') is not None: # noqa: E501
|
2364
|
+
_query_params.append(('aggregate', _params['aggregate']))
|
2365
|
+
|
2366
|
+
if _params.get('groupby') is not None: # noqa: E501
|
2367
|
+
_query_params.append(('groupby', _params['groupby']))
|
2368
|
+
|
2369
|
+
if _params.get('trunc') is not None: # noqa: E501
|
2370
|
+
_query_params.append(('trunc', _params['trunc']))
|
2371
|
+
|
2372
|
+
# process the header parameters
|
2373
|
+
_header_params = dict(_params.get('_headers', {}))
|
2374
|
+
# process the form parameters
|
2375
|
+
_form_params = []
|
2376
|
+
_files = {}
|
2377
|
+
# process the body parameter
|
2378
|
+
_body_params = None
|
2379
|
+
# set the HTTP header `Accept`
|
2380
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2381
|
+
['application/json']) # noqa: E501
|
2382
|
+
|
2383
|
+
# authentication setting
|
2384
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2385
|
+
|
2386
|
+
_response_types_map = {
|
2387
|
+
'200': "object",
|
2388
|
+
'204': "object",
|
2389
|
+
'403': "object",
|
2390
|
+
'404': "object",
|
2391
|
+
}
|
2392
|
+
|
2393
|
+
return self.api_client.call_api(
|
2394
|
+
'/api/v1/orgs/{owner}/teams/{name}/stats', 'GET',
|
2395
|
+
_path_params,
|
2396
|
+
_query_params,
|
2397
|
+
_header_params,
|
2398
|
+
body=_body_params,
|
2399
|
+
post_params=_form_params,
|
2400
|
+
files=_files,
|
2401
|
+
response_types_map=_response_types_map,
|
2402
|
+
auth_settings=_auth_settings,
|
2403
|
+
async_req=_params.get('async_req'),
|
2404
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2405
|
+
_preload_content=_params.get('_preload_content', True),
|
2406
|
+
_request_timeout=_params.get('_request_timeout'),
|
2407
|
+
collection_formats=_collection_formats,
|
2408
|
+
_request_auth=_params.get('_request_auth'))
|
2409
|
+
|
2410
|
+
@validate_arguments
|
2411
|
+
def get_team_versions(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity name under namespace")], kind : Annotated[StrictStr, Field(..., description="Version Kind")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListProjectVersionsResponse: # noqa: E501
|
2412
|
+
"""Get all runs in a team # noqa: E501
|
2413
|
+
|
2414
|
+
This method makes a synchronous HTTP request by default. To make an
|
2415
|
+
asynchronous HTTP request, please pass async_req=True
|
2416
|
+
|
2417
|
+
>>> thread = api.get_team_versions(owner, entity, kind, offset, limit, sort, query, no_page, async_req=True)
|
2418
|
+
>>> result = thread.get()
|
2419
|
+
|
2420
|
+
:param owner: Owner of the namespace (required)
|
2421
|
+
:type owner: str
|
2422
|
+
:param entity: Entity name under namespace (required)
|
2423
|
+
:type entity: str
|
2424
|
+
:param kind: Version Kind (required)
|
2425
|
+
:type kind: str
|
2426
|
+
:param offset: Pagination offset.
|
2427
|
+
:type offset: int
|
2428
|
+
:param limit: Limit size.
|
2429
|
+
:type limit: int
|
2430
|
+
:param sort: Sort to order the search.
|
2431
|
+
:type sort: str
|
2432
|
+
:param query: Query filter the search.
|
2433
|
+
:type query: str
|
2434
|
+
:param no_page: No pagination.
|
2435
|
+
:type no_page: bool
|
2436
|
+
:param async_req: Whether to execute the request asynchronously.
|
2437
|
+
:type async_req: bool, optional
|
2438
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2439
|
+
be returned without reading/decoding response
|
2440
|
+
data. Default is True.
|
2441
|
+
:type _preload_content: bool, optional
|
2442
|
+
:param _request_timeout: timeout setting for this request. If one
|
2443
|
+
number provided, it will be total request
|
2444
|
+
timeout. It can also be a pair (tuple) of
|
2445
|
+
(connection, read) timeouts.
|
2446
|
+
:return: Returns the result object.
|
2447
|
+
If the method is called asynchronously,
|
2448
|
+
returns the request thread.
|
2449
|
+
:rtype: V1ListProjectVersionsResponse
|
2450
|
+
"""
|
2451
|
+
kwargs['_return_http_data_only'] = True
|
2452
|
+
return self.get_team_versions_with_http_info(owner, entity, kind, offset, limit, sort, query, no_page, **kwargs) # noqa: E501
|
2453
|
+
|
2454
|
+
@validate_arguments
|
2455
|
+
def get_team_versions_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], entity : Annotated[StrictStr, Field(..., description="Entity name under namespace")], kind : Annotated[StrictStr, Field(..., description="Version Kind")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
2456
|
+
"""Get all runs in a team # noqa: E501
|
2457
|
+
|
2458
|
+
This method makes a synchronous HTTP request by default. To make an
|
2459
|
+
asynchronous HTTP request, please pass async_req=True
|
2460
|
+
|
2461
|
+
>>> thread = api.get_team_versions_with_http_info(owner, entity, kind, offset, limit, sort, query, no_page, async_req=True)
|
2462
|
+
>>> result = thread.get()
|
2463
|
+
|
2464
|
+
:param owner: Owner of the namespace (required)
|
2465
|
+
:type owner: str
|
2466
|
+
:param entity: Entity name under namespace (required)
|
2467
|
+
:type entity: str
|
2468
|
+
:param kind: Version Kind (required)
|
2469
|
+
:type kind: str
|
2470
|
+
:param offset: Pagination offset.
|
2471
|
+
:type offset: int
|
2472
|
+
:param limit: Limit size.
|
2473
|
+
:type limit: int
|
2474
|
+
:param sort: Sort to order the search.
|
2475
|
+
:type sort: str
|
2476
|
+
:param query: Query filter the search.
|
2477
|
+
:type query: str
|
2478
|
+
:param no_page: No pagination.
|
2479
|
+
:type no_page: bool
|
2480
|
+
:param async_req: Whether to execute the request asynchronously.
|
2481
|
+
:type async_req: bool, optional
|
2482
|
+
:param _return_http_data_only: response data without head status code
|
2483
|
+
and headers
|
2484
|
+
:type _return_http_data_only: bool, optional
|
2485
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2486
|
+
be returned without reading/decoding response
|
2487
|
+
data. Default is True.
|
2488
|
+
:type _preload_content: bool, optional
|
2489
|
+
:param _request_timeout: timeout setting for this request. If one
|
2490
|
+
number provided, it will be total request
|
2491
|
+
timeout. It can also be a pair (tuple) of
|
2492
|
+
(connection, read) timeouts.
|
2493
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2494
|
+
request; this effectively ignores the authentication
|
2495
|
+
in the spec for a single request.
|
2496
|
+
:type _request_auth: dict, optional
|
2497
|
+
:type _content_type: string, optional: force content-type for the request
|
2498
|
+
:return: Returns the result object.
|
2499
|
+
If the method is called asynchronously,
|
2500
|
+
returns the request thread.
|
2501
|
+
:rtype: tuple(V1ListProjectVersionsResponse, status_code(int), headers(HTTPHeaderDict))
|
2502
|
+
"""
|
2503
|
+
|
2504
|
+
_params = locals()
|
2505
|
+
|
2506
|
+
_all_params = [
|
2507
|
+
'owner',
|
2508
|
+
'entity',
|
2509
|
+
'kind',
|
2510
|
+
'offset',
|
2511
|
+
'limit',
|
2512
|
+
'sort',
|
2513
|
+
'query',
|
2514
|
+
'no_page'
|
2515
|
+
]
|
2516
|
+
_all_params.extend(
|
2517
|
+
[
|
2518
|
+
'async_req',
|
2519
|
+
'_return_http_data_only',
|
2520
|
+
'_preload_content',
|
2521
|
+
'_request_timeout',
|
2522
|
+
'_request_auth',
|
2523
|
+
'_content_type',
|
2524
|
+
'_headers'
|
2525
|
+
]
|
2526
|
+
)
|
2527
|
+
|
2528
|
+
# validate the arguments
|
2529
|
+
for _key, _val in _params['kwargs'].items():
|
2530
|
+
if _key not in _all_params:
|
2531
|
+
raise ApiTypeError(
|
2532
|
+
"Got an unexpected keyword argument '%s'"
|
2533
|
+
" to method get_team_versions" % _key
|
2534
|
+
)
|
2535
|
+
_params[_key] = _val
|
2536
|
+
del _params['kwargs']
|
2537
|
+
|
2538
|
+
_collection_formats = {}
|
2539
|
+
|
2540
|
+
# process the path parameters
|
2541
|
+
_path_params = {}
|
2542
|
+
if _params['owner']:
|
2543
|
+
_path_params['owner'] = _params['owner']
|
2544
|
+
|
2545
|
+
if _params['entity']:
|
2546
|
+
_path_params['entity'] = _params['entity']
|
2547
|
+
|
2548
|
+
if _params['kind']:
|
2549
|
+
_path_params['kind'] = _params['kind']
|
2550
|
+
|
2551
|
+
|
2552
|
+
# process the query parameters
|
2553
|
+
_query_params = []
|
2554
|
+
if _params.get('offset') is not None: # noqa: E501
|
2555
|
+
_query_params.append(('offset', _params['offset']))
|
2556
|
+
|
2557
|
+
if _params.get('limit') is not None: # noqa: E501
|
2558
|
+
_query_params.append(('limit', _params['limit']))
|
2559
|
+
|
2560
|
+
if _params.get('sort') is not None: # noqa: E501
|
2561
|
+
_query_params.append(('sort', _params['sort']))
|
2562
|
+
|
2563
|
+
if _params.get('query') is not None: # noqa: E501
|
2564
|
+
_query_params.append(('query', _params['query']))
|
2565
|
+
|
2566
|
+
if _params.get('no_page') is not None: # noqa: E501
|
2567
|
+
_query_params.append(('no_page', _params['no_page']))
|
2568
|
+
|
2569
|
+
# process the header parameters
|
2570
|
+
_header_params = dict(_params.get('_headers', {}))
|
2571
|
+
# process the form parameters
|
2572
|
+
_form_params = []
|
2573
|
+
_files = {}
|
2574
|
+
# process the body parameter
|
2575
|
+
_body_params = None
|
2576
|
+
# set the HTTP header `Accept`
|
2577
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2578
|
+
['application/json']) # noqa: E501
|
2579
|
+
|
2580
|
+
# authentication setting
|
2581
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2582
|
+
|
2583
|
+
_response_types_map = {
|
2584
|
+
'200': "V1ListProjectVersionsResponse",
|
2585
|
+
'204': "object",
|
2586
|
+
'403': "object",
|
2587
|
+
'404': "object",
|
2588
|
+
}
|
2589
|
+
|
2590
|
+
return self.api_client.call_api(
|
2591
|
+
'/api/v1/orgs/{owner}/teams/{entity}/versions/{kind}', 'GET',
|
2592
|
+
_path_params,
|
2593
|
+
_query_params,
|
2594
|
+
_header_params,
|
2595
|
+
body=_body_params,
|
2596
|
+
post_params=_form_params,
|
2597
|
+
files=_files,
|
2598
|
+
response_types_map=_response_types_map,
|
2599
|
+
auth_settings=_auth_settings,
|
2600
|
+
async_req=_params.get('async_req'),
|
2601
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2602
|
+
_preload_content=_params.get('_preload_content', True),
|
2603
|
+
_request_timeout=_params.get('_request_timeout'),
|
2604
|
+
collection_formats=_collection_formats,
|
2605
|
+
_request_auth=_params.get('_request_auth'))
|
2606
|
+
|
2607
|
+
@validate_arguments
|
2608
|
+
def invalidate_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
2609
|
+
"""Invalidate cross-project runs selection # noqa: E501
|
2610
|
+
|
2611
|
+
This method makes a synchronous HTTP request by default. To make an
|
2612
|
+
asynchronous HTTP request, please pass async_req=True
|
2613
|
+
|
2614
|
+
>>> thread = api.invalidate_team_runs(owner, name, body, async_req=True)
|
2615
|
+
>>> result = thread.get()
|
2616
|
+
|
2617
|
+
:param owner: Owner of the namespace (required)
|
2618
|
+
:type owner: str
|
2619
|
+
:param name: Entity under namespace (required)
|
2620
|
+
:type name: str
|
2621
|
+
:param body: Uuids of the entities (required)
|
2622
|
+
:type body: V1Uuids
|
2623
|
+
:param async_req: Whether to execute the request asynchronously.
|
2624
|
+
:type async_req: bool, optional
|
2625
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2626
|
+
be returned without reading/decoding response
|
2627
|
+
data. Default is True.
|
2628
|
+
:type _preload_content: bool, optional
|
2629
|
+
:param _request_timeout: timeout setting for this request. If one
|
2630
|
+
number provided, it will be total request
|
2631
|
+
timeout. It can also be a pair (tuple) of
|
2632
|
+
(connection, read) timeouts.
|
2633
|
+
:return: Returns the result object.
|
2634
|
+
If the method is called asynchronously,
|
2635
|
+
returns the request thread.
|
2636
|
+
:rtype: None
|
2637
|
+
"""
|
2638
|
+
kwargs['_return_http_data_only'] = True
|
2639
|
+
return self.invalidate_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
2640
|
+
|
2641
|
+
@validate_arguments
|
2642
|
+
def invalidate_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
2643
|
+
"""Invalidate cross-project runs selection # noqa: E501
|
2644
|
+
|
2645
|
+
This method makes a synchronous HTTP request by default. To make an
|
2646
|
+
asynchronous HTTP request, please pass async_req=True
|
2647
|
+
|
2648
|
+
>>> thread = api.invalidate_team_runs_with_http_info(owner, name, body, async_req=True)
|
2649
|
+
>>> result = thread.get()
|
2650
|
+
|
2651
|
+
:param owner: Owner of the namespace (required)
|
2652
|
+
:type owner: str
|
2653
|
+
:param name: Entity under namespace (required)
|
2654
|
+
:type name: str
|
2655
|
+
:param body: Uuids of the entities (required)
|
2656
|
+
:type body: V1Uuids
|
2657
|
+
:param async_req: Whether to execute the request asynchronously.
|
2658
|
+
:type async_req: bool, optional
|
2659
|
+
:param _return_http_data_only: response data without head status code
|
2660
|
+
and headers
|
2661
|
+
:type _return_http_data_only: bool, optional
|
2662
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2663
|
+
be returned without reading/decoding response
|
2664
|
+
data. Default is True.
|
2665
|
+
:type _preload_content: bool, optional
|
2666
|
+
:param _request_timeout: timeout setting for this request. If one
|
2667
|
+
number provided, it will be total request
|
2668
|
+
timeout. It can also be a pair (tuple) of
|
2669
|
+
(connection, read) timeouts.
|
2670
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2671
|
+
request; this effectively ignores the authentication
|
2672
|
+
in the spec for a single request.
|
2673
|
+
:type _request_auth: dict, optional
|
2674
|
+
:type _content_type: string, optional: force content-type for the request
|
2675
|
+
:return: Returns the result object.
|
2676
|
+
If the method is called asynchronously,
|
2677
|
+
returns the request thread.
|
2678
|
+
:rtype: None
|
2679
|
+
"""
|
2680
|
+
|
2681
|
+
_params = locals()
|
2682
|
+
|
2683
|
+
_all_params = [
|
2684
|
+
'owner',
|
2685
|
+
'name',
|
2686
|
+
'body'
|
2687
|
+
]
|
2688
|
+
_all_params.extend(
|
2689
|
+
[
|
2690
|
+
'async_req',
|
2691
|
+
'_return_http_data_only',
|
2692
|
+
'_preload_content',
|
2693
|
+
'_request_timeout',
|
2694
|
+
'_request_auth',
|
2695
|
+
'_content_type',
|
2696
|
+
'_headers'
|
2697
|
+
]
|
2698
|
+
)
|
2699
|
+
|
2700
|
+
# validate the arguments
|
2701
|
+
for _key, _val in _params['kwargs'].items():
|
2702
|
+
if _key not in _all_params:
|
2703
|
+
raise ApiTypeError(
|
2704
|
+
"Got an unexpected keyword argument '%s'"
|
2705
|
+
" to method invalidate_team_runs" % _key
|
2706
|
+
)
|
2707
|
+
_params[_key] = _val
|
2708
|
+
del _params['kwargs']
|
2709
|
+
|
2710
|
+
_collection_formats = {}
|
2711
|
+
|
2712
|
+
# process the path parameters
|
2713
|
+
_path_params = {}
|
2714
|
+
if _params['owner']:
|
2715
|
+
_path_params['owner'] = _params['owner']
|
2716
|
+
|
2717
|
+
if _params['name']:
|
2718
|
+
_path_params['name'] = _params['name']
|
2719
|
+
|
2720
|
+
|
2721
|
+
# process the query parameters
|
2722
|
+
_query_params = []
|
2723
|
+
# process the header parameters
|
2724
|
+
_header_params = dict(_params.get('_headers', {}))
|
2725
|
+
# process the form parameters
|
2726
|
+
_form_params = []
|
2727
|
+
_files = {}
|
2728
|
+
# process the body parameter
|
2729
|
+
_body_params = None
|
2730
|
+
if _params['body']:
|
2731
|
+
_body_params = _params['body']
|
2732
|
+
|
2733
|
+
# set the HTTP header `Accept`
|
2734
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2735
|
+
['application/json']) # noqa: E501
|
2736
|
+
|
2737
|
+
# set the HTTP header `Content-Type`
|
2738
|
+
_content_types_list = _params.get('_content_type',
|
2739
|
+
self.api_client.select_header_content_type(
|
2740
|
+
['application/json']))
|
2741
|
+
if _content_types_list:
|
2742
|
+
_header_params['Content-Type'] = _content_types_list
|
2743
|
+
|
2744
|
+
# authentication setting
|
2745
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2746
|
+
|
2747
|
+
_response_types_map = {}
|
2748
|
+
|
2749
|
+
return self.api_client.call_api(
|
2750
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/invalidate', 'POST',
|
2751
|
+
_path_params,
|
2752
|
+
_query_params,
|
2753
|
+
_header_params,
|
2754
|
+
body=_body_params,
|
2755
|
+
post_params=_form_params,
|
2756
|
+
files=_files,
|
2757
|
+
response_types_map=_response_types_map,
|
2758
|
+
auth_settings=_auth_settings,
|
2759
|
+
async_req=_params.get('async_req'),
|
2760
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2761
|
+
_preload_content=_params.get('_preload_content', True),
|
2762
|
+
_request_timeout=_params.get('_request_timeout'),
|
2763
|
+
collection_formats=_collection_formats,
|
2764
|
+
_request_auth=_params.get('_request_auth'))
|
2765
|
+
|
2766
|
+
@validate_arguments
|
2767
|
+
def list_team_members(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTeamMembersResponse: # noqa: E501
|
2768
|
+
"""Get team members # noqa: E501
|
2769
|
+
|
2770
|
+
This method makes a synchronous HTTP request by default. To make an
|
2771
|
+
asynchronous HTTP request, please pass async_req=True
|
2772
|
+
|
2773
|
+
>>> thread = api.list_team_members(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2774
|
+
>>> result = thread.get()
|
2775
|
+
|
2776
|
+
:param owner: Owner of the namespace (required)
|
2777
|
+
:type owner: str
|
2778
|
+
:param name: Entity managing the resource (required)
|
2779
|
+
:type name: str
|
2780
|
+
:param offset: Pagination offset.
|
2781
|
+
:type offset: int
|
2782
|
+
:param limit: Limit size.
|
2783
|
+
:type limit: int
|
2784
|
+
:param sort: Sort to order the search.
|
2785
|
+
:type sort: str
|
2786
|
+
:param query: Query filter the search.
|
2787
|
+
:type query: str
|
2788
|
+
:param bookmarks: Filter by bookmarks.
|
2789
|
+
:type bookmarks: bool
|
2790
|
+
:param mode: Mode of the search.
|
2791
|
+
:type mode: str
|
2792
|
+
:param no_page: No pagination.
|
2793
|
+
:type no_page: bool
|
2794
|
+
:param async_req: Whether to execute the request asynchronously.
|
2795
|
+
:type async_req: bool, optional
|
2796
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2797
|
+
be returned without reading/decoding response
|
2798
|
+
data. Default is True.
|
2799
|
+
:type _preload_content: bool, optional
|
2800
|
+
:param _request_timeout: timeout setting for this request. If one
|
2801
|
+
number provided, it will be total request
|
2802
|
+
timeout. It can also be a pair (tuple) of
|
2803
|
+
(connection, read) timeouts.
|
2804
|
+
:return: Returns the result object.
|
2805
|
+
If the method is called asynchronously,
|
2806
|
+
returns the request thread.
|
2807
|
+
:rtype: V1ListTeamMembersResponse
|
2808
|
+
"""
|
2809
|
+
kwargs['_return_http_data_only'] = True
|
2810
|
+
return self.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
2811
|
+
|
2812
|
+
@validate_arguments
|
2813
|
+
def list_team_members_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity managing the resource")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
2814
|
+
"""Get team members # noqa: E501
|
2815
|
+
|
2816
|
+
This method makes a synchronous HTTP request by default. To make an
|
2817
|
+
asynchronous HTTP request, please pass async_req=True
|
2818
|
+
|
2819
|
+
>>> thread = api.list_team_members_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2820
|
+
>>> result = thread.get()
|
2821
|
+
|
2822
|
+
:param owner: Owner of the namespace (required)
|
2823
|
+
:type owner: str
|
2824
|
+
:param name: Entity managing the resource (required)
|
2825
|
+
:type name: str
|
2826
|
+
:param offset: Pagination offset.
|
2827
|
+
:type offset: int
|
2828
|
+
:param limit: Limit size.
|
2829
|
+
:type limit: int
|
2830
|
+
:param sort: Sort to order the search.
|
2831
|
+
:type sort: str
|
2832
|
+
:param query: Query filter the search.
|
2833
|
+
:type query: str
|
2834
|
+
:param bookmarks: Filter by bookmarks.
|
2835
|
+
:type bookmarks: bool
|
2836
|
+
:param mode: Mode of the search.
|
2837
|
+
:type mode: str
|
2838
|
+
:param no_page: No pagination.
|
2839
|
+
:type no_page: bool
|
2840
|
+
:param async_req: Whether to execute the request asynchronously.
|
2841
|
+
:type async_req: bool, optional
|
2842
|
+
:param _return_http_data_only: response data without head status code
|
2843
|
+
and headers
|
2844
|
+
:type _return_http_data_only: bool, optional
|
2845
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
2846
|
+
be returned without reading/decoding response
|
2847
|
+
data. Default is True.
|
2848
|
+
:type _preload_content: bool, optional
|
2849
|
+
:param _request_timeout: timeout setting for this request. If one
|
2850
|
+
number provided, it will be total request
|
2851
|
+
timeout. It can also be a pair (tuple) of
|
2852
|
+
(connection, read) timeouts.
|
2853
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2854
|
+
request; this effectively ignores the authentication
|
2855
|
+
in the spec for a single request.
|
2856
|
+
:type _request_auth: dict, optional
|
2857
|
+
:type _content_type: string, optional: force content-type for the request
|
2858
|
+
:return: Returns the result object.
|
2859
|
+
If the method is called asynchronously,
|
2860
|
+
returns the request thread.
|
2861
|
+
:rtype: tuple(V1ListTeamMembersResponse, status_code(int), headers(HTTPHeaderDict))
|
2862
|
+
"""
|
2863
|
+
|
2864
|
+
_params = locals()
|
2865
|
+
|
2866
|
+
_all_params = [
|
2867
|
+
'owner',
|
2868
|
+
'name',
|
2869
|
+
'offset',
|
2870
|
+
'limit',
|
2871
|
+
'sort',
|
2872
|
+
'query',
|
2873
|
+
'bookmarks',
|
2874
|
+
'mode',
|
2875
|
+
'no_page'
|
2876
|
+
]
|
2877
|
+
_all_params.extend(
|
2878
|
+
[
|
2879
|
+
'async_req',
|
2880
|
+
'_return_http_data_only',
|
2881
|
+
'_preload_content',
|
2882
|
+
'_request_timeout',
|
2883
|
+
'_request_auth',
|
2884
|
+
'_content_type',
|
2885
|
+
'_headers'
|
2886
|
+
]
|
2887
|
+
)
|
2888
|
+
|
2889
|
+
# validate the arguments
|
2890
|
+
for _key, _val in _params['kwargs'].items():
|
2891
|
+
if _key not in _all_params:
|
2892
|
+
raise ApiTypeError(
|
2893
|
+
"Got an unexpected keyword argument '%s'"
|
2894
|
+
" to method list_team_members" % _key
|
2895
|
+
)
|
2896
|
+
_params[_key] = _val
|
2897
|
+
del _params['kwargs']
|
2898
|
+
|
2899
|
+
_collection_formats = {}
|
2900
|
+
|
2901
|
+
# process the path parameters
|
2902
|
+
_path_params = {}
|
2903
|
+
if _params['owner']:
|
2904
|
+
_path_params['owner'] = _params['owner']
|
2905
|
+
|
2906
|
+
if _params['name']:
|
2907
|
+
_path_params['name'] = _params['name']
|
2908
|
+
|
2909
|
+
|
2910
|
+
# process the query parameters
|
2911
|
+
_query_params = []
|
2912
|
+
if _params.get('offset') is not None: # noqa: E501
|
2913
|
+
_query_params.append(('offset', _params['offset']))
|
2914
|
+
|
2915
|
+
if _params.get('limit') is not None: # noqa: E501
|
2916
|
+
_query_params.append(('limit', _params['limit']))
|
2917
|
+
|
2918
|
+
if _params.get('sort') is not None: # noqa: E501
|
2919
|
+
_query_params.append(('sort', _params['sort']))
|
2920
|
+
|
2921
|
+
if _params.get('query') is not None: # noqa: E501
|
2922
|
+
_query_params.append(('query', _params['query']))
|
2923
|
+
|
2924
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
2925
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
2926
|
+
|
2927
|
+
if _params.get('mode') is not None: # noqa: E501
|
2928
|
+
_query_params.append(('mode', _params['mode']))
|
2929
|
+
|
2930
|
+
if _params.get('no_page') is not None: # noqa: E501
|
2931
|
+
_query_params.append(('no_page', _params['no_page']))
|
2932
|
+
|
2933
|
+
# process the header parameters
|
2934
|
+
_header_params = dict(_params.get('_headers', {}))
|
2935
|
+
# process the form parameters
|
2936
|
+
_form_params = []
|
2937
|
+
_files = {}
|
2938
|
+
# process the body parameter
|
2939
|
+
_body_params = None
|
2940
|
+
# set the HTTP header `Accept`
|
2941
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2942
|
+
['application/json']) # noqa: E501
|
2943
|
+
|
2944
|
+
# authentication setting
|
2945
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
2946
|
+
|
2947
|
+
_response_types_map = {
|
2948
|
+
'200': "V1ListTeamMembersResponse",
|
2949
|
+
'204': "object",
|
2950
|
+
'403': "object",
|
2951
|
+
'404': "object",
|
2952
|
+
}
|
2953
|
+
|
2954
|
+
return self.api_client.call_api(
|
2955
|
+
'/api/v1/orgs/{owner}/teams/{name}/members', 'GET',
|
2956
|
+
_path_params,
|
2957
|
+
_query_params,
|
2958
|
+
_header_params,
|
2959
|
+
body=_body_params,
|
2960
|
+
post_params=_form_params,
|
2961
|
+
files=_files,
|
2962
|
+
response_types_map=_response_types_map,
|
2963
|
+
auth_settings=_auth_settings,
|
2964
|
+
async_req=_params.get('async_req'),
|
2965
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2966
|
+
_preload_content=_params.get('_preload_content', True),
|
2967
|
+
_request_timeout=_params.get('_request_timeout'),
|
2968
|
+
collection_formats=_collection_formats,
|
2969
|
+
_request_auth=_params.get('_request_auth'))
|
2970
|
+
|
2971
|
+
@validate_arguments
|
2972
|
+
def list_team_names(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTeamsResponse: # noqa: E501
|
2973
|
+
"""List teams names # noqa: E501
|
2974
|
+
|
2975
|
+
This method makes a synchronous HTTP request by default. To make an
|
2976
|
+
asynchronous HTTP request, please pass async_req=True
|
2977
|
+
|
2978
|
+
>>> thread = api.list_team_names(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
2979
|
+
>>> result = thread.get()
|
2980
|
+
|
2981
|
+
:param owner: Owner of the namespace (required)
|
2982
|
+
:type owner: str
|
2983
|
+
:param offset: Pagination offset.
|
2984
|
+
:type offset: int
|
2985
|
+
:param limit: Limit size.
|
2986
|
+
:type limit: int
|
2987
|
+
:param sort: Sort to order the search.
|
2988
|
+
:type sort: str
|
2989
|
+
:param query: Query filter the search.
|
2990
|
+
:type query: str
|
2991
|
+
:param bookmarks: Filter by bookmarks.
|
2992
|
+
:type bookmarks: bool
|
2993
|
+
:param mode: Mode of the search.
|
2994
|
+
:type mode: str
|
2995
|
+
:param no_page: No pagination.
|
2996
|
+
:type no_page: bool
|
2997
|
+
:param async_req: Whether to execute the request asynchronously.
|
2998
|
+
:type async_req: bool, optional
|
2999
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3000
|
+
be returned without reading/decoding response
|
3001
|
+
data. Default is True.
|
3002
|
+
:type _preload_content: bool, optional
|
3003
|
+
:param _request_timeout: timeout setting for this request. If one
|
3004
|
+
number provided, it will be total request
|
3005
|
+
timeout. It can also be a pair (tuple) of
|
3006
|
+
(connection, read) timeouts.
|
3007
|
+
:return: Returns the result object.
|
3008
|
+
If the method is called asynchronously,
|
3009
|
+
returns the request thread.
|
3010
|
+
:rtype: V1ListTeamsResponse
|
3011
|
+
"""
|
3012
|
+
kwargs['_return_http_data_only'] = True
|
3013
|
+
return self.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
3014
|
+
|
3015
|
+
@validate_arguments
|
3016
|
+
def list_team_names_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
3017
|
+
"""List teams names # noqa: E501
|
3018
|
+
|
3019
|
+
This method makes a synchronous HTTP request by default. To make an
|
3020
|
+
asynchronous HTTP request, please pass async_req=True
|
3021
|
+
|
3022
|
+
>>> thread = api.list_team_names_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3023
|
+
>>> result = thread.get()
|
3024
|
+
|
3025
|
+
:param owner: Owner of the namespace (required)
|
3026
|
+
:type owner: str
|
3027
|
+
:param offset: Pagination offset.
|
3028
|
+
:type offset: int
|
3029
|
+
:param limit: Limit size.
|
3030
|
+
:type limit: int
|
3031
|
+
:param sort: Sort to order the search.
|
3032
|
+
:type sort: str
|
3033
|
+
:param query: Query filter the search.
|
3034
|
+
:type query: str
|
3035
|
+
:param bookmarks: Filter by bookmarks.
|
3036
|
+
:type bookmarks: bool
|
3037
|
+
:param mode: Mode of the search.
|
3038
|
+
:type mode: str
|
3039
|
+
:param no_page: No pagination.
|
3040
|
+
:type no_page: bool
|
3041
|
+
:param async_req: Whether to execute the request asynchronously.
|
3042
|
+
:type async_req: bool, optional
|
3043
|
+
:param _return_http_data_only: response data without head status code
|
3044
|
+
and headers
|
3045
|
+
:type _return_http_data_only: bool, optional
|
3046
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3047
|
+
be returned without reading/decoding response
|
3048
|
+
data. Default is True.
|
3049
|
+
:type _preload_content: bool, optional
|
3050
|
+
:param _request_timeout: timeout setting for this request. If one
|
3051
|
+
number provided, it will be total request
|
3052
|
+
timeout. It can also be a pair (tuple) of
|
3053
|
+
(connection, read) timeouts.
|
3054
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3055
|
+
request; this effectively ignores the authentication
|
3056
|
+
in the spec for a single request.
|
3057
|
+
:type _request_auth: dict, optional
|
3058
|
+
:type _content_type: string, optional: force content-type for the request
|
3059
|
+
:return: Returns the result object.
|
3060
|
+
If the method is called asynchronously,
|
3061
|
+
returns the request thread.
|
3062
|
+
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
3063
|
+
"""
|
3064
|
+
|
3065
|
+
_params = locals()
|
3066
|
+
|
3067
|
+
_all_params = [
|
3068
|
+
'owner',
|
3069
|
+
'offset',
|
3070
|
+
'limit',
|
3071
|
+
'sort',
|
3072
|
+
'query',
|
3073
|
+
'bookmarks',
|
3074
|
+
'mode',
|
3075
|
+
'no_page'
|
3076
|
+
]
|
3077
|
+
_all_params.extend(
|
3078
|
+
[
|
3079
|
+
'async_req',
|
3080
|
+
'_return_http_data_only',
|
3081
|
+
'_preload_content',
|
3082
|
+
'_request_timeout',
|
3083
|
+
'_request_auth',
|
3084
|
+
'_content_type',
|
3085
|
+
'_headers'
|
3086
|
+
]
|
3087
|
+
)
|
3088
|
+
|
3089
|
+
# validate the arguments
|
3090
|
+
for _key, _val in _params['kwargs'].items():
|
3091
|
+
if _key not in _all_params:
|
3092
|
+
raise ApiTypeError(
|
3093
|
+
"Got an unexpected keyword argument '%s'"
|
3094
|
+
" to method list_team_names" % _key
|
3095
|
+
)
|
3096
|
+
_params[_key] = _val
|
3097
|
+
del _params['kwargs']
|
3098
|
+
|
3099
|
+
_collection_formats = {}
|
3100
|
+
|
3101
|
+
# process the path parameters
|
3102
|
+
_path_params = {}
|
3103
|
+
if _params['owner']:
|
3104
|
+
_path_params['owner'] = _params['owner']
|
3105
|
+
|
3106
|
+
|
3107
|
+
# process the query parameters
|
3108
|
+
_query_params = []
|
3109
|
+
if _params.get('offset') is not None: # noqa: E501
|
3110
|
+
_query_params.append(('offset', _params['offset']))
|
3111
|
+
|
3112
|
+
if _params.get('limit') is not None: # noqa: E501
|
3113
|
+
_query_params.append(('limit', _params['limit']))
|
3114
|
+
|
3115
|
+
if _params.get('sort') is not None: # noqa: E501
|
3116
|
+
_query_params.append(('sort', _params['sort']))
|
3117
|
+
|
3118
|
+
if _params.get('query') is not None: # noqa: E501
|
3119
|
+
_query_params.append(('query', _params['query']))
|
3120
|
+
|
3121
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
3122
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
3123
|
+
|
3124
|
+
if _params.get('mode') is not None: # noqa: E501
|
3125
|
+
_query_params.append(('mode', _params['mode']))
|
3126
|
+
|
3127
|
+
if _params.get('no_page') is not None: # noqa: E501
|
3128
|
+
_query_params.append(('no_page', _params['no_page']))
|
3129
|
+
|
3130
|
+
# process the header parameters
|
3131
|
+
_header_params = dict(_params.get('_headers', {}))
|
3132
|
+
# process the form parameters
|
3133
|
+
_form_params = []
|
3134
|
+
_files = {}
|
3135
|
+
# process the body parameter
|
3136
|
+
_body_params = None
|
3137
|
+
# set the HTTP header `Accept`
|
3138
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3139
|
+
['application/json']) # noqa: E501
|
3140
|
+
|
3141
|
+
# authentication setting
|
3142
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
3143
|
+
|
3144
|
+
_response_types_map = {
|
3145
|
+
'200': "V1ListTeamsResponse",
|
3146
|
+
'204': "object",
|
3147
|
+
'403': "object",
|
3148
|
+
'404': "object",
|
3149
|
+
}
|
3150
|
+
|
3151
|
+
return self.api_client.call_api(
|
3152
|
+
'/api/v1/orgs/{owner}/teams/names', 'GET',
|
3153
|
+
_path_params,
|
3154
|
+
_query_params,
|
3155
|
+
_header_params,
|
3156
|
+
body=_body_params,
|
3157
|
+
post_params=_form_params,
|
3158
|
+
files=_files,
|
3159
|
+
response_types_map=_response_types_map,
|
3160
|
+
auth_settings=_auth_settings,
|
3161
|
+
async_req=_params.get('async_req'),
|
3162
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
3163
|
+
_preload_content=_params.get('_preload_content', True),
|
3164
|
+
_request_timeout=_params.get('_request_timeout'),
|
3165
|
+
collection_formats=_collection_formats,
|
3166
|
+
_request_auth=_params.get('_request_auth'))
|
3167
|
+
|
3168
|
+
@validate_arguments
|
3169
|
+
def list_teams(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs) -> V1ListTeamsResponse: # noqa: E501
|
3170
|
+
"""List teams # noqa: E501
|
3171
|
+
|
3172
|
+
This method makes a synchronous HTTP request by default. To make an
|
3173
|
+
asynchronous HTTP request, please pass async_req=True
|
3174
|
+
|
3175
|
+
>>> thread = api.list_teams(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3176
|
+
>>> result = thread.get()
|
3177
|
+
|
3178
|
+
:param owner: Owner of the namespace (required)
|
3179
|
+
:type owner: str
|
3180
|
+
:param offset: Pagination offset.
|
3181
|
+
:type offset: int
|
3182
|
+
:param limit: Limit size.
|
3183
|
+
:type limit: int
|
3184
|
+
:param sort: Sort to order the search.
|
3185
|
+
:type sort: str
|
3186
|
+
:param query: Query filter the search.
|
3187
|
+
:type query: str
|
3188
|
+
:param bookmarks: Filter by bookmarks.
|
3189
|
+
:type bookmarks: bool
|
3190
|
+
:param mode: Mode of the search.
|
3191
|
+
:type mode: str
|
3192
|
+
:param no_page: No pagination.
|
3193
|
+
:type no_page: bool
|
3194
|
+
:param async_req: Whether to execute the request asynchronously.
|
3195
|
+
:type async_req: bool, optional
|
3196
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3197
|
+
be returned without reading/decoding response
|
3198
|
+
data. Default is True.
|
3199
|
+
:type _preload_content: bool, optional
|
3200
|
+
:param _request_timeout: timeout setting for this request. If one
|
3201
|
+
number provided, it will be total request
|
3202
|
+
timeout. It can also be a pair (tuple) of
|
3203
|
+
(connection, read) timeouts.
|
3204
|
+
:return: Returns the result object.
|
3205
|
+
If the method is called asynchronously,
|
3206
|
+
returns the request thread.
|
3207
|
+
:rtype: V1ListTeamsResponse
|
3208
|
+
"""
|
3209
|
+
kwargs['_return_http_data_only'] = True
|
3210
|
+
return self.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs) # noqa: E501
|
3211
|
+
|
3212
|
+
@validate_arguments
|
3213
|
+
def list_teams_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], offset : Annotated[Optional[StrictInt], Field(description="Pagination offset.")] = None, limit : Annotated[Optional[StrictInt], Field(description="Limit size.")] = None, sort : Annotated[Optional[StrictStr], Field(description="Sort to order the search.")] = None, query : Annotated[Optional[StrictStr], Field(description="Query filter the search.")] = None, bookmarks : Annotated[Optional[StrictBool], Field(description="Filter by bookmarks.")] = None, mode : Annotated[Optional[StrictStr], Field(description="Mode of the search.")] = None, no_page : Annotated[Optional[StrictBool], Field(description="No pagination.")] = None, **kwargs): # noqa: E501
|
3214
|
+
"""List teams # noqa: E501
|
3215
|
+
|
3216
|
+
This method makes a synchronous HTTP request by default. To make an
|
3217
|
+
asynchronous HTTP request, please pass async_req=True
|
3218
|
+
|
3219
|
+
>>> thread = api.list_teams_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3220
|
+
>>> result = thread.get()
|
3221
|
+
|
3222
|
+
:param owner: Owner of the namespace (required)
|
3223
|
+
:type owner: str
|
3224
|
+
:param offset: Pagination offset.
|
3225
|
+
:type offset: int
|
3226
|
+
:param limit: Limit size.
|
3227
|
+
:type limit: int
|
3228
|
+
:param sort: Sort to order the search.
|
3229
|
+
:type sort: str
|
3230
|
+
:param query: Query filter the search.
|
3231
|
+
:type query: str
|
3232
|
+
:param bookmarks: Filter by bookmarks.
|
3233
|
+
:type bookmarks: bool
|
3234
|
+
:param mode: Mode of the search.
|
3235
|
+
:type mode: str
|
3236
|
+
:param no_page: No pagination.
|
3237
|
+
:type no_page: bool
|
3238
|
+
:param async_req: Whether to execute the request asynchronously.
|
3239
|
+
:type async_req: bool, optional
|
3240
|
+
:param _return_http_data_only: response data without head status code
|
3241
|
+
and headers
|
3242
|
+
:type _return_http_data_only: bool, optional
|
3243
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3244
|
+
be returned without reading/decoding response
|
3245
|
+
data. Default is True.
|
3246
|
+
:type _preload_content: bool, optional
|
3247
|
+
:param _request_timeout: timeout setting for this request. If one
|
3248
|
+
number provided, it will be total request
|
3249
|
+
timeout. It can also be a pair (tuple) of
|
3250
|
+
(connection, read) timeouts.
|
3251
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3252
|
+
request; this effectively ignores the authentication
|
3253
|
+
in the spec for a single request.
|
3254
|
+
:type _request_auth: dict, optional
|
3255
|
+
:type _content_type: string, optional: force content-type for the request
|
3256
|
+
:return: Returns the result object.
|
3257
|
+
If the method is called asynchronously,
|
3258
|
+
returns the request thread.
|
3259
|
+
:rtype: tuple(V1ListTeamsResponse, status_code(int), headers(HTTPHeaderDict))
|
3260
|
+
"""
|
3261
|
+
|
3262
|
+
_params = locals()
|
3263
|
+
|
3264
|
+
_all_params = [
|
3265
|
+
'owner',
|
3266
|
+
'offset',
|
3267
|
+
'limit',
|
3268
|
+
'sort',
|
3269
|
+
'query',
|
3270
|
+
'bookmarks',
|
3271
|
+
'mode',
|
3272
|
+
'no_page'
|
3273
|
+
]
|
3274
|
+
_all_params.extend(
|
3275
|
+
[
|
3276
|
+
'async_req',
|
3277
|
+
'_return_http_data_only',
|
3278
|
+
'_preload_content',
|
3279
|
+
'_request_timeout',
|
3280
|
+
'_request_auth',
|
3281
|
+
'_content_type',
|
3282
|
+
'_headers'
|
3283
|
+
]
|
3284
|
+
)
|
3285
|
+
|
3286
|
+
# validate the arguments
|
3287
|
+
for _key, _val in _params['kwargs'].items():
|
3288
|
+
if _key not in _all_params:
|
3289
|
+
raise ApiTypeError(
|
3290
|
+
"Got an unexpected keyword argument '%s'"
|
3291
|
+
" to method list_teams" % _key
|
3292
|
+
)
|
3293
|
+
_params[_key] = _val
|
3294
|
+
del _params['kwargs']
|
3295
|
+
|
3296
|
+
_collection_formats = {}
|
3297
|
+
|
3298
|
+
# process the path parameters
|
3299
|
+
_path_params = {}
|
3300
|
+
if _params['owner']:
|
3301
|
+
_path_params['owner'] = _params['owner']
|
3302
|
+
|
3303
|
+
|
3304
|
+
# process the query parameters
|
3305
|
+
_query_params = []
|
3306
|
+
if _params.get('offset') is not None: # noqa: E501
|
3307
|
+
_query_params.append(('offset', _params['offset']))
|
3308
|
+
|
3309
|
+
if _params.get('limit') is not None: # noqa: E501
|
3310
|
+
_query_params.append(('limit', _params['limit']))
|
3311
|
+
|
3312
|
+
if _params.get('sort') is not None: # noqa: E501
|
3313
|
+
_query_params.append(('sort', _params['sort']))
|
3314
|
+
|
3315
|
+
if _params.get('query') is not None: # noqa: E501
|
3316
|
+
_query_params.append(('query', _params['query']))
|
3317
|
+
|
3318
|
+
if _params.get('bookmarks') is not None: # noqa: E501
|
3319
|
+
_query_params.append(('bookmarks', _params['bookmarks']))
|
3320
|
+
|
3321
|
+
if _params.get('mode') is not None: # noqa: E501
|
3322
|
+
_query_params.append(('mode', _params['mode']))
|
3323
|
+
|
3324
|
+
if _params.get('no_page') is not None: # noqa: E501
|
3325
|
+
_query_params.append(('no_page', _params['no_page']))
|
3326
|
+
|
3327
|
+
# process the header parameters
|
3328
|
+
_header_params = dict(_params.get('_headers', {}))
|
3329
|
+
# process the form parameters
|
3330
|
+
_form_params = []
|
3331
|
+
_files = {}
|
3332
|
+
# process the body parameter
|
3333
|
+
_body_params = None
|
3334
|
+
# set the HTTP header `Accept`
|
3335
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3336
|
+
['application/json']) # noqa: E501
|
3337
|
+
|
3338
|
+
# authentication setting
|
3339
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
3340
|
+
|
3341
|
+
_response_types_map = {
|
3342
|
+
'200': "V1ListTeamsResponse",
|
3343
|
+
'204': "object",
|
3344
|
+
'403': "object",
|
3345
|
+
'404': "object",
|
3346
|
+
}
|
3347
|
+
|
3348
|
+
return self.api_client.call_api(
|
3349
|
+
'/api/v1/orgs/{owner}/teams', 'GET',
|
3350
|
+
_path_params,
|
3351
|
+
_query_params,
|
3352
|
+
_header_params,
|
3353
|
+
body=_body_params,
|
3354
|
+
post_params=_form_params,
|
3355
|
+
files=_files,
|
3356
|
+
response_types_map=_response_types_map,
|
3357
|
+
auth_settings=_auth_settings,
|
3358
|
+
async_req=_params.get('async_req'),
|
3359
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
3360
|
+
_preload_content=_params.get('_preload_content', True),
|
3361
|
+
_request_timeout=_params.get('_request_timeout'),
|
3362
|
+
collection_formats=_collection_formats,
|
3363
|
+
_request_auth=_params.get('_request_auth'))
|
3364
|
+
|
3365
|
+
@validate_arguments
|
3366
|
+
def patch_team(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs) -> V1Team: # noqa: E501
|
3367
|
+
"""Patch team # noqa: E501
|
3368
|
+
|
3369
|
+
This method makes a synchronous HTTP request by default. To make an
|
3370
|
+
asynchronous HTTP request, please pass async_req=True
|
3371
|
+
|
3372
|
+
>>> thread = api.patch_team(owner, team_name, body, async_req=True)
|
3373
|
+
>>> result = thread.get()
|
3374
|
+
|
3375
|
+
:param owner: Owner of the namespace (required)
|
3376
|
+
:type owner: str
|
3377
|
+
:param team_name: Name (required)
|
3378
|
+
:type team_name: str
|
3379
|
+
:param body: Team body (required)
|
3380
|
+
:type body: V1Team
|
3381
|
+
:param async_req: Whether to execute the request asynchronously.
|
3382
|
+
:type async_req: bool, optional
|
3383
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3384
|
+
be returned without reading/decoding response
|
3385
|
+
data. Default is True.
|
3386
|
+
:type _preload_content: bool, optional
|
3387
|
+
:param _request_timeout: timeout setting for this request. If one
|
3388
|
+
number provided, it will be total request
|
3389
|
+
timeout. It can also be a pair (tuple) of
|
3390
|
+
(connection, read) timeouts.
|
3391
|
+
:return: Returns the result object.
|
3392
|
+
If the method is called asynchronously,
|
3393
|
+
returns the request thread.
|
3394
|
+
:rtype: V1Team
|
3395
|
+
"""
|
3396
|
+
kwargs['_return_http_data_only'] = True
|
3397
|
+
return self.patch_team_with_http_info(owner, team_name, body, **kwargs) # noqa: E501
|
3398
|
+
|
3399
|
+
@validate_arguments
|
3400
|
+
def patch_team_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team_name : Annotated[StrictStr, Field(..., description="Name")], body : Annotated[V1Team, Field(..., description="Team body")], **kwargs): # noqa: E501
|
3401
|
+
"""Patch team # noqa: E501
|
3402
|
+
|
3403
|
+
This method makes a synchronous HTTP request by default. To make an
|
3404
|
+
asynchronous HTTP request, please pass async_req=True
|
3405
|
+
|
3406
|
+
>>> thread = api.patch_team_with_http_info(owner, team_name, body, async_req=True)
|
3407
|
+
>>> result = thread.get()
|
3408
|
+
|
3409
|
+
:param owner: Owner of the namespace (required)
|
3410
|
+
:type owner: str
|
3411
|
+
:param team_name: Name (required)
|
3412
|
+
:type team_name: str
|
3413
|
+
:param body: Team body (required)
|
3414
|
+
:type body: V1Team
|
3415
|
+
:param async_req: Whether to execute the request asynchronously.
|
3416
|
+
:type async_req: bool, optional
|
3417
|
+
:param _return_http_data_only: response data without head status code
|
3418
|
+
and headers
|
3419
|
+
:type _return_http_data_only: bool, optional
|
3420
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3421
|
+
be returned without reading/decoding response
|
3422
|
+
data. Default is True.
|
3423
|
+
:type _preload_content: bool, optional
|
3424
|
+
:param _request_timeout: timeout setting for this request. If one
|
3425
|
+
number provided, it will be total request
|
3426
|
+
timeout. It can also be a pair (tuple) of
|
3427
|
+
(connection, read) timeouts.
|
3428
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3429
|
+
request; this effectively ignores the authentication
|
3430
|
+
in the spec for a single request.
|
3431
|
+
:type _request_auth: dict, optional
|
3432
|
+
:type _content_type: string, optional: force content-type for the request
|
3433
|
+
:return: Returns the result object.
|
3434
|
+
If the method is called asynchronously,
|
3435
|
+
returns the request thread.
|
3436
|
+
:rtype: tuple(V1Team, status_code(int), headers(HTTPHeaderDict))
|
3437
|
+
"""
|
3438
|
+
|
3439
|
+
_params = locals()
|
3440
|
+
|
3441
|
+
_all_params = [
|
3442
|
+
'owner',
|
3443
|
+
'team_name',
|
3444
|
+
'body'
|
3445
|
+
]
|
3446
|
+
_all_params.extend(
|
3447
|
+
[
|
3448
|
+
'async_req',
|
3449
|
+
'_return_http_data_only',
|
3450
|
+
'_preload_content',
|
3451
|
+
'_request_timeout',
|
3452
|
+
'_request_auth',
|
3453
|
+
'_content_type',
|
3454
|
+
'_headers'
|
3455
|
+
]
|
3456
|
+
)
|
3457
|
+
|
3458
|
+
# validate the arguments
|
3459
|
+
for _key, _val in _params['kwargs'].items():
|
3460
|
+
if _key not in _all_params:
|
3461
|
+
raise ApiTypeError(
|
3462
|
+
"Got an unexpected keyword argument '%s'"
|
3463
|
+
" to method patch_team" % _key
|
3464
|
+
)
|
3465
|
+
_params[_key] = _val
|
3466
|
+
del _params['kwargs']
|
3467
|
+
|
3468
|
+
_collection_formats = {}
|
3469
|
+
|
3470
|
+
# process the path parameters
|
3471
|
+
_path_params = {}
|
3472
|
+
if _params['owner']:
|
3473
|
+
_path_params['owner'] = _params['owner']
|
3474
|
+
|
3475
|
+
if _params['team_name']:
|
3476
|
+
_path_params['team.name'] = _params['team_name']
|
3477
|
+
|
3478
|
+
|
3479
|
+
# process the query parameters
|
3480
|
+
_query_params = []
|
3481
|
+
# process the header parameters
|
3482
|
+
_header_params = dict(_params.get('_headers', {}))
|
3483
|
+
# process the form parameters
|
3484
|
+
_form_params = []
|
3485
|
+
_files = {}
|
3486
|
+
# process the body parameter
|
3487
|
+
_body_params = None
|
3488
|
+
if _params['body']:
|
3489
|
+
_body_params = _params['body']
|
3490
|
+
|
3491
|
+
# set the HTTP header `Accept`
|
3492
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3493
|
+
['application/json']) # noqa: E501
|
3494
|
+
|
3495
|
+
# set the HTTP header `Content-Type`
|
3496
|
+
_content_types_list = _params.get('_content_type',
|
3497
|
+
self.api_client.select_header_content_type(
|
3498
|
+
['application/json']))
|
3499
|
+
if _content_types_list:
|
3500
|
+
_header_params['Content-Type'] = _content_types_list
|
3501
|
+
|
3502
|
+
# authentication setting
|
3503
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
3504
|
+
|
3505
|
+
_response_types_map = {
|
3506
|
+
'200': "V1Team",
|
3507
|
+
'204': "object",
|
3508
|
+
'403': "object",
|
3509
|
+
'404': "object",
|
3510
|
+
}
|
3511
|
+
|
3512
|
+
return self.api_client.call_api(
|
3513
|
+
'/api/v1/orgs/{owner}/teams/{team.name}', 'PATCH',
|
3514
|
+
_path_params,
|
3515
|
+
_query_params,
|
3516
|
+
_header_params,
|
3517
|
+
body=_body_params,
|
3518
|
+
post_params=_form_params,
|
3519
|
+
files=_files,
|
3520
|
+
response_types_map=_response_types_map,
|
3521
|
+
auth_settings=_auth_settings,
|
3522
|
+
async_req=_params.get('async_req'),
|
3523
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
3524
|
+
_preload_content=_params.get('_preload_content', True),
|
3525
|
+
_request_timeout=_params.get('_request_timeout'),
|
3526
|
+
collection_formats=_collection_formats,
|
3527
|
+
_request_auth=_params.get('_request_auth'))
|
3528
|
+
|
3529
|
+
@validate_arguments
|
3530
|
+
def patch_team_member(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs) -> V1TeamMember: # noqa: E501
|
3531
|
+
"""Patch team member # noqa: E501
|
3532
|
+
|
3533
|
+
This method makes a synchronous HTTP request by default. To make an
|
3534
|
+
asynchronous HTTP request, please pass async_req=True
|
3535
|
+
|
3536
|
+
>>> thread = api.patch_team_member(owner, team, member_user, body, async_req=True)
|
3537
|
+
>>> result = thread.get()
|
3538
|
+
|
3539
|
+
:param owner: Owner of the namespace (required)
|
3540
|
+
:type owner: str
|
3541
|
+
:param team: Team (required)
|
3542
|
+
:type team: str
|
3543
|
+
:param member_user: User (required)
|
3544
|
+
:type member_user: str
|
3545
|
+
:param body: Team body (required)
|
3546
|
+
:type body: V1TeamMember
|
3547
|
+
:param async_req: Whether to execute the request asynchronously.
|
3548
|
+
:type async_req: bool, optional
|
3549
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3550
|
+
be returned without reading/decoding response
|
3551
|
+
data. Default is True.
|
3552
|
+
:type _preload_content: bool, optional
|
3553
|
+
:param _request_timeout: timeout setting for this request. If one
|
3554
|
+
number provided, it will be total request
|
3555
|
+
timeout. It can also be a pair (tuple) of
|
3556
|
+
(connection, read) timeouts.
|
3557
|
+
:return: Returns the result object.
|
3558
|
+
If the method is called asynchronously,
|
3559
|
+
returns the request thread.
|
3560
|
+
:rtype: V1TeamMember
|
3561
|
+
"""
|
3562
|
+
kwargs['_return_http_data_only'] = True
|
3563
|
+
return self.patch_team_member_with_http_info(owner, team, member_user, body, **kwargs) # noqa: E501
|
3564
|
+
|
3565
|
+
@validate_arguments
|
3566
|
+
def patch_team_member_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], team : Annotated[StrictStr, Field(..., description="Team")], member_user : Annotated[StrictStr, Field(..., description="User")], body : Annotated[V1TeamMember, Field(..., description="Team body")], **kwargs): # noqa: E501
|
3567
|
+
"""Patch team member # noqa: E501
|
3568
|
+
|
3569
|
+
This method makes a synchronous HTTP request by default. To make an
|
3570
|
+
asynchronous HTTP request, please pass async_req=True
|
3571
|
+
|
3572
|
+
>>> thread = api.patch_team_member_with_http_info(owner, team, member_user, body, async_req=True)
|
3573
|
+
>>> result = thread.get()
|
3574
|
+
|
3575
|
+
:param owner: Owner of the namespace (required)
|
3576
|
+
:type owner: str
|
3577
|
+
:param team: Team (required)
|
3578
|
+
:type team: str
|
3579
|
+
:param member_user: User (required)
|
3580
|
+
:type member_user: str
|
3581
|
+
:param body: Team body (required)
|
3582
|
+
:type body: V1TeamMember
|
3583
|
+
:param async_req: Whether to execute the request asynchronously.
|
3584
|
+
:type async_req: bool, optional
|
3585
|
+
:param _return_http_data_only: response data without head status code
|
3586
|
+
and headers
|
3587
|
+
:type _return_http_data_only: bool, optional
|
3588
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3589
|
+
be returned without reading/decoding response
|
3590
|
+
data. Default is True.
|
3591
|
+
:type _preload_content: bool, optional
|
3592
|
+
:param _request_timeout: timeout setting for this request. If one
|
3593
|
+
number provided, it will be total request
|
3594
|
+
timeout. It can also be a pair (tuple) of
|
3595
|
+
(connection, read) timeouts.
|
3596
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3597
|
+
request; this effectively ignores the authentication
|
3598
|
+
in the spec for a single request.
|
3599
|
+
:type _request_auth: dict, optional
|
3600
|
+
:type _content_type: string, optional: force content-type for the request
|
3601
|
+
:return: Returns the result object.
|
3602
|
+
If the method is called asynchronously,
|
3603
|
+
returns the request thread.
|
3604
|
+
:rtype: tuple(V1TeamMember, status_code(int), headers(HTTPHeaderDict))
|
3605
|
+
"""
|
3606
|
+
|
3607
|
+
_params = locals()
|
3608
|
+
|
3609
|
+
_all_params = [
|
3610
|
+
'owner',
|
3611
|
+
'team',
|
3612
|
+
'member_user',
|
3613
|
+
'body'
|
3614
|
+
]
|
3615
|
+
_all_params.extend(
|
3616
|
+
[
|
3617
|
+
'async_req',
|
3618
|
+
'_return_http_data_only',
|
3619
|
+
'_preload_content',
|
3620
|
+
'_request_timeout',
|
3621
|
+
'_request_auth',
|
3622
|
+
'_content_type',
|
3623
|
+
'_headers'
|
3624
|
+
]
|
3625
|
+
)
|
3626
|
+
|
3627
|
+
# validate the arguments
|
3628
|
+
for _key, _val in _params['kwargs'].items():
|
3629
|
+
if _key not in _all_params:
|
3630
|
+
raise ApiTypeError(
|
3631
|
+
"Got an unexpected keyword argument '%s'"
|
3632
|
+
" to method patch_team_member" % _key
|
3633
|
+
)
|
3634
|
+
_params[_key] = _val
|
3635
|
+
del _params['kwargs']
|
3636
|
+
|
3637
|
+
_collection_formats = {}
|
3638
|
+
|
3639
|
+
# process the path parameters
|
3640
|
+
_path_params = {}
|
3641
|
+
if _params['owner']:
|
3642
|
+
_path_params['owner'] = _params['owner']
|
3643
|
+
|
3644
|
+
if _params['team']:
|
3645
|
+
_path_params['team'] = _params['team']
|
3646
|
+
|
3647
|
+
if _params['member_user']:
|
3648
|
+
_path_params['member.user'] = _params['member_user']
|
3649
|
+
|
3650
|
+
|
3651
|
+
# process the query parameters
|
3652
|
+
_query_params = []
|
3653
|
+
# process the header parameters
|
3654
|
+
_header_params = dict(_params.get('_headers', {}))
|
3655
|
+
# process the form parameters
|
3656
|
+
_form_params = []
|
3657
|
+
_files = {}
|
3658
|
+
# process the body parameter
|
3659
|
+
_body_params = None
|
3660
|
+
if _params['body']:
|
3661
|
+
_body_params = _params['body']
|
3662
|
+
|
3663
|
+
# set the HTTP header `Accept`
|
3664
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3665
|
+
['application/json']) # noqa: E501
|
3666
|
+
|
3667
|
+
# set the HTTP header `Content-Type`
|
3668
|
+
_content_types_list = _params.get('_content_type',
|
3669
|
+
self.api_client.select_header_content_type(
|
3670
|
+
['application/json']))
|
3671
|
+
if _content_types_list:
|
3672
|
+
_header_params['Content-Type'] = _content_types_list
|
3673
|
+
|
3674
|
+
# authentication setting
|
3675
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
3676
|
+
|
3677
|
+
_response_types_map = {
|
3678
|
+
'200': "V1TeamMember",
|
3679
|
+
'204': "object",
|
3680
|
+
'403': "object",
|
3681
|
+
'404': "object",
|
3682
|
+
}
|
3683
|
+
|
3684
|
+
return self.api_client.call_api(
|
3685
|
+
'/api/v1/orgs/{owner}/teams/{team}/members/{member.user}', 'PATCH',
|
3686
|
+
_path_params,
|
3687
|
+
_query_params,
|
3688
|
+
_header_params,
|
3689
|
+
body=_body_params,
|
3690
|
+
post_params=_form_params,
|
3691
|
+
files=_files,
|
3692
|
+
response_types_map=_response_types_map,
|
3693
|
+
auth_settings=_auth_settings,
|
3694
|
+
async_req=_params.get('async_req'),
|
3695
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
3696
|
+
_preload_content=_params.get('_preload_content', True),
|
3697
|
+
_request_timeout=_params.get('_request_timeout'),
|
3698
|
+
collection_formats=_collection_formats,
|
3699
|
+
_request_auth=_params.get('_request_auth'))
|
3700
|
+
|
3701
|
+
@validate_arguments
|
3702
|
+
def restore_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
3703
|
+
"""Restore cross-project runs selection # noqa: E501
|
3704
|
+
|
3705
|
+
This method makes a synchronous HTTP request by default. To make an
|
3706
|
+
asynchronous HTTP request, please pass async_req=True
|
3707
|
+
|
3708
|
+
>>> thread = api.restore_team_runs(owner, name, body, async_req=True)
|
3709
|
+
>>> result = thread.get()
|
3710
|
+
|
3711
|
+
:param owner: Owner of the namespace (required)
|
3712
|
+
:type owner: str
|
3713
|
+
:param name: Entity under namespace (required)
|
3714
|
+
:type name: str
|
3715
|
+
:param body: Uuids of the entities (required)
|
3716
|
+
:type body: V1Uuids
|
3717
|
+
:param async_req: Whether to execute the request asynchronously.
|
3718
|
+
:type async_req: bool, optional
|
3719
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3720
|
+
be returned without reading/decoding response
|
3721
|
+
data. Default is True.
|
3722
|
+
:type _preload_content: bool, optional
|
3723
|
+
:param _request_timeout: timeout setting for this request. If one
|
3724
|
+
number provided, it will be total request
|
3725
|
+
timeout. It can also be a pair (tuple) of
|
3726
|
+
(connection, read) timeouts.
|
3727
|
+
:return: Returns the result object.
|
3728
|
+
If the method is called asynchronously,
|
3729
|
+
returns the request thread.
|
3730
|
+
:rtype: None
|
3731
|
+
"""
|
3732
|
+
kwargs['_return_http_data_only'] = True
|
3733
|
+
return self.restore_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
3734
|
+
|
3735
|
+
@validate_arguments
|
3736
|
+
def restore_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
3737
|
+
"""Restore cross-project runs selection # noqa: E501
|
3738
|
+
|
3739
|
+
This method makes a synchronous HTTP request by default. To make an
|
3740
|
+
asynchronous HTTP request, please pass async_req=True
|
3741
|
+
|
3742
|
+
>>> thread = api.restore_team_runs_with_http_info(owner, name, body, async_req=True)
|
3743
|
+
>>> result = thread.get()
|
3744
|
+
|
3745
|
+
:param owner: Owner of the namespace (required)
|
3746
|
+
:type owner: str
|
3747
|
+
:param name: Entity under namespace (required)
|
3748
|
+
:type name: str
|
3749
|
+
:param body: Uuids of the entities (required)
|
3750
|
+
:type body: V1Uuids
|
3751
|
+
:param async_req: Whether to execute the request asynchronously.
|
3752
|
+
:type async_req: bool, optional
|
3753
|
+
:param _return_http_data_only: response data without head status code
|
3754
|
+
and headers
|
3755
|
+
:type _return_http_data_only: bool, optional
|
3756
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3757
|
+
be returned without reading/decoding response
|
3758
|
+
data. Default is True.
|
3759
|
+
:type _preload_content: bool, optional
|
3760
|
+
:param _request_timeout: timeout setting for this request. If one
|
3761
|
+
number provided, it will be total request
|
3762
|
+
timeout. It can also be a pair (tuple) of
|
3763
|
+
(connection, read) timeouts.
|
3764
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3765
|
+
request; this effectively ignores the authentication
|
3766
|
+
in the spec for a single request.
|
3767
|
+
:type _request_auth: dict, optional
|
3768
|
+
:type _content_type: string, optional: force content-type for the request
|
3769
|
+
:return: Returns the result object.
|
3770
|
+
If the method is called asynchronously,
|
3771
|
+
returns the request thread.
|
3772
|
+
:rtype: None
|
3773
|
+
"""
|
3774
|
+
|
3775
|
+
_params = locals()
|
3776
|
+
|
3777
|
+
_all_params = [
|
3778
|
+
'owner',
|
3779
|
+
'name',
|
3780
|
+
'body'
|
3781
|
+
]
|
3782
|
+
_all_params.extend(
|
3783
|
+
[
|
3784
|
+
'async_req',
|
3785
|
+
'_return_http_data_only',
|
3786
|
+
'_preload_content',
|
3787
|
+
'_request_timeout',
|
3788
|
+
'_request_auth',
|
3789
|
+
'_content_type',
|
3790
|
+
'_headers'
|
3791
|
+
]
|
3792
|
+
)
|
3793
|
+
|
3794
|
+
# validate the arguments
|
3795
|
+
for _key, _val in _params['kwargs'].items():
|
3796
|
+
if _key not in _all_params:
|
3797
|
+
raise ApiTypeError(
|
3798
|
+
"Got an unexpected keyword argument '%s'"
|
3799
|
+
" to method restore_team_runs" % _key
|
3800
|
+
)
|
3801
|
+
_params[_key] = _val
|
3802
|
+
del _params['kwargs']
|
3803
|
+
|
3804
|
+
_collection_formats = {}
|
3805
|
+
|
3806
|
+
# process the path parameters
|
3807
|
+
_path_params = {}
|
3808
|
+
if _params['owner']:
|
3809
|
+
_path_params['owner'] = _params['owner']
|
3810
|
+
|
3811
|
+
if _params['name']:
|
3812
|
+
_path_params['name'] = _params['name']
|
3813
|
+
|
3814
|
+
|
3815
|
+
# process the query parameters
|
3816
|
+
_query_params = []
|
3817
|
+
# process the header parameters
|
3818
|
+
_header_params = dict(_params.get('_headers', {}))
|
3819
|
+
# process the form parameters
|
3820
|
+
_form_params = []
|
3821
|
+
_files = {}
|
3822
|
+
# process the body parameter
|
3823
|
+
_body_params = None
|
3824
|
+
if _params['body']:
|
3825
|
+
_body_params = _params['body']
|
3826
|
+
|
3827
|
+
# set the HTTP header `Accept`
|
3828
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3829
|
+
['application/json']) # noqa: E501
|
3830
|
+
|
3831
|
+
# set the HTTP header `Content-Type`
|
3832
|
+
_content_types_list = _params.get('_content_type',
|
3833
|
+
self.api_client.select_header_content_type(
|
3834
|
+
['application/json']))
|
3835
|
+
if _content_types_list:
|
3836
|
+
_header_params['Content-Type'] = _content_types_list
|
3837
|
+
|
3838
|
+
# authentication setting
|
3839
|
+
_auth_settings = ['ApiKey'] # noqa: E501
|
3840
|
+
|
3841
|
+
_response_types_map = {}
|
3842
|
+
|
3843
|
+
return self.api_client.call_api(
|
3844
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/restore', 'POST',
|
3845
|
+
_path_params,
|
3846
|
+
_query_params,
|
3847
|
+
_header_params,
|
3848
|
+
body=_body_params,
|
3849
|
+
post_params=_form_params,
|
3850
|
+
files=_files,
|
3851
|
+
response_types_map=_response_types_map,
|
3852
|
+
auth_settings=_auth_settings,
|
3853
|
+
async_req=_params.get('async_req'),
|
3854
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
3855
|
+
_preload_content=_params.get('_preload_content', True),
|
3856
|
+
_request_timeout=_params.get('_request_timeout'),
|
3857
|
+
collection_formats=_collection_formats,
|
3858
|
+
_request_auth=_params.get('_request_auth'))
|
3859
|
+
|
3860
|
+
@validate_arguments
|
3861
|
+
def skip_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
3862
|
+
"""Skip cross-project runs selection # noqa: E501
|
3863
|
+
|
3864
|
+
This method makes a synchronous HTTP request by default. To make an
|
3865
|
+
asynchronous HTTP request, please pass async_req=True
|
3866
|
+
|
3867
|
+
>>> thread = api.skip_team_runs(owner, name, body, async_req=True)
|
3868
|
+
>>> result = thread.get()
|
3869
|
+
|
3870
|
+
:param owner: Owner of the namespace (required)
|
3871
|
+
:type owner: str
|
3872
|
+
:param name: Entity under namespace (required)
|
3873
|
+
:type name: str
|
3874
|
+
:param body: Uuids of the entities (required)
|
3875
|
+
:type body: V1Uuids
|
1202
3876
|
:param async_req: Whether to execute the request asynchronously.
|
1203
3877
|
:type async_req: bool, optional
|
1204
3878
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1212,37 +3886,27 @@ class TeamsV1Api(object):
|
|
1212
3886
|
:return: Returns the result object.
|
1213
3887
|
If the method is called asynchronously,
|
1214
3888
|
returns the request thread.
|
1215
|
-
:rtype:
|
3889
|
+
:rtype: None
|
1216
3890
|
"""
|
1217
3891
|
kwargs['_return_http_data_only'] = True
|
1218
|
-
return self.
|
3892
|
+
return self.skip_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
1219
3893
|
|
1220
3894
|
@validate_arguments
|
1221
|
-
def
|
1222
|
-
"""
|
3895
|
+
def skip_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
3896
|
+
"""Skip cross-project runs selection # noqa: E501
|
1223
3897
|
|
1224
3898
|
This method makes a synchronous HTTP request by default. To make an
|
1225
3899
|
asynchronous HTTP request, please pass async_req=True
|
1226
3900
|
|
1227
|
-
>>> thread = api.
|
3901
|
+
>>> thread = api.skip_team_runs_with_http_info(owner, name, body, async_req=True)
|
1228
3902
|
>>> result = thread.get()
|
1229
3903
|
|
1230
3904
|
:param owner: Owner of the namespace (required)
|
1231
3905
|
:type owner: str
|
1232
|
-
:param
|
1233
|
-
:type
|
1234
|
-
:param
|
1235
|
-
:type
|
1236
|
-
:param sort: Sort to order the search.
|
1237
|
-
:type sort: str
|
1238
|
-
:param query: Query filter the search.
|
1239
|
-
:type query: str
|
1240
|
-
:param bookmarks: Filter by bookmarks.
|
1241
|
-
:type bookmarks: bool
|
1242
|
-
:param mode: Mode of the search.
|
1243
|
-
:type mode: str
|
1244
|
-
:param no_page: No pagination.
|
1245
|
-
:type no_page: bool
|
3906
|
+
:param name: Entity under namespace (required)
|
3907
|
+
:type name: str
|
3908
|
+
:param body: Uuids of the entities (required)
|
3909
|
+
:type body: V1Uuids
|
1246
3910
|
:param async_req: Whether to execute the request asynchronously.
|
1247
3911
|
:type async_req: bool, optional
|
1248
3912
|
:param _return_http_data_only: response data without head status code
|
@@ -1264,20 +3928,15 @@ class TeamsV1Api(object):
|
|
1264
3928
|
:return: Returns the result object.
|
1265
3929
|
If the method is called asynchronously,
|
1266
3930
|
returns the request thread.
|
1267
|
-
:rtype:
|
3931
|
+
:rtype: None
|
1268
3932
|
"""
|
1269
3933
|
|
1270
3934
|
_params = locals()
|
1271
3935
|
|
1272
3936
|
_all_params = [
|
1273
3937
|
'owner',
|
1274
|
-
'
|
1275
|
-
'
|
1276
|
-
'sort',
|
1277
|
-
'query',
|
1278
|
-
'bookmarks',
|
1279
|
-
'mode',
|
1280
|
-
'no_page'
|
3938
|
+
'name',
|
3939
|
+
'body'
|
1281
3940
|
]
|
1282
3941
|
_all_params.extend(
|
1283
3942
|
[
|
@@ -1296,7 +3955,7 @@ class TeamsV1Api(object):
|
|
1296
3955
|
if _key not in _all_params:
|
1297
3956
|
raise ApiTypeError(
|
1298
3957
|
"Got an unexpected keyword argument '%s'"
|
1299
|
-
" to method
|
3958
|
+
" to method skip_team_runs" % _key
|
1300
3959
|
)
|
1301
3960
|
_params[_key] = _val
|
1302
3961
|
del _params['kwargs']
|
@@ -1308,30 +3967,12 @@ class TeamsV1Api(object):
|
|
1308
3967
|
if _params['owner']:
|
1309
3968
|
_path_params['owner'] = _params['owner']
|
1310
3969
|
|
3970
|
+
if _params['name']:
|
3971
|
+
_path_params['name'] = _params['name']
|
3972
|
+
|
1311
3973
|
|
1312
3974
|
# process the query parameters
|
1313
3975
|
_query_params = []
|
1314
|
-
if _params.get('offset') is not None: # noqa: E501
|
1315
|
-
_query_params.append(('offset', _params['offset']))
|
1316
|
-
|
1317
|
-
if _params.get('limit') is not None: # noqa: E501
|
1318
|
-
_query_params.append(('limit', _params['limit']))
|
1319
|
-
|
1320
|
-
if _params.get('sort') is not None: # noqa: E501
|
1321
|
-
_query_params.append(('sort', _params['sort']))
|
1322
|
-
|
1323
|
-
if _params.get('query') is not None: # noqa: E501
|
1324
|
-
_query_params.append(('query', _params['query']))
|
1325
|
-
|
1326
|
-
if _params.get('bookmarks') is not None: # noqa: E501
|
1327
|
-
_query_params.append(('bookmarks', _params['bookmarks']))
|
1328
|
-
|
1329
|
-
if _params.get('mode') is not None: # noqa: E501
|
1330
|
-
_query_params.append(('mode', _params['mode']))
|
1331
|
-
|
1332
|
-
if _params.get('no_page') is not None: # noqa: E501
|
1333
|
-
_query_params.append(('no_page', _params['no_page']))
|
1334
|
-
|
1335
3976
|
# process the header parameters
|
1336
3977
|
_header_params = dict(_params.get('_headers', {}))
|
1337
3978
|
# process the form parameters
|
@@ -1339,22 +3980,27 @@ class TeamsV1Api(object):
|
|
1339
3980
|
_files = {}
|
1340
3981
|
# process the body parameter
|
1341
3982
|
_body_params = None
|
3983
|
+
if _params['body']:
|
3984
|
+
_body_params = _params['body']
|
3985
|
+
|
1342
3986
|
# set the HTTP header `Accept`
|
1343
3987
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
1344
3988
|
['application/json']) # noqa: E501
|
1345
3989
|
|
3990
|
+
# set the HTTP header `Content-Type`
|
3991
|
+
_content_types_list = _params.get('_content_type',
|
3992
|
+
self.api_client.select_header_content_type(
|
3993
|
+
['application/json']))
|
3994
|
+
if _content_types_list:
|
3995
|
+
_header_params['Content-Type'] = _content_types_list
|
3996
|
+
|
1346
3997
|
# authentication setting
|
1347
3998
|
_auth_settings = ['ApiKey'] # noqa: E501
|
1348
3999
|
|
1349
|
-
_response_types_map = {
|
1350
|
-
'200': "V1ListTeamsResponse",
|
1351
|
-
'204': "object",
|
1352
|
-
'403': "object",
|
1353
|
-
'404': "object",
|
1354
|
-
}
|
4000
|
+
_response_types_map = {}
|
1355
4001
|
|
1356
4002
|
return self.api_client.call_api(
|
1357
|
-
'/api/v1/orgs/{owner}/teams/
|
4003
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/Skip', 'POST',
|
1358
4004
|
_path_params,
|
1359
4005
|
_query_params,
|
1360
4006
|
_header_params,
|
@@ -1371,31 +4017,21 @@ class TeamsV1Api(object):
|
|
1371
4017
|
_request_auth=_params.get('_request_auth'))
|
1372
4018
|
|
1373
4019
|
@validate_arguments
|
1374
|
-
def
|
1375
|
-
"""
|
4020
|
+
def stop_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs) -> None: # noqa: E501
|
4021
|
+
"""Stop cross-project runs selection # noqa: E501
|
1376
4022
|
|
1377
4023
|
This method makes a synchronous HTTP request by default. To make an
|
1378
4024
|
asynchronous HTTP request, please pass async_req=True
|
1379
4025
|
|
1380
|
-
>>> thread = api.
|
4026
|
+
>>> thread = api.stop_team_runs(owner, name, body, async_req=True)
|
1381
4027
|
>>> result = thread.get()
|
1382
4028
|
|
1383
4029
|
:param owner: Owner of the namespace (required)
|
1384
4030
|
:type owner: str
|
1385
|
-
:param
|
1386
|
-
:type
|
1387
|
-
:param
|
1388
|
-
:type
|
1389
|
-
:param sort: Sort to order the search.
|
1390
|
-
:type sort: str
|
1391
|
-
:param query: Query filter the search.
|
1392
|
-
:type query: str
|
1393
|
-
:param bookmarks: Filter by bookmarks.
|
1394
|
-
:type bookmarks: bool
|
1395
|
-
:param mode: Mode of the search.
|
1396
|
-
:type mode: str
|
1397
|
-
:param no_page: No pagination.
|
1398
|
-
:type no_page: bool
|
4031
|
+
:param name: Entity under namespace (required)
|
4032
|
+
:type name: str
|
4033
|
+
:param body: Uuids of the entities (required)
|
4034
|
+
:type body: V1Uuids
|
1399
4035
|
:param async_req: Whether to execute the request asynchronously.
|
1400
4036
|
:type async_req: bool, optional
|
1401
4037
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1409,37 +4045,27 @@ class TeamsV1Api(object):
|
|
1409
4045
|
:return: Returns the result object.
|
1410
4046
|
If the method is called asynchronously,
|
1411
4047
|
returns the request thread.
|
1412
|
-
:rtype:
|
4048
|
+
:rtype: None
|
1413
4049
|
"""
|
1414
4050
|
kwargs['_return_http_data_only'] = True
|
1415
|
-
return self.
|
4051
|
+
return self.stop_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
1416
4052
|
|
1417
4053
|
@validate_arguments
|
1418
|
-
def
|
1419
|
-
"""
|
4054
|
+
def stop_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1Uuids, Field(..., description="Uuids of the entities")], **kwargs): # noqa: E501
|
4055
|
+
"""Stop cross-project runs selection # noqa: E501
|
1420
4056
|
|
1421
4057
|
This method makes a synchronous HTTP request by default. To make an
|
1422
4058
|
asynchronous HTTP request, please pass async_req=True
|
1423
4059
|
|
1424
|
-
>>> thread = api.
|
4060
|
+
>>> thread = api.stop_team_runs_with_http_info(owner, name, body, async_req=True)
|
1425
4061
|
>>> result = thread.get()
|
1426
4062
|
|
1427
4063
|
:param owner: Owner of the namespace (required)
|
1428
4064
|
:type owner: str
|
1429
|
-
:param
|
1430
|
-
:type
|
1431
|
-
:param
|
1432
|
-
:type
|
1433
|
-
:param sort: Sort to order the search.
|
1434
|
-
:type sort: str
|
1435
|
-
:param query: Query filter the search.
|
1436
|
-
:type query: str
|
1437
|
-
:param bookmarks: Filter by bookmarks.
|
1438
|
-
:type bookmarks: bool
|
1439
|
-
:param mode: Mode of the search.
|
1440
|
-
:type mode: str
|
1441
|
-
:param no_page: No pagination.
|
1442
|
-
:type no_page: bool
|
4065
|
+
:param name: Entity under namespace (required)
|
4066
|
+
:type name: str
|
4067
|
+
:param body: Uuids of the entities (required)
|
4068
|
+
:type body: V1Uuids
|
1443
4069
|
:param async_req: Whether to execute the request asynchronously.
|
1444
4070
|
:type async_req: bool, optional
|
1445
4071
|
:param _return_http_data_only: response data without head status code
|
@@ -1461,20 +4087,15 @@ class TeamsV1Api(object):
|
|
1461
4087
|
:return: Returns the result object.
|
1462
4088
|
If the method is called asynchronously,
|
1463
4089
|
returns the request thread.
|
1464
|
-
:rtype:
|
4090
|
+
:rtype: None
|
1465
4091
|
"""
|
1466
4092
|
|
1467
4093
|
_params = locals()
|
1468
4094
|
|
1469
4095
|
_all_params = [
|
1470
4096
|
'owner',
|
1471
|
-
'
|
1472
|
-
'
|
1473
|
-
'sort',
|
1474
|
-
'query',
|
1475
|
-
'bookmarks',
|
1476
|
-
'mode',
|
1477
|
-
'no_page'
|
4097
|
+
'name',
|
4098
|
+
'body'
|
1478
4099
|
]
|
1479
4100
|
_all_params.extend(
|
1480
4101
|
[
|
@@ -1493,7 +4114,7 @@ class TeamsV1Api(object):
|
|
1493
4114
|
if _key not in _all_params:
|
1494
4115
|
raise ApiTypeError(
|
1495
4116
|
"Got an unexpected keyword argument '%s'"
|
1496
|
-
" to method
|
4117
|
+
" to method stop_team_runs" % _key
|
1497
4118
|
)
|
1498
4119
|
_params[_key] = _val
|
1499
4120
|
del _params['kwargs']
|
@@ -1505,30 +4126,12 @@ class TeamsV1Api(object):
|
|
1505
4126
|
if _params['owner']:
|
1506
4127
|
_path_params['owner'] = _params['owner']
|
1507
4128
|
|
4129
|
+
if _params['name']:
|
4130
|
+
_path_params['name'] = _params['name']
|
4131
|
+
|
1508
4132
|
|
1509
4133
|
# process the query parameters
|
1510
4134
|
_query_params = []
|
1511
|
-
if _params.get('offset') is not None: # noqa: E501
|
1512
|
-
_query_params.append(('offset', _params['offset']))
|
1513
|
-
|
1514
|
-
if _params.get('limit') is not None: # noqa: E501
|
1515
|
-
_query_params.append(('limit', _params['limit']))
|
1516
|
-
|
1517
|
-
if _params.get('sort') is not None: # noqa: E501
|
1518
|
-
_query_params.append(('sort', _params['sort']))
|
1519
|
-
|
1520
|
-
if _params.get('query') is not None: # noqa: E501
|
1521
|
-
_query_params.append(('query', _params['query']))
|
1522
|
-
|
1523
|
-
if _params.get('bookmarks') is not None: # noqa: E501
|
1524
|
-
_query_params.append(('bookmarks', _params['bookmarks']))
|
1525
|
-
|
1526
|
-
if _params.get('mode') is not None: # noqa: E501
|
1527
|
-
_query_params.append(('mode', _params['mode']))
|
1528
|
-
|
1529
|
-
if _params.get('no_page') is not None: # noqa: E501
|
1530
|
-
_query_params.append(('no_page', _params['no_page']))
|
1531
|
-
|
1532
4135
|
# process the header parameters
|
1533
4136
|
_header_params = dict(_params.get('_headers', {}))
|
1534
4137
|
# process the form parameters
|
@@ -1536,22 +4139,27 @@ class TeamsV1Api(object):
|
|
1536
4139
|
_files = {}
|
1537
4140
|
# process the body parameter
|
1538
4141
|
_body_params = None
|
4142
|
+
if _params['body']:
|
4143
|
+
_body_params = _params['body']
|
4144
|
+
|
1539
4145
|
# set the HTTP header `Accept`
|
1540
4146
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
1541
4147
|
['application/json']) # noqa: E501
|
1542
4148
|
|
4149
|
+
# set the HTTP header `Content-Type`
|
4150
|
+
_content_types_list = _params.get('_content_type',
|
4151
|
+
self.api_client.select_header_content_type(
|
4152
|
+
['application/json']))
|
4153
|
+
if _content_types_list:
|
4154
|
+
_header_params['Content-Type'] = _content_types_list
|
4155
|
+
|
1543
4156
|
# authentication setting
|
1544
4157
|
_auth_settings = ['ApiKey'] # noqa: E501
|
1545
4158
|
|
1546
|
-
_response_types_map = {
|
1547
|
-
'200': "V1ListTeamsResponse",
|
1548
|
-
'204': "object",
|
1549
|
-
'403': "object",
|
1550
|
-
'404': "object",
|
1551
|
-
}
|
4159
|
+
_response_types_map = {}
|
1552
4160
|
|
1553
4161
|
return self.api_client.call_api(
|
1554
|
-
'/api/v1/orgs/{owner}/teams', '
|
4162
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/stop', 'POST',
|
1555
4163
|
_path_params,
|
1556
4164
|
_query_params,
|
1557
4165
|
_header_params,
|
@@ -1568,21 +4176,21 @@ class TeamsV1Api(object):
|
|
1568
4176
|
_request_auth=_params.get('_request_auth'))
|
1569
4177
|
|
1570
4178
|
@validate_arguments
|
1571
|
-
def
|
1572
|
-
"""
|
4179
|
+
def tag_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1EntitiesTags, Field(..., description="Data")], **kwargs) -> None: # noqa: E501
|
4180
|
+
"""Tag cross-project runs selection # noqa: E501
|
1573
4181
|
|
1574
4182
|
This method makes a synchronous HTTP request by default. To make an
|
1575
4183
|
asynchronous HTTP request, please pass async_req=True
|
1576
4184
|
|
1577
|
-
>>> thread = api.
|
4185
|
+
>>> thread = api.tag_team_runs(owner, name, body, async_req=True)
|
1578
4186
|
>>> result = thread.get()
|
1579
4187
|
|
1580
4188
|
:param owner: Owner of the namespace (required)
|
1581
4189
|
:type owner: str
|
1582
|
-
:param
|
1583
|
-
:type
|
1584
|
-
:param body:
|
1585
|
-
:type body:
|
4190
|
+
:param name: Entity under namespace (required)
|
4191
|
+
:type name: str
|
4192
|
+
:param body: Data (required)
|
4193
|
+
:type body: V1EntitiesTags
|
1586
4194
|
:param async_req: Whether to execute the request asynchronously.
|
1587
4195
|
:type async_req: bool, optional
|
1588
4196
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1596,27 +4204,27 @@ class TeamsV1Api(object):
|
|
1596
4204
|
:return: Returns the result object.
|
1597
4205
|
If the method is called asynchronously,
|
1598
4206
|
returns the request thread.
|
1599
|
-
:rtype:
|
4207
|
+
:rtype: None
|
1600
4208
|
"""
|
1601
4209
|
kwargs['_return_http_data_only'] = True
|
1602
|
-
return self.
|
4210
|
+
return self.tag_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
1603
4211
|
|
1604
4212
|
@validate_arguments
|
1605
|
-
def
|
1606
|
-
"""
|
4213
|
+
def tag_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1EntitiesTags, Field(..., description="Data")], **kwargs): # noqa: E501
|
4214
|
+
"""Tag cross-project runs selection # noqa: E501
|
1607
4215
|
|
1608
4216
|
This method makes a synchronous HTTP request by default. To make an
|
1609
4217
|
asynchronous HTTP request, please pass async_req=True
|
1610
4218
|
|
1611
|
-
>>> thread = api.
|
4219
|
+
>>> thread = api.tag_team_runs_with_http_info(owner, name, body, async_req=True)
|
1612
4220
|
>>> result = thread.get()
|
1613
4221
|
|
1614
4222
|
:param owner: Owner of the namespace (required)
|
1615
4223
|
:type owner: str
|
1616
|
-
:param
|
1617
|
-
:type
|
1618
|
-
:param body:
|
1619
|
-
:type body:
|
4224
|
+
:param name: Entity under namespace (required)
|
4225
|
+
:type name: str
|
4226
|
+
:param body: Data (required)
|
4227
|
+
:type body: V1EntitiesTags
|
1620
4228
|
:param async_req: Whether to execute the request asynchronously.
|
1621
4229
|
:type async_req: bool, optional
|
1622
4230
|
:param _return_http_data_only: response data without head status code
|
@@ -1638,14 +4246,14 @@ class TeamsV1Api(object):
|
|
1638
4246
|
:return: Returns the result object.
|
1639
4247
|
If the method is called asynchronously,
|
1640
4248
|
returns the request thread.
|
1641
|
-
:rtype:
|
4249
|
+
:rtype: None
|
1642
4250
|
"""
|
1643
4251
|
|
1644
4252
|
_params = locals()
|
1645
4253
|
|
1646
4254
|
_all_params = [
|
1647
4255
|
'owner',
|
1648
|
-
'
|
4256
|
+
'name',
|
1649
4257
|
'body'
|
1650
4258
|
]
|
1651
4259
|
_all_params.extend(
|
@@ -1665,7 +4273,7 @@ class TeamsV1Api(object):
|
|
1665
4273
|
if _key not in _all_params:
|
1666
4274
|
raise ApiTypeError(
|
1667
4275
|
"Got an unexpected keyword argument '%s'"
|
1668
|
-
" to method
|
4276
|
+
" to method tag_team_runs" % _key
|
1669
4277
|
)
|
1670
4278
|
_params[_key] = _val
|
1671
4279
|
del _params['kwargs']
|
@@ -1677,8 +4285,8 @@ class TeamsV1Api(object):
|
|
1677
4285
|
if _params['owner']:
|
1678
4286
|
_path_params['owner'] = _params['owner']
|
1679
4287
|
|
1680
|
-
if _params['
|
1681
|
-
_path_params['
|
4288
|
+
if _params['name']:
|
4289
|
+
_path_params['name'] = _params['name']
|
1682
4290
|
|
1683
4291
|
|
1684
4292
|
# process the query parameters
|
@@ -1707,15 +4315,10 @@ class TeamsV1Api(object):
|
|
1707
4315
|
# authentication setting
|
1708
4316
|
_auth_settings = ['ApiKey'] # noqa: E501
|
1709
4317
|
|
1710
|
-
_response_types_map = {
|
1711
|
-
'200': "V1Team",
|
1712
|
-
'204': "object",
|
1713
|
-
'403': "object",
|
1714
|
-
'404': "object",
|
1715
|
-
}
|
4318
|
+
_response_types_map = {}
|
1716
4319
|
|
1717
4320
|
return self.api_client.call_api(
|
1718
|
-
'/api/v1/orgs/{owner}/teams/{
|
4321
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/tag', 'POST',
|
1719
4322
|
_path_params,
|
1720
4323
|
_query_params,
|
1721
4324
|
_header_params,
|
@@ -1732,23 +4335,21 @@ class TeamsV1Api(object):
|
|
1732
4335
|
_request_auth=_params.get('_request_auth'))
|
1733
4336
|
|
1734
4337
|
@validate_arguments
|
1735
|
-
def
|
1736
|
-
"""
|
4338
|
+
def transfer_team_runs(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1EntitiesTransfer, Field(..., description="Data")], **kwargs) -> None: # noqa: E501
|
4339
|
+
"""Transfer cross-project runs selection to a new project # noqa: E501
|
1737
4340
|
|
1738
4341
|
This method makes a synchronous HTTP request by default. To make an
|
1739
4342
|
asynchronous HTTP request, please pass async_req=True
|
1740
4343
|
|
1741
|
-
>>> thread = api.
|
4344
|
+
>>> thread = api.transfer_team_runs(owner, name, body, async_req=True)
|
1742
4345
|
>>> result = thread.get()
|
1743
4346
|
|
1744
4347
|
:param owner: Owner of the namespace (required)
|
1745
4348
|
:type owner: str
|
1746
|
-
:param
|
1747
|
-
:type
|
1748
|
-
:param
|
1749
|
-
:type
|
1750
|
-
:param body: Team body (required)
|
1751
|
-
:type body: V1TeamMember
|
4349
|
+
:param name: Entity under namespace (required)
|
4350
|
+
:type name: str
|
4351
|
+
:param body: Data (required)
|
4352
|
+
:type body: V1EntitiesTransfer
|
1752
4353
|
:param async_req: Whether to execute the request asynchronously.
|
1753
4354
|
:type async_req: bool, optional
|
1754
4355
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -1762,29 +4363,27 @@ class TeamsV1Api(object):
|
|
1762
4363
|
:return: Returns the result object.
|
1763
4364
|
If the method is called asynchronously,
|
1764
4365
|
returns the request thread.
|
1765
|
-
:rtype:
|
4366
|
+
:rtype: None
|
1766
4367
|
"""
|
1767
4368
|
kwargs['_return_http_data_only'] = True
|
1768
|
-
return self.
|
4369
|
+
return self.transfer_team_runs_with_http_info(owner, name, body, **kwargs) # noqa: E501
|
1769
4370
|
|
1770
4371
|
@validate_arguments
|
1771
|
-
def
|
1772
|
-
"""
|
4372
|
+
def transfer_team_runs_with_http_info(self, owner : Annotated[StrictStr, Field(..., description="Owner of the namespace")], name : Annotated[StrictStr, Field(..., description="Entity under namespace")], body : Annotated[V1EntitiesTransfer, Field(..., description="Data")], **kwargs): # noqa: E501
|
4373
|
+
"""Transfer cross-project runs selection to a new project # noqa: E501
|
1773
4374
|
|
1774
4375
|
This method makes a synchronous HTTP request by default. To make an
|
1775
4376
|
asynchronous HTTP request, please pass async_req=True
|
1776
4377
|
|
1777
|
-
>>> thread = api.
|
4378
|
+
>>> thread = api.transfer_team_runs_with_http_info(owner, name, body, async_req=True)
|
1778
4379
|
>>> result = thread.get()
|
1779
4380
|
|
1780
4381
|
:param owner: Owner of the namespace (required)
|
1781
4382
|
:type owner: str
|
1782
|
-
:param
|
1783
|
-
:type
|
1784
|
-
:param
|
1785
|
-
:type
|
1786
|
-
:param body: Team body (required)
|
1787
|
-
:type body: V1TeamMember
|
4383
|
+
:param name: Entity under namespace (required)
|
4384
|
+
:type name: str
|
4385
|
+
:param body: Data (required)
|
4386
|
+
:type body: V1EntitiesTransfer
|
1788
4387
|
:param async_req: Whether to execute the request asynchronously.
|
1789
4388
|
:type async_req: bool, optional
|
1790
4389
|
:param _return_http_data_only: response data without head status code
|
@@ -1806,15 +4405,14 @@ class TeamsV1Api(object):
|
|
1806
4405
|
:return: Returns the result object.
|
1807
4406
|
If the method is called asynchronously,
|
1808
4407
|
returns the request thread.
|
1809
|
-
:rtype:
|
4408
|
+
:rtype: None
|
1810
4409
|
"""
|
1811
4410
|
|
1812
4411
|
_params = locals()
|
1813
4412
|
|
1814
4413
|
_all_params = [
|
1815
4414
|
'owner',
|
1816
|
-
'
|
1817
|
-
'member_user',
|
4415
|
+
'name',
|
1818
4416
|
'body'
|
1819
4417
|
]
|
1820
4418
|
_all_params.extend(
|
@@ -1834,7 +4432,7 @@ class TeamsV1Api(object):
|
|
1834
4432
|
if _key not in _all_params:
|
1835
4433
|
raise ApiTypeError(
|
1836
4434
|
"Got an unexpected keyword argument '%s'"
|
1837
|
-
" to method
|
4435
|
+
" to method transfer_team_runs" % _key
|
1838
4436
|
)
|
1839
4437
|
_params[_key] = _val
|
1840
4438
|
del _params['kwargs']
|
@@ -1846,11 +4444,8 @@ class TeamsV1Api(object):
|
|
1846
4444
|
if _params['owner']:
|
1847
4445
|
_path_params['owner'] = _params['owner']
|
1848
4446
|
|
1849
|
-
if _params['
|
1850
|
-
_path_params['
|
1851
|
-
|
1852
|
-
if _params['member_user']:
|
1853
|
-
_path_params['member.user'] = _params['member_user']
|
4447
|
+
if _params['name']:
|
4448
|
+
_path_params['name'] = _params['name']
|
1854
4449
|
|
1855
4450
|
|
1856
4451
|
# process the query parameters
|
@@ -1879,15 +4474,10 @@ class TeamsV1Api(object):
|
|
1879
4474
|
# authentication setting
|
1880
4475
|
_auth_settings = ['ApiKey'] # noqa: E501
|
1881
4476
|
|
1882
|
-
_response_types_map = {
|
1883
|
-
'200': "V1TeamMember",
|
1884
|
-
'204': "object",
|
1885
|
-
'403': "object",
|
1886
|
-
'404': "object",
|
1887
|
-
}
|
4477
|
+
_response_types_map = {}
|
1888
4478
|
|
1889
4479
|
return self.api_client.call_api(
|
1890
|
-
'/api/v1/orgs/{owner}/teams/{
|
4480
|
+
'/api/v1/orgs/{owner}/teams/{name}/runs/transfer', 'POST',
|
1891
4481
|
_path_params,
|
1892
4482
|
_query_params,
|
1893
4483
|
_header_params,
|