polyaxon 2.6.1__py3-none-any.whl → 2.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polyaxon/_deploy/schemas/deployment.py +1 -0
- polyaxon/_flow/component/component.py +4 -0
- polyaxon/_flow/operations/compiled_operation.py +4 -0
- polyaxon/_flow/operations/operation.py +5 -2
- polyaxon/_flow/run/__init__.py +3 -0
- polyaxon/_flow/run/dask/dask.py +10 -0
- polyaxon/_flow/run/kubeflow/mpi_job.py +8 -0
- polyaxon/_flow/run/kubeflow/mx_job.py +16 -0
- polyaxon/_flow/run/kubeflow/paddle_job.py +8 -0
- polyaxon/_flow/run/kubeflow/pytorch_job.py +8 -0
- polyaxon/_flow/run/kubeflow/tf_job.py +12 -0
- polyaxon/_flow/run/kubeflow/xgboost_job.py +19 -33
- polyaxon/_flow/run/patch.py +37 -9
- polyaxon/_flow/run/ray/ray.py +9 -0
- polyaxon/_polyaxonfile/specs/compiled_operation.py +5 -1
- polyaxon/_polyaxonfile/specs/operation.py +5 -1
- polyaxon/_sdk/api/organizations_v1_api.py +1643 -617
- polyaxon/_sdk/schemas/v1_organization.py +3 -2
- polyaxon/_sdk/schemas/v1_project_settings.py +2 -1
- polyaxon/_sdk/schemas/v1_user_access.py +3 -2
- polyaxon/pkg.py +1 -1
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/METADATA +7 -7
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/RECORD +27 -27
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/LICENSE +0 -0
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/WHEEL +0 -0
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.6.1.dist-info → polyaxon-2.7.0.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,17 @@
|
|
1
1
|
from datetime import datetime
|
2
|
-
from typing import Optional
|
2
|
+
from typing import Optional, Dict, Any, List
|
3
3
|
from typing_extensions import Annotated
|
4
4
|
|
5
5
|
from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_call
|
6
6
|
|
7
7
|
from polyaxon._sdk.base_api import BaseApi
|
8
|
+
from polyaxon._sdk.schemas.v1_list_project_versions_response import (
|
9
|
+
V1ListProjectVersionsResponse,
|
10
|
+
)
|
11
|
+
from polyaxon._sdk.schemas.v1_list_run_artifacts_response import (
|
12
|
+
V1ListRunArtifactsResponse,
|
13
|
+
)
|
14
|
+
from polyaxon._sdk.schemas.v1_events_response import V1MultiEventsResponse
|
8
15
|
from polyaxon._sdk.schemas.v1_entities_tags import V1EntitiesTags
|
9
16
|
from polyaxon._sdk.schemas.v1_entities_transfer import V1EntitiesTransfer
|
10
17
|
from polyaxon._sdk.schemas.v1_list_activities_response import V1ListActivitiesResponse
|
@@ -29,8 +36,8 @@ class OrganizationsV1Api(BaseApi):
|
|
29
36
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
30
37
|
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
31
38
|
**kwargs,
|
32
|
-
) -> None:
|
33
|
-
"""Approve cross-project runs selection
|
39
|
+
) -> None: # noqa: E501
|
40
|
+
"""Approve cross-project runs selection # noqa: E501
|
34
41
|
|
35
42
|
This method makes a synchronous HTTP request by default. To make an
|
36
43
|
asynchronous HTTP request, please pass async_req=True
|
@@ -58,7 +65,7 @@ class OrganizationsV1Api(BaseApi):
|
|
58
65
|
:rtype: None
|
59
66
|
"""
|
60
67
|
kwargs["_return_http_data_only"] = True
|
61
|
-
return self.approve_organization_runs_with_http_info(owner, body, **kwargs)
|
68
|
+
return self.approve_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501
|
62
69
|
|
63
70
|
@validate_call
|
64
71
|
def approve_organization_runs_with_http_info(
|
@@ -66,8 +73,8 @@ class OrganizationsV1Api(BaseApi):
|
|
66
73
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
67
74
|
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
68
75
|
**kwargs,
|
69
|
-
):
|
70
|
-
"""Approve cross-project runs selection
|
76
|
+
): # noqa: E501
|
77
|
+
"""Approve cross-project runs selection # noqa: E501
|
71
78
|
|
72
79
|
This method makes a synchronous HTTP request by default. To make an
|
73
80
|
asynchronous HTTP request, please pass async_req=True
|
@@ -137,14 +144,11 @@ class OrganizationsV1Api(BaseApi):
|
|
137
144
|
|
138
145
|
# process the query parameters
|
139
146
|
_query_params = []
|
140
|
-
|
141
147
|
# process the header parameters
|
142
148
|
_header_params = dict(_params.get("_headers", {}))
|
143
|
-
|
144
149
|
# process the form parameters
|
145
150
|
_form_params = []
|
146
151
|
_files = {}
|
147
|
-
|
148
152
|
# process the body parameter
|
149
153
|
_body_params = None
|
150
154
|
if _params["body"]:
|
@@ -153,7 +157,7 @@ class OrganizationsV1Api(BaseApi):
|
|
153
157
|
# set the HTTP header `Accept`
|
154
158
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
155
159
|
["application/json"]
|
156
|
-
)
|
160
|
+
) # noqa: E501
|
157
161
|
|
158
162
|
# set the HTTP header `Content-Type`
|
159
163
|
_content_types_list = _params.get(
|
@@ -164,7 +168,7 @@ class OrganizationsV1Api(BaseApi):
|
|
164
168
|
_header_params["Content-Type"] = _content_types_list
|
165
169
|
|
166
170
|
# authentication setting
|
167
|
-
_auth_settings = ["ApiKey"]
|
171
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
168
172
|
|
169
173
|
_response_types_map = {}
|
170
174
|
|
@@ -180,7 +184,7 @@ class OrganizationsV1Api(BaseApi):
|
|
180
184
|
response_types_map=_response_types_map,
|
181
185
|
auth_settings=_auth_settings,
|
182
186
|
async_req=_params.get("async_req"),
|
183
|
-
_return_http_data_only=_params.get("_return_http_data_only"),
|
187
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
184
188
|
_preload_content=_params.get("_preload_content", True),
|
185
189
|
_request_timeout=_params.get("_request_timeout"),
|
186
190
|
collection_formats=_collection_formats,
|
@@ -193,8 +197,8 @@ class OrganizationsV1Api(BaseApi):
|
|
193
197
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
194
198
|
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
195
199
|
**kwargs,
|
196
|
-
) -> None:
|
197
|
-
"""Archive cross-project runs selection
|
200
|
+
) -> None: # noqa: E501
|
201
|
+
"""Archive cross-project runs selection # noqa: E501
|
198
202
|
|
199
203
|
This method makes a synchronous HTTP request by default. To make an
|
200
204
|
asynchronous HTTP request, please pass async_req=True
|
@@ -222,7 +226,7 @@ class OrganizationsV1Api(BaseApi):
|
|
222
226
|
:rtype: None
|
223
227
|
"""
|
224
228
|
kwargs["_return_http_data_only"] = True
|
225
|
-
return self.archive_organization_runs_with_http_info(owner, body, **kwargs)
|
229
|
+
return self.archive_organization_runs_with_http_info(owner, body, **kwargs) # noqa: E501
|
226
230
|
|
227
231
|
@validate_call
|
228
232
|
def archive_organization_runs_with_http_info(
|
@@ -230,8 +234,8 @@ class OrganizationsV1Api(BaseApi):
|
|
230
234
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
231
235
|
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
232
236
|
**kwargs,
|
233
|
-
):
|
234
|
-
"""Archive cross-project runs selection
|
237
|
+
): # noqa: E501
|
238
|
+
"""Archive cross-project runs selection # noqa: E501
|
235
239
|
|
236
240
|
This method makes a synchronous HTTP request by default. To make an
|
237
241
|
asynchronous HTTP request, please pass async_req=True
|
@@ -301,14 +305,11 @@ class OrganizationsV1Api(BaseApi):
|
|
301
305
|
|
302
306
|
# process the query parameters
|
303
307
|
_query_params = []
|
304
|
-
|
305
308
|
# process the header parameters
|
306
309
|
_header_params = dict(_params.get("_headers", {}))
|
307
|
-
|
308
310
|
# process the form parameters
|
309
311
|
_form_params = []
|
310
312
|
_files = {}
|
311
|
-
|
312
313
|
# process the body parameter
|
313
314
|
_body_params = None
|
314
315
|
if _params["body"]:
|
@@ -317,7 +318,7 @@ class OrganizationsV1Api(BaseApi):
|
|
317
318
|
# set the HTTP header `Accept`
|
318
319
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
319
320
|
["application/json"]
|
320
|
-
)
|
321
|
+
) # noqa: E501
|
321
322
|
|
322
323
|
# set the HTTP header `Content-Type`
|
323
324
|
_content_types_list = _params.get(
|
@@ -328,7 +329,7 @@ class OrganizationsV1Api(BaseApi):
|
|
328
329
|
_header_params["Content-Type"] = _content_types_list
|
329
330
|
|
330
331
|
# authentication setting
|
331
|
-
_auth_settings = ["ApiKey"]
|
332
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
332
333
|
|
333
334
|
_response_types_map = {}
|
334
335
|
|
@@ -344,7 +345,7 @@ class OrganizationsV1Api(BaseApi):
|
|
344
345
|
response_types_map=_response_types_map,
|
345
346
|
auth_settings=_auth_settings,
|
346
347
|
async_req=_params.get("async_req"),
|
347
|
-
_return_http_data_only=_params.get("_return_http_data_only"),
|
348
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
348
349
|
_preload_content=_params.get("_preload_content", True),
|
349
350
|
_request_timeout=_params.get("_request_timeout"),
|
350
351
|
collection_formats=_collection_formats,
|
@@ -357,8 +358,8 @@ class OrganizationsV1Api(BaseApi):
|
|
357
358
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
358
359
|
body: Annotated[V1Uuids, Field(..., description="Uuids of the entities")],
|
359
360
|
**kwargs,
|
360
|
-
) -> None:
|
361
|
-
"""Bookmark cross-project runs selection
|
361
|
+
) -> None: # noqa: E501
|
362
|
+
"""Bookmark cross-project runs selection # noqa: E501
|
362
363
|
|
363
364
|
This method makes a synchronous HTTP request by default. To make an
|
364
365
|
asynchronous HTTP request, please pass async_req=True
|
@@ -465,14 +466,11 @@ class OrganizationsV1Api(BaseApi):
|
|
465
466
|
|
466
467
|
# process the query parameters
|
467
468
|
_query_params = []
|
468
|
-
|
469
469
|
# process the header parameters
|
470
470
|
_header_params = dict(_params.get("_headers", {}))
|
471
|
-
|
472
471
|
# process the form parameters
|
473
472
|
_form_params = []
|
474
473
|
_files = {}
|
475
|
-
|
476
474
|
# process the body parameter
|
477
475
|
_body_params = None
|
478
476
|
if _params["body"]:
|
@@ -613,14 +611,11 @@ class OrganizationsV1Api(BaseApi):
|
|
613
611
|
|
614
612
|
# process the query parameters
|
615
613
|
_query_params = []
|
616
|
-
|
617
614
|
# process the header parameters
|
618
615
|
_header_params = dict(_params.get("_headers", {}))
|
619
|
-
|
620
616
|
# process the form parameters
|
621
617
|
_form_params = []
|
622
618
|
_files = {}
|
623
|
-
|
624
619
|
# process the body parameter
|
625
620
|
_body_params = None
|
626
621
|
if _params["body"]:
|
@@ -803,11 +798,9 @@ class OrganizationsV1Api(BaseApi):
|
|
803
798
|
|
804
799
|
# process the header parameters
|
805
800
|
_header_params = dict(_params.get("_headers", {}))
|
806
|
-
|
807
801
|
# process the form parameters
|
808
802
|
_form_params = []
|
809
803
|
_files = {}
|
810
|
-
|
811
804
|
# process the body parameter
|
812
805
|
_body_params = None
|
813
806
|
if _params["body"]:
|
@@ -978,14 +971,11 @@ class OrganizationsV1Api(BaseApi):
|
|
978
971
|
|
979
972
|
# process the header parameters
|
980
973
|
_header_params = dict(_params.get("_headers", {}))
|
981
|
-
|
982
974
|
# process the form parameters
|
983
975
|
_form_params = []
|
984
976
|
_files = {}
|
985
|
-
|
986
977
|
# process the body parameter
|
987
978
|
_body_params = None
|
988
|
-
|
989
979
|
# set the HTTP header `Accept`
|
990
980
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
991
981
|
["application/json"]
|
@@ -1024,7 +1014,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1024
1014
|
Optional[StrictStr], Field(description="Read-only User email.")
|
1025
1015
|
] = None,
|
1026
1016
|
member_role: Annotated[Optional[StrictStr], Field(description="Role.")] = None,
|
1027
|
-
member_kind: Annotated[Optional[
|
1017
|
+
member_kind: Annotated[Optional[StrictStr], Field(description="Kind.")] = None,
|
1028
1018
|
member_created_at: Annotated[
|
1029
1019
|
Optional[datetime],
|
1030
1020
|
Field(description="Optional time when the entity was created."),
|
@@ -1099,7 +1089,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1099
1089
|
Optional[StrictStr], Field(description="Read-only User email.")
|
1100
1090
|
] = None,
|
1101
1091
|
member_role: Annotated[Optional[StrictStr], Field(description="Role.")] = None,
|
1102
|
-
member_kind: Annotated[Optional[
|
1092
|
+
member_kind: Annotated[Optional[StrictStr], Field(description="Kind.")] = None,
|
1103
1093
|
member_created_at: Annotated[
|
1104
1094
|
Optional[datetime],
|
1105
1095
|
Field(description="Optional time when the entity was created."),
|
@@ -1206,29 +1196,56 @@ class OrganizationsV1Api(BaseApi):
|
|
1206
1196
|
_query_params = []
|
1207
1197
|
if _params.get("member_user") is not None: # noqa: E501
|
1208
1198
|
_query_params.append(("member.user", _params["member_user"]))
|
1199
|
+
|
1209
1200
|
if _params.get("member_user_email") is not None: # noqa: E501
|
1210
1201
|
_query_params.append(("member.user_email", _params["member_user_email"]))
|
1202
|
+
|
1211
1203
|
if _params.get("member_role") is not None: # noqa: E501
|
1212
1204
|
_query_params.append(("member.role", _params["member_role"]))
|
1205
|
+
|
1213
1206
|
if _params.get("member_kind") is not None: # noqa: E501
|
1214
1207
|
_query_params.append(("member.kind", _params["member_kind"]))
|
1208
|
+
|
1215
1209
|
if _params.get("member_created_at") is not None: # noqa: E501
|
1216
|
-
|
1210
|
+
if isinstance(_params["member_created_at"], datetime):
|
1211
|
+
_query_params.append(
|
1212
|
+
(
|
1213
|
+
"member.created_at",
|
1214
|
+
_params["member_created_at"].strftime(
|
1215
|
+
self.api_client.configuration.datetime_format
|
1216
|
+
),
|
1217
|
+
)
|
1218
|
+
)
|
1219
|
+
else:
|
1220
|
+
_query_params.append(
|
1221
|
+
("member.created_at", _params["member_created_at"])
|
1222
|
+
)
|
1223
|
+
|
1217
1224
|
if _params.get("member_updated_at") is not None: # noqa: E501
|
1218
|
-
|
1225
|
+
if isinstance(_params["member_updated_at"], datetime):
|
1226
|
+
_query_params.append(
|
1227
|
+
(
|
1228
|
+
"member.updated_at",
|
1229
|
+
_params["member_updated_at"].strftime(
|
1230
|
+
self.api_client.configuration.datetime_format
|
1231
|
+
),
|
1232
|
+
)
|
1233
|
+
)
|
1234
|
+
else:
|
1235
|
+
_query_params.append(
|
1236
|
+
("member.updated_at", _params["member_updated_at"])
|
1237
|
+
)
|
1238
|
+
|
1219
1239
|
if _params.get("email") is not None: # noqa: E501
|
1220
1240
|
_query_params.append(("email", _params["email"]))
|
1221
1241
|
|
1222
1242
|
# process the header parameters
|
1223
1243
|
_header_params = dict(_params.get("_headers", {}))
|
1224
|
-
|
1225
1244
|
# process the form parameters
|
1226
1245
|
_form_params = []
|
1227
1246
|
_files = {}
|
1228
|
-
|
1229
1247
|
# process the body parameter
|
1230
1248
|
_body_params = None
|
1231
|
-
|
1232
1249
|
# set the HTTP header `Accept`
|
1233
1250
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1234
1251
|
["application/json"]
|
@@ -1369,22 +1386,19 @@ class OrganizationsV1Api(BaseApi):
|
|
1369
1386
|
_path_params = {}
|
1370
1387
|
if _params["owner"]:
|
1371
1388
|
_path_params["owner"] = _params["owner"]
|
1389
|
+
|
1372
1390
|
if _params["name"]:
|
1373
1391
|
_path_params["name"] = _params["name"]
|
1374
1392
|
|
1375
1393
|
# process the query parameters
|
1376
1394
|
_query_params = []
|
1377
|
-
|
1378
1395
|
# process the header parameters
|
1379
1396
|
_header_params = dict(_params.get("_headers", {}))
|
1380
|
-
|
1381
1397
|
# process the form parameters
|
1382
1398
|
_form_params = []
|
1383
1399
|
_files = {}
|
1384
|
-
|
1385
1400
|
# process the body parameter
|
1386
1401
|
_body_params = None
|
1387
|
-
|
1388
1402
|
# set the HTTP header `Accept`
|
1389
1403
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1390
1404
|
["application/json"]
|
@@ -1528,14 +1542,11 @@ class OrganizationsV1Api(BaseApi):
|
|
1528
1542
|
|
1529
1543
|
# process the query parameters
|
1530
1544
|
_query_params = []
|
1531
|
-
|
1532
1545
|
# process the header parameters
|
1533
1546
|
_header_params = dict(_params.get("_headers", {}))
|
1534
|
-
|
1535
1547
|
# process the form parameters
|
1536
1548
|
_form_params = []
|
1537
1549
|
_files = {}
|
1538
|
-
|
1539
1550
|
# process the body parameter
|
1540
1551
|
_body_params = None
|
1541
1552
|
if _params["body"]:
|
@@ -1701,14 +1712,11 @@ class OrganizationsV1Api(BaseApi):
|
|
1701
1712
|
|
1702
1713
|
# process the header parameters
|
1703
1714
|
_header_params = dict(_params.get("_headers", {}))
|
1704
|
-
|
1705
1715
|
# process the form parameters
|
1706
1716
|
_form_params = []
|
1707
1717
|
_files = {}
|
1708
|
-
|
1709
1718
|
# process the body parameter
|
1710
1719
|
_body_params = None
|
1711
|
-
|
1712
1720
|
# set the HTTP header `Accept`
|
1713
1721
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1714
1722
|
["application/json"]
|
@@ -1926,29 +1934,32 @@ class OrganizationsV1Api(BaseApi):
|
|
1926
1934
|
_query_params = []
|
1927
1935
|
if _params.get("offset") is not None: # noqa: E501
|
1928
1936
|
_query_params.append(("offset", _params["offset"]))
|
1937
|
+
|
1929
1938
|
if _params.get("limit") is not None: # noqa: E501
|
1930
1939
|
_query_params.append(("limit", _params["limit"]))
|
1940
|
+
|
1931
1941
|
if _params.get("sort") is not None: # noqa: E501
|
1932
1942
|
_query_params.append(("sort", _params["sort"]))
|
1943
|
+
|
1933
1944
|
if _params.get("query") is not None: # noqa: E501
|
1934
1945
|
_query_params.append(("query", _params["query"]))
|
1946
|
+
|
1935
1947
|
if _params.get("bookmarks") is not None: # noqa: E501
|
1936
1948
|
_query_params.append(("bookmarks", _params["bookmarks"]))
|
1949
|
+
|
1937
1950
|
if _params.get("mode") is not None: # noqa: E501
|
1938
1951
|
_query_params.append(("mode", _params["mode"]))
|
1952
|
+
|
1939
1953
|
if _params.get("no_page") is not None: # noqa: E501
|
1940
1954
|
_query_params.append(("no_page", _params["no_page"]))
|
1941
1955
|
|
1942
1956
|
# process the header parameters
|
1943
1957
|
_header_params = dict(_params.get("_headers", {}))
|
1944
|
-
|
1945
1958
|
# process the form parameters
|
1946
1959
|
_form_params = []
|
1947
1960
|
_files = {}
|
1948
|
-
|
1949
1961
|
# process the body parameter
|
1950
1962
|
_body_params = None
|
1951
|
-
|
1952
1963
|
# set the HTTP header `Accept`
|
1953
1964
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
1954
1965
|
["application/json"]
|
@@ -1992,7 +2003,7 @@ class OrganizationsV1Api(BaseApi):
|
|
1992
2003
|
Optional[StrictStr], Field(description="Read-only User email.")
|
1993
2004
|
] = None,
|
1994
2005
|
member_role: Annotated[Optional[StrictStr], Field(description="Role.")] = None,
|
1995
|
-
member_kind: Annotated[Optional[
|
2006
|
+
member_kind: Annotated[Optional[StrictStr], Field(description="Kind.")] = None,
|
1996
2007
|
member_created_at: Annotated[
|
1997
2008
|
Optional[datetime],
|
1998
2009
|
Field(description="Optional time when the entity was created."),
|
@@ -2067,7 +2078,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2067
2078
|
Optional[StrictStr], Field(description="Read-only User email.")
|
2068
2079
|
] = None,
|
2069
2080
|
member_role: Annotated[Optional[StrictStr], Field(description="Role.")] = None,
|
2070
|
-
member_kind: Annotated[Optional[
|
2081
|
+
member_kind: Annotated[Optional[StrictStr], Field(description="Kind.")] = None,
|
2071
2082
|
member_created_at: Annotated[
|
2072
2083
|
Optional[datetime],
|
2073
2084
|
Field(description="Optional time when the entity was created."),
|
@@ -2174,29 +2185,56 @@ class OrganizationsV1Api(BaseApi):
|
|
2174
2185
|
_query_params = []
|
2175
2186
|
if _params.get("member_user") is not None: # noqa: E501
|
2176
2187
|
_query_params.append(("member.user", _params["member_user"]))
|
2188
|
+
|
2177
2189
|
if _params.get("member_user_email") is not None: # noqa: E501
|
2178
2190
|
_query_params.append(("member.user_email", _params["member_user_email"]))
|
2191
|
+
|
2179
2192
|
if _params.get("member_role") is not None: # noqa: E501
|
2180
2193
|
_query_params.append(("member.role", _params["member_role"]))
|
2194
|
+
|
2181
2195
|
if _params.get("member_kind") is not None: # noqa: E501
|
2182
2196
|
_query_params.append(("member.kind", _params["member_kind"]))
|
2197
|
+
|
2183
2198
|
if _params.get("member_created_at") is not None: # noqa: E501
|
2184
|
-
|
2199
|
+
if isinstance(_params["member_created_at"], datetime):
|
2200
|
+
_query_params.append(
|
2201
|
+
(
|
2202
|
+
"member.created_at",
|
2203
|
+
_params["member_created_at"].strftime(
|
2204
|
+
self.api_client.configuration.datetime_format
|
2205
|
+
),
|
2206
|
+
)
|
2207
|
+
)
|
2208
|
+
else:
|
2209
|
+
_query_params.append(
|
2210
|
+
("member.created_at", _params["member_created_at"])
|
2211
|
+
)
|
2212
|
+
|
2185
2213
|
if _params.get("member_updated_at") is not None: # noqa: E501
|
2186
|
-
|
2214
|
+
if isinstance(_params["member_updated_at"], datetime):
|
2215
|
+
_query_params.append(
|
2216
|
+
(
|
2217
|
+
"member.updated_at",
|
2218
|
+
_params["member_updated_at"].strftime(
|
2219
|
+
self.api_client.configuration.datetime_format
|
2220
|
+
),
|
2221
|
+
)
|
2222
|
+
)
|
2223
|
+
else:
|
2224
|
+
_query_params.append(
|
2225
|
+
("member.updated_at", _params["member_updated_at"])
|
2226
|
+
)
|
2227
|
+
|
2187
2228
|
if _params.get("email") is not None: # noqa: E501
|
2188
2229
|
_query_params.append(("email", _params["email"]))
|
2189
2230
|
|
2190
2231
|
# process the header parameters
|
2191
2232
|
_header_params = dict(_params.get("_headers", {}))
|
2192
|
-
|
2193
2233
|
# process the form parameters
|
2194
2234
|
_form_params = []
|
2195
2235
|
_files = {}
|
2196
|
-
|
2197
2236
|
# process the body parameter
|
2198
2237
|
_body_params = None
|
2199
|
-
|
2200
2238
|
# set the HTTP header `Accept`
|
2201
2239
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
2202
2240
|
["application/json"]
|
@@ -2342,22 +2380,19 @@ class OrganizationsV1Api(BaseApi):
|
|
2342
2380
|
_path_params = {}
|
2343
2381
|
if _params["owner"]:
|
2344
2382
|
_path_params["owner"] = _params["owner"]
|
2383
|
+
|
2345
2384
|
if _params["name"]:
|
2346
2385
|
_path_params["name"] = _params["name"]
|
2347
2386
|
|
2348
2387
|
# process the query parameters
|
2349
2388
|
_query_params = []
|
2350
|
-
|
2351
2389
|
# process the header parameters
|
2352
2390
|
_header_params = dict(_params.get("_headers", {}))
|
2353
|
-
|
2354
2391
|
# process the form parameters
|
2355
2392
|
_form_params = []
|
2356
2393
|
_files = {}
|
2357
|
-
|
2358
2394
|
# process the body parameter
|
2359
2395
|
_body_params = None
|
2360
|
-
|
2361
2396
|
# set the HTTP header `Accept`
|
2362
2397
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
2363
2398
|
["application/json"]
|
@@ -2393,26 +2428,68 @@ class OrganizationsV1Api(BaseApi):
|
|
2393
2428
|
)
|
2394
2429
|
|
2395
2430
|
@validate_call
|
2396
|
-
def
|
2431
|
+
def get_organization_multi_run_events(
|
2397
2432
|
self,
|
2433
|
+
namespace: Annotated[StrictStr, Field(..., description="namespace")],
|
2398
2434
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2435
|
+
kind: Annotated[StrictStr, Field(..., description="The artifact kind")],
|
2436
|
+
entity: Annotated[
|
2437
|
+
Optional[StrictStr],
|
2438
|
+
Field(description="Entity where the run will be assigned."),
|
2439
|
+
] = None,
|
2440
|
+
names: Annotated[
|
2441
|
+
Optional[StrictStr], Field(description="Names query param.")
|
2442
|
+
] = None,
|
2443
|
+
runs: Annotated[
|
2444
|
+
Optional[StrictStr], Field(description="Runs query param.")
|
2445
|
+
] = None,
|
2446
|
+
orient: Annotated[
|
2447
|
+
Optional[StrictStr], Field(description="Orient query param.")
|
2448
|
+
] = None,
|
2449
|
+
force: Annotated[
|
2450
|
+
Optional[bool], Field(description="Force query param.")
|
2451
|
+
] = None,
|
2452
|
+
sample: Annotated[
|
2453
|
+
Optional[StrictInt], Field(description="Sample query param.")
|
2454
|
+
] = None,
|
2455
|
+
connection: Annotated[
|
2456
|
+
Optional[StrictStr], Field(description="Connection to use.")
|
2457
|
+
] = None,
|
2458
|
+
status: Annotated[
|
2459
|
+
Optional[StrictStr], Field(description="Optional status.")
|
2460
|
+
] = None,
|
2402
2461
|
**kwargs,
|
2403
|
-
) ->
|
2404
|
-
"""Get
|
2462
|
+
) -> V1MultiEventsResponse: # noqa: E501
|
2463
|
+
"""Get multi runs events # noqa: E501
|
2405
2464
|
|
2406
2465
|
This method makes a synchronous HTTP request by default. To make an
|
2407
2466
|
asynchronous HTTP request, please pass async_req=True
|
2408
2467
|
|
2409
|
-
>>> thread = api.
|
2468
|
+
>>> thread = api.get_organization_multi_run_events(namespace, owner, kind, entity, names, runs, orient, force, sample, connection, status, async_req=True)
|
2410
2469
|
>>> result = thread.get()
|
2411
2470
|
|
2471
|
+
:param namespace: namespace (required)
|
2472
|
+
:type namespace: str
|
2412
2473
|
:param owner: Owner of the namespace (required)
|
2413
2474
|
:type owner: str
|
2414
|
-
:param
|
2415
|
-
:type
|
2475
|
+
:param kind: The artifact kind (required)
|
2476
|
+
:type kind: str
|
2477
|
+
:param entity: Entity where the run will be assigned.
|
2478
|
+
:type entity: str
|
2479
|
+
:param names: Names query param.
|
2480
|
+
:type names: str
|
2481
|
+
:param runs: Runs query param.
|
2482
|
+
:type runs: str
|
2483
|
+
:param orient: Orient query param.
|
2484
|
+
:type orient: str
|
2485
|
+
:param force: Force query param.
|
2486
|
+
:type force: bool
|
2487
|
+
:param sample: Sample query param.
|
2488
|
+
:type sample: int
|
2489
|
+
:param connection: Connection to use.
|
2490
|
+
:type connection: str
|
2491
|
+
:param status: Optional status.
|
2492
|
+
:type status: str
|
2416
2493
|
:param async_req: Whether to execute the request asynchronously.
|
2417
2494
|
:type async_req: bool, optional
|
2418
2495
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -2426,32 +2503,87 @@ class OrganizationsV1Api(BaseApi):
|
|
2426
2503
|
:return: Returns the result object.
|
2427
2504
|
If the method is called asynchronously,
|
2428
2505
|
returns the request thread.
|
2429
|
-
:rtype:
|
2506
|
+
:rtype: V1MultiEventsResponse
|
2430
2507
|
"""
|
2431
2508
|
kwargs["_return_http_data_only"] = True
|
2432
|
-
return self.
|
2509
|
+
return self.get_organization_multi_run_events_with_http_info(
|
2510
|
+
namespace,
|
2511
|
+
owner,
|
2512
|
+
kind,
|
2513
|
+
entity,
|
2514
|
+
names,
|
2515
|
+
runs,
|
2516
|
+
orient,
|
2517
|
+
force,
|
2518
|
+
sample,
|
2519
|
+
connection,
|
2520
|
+
status,
|
2521
|
+
**kwargs,
|
2522
|
+
) # noqa: E501
|
2433
2523
|
|
2434
2524
|
@validate_call
|
2435
|
-
def
|
2525
|
+
def get_organization_multi_run_events_with_http_info(
|
2436
2526
|
self,
|
2527
|
+
namespace: Annotated[StrictStr, Field(..., description="namespace")],
|
2437
2528
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2529
|
+
kind: Annotated[StrictStr, Field(..., description="The artifact kind")],
|
2530
|
+
entity: Annotated[
|
2531
|
+
Optional[StrictStr],
|
2532
|
+
Field(description="Entity where the run will be assigned."),
|
2533
|
+
] = None,
|
2534
|
+
names: Annotated[
|
2535
|
+
Optional[StrictStr], Field(description="Names query param.")
|
2536
|
+
] = None,
|
2537
|
+
runs: Annotated[
|
2538
|
+
Optional[StrictStr], Field(description="Runs query param.")
|
2539
|
+
] = None,
|
2540
|
+
orient: Annotated[
|
2541
|
+
Optional[StrictStr], Field(description="Orient query param.")
|
2542
|
+
] = None,
|
2543
|
+
force: Annotated[
|
2544
|
+
Optional[bool], Field(description="Force query param.")
|
2545
|
+
] = None,
|
2546
|
+
sample: Annotated[
|
2547
|
+
Optional[StrictInt], Field(description="Sample query param.")
|
2548
|
+
] = None,
|
2549
|
+
connection: Annotated[
|
2550
|
+
Optional[StrictStr], Field(description="Connection to use.")
|
2551
|
+
] = None,
|
2552
|
+
status: Annotated[
|
2553
|
+
Optional[StrictStr], Field(description="Optional status.")
|
2554
|
+
] = None,
|
2441
2555
|
**kwargs,
|
2442
2556
|
): # noqa: E501
|
2443
|
-
"""Get
|
2557
|
+
"""Get multi runs events # noqa: E501
|
2444
2558
|
|
2445
2559
|
This method makes a synchronous HTTP request by default. To make an
|
2446
2560
|
asynchronous HTTP request, please pass async_req=True
|
2447
2561
|
|
2448
|
-
>>> thread = api.
|
2562
|
+
>>> thread = api.get_organization_multi_run_events_with_http_info(namespace, owner, kind, entity, names, runs, orient, force, sample, connection, status, async_req=True)
|
2449
2563
|
>>> result = thread.get()
|
2450
2564
|
|
2565
|
+
:param namespace: namespace (required)
|
2566
|
+
:type namespace: str
|
2451
2567
|
:param owner: Owner of the namespace (required)
|
2452
2568
|
:type owner: str
|
2453
|
-
:param
|
2454
|
-
:type
|
2569
|
+
:param kind: The artifact kind (required)
|
2570
|
+
:type kind: str
|
2571
|
+
:param entity: Entity where the run will be assigned.
|
2572
|
+
:type entity: str
|
2573
|
+
:param names: Names query param.
|
2574
|
+
:type names: str
|
2575
|
+
:param runs: Runs query param.
|
2576
|
+
:type runs: str
|
2577
|
+
:param orient: Orient query param.
|
2578
|
+
:type orient: str
|
2579
|
+
:param force: Force query param.
|
2580
|
+
:type force: bool
|
2581
|
+
:param sample: Sample query param.
|
2582
|
+
:type sample: int
|
2583
|
+
:param connection: Connection to use.
|
2584
|
+
:type connection: str
|
2585
|
+
:param status: Optional status.
|
2586
|
+
:type status: str
|
2455
2587
|
:param async_req: Whether to execute the request asynchronously.
|
2456
2588
|
:type async_req: bool, optional
|
2457
2589
|
:param _return_http_data_only: response data without head status code
|
@@ -2473,12 +2605,24 @@ class OrganizationsV1Api(BaseApi):
|
|
2473
2605
|
:return: Returns the result object.
|
2474
2606
|
If the method is called asynchronously,
|
2475
2607
|
returns the request thread.
|
2476
|
-
:rtype: tuple(
|
2608
|
+
:rtype: tuple(V1MultiEventsResponse, status_code(int), headers(HTTPHeaderDict))
|
2477
2609
|
"""
|
2478
2610
|
|
2479
2611
|
_params = locals()
|
2480
2612
|
|
2481
|
-
_all_params = [
|
2613
|
+
_all_params = [
|
2614
|
+
"namespace",
|
2615
|
+
"owner",
|
2616
|
+
"kind",
|
2617
|
+
"entity",
|
2618
|
+
"names",
|
2619
|
+
"runs",
|
2620
|
+
"orient",
|
2621
|
+
"force",
|
2622
|
+
"sample",
|
2623
|
+
"connection",
|
2624
|
+
"status",
|
2625
|
+
]
|
2482
2626
|
_all_params.extend(
|
2483
2627
|
[
|
2484
2628
|
"async_req",
|
@@ -2496,7 +2640,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2496
2640
|
if _key not in _all_params:
|
2497
2641
|
raise ApiTypeError(
|
2498
2642
|
"Got an unexpected keyword argument '%s'"
|
2499
|
-
" to method
|
2643
|
+
" to method get_organization_multi_run_events" % _key
|
2500
2644
|
)
|
2501
2645
|
_params[_key] = _val
|
2502
2646
|
del _params["kwargs"]
|
@@ -2505,24 +2649,48 @@ class OrganizationsV1Api(BaseApi):
|
|
2505
2649
|
|
2506
2650
|
# process the path parameters
|
2507
2651
|
_path_params = {}
|
2652
|
+
if _params["namespace"]:
|
2653
|
+
_path_params["namespace"] = _params["namespace"]
|
2654
|
+
|
2508
2655
|
if _params["owner"]:
|
2509
2656
|
_path_params["owner"] = _params["owner"]
|
2510
|
-
|
2511
|
-
|
2657
|
+
|
2658
|
+
if _params["kind"]:
|
2659
|
+
_path_params["kind"] = _params["kind"]
|
2512
2660
|
|
2513
2661
|
# process the query parameters
|
2514
2662
|
_query_params = []
|
2663
|
+
if _params.get("entity") is not None: # noqa: E501
|
2664
|
+
_query_params.append(("entity", _params["entity"]))
|
2665
|
+
|
2666
|
+
if _params.get("names") is not None: # noqa: E501
|
2667
|
+
_query_params.append(("names", _params["names"]))
|
2668
|
+
|
2669
|
+
if _params.get("runs") is not None: # noqa: E501
|
2670
|
+
_query_params.append(("runs", _params["runs"]))
|
2671
|
+
|
2672
|
+
if _params.get("orient") is not None: # noqa: E501
|
2673
|
+
_query_params.append(("orient", _params["orient"]))
|
2674
|
+
|
2675
|
+
if _params.get("force") is not None: # noqa: E501
|
2676
|
+
_query_params.append(("force", _params["force"]))
|
2677
|
+
|
2678
|
+
if _params.get("sample") is not None: # noqa: E501
|
2679
|
+
_query_params.append(("sample", _params["sample"]))
|
2680
|
+
|
2681
|
+
if _params.get("connection") is not None: # noqa: E501
|
2682
|
+
_query_params.append(("connection", _params["connection"]))
|
2683
|
+
|
2684
|
+
if _params.get("status") is not None: # noqa: E501
|
2685
|
+
_query_params.append(("status", _params["status"]))
|
2515
2686
|
|
2516
2687
|
# process the header parameters
|
2517
2688
|
_header_params = dict(_params.get("_headers", {}))
|
2518
|
-
|
2519
2689
|
# process the form parameters
|
2520
2690
|
_form_params = []
|
2521
2691
|
_files = {}
|
2522
|
-
|
2523
2692
|
# process the body parameter
|
2524
2693
|
_body_params = None
|
2525
|
-
|
2526
2694
|
# set the HTTP header `Accept`
|
2527
2695
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
2528
2696
|
["application/json"]
|
@@ -2532,14 +2700,14 @@ class OrganizationsV1Api(BaseApi):
|
|
2532
2700
|
_auth_settings = ["ApiKey"] # noqa: E501
|
2533
2701
|
|
2534
2702
|
_response_types_map = {
|
2535
|
-
"200": "
|
2703
|
+
"200": "V1MultiEventsResponse",
|
2536
2704
|
"204": "object",
|
2537
2705
|
"403": "object",
|
2538
2706
|
"404": "object",
|
2539
2707
|
}
|
2540
2708
|
|
2541
2709
|
return self.api_client.call_api(
|
2542
|
-
"/
|
2710
|
+
"/streams/v1/{namespace}/orgs/{owner}/runs/multi/events/{kind}",
|
2543
2711
|
"GET",
|
2544
2712
|
_path_params,
|
2545
2713
|
_query_params,
|
@@ -2558,52 +2726,33 @@ class OrganizationsV1Api(BaseApi):
|
|
2558
2726
|
)
|
2559
2727
|
|
2560
2728
|
@validate_call
|
2561
|
-
def
|
2729
|
+
def get_organization_multi_run_importance(
|
2562
2730
|
self,
|
2731
|
+
namespace: Annotated[StrictStr, Field(..., description="namespace")],
|
2563
2732
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
sort: Annotated[
|
2569
|
-
Optional[StrictStr], Field(description="Sort to order the search.")
|
2570
|
-
] = None,
|
2571
|
-
query: Annotated[
|
2572
|
-
Optional[StrictStr], Field(description="Query filter the search.")
|
2573
|
-
] = None,
|
2574
|
-
bookmarks: Annotated[
|
2575
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
2576
|
-
] = None,
|
2577
|
-
mode: Annotated[
|
2578
|
-
Optional[StrictStr], Field(description="Mode of the search.")
|
2733
|
+
body: Annotated[Dict[str, Any], Field(..., description="Params/Metrics data")],
|
2734
|
+
entity: Annotated[
|
2735
|
+
Optional[StrictStr],
|
2736
|
+
Field(description="Entity where the run will be assigned."),
|
2579
2737
|
] = None,
|
2580
|
-
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2581
2738
|
**kwargs,
|
2582
|
-
) ->
|
2583
|
-
"""Get
|
2739
|
+
) -> V1MultiEventsResponse: # noqa: E501
|
2740
|
+
"""Get multi run importance # noqa: E501
|
2584
2741
|
|
2585
2742
|
This method makes a synchronous HTTP request by default. To make an
|
2586
2743
|
asynchronous HTTP request, please pass async_req=True
|
2587
2744
|
|
2588
|
-
>>> thread = api.
|
2745
|
+
>>> thread = api.get_organization_multi_run_importance(namespace, owner, body, entity, async_req=True)
|
2589
2746
|
>>> result = thread.get()
|
2590
2747
|
|
2748
|
+
:param namespace: namespace (required)
|
2749
|
+
:type namespace: str
|
2591
2750
|
:param owner: Owner of the namespace (required)
|
2592
2751
|
:type owner: str
|
2593
|
-
:param
|
2594
|
-
:type
|
2595
|
-
:param
|
2596
|
-
:type
|
2597
|
-
:param sort: Sort to order the search.
|
2598
|
-
:type sort: str
|
2599
|
-
:param query: Query filter the search.
|
2600
|
-
:type query: str
|
2601
|
-
:param bookmarks: Filter by bookmarks.
|
2602
|
-
:type bookmarks: bool
|
2603
|
-
:param mode: Mode of the search.
|
2604
|
-
:type mode: str
|
2605
|
-
:param no_page: No pagination.
|
2606
|
-
:type no_page: bool
|
2752
|
+
:param body: Params/Metrics data (required)
|
2753
|
+
:type body: object
|
2754
|
+
:param entity: Entity where the run will be assigned.
|
2755
|
+
:type entity: str
|
2607
2756
|
:param async_req: Whether to execute the request asynchronously.
|
2608
2757
|
:type async_req: bool, optional
|
2609
2758
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -2617,60 +2766,41 @@ class OrganizationsV1Api(BaseApi):
|
|
2617
2766
|
:return: Returns the result object.
|
2618
2767
|
If the method is called asynchronously,
|
2619
2768
|
returns the request thread.
|
2620
|
-
:rtype:
|
2769
|
+
:rtype: V1MultiEventsResponse
|
2621
2770
|
"""
|
2622
2771
|
kwargs["_return_http_data_only"] = True
|
2623
|
-
return self.
|
2624
|
-
|
2772
|
+
return self.get_organization_multi_run_importance_with_http_info(
|
2773
|
+
namespace, owner, body, entity, **kwargs
|
2625
2774
|
) # noqa: E501
|
2626
2775
|
|
2627
2776
|
@validate_call
|
2628
|
-
def
|
2777
|
+
def get_organization_multi_run_importance_with_http_info(
|
2629
2778
|
self,
|
2779
|
+
namespace: Annotated[StrictStr, Field(..., description="namespace")],
|
2630
2780
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
sort: Annotated[
|
2636
|
-
Optional[StrictStr], Field(description="Sort to order the search.")
|
2781
|
+
body: Annotated[Dict[str, Any], Field(..., description="Params/Metrics data")],
|
2782
|
+
entity: Annotated[
|
2783
|
+
Optional[StrictStr],
|
2784
|
+
Field(description="Entity where the run will be assigned."),
|
2637
2785
|
] = None,
|
2638
|
-
query: Annotated[
|
2639
|
-
Optional[StrictStr], Field(description="Query filter the search.")
|
2640
|
-
] = None,
|
2641
|
-
bookmarks: Annotated[
|
2642
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
2643
|
-
] = None,
|
2644
|
-
mode: Annotated[
|
2645
|
-
Optional[StrictStr], Field(description="Mode of the search.")
|
2646
|
-
] = None,
|
2647
|
-
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
2648
2786
|
**kwargs,
|
2649
2787
|
): # noqa: E501
|
2650
|
-
"""Get
|
2788
|
+
"""Get multi run importance # noqa: E501
|
2651
2789
|
|
2652
2790
|
This method makes a synchronous HTTP request by default. To make an
|
2653
2791
|
asynchronous HTTP request, please pass async_req=True
|
2654
2792
|
|
2655
|
-
>>> thread = api.
|
2793
|
+
>>> thread = api.get_organization_multi_run_importance_with_http_info(namespace, owner, body, entity, async_req=True)
|
2656
2794
|
>>> result = thread.get()
|
2657
2795
|
|
2796
|
+
:param namespace: namespace (required)
|
2797
|
+
:type namespace: str
|
2658
2798
|
:param owner: Owner of the namespace (required)
|
2659
2799
|
:type owner: str
|
2660
|
-
:param
|
2661
|
-
:type
|
2662
|
-
:param
|
2663
|
-
:type
|
2664
|
-
:param sort: Sort to order the search.
|
2665
|
-
:type sort: str
|
2666
|
-
:param query: Query filter the search.
|
2667
|
-
:type query: str
|
2668
|
-
:param bookmarks: Filter by bookmarks.
|
2669
|
-
:type bookmarks: bool
|
2670
|
-
:param mode: Mode of the search.
|
2671
|
-
:type mode: str
|
2672
|
-
:param no_page: No pagination.
|
2673
|
-
:type no_page: bool
|
2800
|
+
:param body: Params/Metrics data (required)
|
2801
|
+
:type body: object
|
2802
|
+
:param entity: Entity where the run will be assigned.
|
2803
|
+
:type entity: str
|
2674
2804
|
:param async_req: Whether to execute the request asynchronously.
|
2675
2805
|
:type async_req: bool, optional
|
2676
2806
|
:param _return_http_data_only: response data without head status code
|
@@ -2692,21 +2822,12 @@ class OrganizationsV1Api(BaseApi):
|
|
2692
2822
|
:return: Returns the result object.
|
2693
2823
|
If the method is called asynchronously,
|
2694
2824
|
returns the request thread.
|
2695
|
-
:rtype: tuple(
|
2825
|
+
:rtype: tuple(V1MultiEventsResponse, status_code(int), headers(HTTPHeaderDict))
|
2696
2826
|
"""
|
2697
2827
|
|
2698
2828
|
_params = locals()
|
2699
2829
|
|
2700
|
-
_all_params = [
|
2701
|
-
"owner",
|
2702
|
-
"offset",
|
2703
|
-
"limit",
|
2704
|
-
"sort",
|
2705
|
-
"query",
|
2706
|
-
"bookmarks",
|
2707
|
-
"mode",
|
2708
|
-
"no_page",
|
2709
|
-
]
|
2830
|
+
_all_params = ["namespace", "owner", "body", "entity"]
|
2710
2831
|
_all_params.extend(
|
2711
2832
|
[
|
2712
2833
|
"async_req",
|
@@ -2724,7 +2845,7 @@ class OrganizationsV1Api(BaseApi):
|
|
2724
2845
|
if _key not in _all_params:
|
2725
2846
|
raise ApiTypeError(
|
2726
2847
|
"Got an unexpected keyword argument '%s'"
|
2727
|
-
" to method
|
2848
|
+
" to method get_organization_multi_run_importance" % _key
|
2728
2849
|
)
|
2729
2850
|
_params[_key] = _val
|
2730
2851
|
del _params["kwargs"]
|
@@ -2733,54 +2854,53 @@ class OrganizationsV1Api(BaseApi):
|
|
2733
2854
|
|
2734
2855
|
# process the path parameters
|
2735
2856
|
_path_params = {}
|
2857
|
+
if _params["namespace"]:
|
2858
|
+
_path_params["namespace"] = _params["namespace"]
|
2859
|
+
|
2736
2860
|
if _params["owner"]:
|
2737
2861
|
_path_params["owner"] = _params["owner"]
|
2738
2862
|
|
2739
2863
|
# process the query parameters
|
2740
2864
|
_query_params = []
|
2741
|
-
if _params.get("
|
2742
|
-
_query_params.append(("
|
2743
|
-
if _params.get("limit") is not None: # noqa: E501
|
2744
|
-
_query_params.append(("limit", _params["limit"]))
|
2745
|
-
if _params.get("sort") is not None: # noqa: E501
|
2746
|
-
_query_params.append(("sort", _params["sort"]))
|
2747
|
-
if _params.get("query") is not None: # noqa: E501
|
2748
|
-
_query_params.append(("query", _params["query"]))
|
2749
|
-
if _params.get("bookmarks") is not None: # noqa: E501
|
2750
|
-
_query_params.append(("bookmarks", _params["bookmarks"]))
|
2751
|
-
if _params.get("mode") is not None: # noqa: E501
|
2752
|
-
_query_params.append(("mode", _params["mode"]))
|
2753
|
-
if _params.get("no_page") is not None: # noqa: E501
|
2754
|
-
_query_params.append(("no_page", _params["no_page"]))
|
2865
|
+
if _params.get("entity") is not None: # noqa: E501
|
2866
|
+
_query_params.append(("entity", _params["entity"]))
|
2755
2867
|
|
2756
2868
|
# process the header parameters
|
2757
2869
|
_header_params = dict(_params.get("_headers", {}))
|
2758
|
-
|
2759
2870
|
# process the form parameters
|
2760
2871
|
_form_params = []
|
2761
2872
|
_files = {}
|
2762
|
-
|
2763
2873
|
# process the body parameter
|
2764
2874
|
_body_params = None
|
2875
|
+
if _params["body"]:
|
2876
|
+
_body_params = _params["body"]
|
2765
2877
|
|
2766
2878
|
# set the HTTP header `Accept`
|
2767
2879
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
2768
2880
|
["application/json"]
|
2769
2881
|
) # noqa: E501
|
2770
2882
|
|
2771
|
-
#
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
|
2776
|
-
|
2777
|
-
"
|
2883
|
+
# set the HTTP header `Content-Type`
|
2884
|
+
_content_types_list = _params.get(
|
2885
|
+
"_content_type",
|
2886
|
+
self.api_client.select_header_content_type(["application/json"]),
|
2887
|
+
)
|
2888
|
+
if _content_types_list:
|
2889
|
+
_header_params["Content-Type"] = _content_types_list
|
2890
|
+
|
2891
|
+
# authentication setting
|
2892
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
2893
|
+
|
2894
|
+
_response_types_map = {
|
2895
|
+
"200": "V1MultiEventsResponse",
|
2896
|
+
"204": "object",
|
2897
|
+
"403": "object",
|
2778
2898
|
"404": "object",
|
2779
2899
|
}
|
2780
2900
|
|
2781
2901
|
return self.api_client.call_api(
|
2782
|
-
"/
|
2783
|
-
"
|
2902
|
+
"/streams/v1/{namespace}/orgs/{owner}/runs/multi/importance",
|
2903
|
+
"POST",
|
2784
2904
|
_path_params,
|
2785
2905
|
_query_params,
|
2786
2906
|
_header_params,
|
@@ -2798,94 +2918,26 @@ class OrganizationsV1Api(BaseApi):
|
|
2798
2918
|
)
|
2799
2919
|
|
2800
2920
|
@validate_call
|
2801
|
-
def
|
2921
|
+
def get_organization_run(
|
2802
2922
|
self,
|
2803
2923
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2804
|
-
|
2805
|
-
|
2806
|
-
]
|
2807
|
-
organization_user_email: Annotated[
|
2808
|
-
Optional[StrictStr], Field(description="Read-only User email.")
|
2809
|
-
] = None,
|
2810
|
-
organization_name: Annotated[
|
2811
|
-
Optional[StrictStr], Field(description="Name.")
|
2812
|
-
] = None,
|
2813
|
-
organization_is_public: Annotated[
|
2814
|
-
Optional[bool],
|
2815
|
-
Field(description="Optional flag to tell if this organization is public."),
|
2816
|
-
] = None,
|
2817
|
-
organization_created_at: Annotated[
|
2818
|
-
Optional[datetime],
|
2819
|
-
Field(description="Optional time when the entity was created."),
|
2820
|
-
] = None,
|
2821
|
-
organization_updated_at: Annotated[
|
2822
|
-
Optional[datetime],
|
2823
|
-
Field(description="Optional last time the entity was updated."),
|
2824
|
-
] = None,
|
2825
|
-
organization_support_revoke_at: Annotated[
|
2826
|
-
Optional[datetime],
|
2827
|
-
Field(description="Optional time to revoke support access."),
|
2828
|
-
] = None,
|
2829
|
-
organization_expiration: Annotated[
|
2830
|
-
Optional[StrictInt], Field(description="Optional expiration for support.")
|
2831
|
-
] = None,
|
2832
|
-
organization_role: Annotated[
|
2833
|
-
Optional[StrictStr], Field(description="Current user's role in this org.")
|
2834
|
-
] = None,
|
2835
|
-
organization_queue: Annotated[
|
2836
|
-
Optional[StrictStr], Field(description="Default queue.")
|
2837
|
-
] = None,
|
2838
|
-
organization_preset: Annotated[
|
2839
|
-
Optional[StrictStr], Field(description="Default preset.")
|
2840
|
-
] = None,
|
2841
|
-
organization_is_cloud_viewable: Annotated[
|
2842
|
-
Optional[bool],
|
2843
|
-
Field(description="Setting to enable viewable metadata on cloud."),
|
2844
|
-
] = None,
|
2845
|
-
organization_archived_deletion_interval: Annotated[
|
2846
|
-
Optional[StrictInt],
|
2847
|
-
Field(
|
2848
|
-
description="Setting to configure default archived deletion interval."
|
2849
|
-
),
|
2850
|
-
] = None,
|
2924
|
+
uuid: Annotated[
|
2925
|
+
StrictStr, Field(..., description="Uuid identifier of the entity")
|
2926
|
+
],
|
2851
2927
|
**kwargs,
|
2852
|
-
) ->
|
2853
|
-
"""Get organization
|
2928
|
+
) -> V1Run: # noqa: E501
|
2929
|
+
"""Get a run in an organization # noqa: E501
|
2854
2930
|
|
2855
2931
|
This method makes a synchronous HTTP request by default. To make an
|
2856
2932
|
asynchronous HTTP request, please pass async_req=True
|
2857
2933
|
|
2858
|
-
>>> thread = api.
|
2934
|
+
>>> thread = api.get_organization_run(owner, uuid, async_req=True)
|
2859
2935
|
>>> result = thread.get()
|
2860
2936
|
|
2861
2937
|
:param owner: Owner of the namespace (required)
|
2862
2938
|
:type owner: str
|
2863
|
-
:param
|
2864
|
-
:type
|
2865
|
-
:param organization_user_email: Read-only User email.
|
2866
|
-
:type organization_user_email: str
|
2867
|
-
:param organization_name: Name.
|
2868
|
-
:type organization_name: str
|
2869
|
-
:param organization_is_public: Optional flag to tell if this organization is public.
|
2870
|
-
:type organization_is_public: bool
|
2871
|
-
:param organization_created_at: Optional time when the entity was created.
|
2872
|
-
:type organization_created_at: datetime
|
2873
|
-
:param organization_updated_at: Optional last time the entity was updated.
|
2874
|
-
:type organization_updated_at: datetime
|
2875
|
-
:param organization_support_revoke_at: Optional time to revoke support access.
|
2876
|
-
:type organization_support_revoke_at: datetime
|
2877
|
-
:param organization_expiration: Optional expiration for support.
|
2878
|
-
:type organization_expiration: int
|
2879
|
-
:param organization_role: Current user's role in this org.
|
2880
|
-
:type organization_role: str
|
2881
|
-
:param organization_queue: Default queue.
|
2882
|
-
:type organization_queue: str
|
2883
|
-
:param organization_preset: Default preset.
|
2884
|
-
:type organization_preset: str
|
2885
|
-
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
2886
|
-
:type organization_is_cloud_viewable: bool
|
2887
|
-
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
2888
|
-
:type organization_archived_deletion_interval: int
|
2939
|
+
:param uuid: Uuid identifier of the entity (required)
|
2940
|
+
:type uuid: str
|
2889
2941
|
:param async_req: Whether to execute the request asynchronously.
|
2890
2942
|
:type async_req: bool, optional
|
2891
2943
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -2899,116 +2951,32 @@ class OrganizationsV1Api(BaseApi):
|
|
2899
2951
|
:return: Returns the result object.
|
2900
2952
|
If the method is called asynchronously,
|
2901
2953
|
returns the request thread.
|
2902
|
-
:rtype:
|
2954
|
+
:rtype: V1Run
|
2903
2955
|
"""
|
2904
2956
|
kwargs["_return_http_data_only"] = True
|
2905
|
-
return self.
|
2906
|
-
owner,
|
2907
|
-
organization_user,
|
2908
|
-
organization_user_email,
|
2909
|
-
organization_name,
|
2910
|
-
organization_is_public,
|
2911
|
-
organization_created_at,
|
2912
|
-
organization_updated_at,
|
2913
|
-
organization_support_revoke_at,
|
2914
|
-
organization_expiration,
|
2915
|
-
organization_role,
|
2916
|
-
organization_queue,
|
2917
|
-
organization_preset,
|
2918
|
-
organization_is_cloud_viewable,
|
2919
|
-
organization_archived_deletion_interval,
|
2920
|
-
**kwargs,
|
2921
|
-
) # noqa: E501
|
2957
|
+
return self.get_organization_run_with_http_info(owner, uuid, **kwargs) # noqa: E501
|
2922
2958
|
|
2923
2959
|
@validate_call
|
2924
|
-
def
|
2960
|
+
def get_organization_run_with_http_info(
|
2925
2961
|
self,
|
2926
2962
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
2927
|
-
|
2928
|
-
|
2929
|
-
]
|
2930
|
-
organization_user_email: Annotated[
|
2931
|
-
Optional[StrictStr], Field(description="Read-only User email.")
|
2932
|
-
] = None,
|
2933
|
-
organization_name: Annotated[
|
2934
|
-
Optional[StrictStr], Field(description="Name.")
|
2935
|
-
] = None,
|
2936
|
-
organization_is_public: Annotated[
|
2937
|
-
Optional[bool],
|
2938
|
-
Field(description="Optional flag to tell if this organization is public."),
|
2939
|
-
] = None,
|
2940
|
-
organization_created_at: Annotated[
|
2941
|
-
Optional[datetime],
|
2942
|
-
Field(description="Optional time when the entity was created."),
|
2943
|
-
] = None,
|
2944
|
-
organization_updated_at: Annotated[
|
2945
|
-
Optional[datetime],
|
2946
|
-
Field(description="Optional last time the entity was updated."),
|
2947
|
-
] = None,
|
2948
|
-
organization_support_revoke_at: Annotated[
|
2949
|
-
Optional[datetime],
|
2950
|
-
Field(description="Optional time to revoke support access."),
|
2951
|
-
] = None,
|
2952
|
-
organization_expiration: Annotated[
|
2953
|
-
Optional[StrictInt], Field(description="Optional expiration for support.")
|
2954
|
-
] = None,
|
2955
|
-
organization_role: Annotated[
|
2956
|
-
Optional[StrictStr], Field(description="Current user's role in this org.")
|
2957
|
-
] = None,
|
2958
|
-
organization_queue: Annotated[
|
2959
|
-
Optional[StrictStr], Field(description="Default queue.")
|
2960
|
-
] = None,
|
2961
|
-
organization_preset: Annotated[
|
2962
|
-
Optional[StrictStr], Field(description="Default preset.")
|
2963
|
-
] = None,
|
2964
|
-
organization_is_cloud_viewable: Annotated[
|
2965
|
-
Optional[bool],
|
2966
|
-
Field(description="Setting to enable viewable metadata on cloud."),
|
2967
|
-
] = None,
|
2968
|
-
organization_archived_deletion_interval: Annotated[
|
2969
|
-
Optional[StrictInt],
|
2970
|
-
Field(
|
2971
|
-
description="Setting to configure default archived deletion interval."
|
2972
|
-
),
|
2973
|
-
] = None,
|
2963
|
+
uuid: Annotated[
|
2964
|
+
StrictStr, Field(..., description="Uuid identifier of the entity")
|
2965
|
+
],
|
2974
2966
|
**kwargs,
|
2975
2967
|
): # noqa: E501
|
2976
|
-
"""Get organization
|
2968
|
+
"""Get a run in an organization # noqa: E501
|
2977
2969
|
|
2978
2970
|
This method makes a synchronous HTTP request by default. To make an
|
2979
2971
|
asynchronous HTTP request, please pass async_req=True
|
2980
2972
|
|
2981
|
-
>>> thread = api.
|
2973
|
+
>>> thread = api.get_organization_run_with_http_info(owner, uuid, async_req=True)
|
2982
2974
|
>>> result = thread.get()
|
2983
2975
|
|
2984
2976
|
:param owner: Owner of the namespace (required)
|
2985
2977
|
:type owner: str
|
2986
|
-
:param
|
2987
|
-
:type
|
2988
|
-
:param organization_user_email: Read-only User email.
|
2989
|
-
:type organization_user_email: str
|
2990
|
-
:param organization_name: Name.
|
2991
|
-
:type organization_name: str
|
2992
|
-
:param organization_is_public: Optional flag to tell if this organization is public.
|
2993
|
-
:type organization_is_public: bool
|
2994
|
-
:param organization_created_at: Optional time when the entity was created.
|
2995
|
-
:type organization_created_at: datetime
|
2996
|
-
:param organization_updated_at: Optional last time the entity was updated.
|
2997
|
-
:type organization_updated_at: datetime
|
2998
|
-
:param organization_support_revoke_at: Optional time to revoke support access.
|
2999
|
-
:type organization_support_revoke_at: datetime
|
3000
|
-
:param organization_expiration: Optional expiration for support.
|
3001
|
-
:type organization_expiration: int
|
3002
|
-
:param organization_role: Current user's role in this org.
|
3003
|
-
:type organization_role: str
|
3004
|
-
:param organization_queue: Default queue.
|
3005
|
-
:type organization_queue: str
|
3006
|
-
:param organization_preset: Default preset.
|
3007
|
-
:type organization_preset: str
|
3008
|
-
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
3009
|
-
:type organization_is_cloud_viewable: bool
|
3010
|
-
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
3011
|
-
:type organization_archived_deletion_interval: int
|
2978
|
+
:param uuid: Uuid identifier of the entity (required)
|
2979
|
+
:type uuid: str
|
3012
2980
|
:param async_req: Whether to execute the request asynchronously.
|
3013
2981
|
:type async_req: bool, optional
|
3014
2982
|
:param _return_http_data_only: response data without head status code
|
@@ -3030,27 +2998,12 @@ class OrganizationsV1Api(BaseApi):
|
|
3030
2998
|
:return: Returns the result object.
|
3031
2999
|
If the method is called asynchronously,
|
3032
3000
|
returns the request thread.
|
3033
|
-
:rtype: tuple(
|
3001
|
+
:rtype: tuple(V1Run, status_code(int), headers(HTTPHeaderDict))
|
3034
3002
|
"""
|
3035
3003
|
|
3036
3004
|
_params = locals()
|
3037
3005
|
|
3038
|
-
_all_params = [
|
3039
|
-
"owner",
|
3040
|
-
"organization_user",
|
3041
|
-
"organization_user_email",
|
3042
|
-
"organization_name",
|
3043
|
-
"organization_is_public",
|
3044
|
-
"organization_created_at",
|
3045
|
-
"organization_updated_at",
|
3046
|
-
"organization_support_revoke_at",
|
3047
|
-
"organization_expiration",
|
3048
|
-
"organization_role",
|
3049
|
-
"organization_queue",
|
3050
|
-
"organization_preset",
|
3051
|
-
"organization_is_cloud_viewable",
|
3052
|
-
"organization_archived_deletion_interval",
|
3053
|
-
]
|
3006
|
+
_all_params = ["owner", "uuid"]
|
3054
3007
|
_all_params.extend(
|
3055
3008
|
[
|
3056
3009
|
"async_req",
|
@@ -3068,7 +3021,7 @@ class OrganizationsV1Api(BaseApi):
|
|
3068
3021
|
if _key not in _all_params:
|
3069
3022
|
raise ApiTypeError(
|
3070
3023
|
"Got an unexpected keyword argument '%s'"
|
3071
|
-
" to method
|
3024
|
+
" to method get_organization_run" % _key
|
3072
3025
|
)
|
3073
3026
|
_params[_key] = _val
|
3074
3027
|
del _params["kwargs"]
|
@@ -3080,72 +3033,1253 @@ class OrganizationsV1Api(BaseApi):
|
|
3080
3033
|
if _params["owner"]:
|
3081
3034
|
_path_params["owner"] = _params["owner"]
|
3082
3035
|
|
3036
|
+
if _params["uuid"]:
|
3037
|
+
_path_params["uuid"] = _params["uuid"]
|
3038
|
+
|
3083
3039
|
# process the query parameters
|
3084
3040
|
_query_params = []
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
|
3095
|
-
|
3096
|
-
|
3097
|
-
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
|
3104
|
-
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
3123
|
-
)
|
3124
|
-
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3041
|
+
# process the header parameters
|
3042
|
+
_header_params = dict(_params.get("_headers", {}))
|
3043
|
+
# process the form parameters
|
3044
|
+
_form_params = []
|
3045
|
+
_files = {}
|
3046
|
+
# process the body parameter
|
3047
|
+
_body_params = None
|
3048
|
+
# set the HTTP header `Accept`
|
3049
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3050
|
+
["application/json"]
|
3051
|
+
) # noqa: E501
|
3052
|
+
|
3053
|
+
# authentication setting
|
3054
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3055
|
+
|
3056
|
+
_response_types_map = {
|
3057
|
+
"200": "V1Run",
|
3058
|
+
"204": "object",
|
3059
|
+
"403": "object",
|
3060
|
+
"404": "object",
|
3061
|
+
}
|
3062
|
+
|
3063
|
+
return self.api_client.call_api(
|
3064
|
+
"/api/v1/orgs/{owner}/runs/{uuid}",
|
3065
|
+
"GET",
|
3066
|
+
_path_params,
|
3067
|
+
_query_params,
|
3068
|
+
_header_params,
|
3069
|
+
body=_body_params,
|
3070
|
+
post_params=_form_params,
|
3071
|
+
files=_files,
|
3072
|
+
response_types_map=_response_types_map,
|
3073
|
+
auth_settings=_auth_settings,
|
3074
|
+
async_req=_params.get("async_req"),
|
3075
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3076
|
+
_preload_content=_params.get("_preload_content", True),
|
3077
|
+
_request_timeout=_params.get("_request_timeout"),
|
3078
|
+
collection_formats=_collection_formats,
|
3079
|
+
_request_auth=_params.get("_request_auth"),
|
3080
|
+
)
|
3081
|
+
|
3082
|
+
@validate_call
|
3083
|
+
def get_organization_runs(
|
3084
|
+
self,
|
3085
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3086
|
+
offset: Annotated[
|
3087
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3088
|
+
] = None,
|
3089
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3090
|
+
sort: Annotated[
|
3091
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3092
|
+
] = None,
|
3093
|
+
query: Annotated[
|
3094
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3095
|
+
] = None,
|
3096
|
+
bookmarks: Annotated[
|
3097
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3098
|
+
] = None,
|
3099
|
+
mode: Annotated[
|
3100
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3101
|
+
] = None,
|
3102
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3103
|
+
**kwargs,
|
3104
|
+
) -> V1ListRunsResponse: # noqa: E501
|
3105
|
+
"""Get all runs in an organization # noqa: E501
|
3106
|
+
|
3107
|
+
This method makes a synchronous HTTP request by default. To make an
|
3108
|
+
asynchronous HTTP request, please pass async_req=True
|
3109
|
+
|
3110
|
+
>>> thread = api.get_organization_runs(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3111
|
+
>>> result = thread.get()
|
3112
|
+
|
3113
|
+
:param owner: Owner of the namespace (required)
|
3114
|
+
:type owner: str
|
3115
|
+
:param offset: Pagination offset.
|
3116
|
+
:type offset: int
|
3117
|
+
:param limit: Limit size.
|
3118
|
+
:type limit: int
|
3119
|
+
:param sort: Sort to order the search.
|
3120
|
+
:type sort: str
|
3121
|
+
:param query: Query filter the search.
|
3122
|
+
:type query: str
|
3123
|
+
:param bookmarks: Filter by bookmarks.
|
3124
|
+
:type bookmarks: bool
|
3125
|
+
:param mode: Mode of the search.
|
3126
|
+
:type mode: str
|
3127
|
+
:param no_page: No pagination.
|
3128
|
+
:type no_page: bool
|
3129
|
+
:param async_req: Whether to execute the request asynchronously.
|
3130
|
+
:type async_req: bool, optional
|
3131
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3132
|
+
be returned without reading/decoding response
|
3133
|
+
data. Default is True.
|
3134
|
+
:type _preload_content: bool, optional
|
3135
|
+
:param _request_timeout: timeout setting for this request. If one
|
3136
|
+
number provided, it will be total request
|
3137
|
+
timeout. It can also be a pair (tuple) of
|
3138
|
+
(connection, read) timeouts.
|
3139
|
+
:return: Returns the result object.
|
3140
|
+
If the method is called asynchronously,
|
3141
|
+
returns the request thread.
|
3142
|
+
:rtype: V1ListRunsResponse
|
3143
|
+
"""
|
3144
|
+
kwargs["_return_http_data_only"] = True
|
3145
|
+
return self.get_organization_runs_with_http_info(
|
3146
|
+
owner, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
3147
|
+
) # noqa: E501
|
3148
|
+
|
3149
|
+
@validate_call
|
3150
|
+
def get_organization_runs_with_http_info(
|
3151
|
+
self,
|
3152
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3153
|
+
offset: Annotated[
|
3154
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3155
|
+
] = None,
|
3156
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3157
|
+
sort: Annotated[
|
3158
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3159
|
+
] = None,
|
3160
|
+
query: Annotated[
|
3161
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3162
|
+
] = None,
|
3163
|
+
bookmarks: Annotated[
|
3164
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3165
|
+
] = None,
|
3166
|
+
mode: Annotated[
|
3167
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3168
|
+
] = None,
|
3169
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3170
|
+
**kwargs,
|
3171
|
+
): # noqa: E501
|
3172
|
+
"""Get all runs in an organization # noqa: E501
|
3173
|
+
|
3174
|
+
This method makes a synchronous HTTP request by default. To make an
|
3175
|
+
asynchronous HTTP request, please pass async_req=True
|
3176
|
+
|
3177
|
+
>>> thread = api.get_organization_runs_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3178
|
+
>>> result = thread.get()
|
3179
|
+
|
3180
|
+
:param owner: Owner of the namespace (required)
|
3181
|
+
:type owner: str
|
3182
|
+
:param offset: Pagination offset.
|
3183
|
+
:type offset: int
|
3184
|
+
:param limit: Limit size.
|
3185
|
+
:type limit: int
|
3186
|
+
:param sort: Sort to order the search.
|
3187
|
+
:type sort: str
|
3188
|
+
:param query: Query filter the search.
|
3189
|
+
:type query: str
|
3190
|
+
:param bookmarks: Filter by bookmarks.
|
3191
|
+
:type bookmarks: bool
|
3192
|
+
:param mode: Mode of the search.
|
3193
|
+
:type mode: str
|
3194
|
+
:param no_page: No pagination.
|
3195
|
+
:type no_page: bool
|
3196
|
+
:param async_req: Whether to execute the request asynchronously.
|
3197
|
+
:type async_req: bool, optional
|
3198
|
+
:param _return_http_data_only: response data without head status code
|
3199
|
+
and headers
|
3200
|
+
:type _return_http_data_only: bool, optional
|
3201
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3202
|
+
be returned without reading/decoding response
|
3203
|
+
data. Default is True.
|
3204
|
+
:type _preload_content: bool, optional
|
3205
|
+
:param _request_timeout: timeout setting for this request. If one
|
3206
|
+
number provided, it will be total request
|
3207
|
+
timeout. It can also be a pair (tuple) of
|
3208
|
+
(connection, read) timeouts.
|
3209
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3210
|
+
request; this effectively ignores the authentication
|
3211
|
+
in the spec for a single request.
|
3212
|
+
:type _request_auth: dict, optional
|
3213
|
+
:type _content_type: string, optional: force content-type for the request
|
3214
|
+
:return: Returns the result object.
|
3215
|
+
If the method is called asynchronously,
|
3216
|
+
returns the request thread.
|
3217
|
+
:rtype: tuple(V1ListRunsResponse, status_code(int), headers(HTTPHeaderDict))
|
3218
|
+
"""
|
3219
|
+
|
3220
|
+
_params = locals()
|
3221
|
+
|
3222
|
+
_all_params = [
|
3223
|
+
"owner",
|
3224
|
+
"offset",
|
3225
|
+
"limit",
|
3226
|
+
"sort",
|
3227
|
+
"query",
|
3228
|
+
"bookmarks",
|
3229
|
+
"mode",
|
3230
|
+
"no_page",
|
3231
|
+
]
|
3232
|
+
_all_params.extend(
|
3233
|
+
[
|
3234
|
+
"async_req",
|
3235
|
+
"_return_http_data_only",
|
3236
|
+
"_preload_content",
|
3237
|
+
"_request_timeout",
|
3238
|
+
"_request_auth",
|
3239
|
+
"_content_type",
|
3240
|
+
"_headers",
|
3241
|
+
]
|
3242
|
+
)
|
3243
|
+
|
3244
|
+
# validate the arguments
|
3245
|
+
for _key, _val in _params["kwargs"].items():
|
3246
|
+
if _key not in _all_params:
|
3247
|
+
raise ApiTypeError(
|
3248
|
+
"Got an unexpected keyword argument '%s'"
|
3249
|
+
" to method get_organization_runs" % _key
|
3250
|
+
)
|
3251
|
+
_params[_key] = _val
|
3252
|
+
del _params["kwargs"]
|
3253
|
+
|
3254
|
+
_collection_formats = {}
|
3255
|
+
|
3256
|
+
# process the path parameters
|
3257
|
+
_path_params = {}
|
3258
|
+
if _params["owner"]:
|
3259
|
+
_path_params["owner"] = _params["owner"]
|
3260
|
+
|
3261
|
+
# process the query parameters
|
3262
|
+
_query_params = []
|
3263
|
+
if _params.get("offset") is not None: # noqa: E501
|
3264
|
+
_query_params.append(("offset", _params["offset"]))
|
3265
|
+
|
3266
|
+
if _params.get("limit") is not None: # noqa: E501
|
3267
|
+
_query_params.append(("limit", _params["limit"]))
|
3268
|
+
|
3269
|
+
if _params.get("sort") is not None: # noqa: E501
|
3270
|
+
_query_params.append(("sort", _params["sort"]))
|
3271
|
+
|
3272
|
+
if _params.get("query") is not None: # noqa: E501
|
3273
|
+
_query_params.append(("query", _params["query"]))
|
3274
|
+
|
3275
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
3276
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
3277
|
+
|
3278
|
+
if _params.get("mode") is not None: # noqa: E501
|
3279
|
+
_query_params.append(("mode", _params["mode"]))
|
3280
|
+
|
3281
|
+
if _params.get("no_page") is not None: # noqa: E501
|
3282
|
+
_query_params.append(("no_page", _params["no_page"]))
|
3283
|
+
|
3284
|
+
# process the header parameters
|
3285
|
+
_header_params = dict(_params.get("_headers", {}))
|
3286
|
+
# process the form parameters
|
3287
|
+
_form_params = []
|
3288
|
+
_files = {}
|
3289
|
+
# process the body parameter
|
3290
|
+
_body_params = None
|
3291
|
+
# set the HTTP header `Accept`
|
3292
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3293
|
+
["application/json"]
|
3294
|
+
) # noqa: E501
|
3295
|
+
|
3296
|
+
# authentication setting
|
3297
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3298
|
+
|
3299
|
+
_response_types_map = {
|
3300
|
+
"200": "V1ListRunsResponse",
|
3301
|
+
"204": "object",
|
3302
|
+
"403": "object",
|
3303
|
+
"404": "object",
|
3304
|
+
}
|
3305
|
+
|
3306
|
+
return self.api_client.call_api(
|
3307
|
+
"/api/v1/orgs/{owner}/runs",
|
3308
|
+
"GET",
|
3309
|
+
_path_params,
|
3310
|
+
_query_params,
|
3311
|
+
_header_params,
|
3312
|
+
body=_body_params,
|
3313
|
+
post_params=_form_params,
|
3314
|
+
files=_files,
|
3315
|
+
response_types_map=_response_types_map,
|
3316
|
+
auth_settings=_auth_settings,
|
3317
|
+
async_req=_params.get("async_req"),
|
3318
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3319
|
+
_preload_content=_params.get("_preload_content", True),
|
3320
|
+
_request_timeout=_params.get("_request_timeout"),
|
3321
|
+
collection_formats=_collection_formats,
|
3322
|
+
_request_auth=_params.get("_request_auth"),
|
3323
|
+
)
|
3324
|
+
|
3325
|
+
@validate_call
|
3326
|
+
def get_organization_runs_artifacts_lineage(
|
3327
|
+
self,
|
3328
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3329
|
+
name: Annotated[
|
3330
|
+
Optional[StrictStr], Field(description="Entity managing the resource.")
|
3331
|
+
] = None,
|
3332
|
+
offset: Annotated[
|
3333
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3334
|
+
] = None,
|
3335
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3336
|
+
sort: Annotated[
|
3337
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3338
|
+
] = None,
|
3339
|
+
query: Annotated[
|
3340
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3341
|
+
] = None,
|
3342
|
+
bookmarks: Annotated[
|
3343
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3344
|
+
] = None,
|
3345
|
+
mode: Annotated[
|
3346
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3347
|
+
] = None,
|
3348
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3349
|
+
**kwargs,
|
3350
|
+
) -> V1ListRunArtifactsResponse: # noqa: E501
|
3351
|
+
"""Get runs artifacts lineage # noqa: E501
|
3352
|
+
|
3353
|
+
This method makes a synchronous HTTP request by default. To make an
|
3354
|
+
asynchronous HTTP request, please pass async_req=True
|
3355
|
+
|
3356
|
+
>>> thread = api.get_organization_runs_artifacts_lineage(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3357
|
+
>>> result = thread.get()
|
3358
|
+
|
3359
|
+
:param owner: Owner of the namespace (required)
|
3360
|
+
:type owner: str
|
3361
|
+
:param name: Entity managing the resource.
|
3362
|
+
:type name: str
|
3363
|
+
:param offset: Pagination offset.
|
3364
|
+
:type offset: int
|
3365
|
+
:param limit: Limit size.
|
3366
|
+
:type limit: int
|
3367
|
+
:param sort: Sort to order the search.
|
3368
|
+
:type sort: str
|
3369
|
+
:param query: Query filter the search.
|
3370
|
+
:type query: str
|
3371
|
+
:param bookmarks: Filter by bookmarks.
|
3372
|
+
:type bookmarks: bool
|
3373
|
+
:param mode: Mode of the search.
|
3374
|
+
:type mode: str
|
3375
|
+
:param no_page: No pagination.
|
3376
|
+
:type no_page: bool
|
3377
|
+
:param async_req: Whether to execute the request asynchronously.
|
3378
|
+
:type async_req: bool, optional
|
3379
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3380
|
+
be returned without reading/decoding response
|
3381
|
+
data. Default is True.
|
3382
|
+
:type _preload_content: bool, optional
|
3383
|
+
:param _request_timeout: timeout setting for this request. If one
|
3384
|
+
number provided, it will be total request
|
3385
|
+
timeout. It can also be a pair (tuple) of
|
3386
|
+
(connection, read) timeouts.
|
3387
|
+
:return: Returns the result object.
|
3388
|
+
If the method is called asynchronously,
|
3389
|
+
returns the request thread.
|
3390
|
+
:rtype: V1ListRunArtifactsResponse
|
3391
|
+
"""
|
3392
|
+
kwargs["_return_http_data_only"] = True
|
3393
|
+
return self.get_organization_runs_artifacts_lineage_with_http_info(
|
3394
|
+
owner, name, offset, limit, sort, query, bookmarks, mode, no_page, **kwargs
|
3395
|
+
) # noqa: E501
|
3396
|
+
|
3397
|
+
@validate_call
|
3398
|
+
def get_organization_runs_artifacts_lineage_with_http_info(
|
3399
|
+
self,
|
3400
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3401
|
+
name: Annotated[
|
3402
|
+
Optional[StrictStr], Field(description="Entity managing the resource.")
|
3403
|
+
] = None,
|
3404
|
+
offset: Annotated[
|
3405
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
3406
|
+
] = None,
|
3407
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
3408
|
+
sort: Annotated[
|
3409
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
3410
|
+
] = None,
|
3411
|
+
query: Annotated[
|
3412
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
3413
|
+
] = None,
|
3414
|
+
bookmarks: Annotated[
|
3415
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
3416
|
+
] = None,
|
3417
|
+
mode: Annotated[
|
3418
|
+
Optional[StrictStr], Field(description="Mode of the search.")
|
3419
|
+
] = None,
|
3420
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3421
|
+
**kwargs,
|
3422
|
+
): # noqa: E501
|
3423
|
+
"""Get runs artifacts lineage # noqa: E501
|
3424
|
+
|
3425
|
+
This method makes a synchronous HTTP request by default. To make an
|
3426
|
+
asynchronous HTTP request, please pass async_req=True
|
3427
|
+
|
3428
|
+
>>> thread = api.get_organization_runs_artifacts_lineage_with_http_info(owner, name, offset, limit, sort, query, bookmarks, mode, no_page, async_req=True)
|
3429
|
+
>>> result = thread.get()
|
3430
|
+
|
3431
|
+
:param owner: Owner of the namespace (required)
|
3432
|
+
:type owner: str
|
3433
|
+
:param name: Entity managing the resource.
|
3434
|
+
:type name: str
|
3435
|
+
:param offset: Pagination offset.
|
3436
|
+
:type offset: int
|
3437
|
+
:param limit: Limit size.
|
3438
|
+
:type limit: int
|
3439
|
+
:param sort: Sort to order the search.
|
3440
|
+
:type sort: str
|
3441
|
+
:param query: Query filter the search.
|
3442
|
+
:type query: str
|
3443
|
+
:param bookmarks: Filter by bookmarks.
|
3444
|
+
:type bookmarks: bool
|
3445
|
+
:param mode: Mode of the search.
|
3446
|
+
:type mode: str
|
3447
|
+
:param no_page: No pagination.
|
3448
|
+
:type no_page: bool
|
3449
|
+
:param async_req: Whether to execute the request asynchronously.
|
3450
|
+
:type async_req: bool, optional
|
3451
|
+
:param _return_http_data_only: response data without head status code
|
3452
|
+
and headers
|
3453
|
+
:type _return_http_data_only: bool, optional
|
3454
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3455
|
+
be returned without reading/decoding response
|
3456
|
+
data. Default is True.
|
3457
|
+
:type _preload_content: bool, optional
|
3458
|
+
:param _request_timeout: timeout setting for this request. If one
|
3459
|
+
number provided, it will be total request
|
3460
|
+
timeout. It can also be a pair (tuple) of
|
3461
|
+
(connection, read) timeouts.
|
3462
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3463
|
+
request; this effectively ignores the authentication
|
3464
|
+
in the spec for a single request.
|
3465
|
+
:type _request_auth: dict, optional
|
3466
|
+
:type _content_type: string, optional: force content-type for the request
|
3467
|
+
:return: Returns the result object.
|
3468
|
+
If the method is called asynchronously,
|
3469
|
+
returns the request thread.
|
3470
|
+
:rtype: tuple(V1ListRunArtifactsResponse, status_code(int), headers(HTTPHeaderDict))
|
3471
|
+
"""
|
3472
|
+
|
3473
|
+
_params = locals()
|
3474
|
+
|
3475
|
+
_all_params = [
|
3476
|
+
"owner",
|
3477
|
+
"name",
|
3478
|
+
"offset",
|
3479
|
+
"limit",
|
3480
|
+
"sort",
|
3481
|
+
"query",
|
3482
|
+
"bookmarks",
|
3483
|
+
"mode",
|
3484
|
+
"no_page",
|
3485
|
+
]
|
3486
|
+
_all_params.extend(
|
3487
|
+
[
|
3488
|
+
"async_req",
|
3489
|
+
"_return_http_data_only",
|
3490
|
+
"_preload_content",
|
3491
|
+
"_request_timeout",
|
3492
|
+
"_request_auth",
|
3493
|
+
"_content_type",
|
3494
|
+
"_headers",
|
3495
|
+
]
|
3496
|
+
)
|
3497
|
+
|
3498
|
+
# validate the arguments
|
3499
|
+
for _key, _val in _params["kwargs"].items():
|
3500
|
+
if _key not in _all_params:
|
3501
|
+
raise ApiTypeError(
|
3502
|
+
"Got an unexpected keyword argument '%s'"
|
3503
|
+
" to method get_organization_runs_artifacts_lineage" % _key
|
3504
|
+
)
|
3505
|
+
_params[_key] = _val
|
3506
|
+
del _params["kwargs"]
|
3507
|
+
|
3508
|
+
_collection_formats = {}
|
3509
|
+
|
3510
|
+
# process the path parameters
|
3511
|
+
_path_params = {}
|
3512
|
+
if _params["owner"]:
|
3513
|
+
_path_params["owner"] = _params["owner"]
|
3514
|
+
|
3515
|
+
# process the query parameters
|
3516
|
+
_query_params = []
|
3517
|
+
if _params.get("name") is not None: # noqa: E501
|
3518
|
+
_query_params.append(("name", _params["name"]))
|
3519
|
+
|
3520
|
+
if _params.get("offset") is not None: # noqa: E501
|
3521
|
+
_query_params.append(("offset", _params["offset"]))
|
3522
|
+
|
3523
|
+
if _params.get("limit") is not None: # noqa: E501
|
3524
|
+
_query_params.append(("limit", _params["limit"]))
|
3525
|
+
|
3526
|
+
if _params.get("sort") is not None: # noqa: E501
|
3527
|
+
_query_params.append(("sort", _params["sort"]))
|
3528
|
+
|
3529
|
+
if _params.get("query") is not None: # noqa: E501
|
3530
|
+
_query_params.append(("query", _params["query"]))
|
3531
|
+
|
3532
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
3533
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
3534
|
+
|
3535
|
+
if _params.get("mode") is not None: # noqa: E501
|
3536
|
+
_query_params.append(("mode", _params["mode"]))
|
3537
|
+
|
3538
|
+
if _params.get("no_page") is not None: # noqa: E501
|
3539
|
+
_query_params.append(("no_page", _params["no_page"]))
|
3540
|
+
|
3541
|
+
# process the header parameters
|
3542
|
+
_header_params = dict(_params.get("_headers", {}))
|
3543
|
+
# process the form parameters
|
3544
|
+
_form_params = []
|
3545
|
+
_files = {}
|
3546
|
+
# process the body parameter
|
3547
|
+
_body_params = None
|
3548
|
+
# set the HTTP header `Accept`
|
3549
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3550
|
+
["application/json"]
|
3551
|
+
) # noqa: E501
|
3552
|
+
|
3553
|
+
# authentication setting
|
3554
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
3555
|
+
|
3556
|
+
_response_types_map = {
|
3557
|
+
"200": "V1ListRunArtifactsResponse",
|
3558
|
+
"204": "object",
|
3559
|
+
"403": "object",
|
3560
|
+
"404": "object",
|
3561
|
+
}
|
3562
|
+
|
3563
|
+
return self.api_client.call_api(
|
3564
|
+
"/api/v1/orgs/{owner}/runs/lineage/artifacts",
|
3565
|
+
"GET",
|
3566
|
+
_path_params,
|
3567
|
+
_query_params,
|
3568
|
+
_header_params,
|
3569
|
+
body=_body_params,
|
3570
|
+
post_params=_form_params,
|
3571
|
+
files=_files,
|
3572
|
+
response_types_map=_response_types_map,
|
3573
|
+
auth_settings=_auth_settings,
|
3574
|
+
async_req=_params.get("async_req"),
|
3575
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
3576
|
+
_preload_content=_params.get("_preload_content", True),
|
3577
|
+
_request_timeout=_params.get("_request_timeout"),
|
3578
|
+
collection_formats=_collection_formats,
|
3579
|
+
_request_auth=_params.get("_request_auth"),
|
3580
|
+
)
|
3581
|
+
|
3582
|
+
@validate_call
|
3583
|
+
def get_organization_settings(
|
3584
|
+
self,
|
3585
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3586
|
+
organization_user: Annotated[
|
3587
|
+
Optional[StrictStr], Field(description="User.")
|
3588
|
+
] = None,
|
3589
|
+
organization_user_email: Annotated[
|
3590
|
+
Optional[StrictStr], Field(description="Read-only User email.")
|
3591
|
+
] = None,
|
3592
|
+
organization_name: Annotated[
|
3593
|
+
Optional[StrictStr], Field(description="Name.")
|
3594
|
+
] = None,
|
3595
|
+
organization_is_public: Annotated[
|
3596
|
+
Optional[bool],
|
3597
|
+
Field(description="Optional flag to tell if this organization is public."),
|
3598
|
+
] = None,
|
3599
|
+
organization_created_at: Annotated[
|
3600
|
+
Optional[datetime],
|
3601
|
+
Field(description="Optional time when the entity was created."),
|
3602
|
+
] = None,
|
3603
|
+
organization_updated_at: Annotated[
|
3604
|
+
Optional[datetime],
|
3605
|
+
Field(description="Optional last time the entity was updated."),
|
3606
|
+
] = None,
|
3607
|
+
organization_support_revoke_at: Annotated[
|
3608
|
+
Optional[datetime],
|
3609
|
+
Field(description="Optional time to revoke support access."),
|
3610
|
+
] = None,
|
3611
|
+
organization_expiration: Annotated[
|
3612
|
+
Optional[StrictInt], Field(description="Optional expiration for support.")
|
3613
|
+
] = None,
|
3614
|
+
organization_role: Annotated[
|
3615
|
+
Optional[StrictStr], Field(description="Current user's role in this org.")
|
3616
|
+
] = None,
|
3617
|
+
organization_queue: Annotated[
|
3618
|
+
Optional[StrictStr], Field(description="Default queue.")
|
3619
|
+
] = None,
|
3620
|
+
organization_default_presets: Annotated[
|
3621
|
+
Optional[List[StrictStr]], Field(description="Default presets.")
|
3622
|
+
] = None,
|
3623
|
+
organization_default_presets_ordered: Annotated[
|
3624
|
+
Optional[List[StrictStr]], Field(description="Default presets.")
|
3625
|
+
] = None,
|
3626
|
+
organization_is_cloud_viewable: Annotated[
|
3627
|
+
Optional[bool],
|
3628
|
+
Field(description="Setting to enable viewable metadata on cloud."),
|
3629
|
+
] = None,
|
3630
|
+
organization_archived_deletion_interval: Annotated[
|
3631
|
+
Optional[StrictInt],
|
3632
|
+
Field(
|
3633
|
+
description="Setting to configure default archived deletion interval."
|
3634
|
+
),
|
3635
|
+
] = None,
|
3636
|
+
**kwargs,
|
3637
|
+
) -> V1Organization: # noqa: E501
|
3638
|
+
"""Get organization settings # noqa: E501
|
3639
|
+
|
3640
|
+
This method makes a synchronous HTTP request by default. To make an
|
3641
|
+
asynchronous HTTP request, please pass async_req=True
|
3642
|
+
|
3643
|
+
>>> thread = api.get_organization_settings(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_default_presets, organization_default_presets_ordered, organization_is_cloud_viewable, organization_archived_deletion_interval, async_req=True)
|
3644
|
+
>>> result = thread.get()
|
3645
|
+
|
3646
|
+
:param owner: Owner of the namespace (required)
|
3647
|
+
:type owner: str
|
3648
|
+
:param organization_user: User.
|
3649
|
+
:type organization_user: str
|
3650
|
+
:param organization_user_email: Read-only User email.
|
3651
|
+
:type organization_user_email: str
|
3652
|
+
:param organization_name: Name.
|
3653
|
+
:type organization_name: str
|
3654
|
+
:param organization_is_public: Optional flag to tell if this organization is public.
|
3655
|
+
:type organization_is_public: bool
|
3656
|
+
:param organization_created_at: Optional time when the entity was created.
|
3657
|
+
:type organization_created_at: datetime
|
3658
|
+
:param organization_updated_at: Optional last time the entity was updated.
|
3659
|
+
:type organization_updated_at: datetime
|
3660
|
+
:param organization_support_revoke_at: Optional time to revoke support access.
|
3661
|
+
:type organization_support_revoke_at: datetime
|
3662
|
+
:param organization_expiration: Optional expiration for support.
|
3663
|
+
:type organization_expiration: int
|
3664
|
+
:param organization_role: Current user's role in this org.
|
3665
|
+
:type organization_role: str
|
3666
|
+
:param organization_queue: Default queue.
|
3667
|
+
:type organization_queue: str
|
3668
|
+
:param organization_default_presets: Default presets.
|
3669
|
+
:type organization_default_presets: List[str]
|
3670
|
+
:param organization_default_presets_ordered: Default presets.
|
3671
|
+
:type organization_default_presets_ordered: List[str]
|
3672
|
+
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
3673
|
+
:type organization_is_cloud_viewable: bool
|
3674
|
+
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
3675
|
+
:type organization_archived_deletion_interval: int
|
3676
|
+
:param async_req: Whether to execute the request asynchronously.
|
3677
|
+
:type async_req: bool, optional
|
3678
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3679
|
+
be returned without reading/decoding response
|
3680
|
+
data. Default is True.
|
3681
|
+
:type _preload_content: bool, optional
|
3682
|
+
:param _request_timeout: timeout setting for this request. If one
|
3683
|
+
number provided, it will be total request
|
3684
|
+
timeout. It can also be a pair (tuple) of
|
3685
|
+
(connection, read) timeouts.
|
3686
|
+
:return: Returns the result object.
|
3687
|
+
If the method is called asynchronously,
|
3688
|
+
returns the request thread.
|
3689
|
+
:rtype: V1Organization
|
3690
|
+
"""
|
3691
|
+
kwargs["_return_http_data_only"] = True
|
3692
|
+
return self.get_organization_settings_with_http_info(
|
3693
|
+
owner,
|
3694
|
+
organization_user,
|
3695
|
+
organization_user_email,
|
3696
|
+
organization_name,
|
3697
|
+
organization_is_public,
|
3698
|
+
organization_created_at,
|
3699
|
+
organization_updated_at,
|
3700
|
+
organization_support_revoke_at,
|
3701
|
+
organization_expiration,
|
3702
|
+
organization_role,
|
3703
|
+
organization_queue,
|
3704
|
+
organization_default_presets,
|
3705
|
+
organization_default_presets_ordered,
|
3706
|
+
organization_is_cloud_viewable,
|
3707
|
+
organization_archived_deletion_interval,
|
3708
|
+
**kwargs,
|
3709
|
+
) # noqa: E501
|
3710
|
+
|
3711
|
+
@validate_call
|
3712
|
+
def get_organization_settings_with_http_info(
|
3713
|
+
self,
|
3714
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
3715
|
+
organization_user: Annotated[
|
3716
|
+
Optional[StrictStr], Field(description="User.")
|
3717
|
+
] = None,
|
3718
|
+
organization_user_email: Annotated[
|
3719
|
+
Optional[StrictStr], Field(description="Read-only User email.")
|
3720
|
+
] = None,
|
3721
|
+
organization_name: Annotated[
|
3722
|
+
Optional[StrictStr], Field(description="Name.")
|
3723
|
+
] = None,
|
3724
|
+
organization_is_public: Annotated[
|
3725
|
+
Optional[bool],
|
3726
|
+
Field(description="Optional flag to tell if this organization is public."),
|
3727
|
+
] = None,
|
3728
|
+
organization_created_at: Annotated[
|
3729
|
+
Optional[datetime],
|
3730
|
+
Field(description="Optional time when the entity was created."),
|
3731
|
+
] = None,
|
3732
|
+
organization_updated_at: Annotated[
|
3733
|
+
Optional[datetime],
|
3734
|
+
Field(description="Optional last time the entity was updated."),
|
3735
|
+
] = None,
|
3736
|
+
organization_support_revoke_at: Annotated[
|
3737
|
+
Optional[datetime],
|
3738
|
+
Field(description="Optional time to revoke support access."),
|
3739
|
+
] = None,
|
3740
|
+
organization_expiration: Annotated[
|
3741
|
+
Optional[StrictInt], Field(description="Optional expiration for support.")
|
3742
|
+
] = None,
|
3743
|
+
organization_role: Annotated[
|
3744
|
+
Optional[StrictStr], Field(description="Current user's role in this org.")
|
3745
|
+
] = None,
|
3746
|
+
organization_queue: Annotated[
|
3747
|
+
Optional[StrictStr], Field(description="Default queue.")
|
3748
|
+
] = None,
|
3749
|
+
organization_default_presets: Annotated[
|
3750
|
+
Optional[List[StrictStr]], Field(description="Default presets.")
|
3751
|
+
] = None,
|
3752
|
+
organization_default_presets_ordered: Annotated[
|
3753
|
+
Optional[List[StrictStr]], Field(description="Default presets.")
|
3754
|
+
] = None,
|
3755
|
+
organization_is_cloud_viewable: Annotated[
|
3756
|
+
Optional[bool],
|
3757
|
+
Field(description="Setting to enable viewable metadata on cloud."),
|
3758
|
+
] = None,
|
3759
|
+
organization_archived_deletion_interval: Annotated[
|
3760
|
+
Optional[StrictInt],
|
3761
|
+
Field(
|
3762
|
+
description="Setting to configure default archived deletion interval."
|
3763
|
+
),
|
3764
|
+
] = None,
|
3765
|
+
**kwargs,
|
3766
|
+
): # noqa: E501
|
3767
|
+
"""Get organization settings # noqa: E501
|
3768
|
+
|
3769
|
+
This method makes a synchronous HTTP request by default. To make an
|
3770
|
+
asynchronous HTTP request, please pass async_req=True
|
3771
|
+
|
3772
|
+
>>> thread = api.get_organization_settings_with_http_info(owner, organization_user, organization_user_email, organization_name, organization_is_public, organization_created_at, organization_updated_at, organization_support_revoke_at, organization_expiration, organization_role, organization_queue, organization_default_presets, organization_default_presets_ordered, organization_is_cloud_viewable, organization_archived_deletion_interval, async_req=True)
|
3773
|
+
>>> result = thread.get()
|
3774
|
+
|
3775
|
+
:param owner: Owner of the namespace (required)
|
3776
|
+
:type owner: str
|
3777
|
+
:param organization_user: User.
|
3778
|
+
:type organization_user: str
|
3779
|
+
:param organization_user_email: Read-only User email.
|
3780
|
+
:type organization_user_email: str
|
3781
|
+
:param organization_name: Name.
|
3782
|
+
:type organization_name: str
|
3783
|
+
:param organization_is_public: Optional flag to tell if this organization is public.
|
3784
|
+
:type organization_is_public: bool
|
3785
|
+
:param organization_created_at: Optional time when the entity was created.
|
3786
|
+
:type organization_created_at: datetime
|
3787
|
+
:param organization_updated_at: Optional last time the entity was updated.
|
3788
|
+
:type organization_updated_at: datetime
|
3789
|
+
:param organization_support_revoke_at: Optional time to revoke support access.
|
3790
|
+
:type organization_support_revoke_at: datetime
|
3791
|
+
:param organization_expiration: Optional expiration for support.
|
3792
|
+
:type organization_expiration: int
|
3793
|
+
:param organization_role: Current user's role in this org.
|
3794
|
+
:type organization_role: str
|
3795
|
+
:param organization_queue: Default queue.
|
3796
|
+
:type organization_queue: str
|
3797
|
+
:param organization_default_presets: Default presets.
|
3798
|
+
:type organization_default_presets: List[str]
|
3799
|
+
:param organization_default_presets_ordered: Default presets.
|
3800
|
+
:type organization_default_presets_ordered: List[str]
|
3801
|
+
:param organization_is_cloud_viewable: Setting to enable viewable metadata on cloud.
|
3802
|
+
:type organization_is_cloud_viewable: bool
|
3803
|
+
:param organization_archived_deletion_interval: Setting to configure default archived deletion interval.
|
3804
|
+
:type organization_archived_deletion_interval: int
|
3805
|
+
:param async_req: Whether to execute the request asynchronously.
|
3806
|
+
:type async_req: bool, optional
|
3807
|
+
:param _return_http_data_only: response data without head status code
|
3808
|
+
and headers
|
3809
|
+
:type _return_http_data_only: bool, optional
|
3810
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
3811
|
+
be returned without reading/decoding response
|
3812
|
+
data. Default is True.
|
3813
|
+
:type _preload_content: bool, optional
|
3814
|
+
:param _request_timeout: timeout setting for this request. If one
|
3815
|
+
number provided, it will be total request
|
3816
|
+
timeout. It can also be a pair (tuple) of
|
3817
|
+
(connection, read) timeouts.
|
3818
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3819
|
+
request; this effectively ignores the authentication
|
3820
|
+
in the spec for a single request.
|
3821
|
+
:type _request_auth: dict, optional
|
3822
|
+
:type _content_type: string, optional: force content-type for the request
|
3823
|
+
:return: Returns the result object.
|
3824
|
+
If the method is called asynchronously,
|
3825
|
+
returns the request thread.
|
3826
|
+
:rtype: tuple(V1Organization, status_code(int), headers(HTTPHeaderDict))
|
3827
|
+
"""
|
3828
|
+
|
3829
|
+
_params = locals()
|
3830
|
+
|
3831
|
+
_all_params = [
|
3832
|
+
"owner",
|
3833
|
+
"organization_user",
|
3834
|
+
"organization_user_email",
|
3835
|
+
"organization_name",
|
3836
|
+
"organization_is_public",
|
3837
|
+
"organization_created_at",
|
3838
|
+
"organization_updated_at",
|
3839
|
+
"organization_support_revoke_at",
|
3840
|
+
"organization_expiration",
|
3841
|
+
"organization_role",
|
3842
|
+
"organization_queue",
|
3843
|
+
"organization_default_presets",
|
3844
|
+
"organization_default_presets_ordered",
|
3845
|
+
"organization_is_cloud_viewable",
|
3846
|
+
"organization_archived_deletion_interval",
|
3847
|
+
]
|
3848
|
+
_all_params.extend(
|
3849
|
+
[
|
3850
|
+
"async_req",
|
3851
|
+
"_return_http_data_only",
|
3852
|
+
"_preload_content",
|
3853
|
+
"_request_timeout",
|
3854
|
+
"_request_auth",
|
3855
|
+
"_content_type",
|
3856
|
+
"_headers",
|
3857
|
+
]
|
3858
|
+
)
|
3859
|
+
|
3860
|
+
# validate the arguments
|
3861
|
+
for _key, _val in _params["kwargs"].items():
|
3862
|
+
if _key not in _all_params:
|
3863
|
+
raise ApiTypeError(
|
3864
|
+
"Got an unexpected keyword argument '%s'"
|
3865
|
+
" to method get_organization_settings" % _key
|
3866
|
+
)
|
3867
|
+
_params[_key] = _val
|
3868
|
+
del _params["kwargs"]
|
3869
|
+
|
3870
|
+
_collection_formats = {}
|
3871
|
+
|
3872
|
+
# process the path parameters
|
3873
|
+
_path_params = {}
|
3874
|
+
if _params["owner"]:
|
3875
|
+
_path_params["owner"] = _params["owner"]
|
3876
|
+
|
3877
|
+
# process the query parameters
|
3878
|
+
_query_params = []
|
3879
|
+
if _params.get("organization_user") is not None: # noqa: E501
|
3880
|
+
_query_params.append(("organization.user", _params["organization_user"]))
|
3881
|
+
|
3882
|
+
if _params.get("organization_user_email") is not None: # noqa: E501
|
3883
|
+
_query_params.append(
|
3884
|
+
("organization.user_email", _params["organization_user_email"])
|
3885
|
+
)
|
3886
|
+
|
3887
|
+
if _params.get("organization_name") is not None: # noqa: E501
|
3888
|
+
_query_params.append(("organization.name", _params["organization_name"]))
|
3889
|
+
|
3890
|
+
if _params.get("organization_is_public") is not None: # noqa: E501
|
3891
|
+
_query_params.append(
|
3892
|
+
("organization.is_public", _params["organization_is_public"])
|
3893
|
+
)
|
3894
|
+
|
3895
|
+
if _params.get("organization_created_at") is not None: # noqa: E501
|
3896
|
+
if isinstance(_params["organization_created_at"], datetime):
|
3897
|
+
_query_params.append(
|
3898
|
+
(
|
3899
|
+
"organization.created_at",
|
3900
|
+
_params["organization_created_at"].strftime(
|
3901
|
+
self.api_client.configuration.datetime_format
|
3902
|
+
),
|
3903
|
+
)
|
3904
|
+
)
|
3905
|
+
else:
|
3906
|
+
_query_params.append(
|
3907
|
+
("organization.created_at", _params["organization_created_at"])
|
3908
|
+
)
|
3909
|
+
|
3910
|
+
if _params.get("organization_updated_at") is not None: # noqa: E501
|
3911
|
+
if isinstance(_params["organization_updated_at"], datetime):
|
3912
|
+
_query_params.append(
|
3913
|
+
(
|
3914
|
+
"organization.updated_at",
|
3915
|
+
_params["organization_updated_at"].strftime(
|
3916
|
+
self.api_client.configuration.datetime_format
|
3917
|
+
),
|
3918
|
+
)
|
3919
|
+
)
|
3920
|
+
else:
|
3921
|
+
_query_params.append(
|
3922
|
+
("organization.updated_at", _params["organization_updated_at"])
|
3923
|
+
)
|
3924
|
+
|
3925
|
+
if _params.get("organization_support_revoke_at") is not None: # noqa: E501
|
3926
|
+
if isinstance(_params["organization_support_revoke_at"], datetime):
|
3927
|
+
_query_params.append(
|
3928
|
+
(
|
3929
|
+
"organization.support_revoke_at",
|
3930
|
+
_params["organization_support_revoke_at"].strftime(
|
3931
|
+
self.api_client.configuration.datetime_format
|
3932
|
+
),
|
3933
|
+
)
|
3934
|
+
)
|
3935
|
+
else:
|
3936
|
+
_query_params.append(
|
3937
|
+
(
|
3938
|
+
"organization.support_revoke_at",
|
3939
|
+
_params["organization_support_revoke_at"],
|
3940
|
+
)
|
3941
|
+
)
|
3942
|
+
|
3943
|
+
if _params.get("organization_expiration") is not None: # noqa: E501
|
3944
|
+
_query_params.append(
|
3945
|
+
("organization.expiration", _params["organization_expiration"])
|
3946
|
+
)
|
3947
|
+
|
3948
|
+
if _params.get("organization_role") is not None: # noqa: E501
|
3949
|
+
_query_params.append(("organization.role", _params["organization_role"]))
|
3950
|
+
|
3951
|
+
if _params.get("organization_queue") is not None: # noqa: E501
|
3952
|
+
_query_params.append(("organization.queue", _params["organization_queue"]))
|
3953
|
+
|
3954
|
+
if _params.get("organization_default_presets") is not None: # noqa: E501
|
3955
|
+
_query_params.append(
|
3956
|
+
(
|
3957
|
+
"organization.default_presets",
|
3958
|
+
_params["organization_default_presets"],
|
3959
|
+
)
|
3960
|
+
)
|
3961
|
+
_collection_formats["organization.default_presets"] = "multi"
|
3962
|
+
|
3963
|
+
if _params.get("default_presets_ordered") is not None: # noqa: E501
|
3964
|
+
_query_params.append(
|
3965
|
+
(
|
3966
|
+
"organization.default_presets_ordered",
|
3967
|
+
_params["default_presets_ordered"],
|
3968
|
+
)
|
3969
|
+
)
|
3970
|
+
_collection_formats["organization.default_presets_ordered"] = "multi"
|
3971
|
+
|
3972
|
+
if _params.get("organization_is_cloud_viewable") is not None: # noqa: E501
|
3973
|
+
_query_params.append(
|
3974
|
+
(
|
3975
|
+
"organization.is_cloud_viewable",
|
3128
3976
|
_params["organization_is_cloud_viewable"],
|
3129
3977
|
)
|
3130
3978
|
)
|
3979
|
+
|
3131
3980
|
if _params.get("organization_archived_deletion_interval") is not None: # noqa: E501
|
3132
3981
|
_query_params.append(
|
3133
3982
|
(
|
3134
3983
|
"organization.archived_deletion_interval",
|
3135
3984
|
_params["organization_archived_deletion_interval"],
|
3136
3985
|
)
|
3137
|
-
)
|
3986
|
+
)
|
3987
|
+
|
3988
|
+
# process the header parameters
|
3989
|
+
_header_params = dict(_params.get("_headers", {}))
|
3990
|
+
# process the form parameters
|
3991
|
+
_form_params = []
|
3992
|
+
_files = {}
|
3993
|
+
# process the body parameter
|
3994
|
+
_body_params = None
|
3995
|
+
# set the HTTP header `Accept`
|
3996
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
3997
|
+
["application/json"]
|
3998
|
+
) # noqa: E501
|
3999
|
+
|
4000
|
+
# authentication setting
|
4001
|
+
_auth_settings = ["ApiKey"] # noqa: E501
|
4002
|
+
|
4003
|
+
_response_types_map = {
|
4004
|
+
"200": "V1Organization",
|
4005
|
+
"204": "object",
|
4006
|
+
"403": "object",
|
4007
|
+
"404": "object",
|
4008
|
+
}
|
4009
|
+
|
4010
|
+
return self.api_client.call_api(
|
4011
|
+
"/api/v1/orgs/{owner}/settings",
|
4012
|
+
"GET",
|
4013
|
+
_path_params,
|
4014
|
+
_query_params,
|
4015
|
+
_header_params,
|
4016
|
+
body=_body_params,
|
4017
|
+
post_params=_form_params,
|
4018
|
+
files=_files,
|
4019
|
+
response_types_map=_response_types_map,
|
4020
|
+
auth_settings=_auth_settings,
|
4021
|
+
async_req=_params.get("async_req"),
|
4022
|
+
_return_http_data_only=_params.get("_return_http_data_only"), # noqa: E501
|
4023
|
+
_preload_content=_params.get("_preload_content", True),
|
4024
|
+
_request_timeout=_params.get("_request_timeout"),
|
4025
|
+
collection_formats=_collection_formats,
|
4026
|
+
_request_auth=_params.get("_request_auth"),
|
4027
|
+
)
|
4028
|
+
|
4029
|
+
@validate_call
|
4030
|
+
def get_organization_stats(
|
4031
|
+
self,
|
4032
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4033
|
+
offset: Annotated[
|
4034
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
4035
|
+
] = None,
|
4036
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
4037
|
+
sort: Annotated[
|
4038
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
4039
|
+
] = None,
|
4040
|
+
query: Annotated[
|
4041
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
4042
|
+
] = None,
|
4043
|
+
bookmarks: Annotated[
|
4044
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
4045
|
+
] = None,
|
4046
|
+
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
4047
|
+
kind: Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None,
|
4048
|
+
aggregate: Annotated[
|
4049
|
+
Optional[StrictStr], Field(description="Stats aggregate.")
|
4050
|
+
] = None,
|
4051
|
+
groupby: Annotated[
|
4052
|
+
Optional[StrictStr], Field(description="Stats group.")
|
4053
|
+
] = None,
|
4054
|
+
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
4055
|
+
**kwargs,
|
4056
|
+
) -> object: # noqa: E501
|
4057
|
+
"""Get organization stats # noqa: E501
|
4058
|
+
|
4059
|
+
This method makes a synchronous HTTP request by default. To make an
|
4060
|
+
asynchronous HTTP request, please pass async_req=True
|
4061
|
+
|
4062
|
+
>>> thread = api.get_organization_stats(owner, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
4063
|
+
>>> result = thread.get()
|
4064
|
+
|
4065
|
+
:param owner: Owner of the namespace (required)
|
4066
|
+
:type owner: str
|
4067
|
+
:param offset: Pagination offset.
|
4068
|
+
:type offset: int
|
4069
|
+
:param limit: Limit size.
|
4070
|
+
:type limit: int
|
4071
|
+
:param sort: Sort to order the search.
|
4072
|
+
:type sort: str
|
4073
|
+
:param query: Query filter the search.
|
4074
|
+
:type query: str
|
4075
|
+
:param bookmarks: Filter by bookmarks.
|
4076
|
+
:type bookmarks: bool
|
4077
|
+
:param mode: Stats Mode.
|
4078
|
+
:type mode: str
|
4079
|
+
:param kind: Stats Kind.
|
4080
|
+
:type kind: str
|
4081
|
+
:param aggregate: Stats aggregate.
|
4082
|
+
:type aggregate: str
|
4083
|
+
:param groupby: Stats group.
|
4084
|
+
:type groupby: str
|
4085
|
+
:param trunc: Stats trunc.
|
4086
|
+
:type trunc: str
|
4087
|
+
:param async_req: Whether to execute the request asynchronously.
|
4088
|
+
:type async_req: bool, optional
|
4089
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4090
|
+
be returned without reading/decoding response
|
4091
|
+
data. Default is True.
|
4092
|
+
:type _preload_content: bool, optional
|
4093
|
+
:param _request_timeout: timeout setting for this request. If one
|
4094
|
+
number provided, it will be total request
|
4095
|
+
timeout. It can also be a pair (tuple) of
|
4096
|
+
(connection, read) timeouts.
|
4097
|
+
:return: Returns the result object.
|
4098
|
+
If the method is called asynchronously,
|
4099
|
+
returns the request thread.
|
4100
|
+
:rtype: object
|
4101
|
+
"""
|
4102
|
+
kwargs["_return_http_data_only"] = True
|
4103
|
+
return self.get_organization_stats_with_http_info(
|
4104
|
+
owner,
|
4105
|
+
offset,
|
4106
|
+
limit,
|
4107
|
+
sort,
|
4108
|
+
query,
|
4109
|
+
bookmarks,
|
4110
|
+
mode,
|
4111
|
+
kind,
|
4112
|
+
aggregate,
|
4113
|
+
groupby,
|
4114
|
+
trunc,
|
4115
|
+
**kwargs,
|
4116
|
+
) # noqa: E501
|
4117
|
+
|
4118
|
+
@validate_call
|
4119
|
+
def get_organization_stats_with_http_info(
|
4120
|
+
self,
|
4121
|
+
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4122
|
+
offset: Annotated[
|
4123
|
+
Optional[StrictInt], Field(description="Pagination offset.")
|
4124
|
+
] = None,
|
4125
|
+
limit: Annotated[Optional[StrictInt], Field(description="Limit size.")] = None,
|
4126
|
+
sort: Annotated[
|
4127
|
+
Optional[StrictStr], Field(description="Sort to order the search.")
|
4128
|
+
] = None,
|
4129
|
+
query: Annotated[
|
4130
|
+
Optional[StrictStr], Field(description="Query filter the search.")
|
4131
|
+
] = None,
|
4132
|
+
bookmarks: Annotated[
|
4133
|
+
Optional[bool], Field(description="Filter by bookmarks.")
|
4134
|
+
] = None,
|
4135
|
+
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
4136
|
+
kind: Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None,
|
4137
|
+
aggregate: Annotated[
|
4138
|
+
Optional[StrictStr], Field(description="Stats aggregate.")
|
4139
|
+
] = None,
|
4140
|
+
groupby: Annotated[
|
4141
|
+
Optional[StrictStr], Field(description="Stats group.")
|
4142
|
+
] = None,
|
4143
|
+
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
4144
|
+
**kwargs,
|
4145
|
+
): # noqa: E501
|
4146
|
+
"""Get organization stats # noqa: E501
|
4147
|
+
|
4148
|
+
This method makes a synchronous HTTP request by default. To make an
|
4149
|
+
asynchronous HTTP request, please pass async_req=True
|
4150
|
+
|
4151
|
+
>>> thread = api.get_organization_stats_with_http_info(owner, offset, limit, sort, query, bookmarks, mode, kind, aggregate, groupby, trunc, async_req=True)
|
4152
|
+
>>> result = thread.get()
|
4153
|
+
|
4154
|
+
:param owner: Owner of the namespace (required)
|
4155
|
+
:type owner: str
|
4156
|
+
:param offset: Pagination offset.
|
4157
|
+
:type offset: int
|
4158
|
+
:param limit: Limit size.
|
4159
|
+
:type limit: int
|
4160
|
+
:param sort: Sort to order the search.
|
4161
|
+
:type sort: str
|
4162
|
+
:param query: Query filter the search.
|
4163
|
+
:type query: str
|
4164
|
+
:param bookmarks: Filter by bookmarks.
|
4165
|
+
:type bookmarks: bool
|
4166
|
+
:param mode: Stats Mode.
|
4167
|
+
:type mode: str
|
4168
|
+
:param kind: Stats Kind.
|
4169
|
+
:type kind: str
|
4170
|
+
:param aggregate: Stats aggregate.
|
4171
|
+
:type aggregate: str
|
4172
|
+
:param groupby: Stats group.
|
4173
|
+
:type groupby: str
|
4174
|
+
:param trunc: Stats trunc.
|
4175
|
+
:type trunc: str
|
4176
|
+
:param async_req: Whether to execute the request asynchronously.
|
4177
|
+
:type async_req: bool, optional
|
4178
|
+
:param _return_http_data_only: response data without head status code
|
4179
|
+
and headers
|
4180
|
+
:type _return_http_data_only: bool, optional
|
4181
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4182
|
+
be returned without reading/decoding response
|
4183
|
+
data. Default is True.
|
4184
|
+
:type _preload_content: bool, optional
|
4185
|
+
:param _request_timeout: timeout setting for this request. If one
|
4186
|
+
number provided, it will be total request
|
4187
|
+
timeout. It can also be a pair (tuple) of
|
4188
|
+
(connection, read) timeouts.
|
4189
|
+
:param _request_auth: set to override the auth_settings for an a single
|
4190
|
+
request; this effectively ignores the authentication
|
4191
|
+
in the spec for a single request.
|
4192
|
+
:type _request_auth: dict, optional
|
4193
|
+
:type _content_type: string, optional: force content-type for the request
|
4194
|
+
:return: Returns the result object.
|
4195
|
+
If the method is called asynchronously,
|
4196
|
+
returns the request thread.
|
4197
|
+
:rtype: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
4198
|
+
"""
|
4199
|
+
|
4200
|
+
_params = locals()
|
4201
|
+
|
4202
|
+
_all_params = [
|
4203
|
+
"owner",
|
4204
|
+
"offset",
|
4205
|
+
"limit",
|
4206
|
+
"sort",
|
4207
|
+
"query",
|
4208
|
+
"bookmarks",
|
4209
|
+
"mode",
|
4210
|
+
"kind",
|
4211
|
+
"aggregate",
|
4212
|
+
"groupby",
|
4213
|
+
"trunc",
|
4214
|
+
]
|
4215
|
+
_all_params.extend(
|
4216
|
+
[
|
4217
|
+
"async_req",
|
4218
|
+
"_return_http_data_only",
|
4219
|
+
"_preload_content",
|
4220
|
+
"_request_timeout",
|
4221
|
+
"_request_auth",
|
4222
|
+
"_content_type",
|
4223
|
+
"_headers",
|
4224
|
+
]
|
4225
|
+
)
|
4226
|
+
|
4227
|
+
# validate the arguments
|
4228
|
+
for _key, _val in _params["kwargs"].items():
|
4229
|
+
if _key not in _all_params:
|
4230
|
+
raise ApiTypeError(
|
4231
|
+
"Got an unexpected keyword argument '%s'"
|
4232
|
+
" to method get_organization_stats" % _key
|
4233
|
+
)
|
4234
|
+
_params[_key] = _val
|
4235
|
+
del _params["kwargs"]
|
4236
|
+
|
4237
|
+
_collection_formats = {}
|
4238
|
+
|
4239
|
+
# process the path parameters
|
4240
|
+
_path_params = {}
|
4241
|
+
if _params["owner"]:
|
4242
|
+
_path_params["owner"] = _params["owner"]
|
4243
|
+
|
4244
|
+
# process the query parameters
|
4245
|
+
_query_params = []
|
4246
|
+
if _params.get("offset") is not None: # noqa: E501
|
4247
|
+
_query_params.append(("offset", _params["offset"]))
|
4248
|
+
|
4249
|
+
if _params.get("limit") is not None: # noqa: E501
|
4250
|
+
_query_params.append(("limit", _params["limit"]))
|
4251
|
+
|
4252
|
+
if _params.get("sort") is not None: # noqa: E501
|
4253
|
+
_query_params.append(("sort", _params["sort"]))
|
4254
|
+
|
4255
|
+
if _params.get("query") is not None: # noqa: E501
|
4256
|
+
_query_params.append(("query", _params["query"]))
|
4257
|
+
|
4258
|
+
if _params.get("bookmarks") is not None: # noqa: E501
|
4259
|
+
_query_params.append(("bookmarks", _params["bookmarks"]))
|
4260
|
+
|
4261
|
+
if _params.get("mode") is not None: # noqa: E501
|
4262
|
+
_query_params.append(("mode", _params["mode"]))
|
4263
|
+
|
4264
|
+
if _params.get("kind") is not None: # noqa: E501
|
4265
|
+
_query_params.append(("kind", _params["kind"]))
|
4266
|
+
|
4267
|
+
if _params.get("aggregate") is not None: # noqa: E501
|
4268
|
+
_query_params.append(("aggregate", _params["aggregate"]))
|
4269
|
+
|
4270
|
+
if _params.get("groupby") is not None: # noqa: E501
|
4271
|
+
_query_params.append(("groupby", _params["groupby"]))
|
4272
|
+
|
4273
|
+
if _params.get("trunc") is not None: # noqa: E501
|
4274
|
+
_query_params.append(("trunc", _params["trunc"]))
|
3138
4275
|
|
3139
4276
|
# process the header parameters
|
3140
4277
|
_header_params = dict(_params.get("_headers", {}))
|
3141
|
-
|
3142
4278
|
# process the form parameters
|
3143
4279
|
_form_params = []
|
3144
4280
|
_files = {}
|
3145
|
-
|
3146
4281
|
# process the body parameter
|
3147
4282
|
_body_params = None
|
3148
|
-
|
3149
4283
|
# set the HTTP header `Accept`
|
3150
4284
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
3151
4285
|
["application/json"]
|
@@ -3155,14 +4289,14 @@ class OrganizationsV1Api(BaseApi):
|
|
3155
4289
|
_auth_settings = ["ApiKey"] # noqa: E501
|
3156
4290
|
|
3157
4291
|
_response_types_map = {
|
3158
|
-
"200": "
|
4292
|
+
"200": "object",
|
3159
4293
|
"204": "object",
|
3160
4294
|
"403": "object",
|
3161
4295
|
"404": "object",
|
3162
4296
|
}
|
3163
4297
|
|
3164
4298
|
return self.api_client.call_api(
|
3165
|
-
"/api/v1/orgs/{owner}/
|
4299
|
+
"/api/v1/orgs/{owner}/stats",
|
3166
4300
|
"GET",
|
3167
4301
|
_path_params,
|
3168
4302
|
_query_params,
|
@@ -3181,9 +4315,10 @@ class OrganizationsV1Api(BaseApi):
|
|
3181
4315
|
)
|
3182
4316
|
|
3183
4317
|
@validate_call
|
3184
|
-
def
|
4318
|
+
def get_organization_versions(
|
3185
4319
|
self,
|
3186
4320
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4321
|
+
kind: Annotated[StrictStr, Field(..., description="Version Kind")],
|
3187
4322
|
offset: Annotated[
|
3188
4323
|
Optional[StrictInt], Field(description="Pagination offset.")
|
3189
4324
|
] = None,
|
@@ -3194,30 +4329,21 @@ class OrganizationsV1Api(BaseApi):
|
|
3194
4329
|
query: Annotated[
|
3195
4330
|
Optional[StrictStr], Field(description="Query filter the search.")
|
3196
4331
|
] = None,
|
3197
|
-
|
3198
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
3199
|
-
] = None,
|
3200
|
-
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
3201
|
-
kind: Annotated[Optional[StrictStr], Field(description="Stats Kind.")] = None,
|
3202
|
-
aggregate: Annotated[
|
3203
|
-
Optional[StrictStr], Field(description="Stats aggregate.")
|
3204
|
-
] = None,
|
3205
|
-
groupby: Annotated[
|
3206
|
-
Optional[StrictStr], Field(description="Stats group.")
|
3207
|
-
] = None,
|
3208
|
-
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
4332
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3209
4333
|
**kwargs,
|
3210
|
-
) ->
|
3211
|
-
"""Get organization
|
4334
|
+
) -> V1ListProjectVersionsResponse: # noqa: E501
|
4335
|
+
"""Get all runs in an organization # noqa: E501
|
3212
4336
|
|
3213
4337
|
This method makes a synchronous HTTP request by default. To make an
|
3214
4338
|
asynchronous HTTP request, please pass async_req=True
|
3215
4339
|
|
3216
|
-
>>> thread = api.
|
4340
|
+
>>> thread = api.get_organization_versions(owner, kind, offset, limit, sort, query, no_page, async_req=True)
|
3217
4341
|
>>> result = thread.get()
|
3218
4342
|
|
3219
4343
|
:param owner: Owner of the namespace (required)
|
3220
4344
|
:type owner: str
|
4345
|
+
:param kind: Version Kind (required)
|
4346
|
+
:type kind: str
|
3221
4347
|
:param offset: Pagination offset.
|
3222
4348
|
:type offset: int
|
3223
4349
|
:param limit: Limit size.
|
@@ -3226,18 +4352,8 @@ class OrganizationsV1Api(BaseApi):
|
|
3226
4352
|
:type sort: str
|
3227
4353
|
:param query: Query filter the search.
|
3228
4354
|
:type query: str
|
3229
|
-
:param
|
3230
|
-
:type
|
3231
|
-
:param mode: Stats Mode.
|
3232
|
-
:type mode: str
|
3233
|
-
:param kind: Stats Kind.
|
3234
|
-
:type kind: str
|
3235
|
-
:param aggregate: Stats aggregate.
|
3236
|
-
:type aggregate: str
|
3237
|
-
:param groupby: Stats group.
|
3238
|
-
:type groupby: str
|
3239
|
-
:param trunc: Stats trunc.
|
3240
|
-
:type trunc: str
|
4355
|
+
:param no_page: No pagination.
|
4356
|
+
:type no_page: bool
|
3241
4357
|
:param async_req: Whether to execute the request asynchronously.
|
3242
4358
|
:type async_req: bool, optional
|
3243
4359
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -3251,28 +4367,18 @@ class OrganizationsV1Api(BaseApi):
|
|
3251
4367
|
:return: Returns the result object.
|
3252
4368
|
If the method is called asynchronously,
|
3253
4369
|
returns the request thread.
|
3254
|
-
:rtype:
|
4370
|
+
:rtype: V1ListProjectVersionsResponse
|
3255
4371
|
"""
|
3256
4372
|
kwargs["_return_http_data_only"] = True
|
3257
|
-
return self.
|
3258
|
-
owner,
|
3259
|
-
offset,
|
3260
|
-
limit,
|
3261
|
-
sort,
|
3262
|
-
query,
|
3263
|
-
bookmarks,
|
3264
|
-
mode,
|
3265
|
-
kind,
|
3266
|
-
aggregate,
|
3267
|
-
groupby,
|
3268
|
-
trunc,
|
3269
|
-
**kwargs,
|
4373
|
+
return self.get_organization_versions_with_http_info(
|
4374
|
+
owner, kind, offset, limit, sort, query, no_page, **kwargs
|
3270
4375
|
) # noqa: E501
|
3271
4376
|
|
3272
4377
|
@validate_call
|
3273
|
-
def
|
4378
|
+
def get_organization_versions_with_http_info(
|
3274
4379
|
self,
|
3275
4380
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4381
|
+
kind: Annotated[StrictStr, Field(..., description="Version Kind")],
|
3276
4382
|
offset: Annotated[
|
3277
4383
|
Optional[StrictInt], Field(description="Pagination offset.")
|
3278
4384
|
] = None,
|
@@ -3283,30 +4389,21 @@ class OrganizationsV1Api(BaseApi):
|
|
3283
4389
|
query: Annotated[
|
3284
4390
|
Optional[StrictStr], Field(description="Query filter the search.")
|
3285
4391
|
] = None,
|
3286
|
-
|
3287
|
-
Optional[bool], Field(description="Filter by bookmarks.")
|
3288
|
-
] = None,
|
3289
|
-
mode: Annotated[Optional[StrictStr], Field(description="Stats Mode.")] = None,
|
3290
|
-
kind: Annotated[Optional[str], Field(description="Stats Kind.")] = None,
|
3291
|
-
aggregate: Annotated[
|
3292
|
-
Optional[StrictStr], Field(description="Stats aggregate.")
|
3293
|
-
] = None,
|
3294
|
-
groupby: Annotated[
|
3295
|
-
Optional[StrictStr], Field(description="Stats group.")
|
3296
|
-
] = None,
|
3297
|
-
trunc: Annotated[Optional[StrictStr], Field(description="Stats trunc.")] = None,
|
4392
|
+
no_page: Annotated[Optional[bool], Field(description="No pagination.")] = None,
|
3298
4393
|
**kwargs,
|
3299
4394
|
): # noqa: E501
|
3300
|
-
"""Get organization
|
4395
|
+
"""Get all runs in an organization # noqa: E501
|
3301
4396
|
|
3302
4397
|
This method makes a synchronous HTTP request by default. To make an
|
3303
4398
|
asynchronous HTTP request, please pass async_req=True
|
3304
4399
|
|
3305
|
-
>>> thread = api.
|
4400
|
+
>>> thread = api.get_organization_versions_with_http_info(owner, kind, offset, limit, sort, query, no_page, async_req=True)
|
3306
4401
|
>>> result = thread.get()
|
3307
4402
|
|
3308
4403
|
:param owner: Owner of the namespace (required)
|
3309
4404
|
:type owner: str
|
4405
|
+
:param kind: Version Kind (required)
|
4406
|
+
:type kind: str
|
3310
4407
|
:param offset: Pagination offset.
|
3311
4408
|
:type offset: int
|
3312
4409
|
:param limit: Limit size.
|
@@ -3315,18 +4412,8 @@ class OrganizationsV1Api(BaseApi):
|
|
3315
4412
|
:type sort: str
|
3316
4413
|
:param query: Query filter the search.
|
3317
4414
|
:type query: str
|
3318
|
-
:param
|
3319
|
-
:type
|
3320
|
-
:param mode: Stats Mode.
|
3321
|
-
:type mode: str
|
3322
|
-
:param kind: Stats Kind.
|
3323
|
-
:type kind: str
|
3324
|
-
:param aggregate: Stats aggregate.
|
3325
|
-
:type aggregate: str
|
3326
|
-
:param groupby: Stats group.
|
3327
|
-
:type groupby: str
|
3328
|
-
:param trunc: Stats trunc.
|
3329
|
-
:type trunc: str
|
4415
|
+
:param no_page: No pagination.
|
4416
|
+
:type no_page: bool
|
3330
4417
|
:param async_req: Whether to execute the request asynchronously.
|
3331
4418
|
:type async_req: bool, optional
|
3332
4419
|
:param _return_http_data_only: response data without head status code
|
@@ -3348,24 +4435,12 @@ class OrganizationsV1Api(BaseApi):
|
|
3348
4435
|
:return: Returns the result object.
|
3349
4436
|
If the method is called asynchronously,
|
3350
4437
|
returns the request thread.
|
3351
|
-
:rtype: tuple(
|
4438
|
+
:rtype: tuple(V1ListProjectVersionsResponse, status_code(int), headers(HTTPHeaderDict))
|
3352
4439
|
"""
|
3353
4440
|
|
3354
4441
|
_params = locals()
|
3355
4442
|
|
3356
|
-
_all_params = [
|
3357
|
-
"owner",
|
3358
|
-
"offset",
|
3359
|
-
"limit",
|
3360
|
-
"sort",
|
3361
|
-
"query",
|
3362
|
-
"bookmarks",
|
3363
|
-
"mode",
|
3364
|
-
"kind",
|
3365
|
-
"aggregate",
|
3366
|
-
"groupby",
|
3367
|
-
"trunc",
|
3368
|
-
]
|
4443
|
+
_all_params = ["owner", "kind", "offset", "limit", "sort", "query", "no_page"]
|
3369
4444
|
_all_params.extend(
|
3370
4445
|
[
|
3371
4446
|
"async_req",
|
@@ -3383,7 +4458,7 @@ class OrganizationsV1Api(BaseApi):
|
|
3383
4458
|
if _key not in _all_params:
|
3384
4459
|
raise ApiTypeError(
|
3385
4460
|
"Got an unexpected keyword argument '%s'"
|
3386
|
-
" to method
|
4461
|
+
" to method get_organization_versions" % _key
|
3387
4462
|
)
|
3388
4463
|
_params[_key] = _val
|
3389
4464
|
del _params["kwargs"]
|
@@ -3395,39 +4470,33 @@ class OrganizationsV1Api(BaseApi):
|
|
3395
4470
|
if _params["owner"]:
|
3396
4471
|
_path_params["owner"] = _params["owner"]
|
3397
4472
|
|
4473
|
+
if _params["kind"]:
|
4474
|
+
_path_params["kind"] = _params["kind"]
|
4475
|
+
|
3398
4476
|
# process the query parameters
|
3399
4477
|
_query_params = []
|
3400
4478
|
if _params.get("offset") is not None: # noqa: E501
|
3401
4479
|
_query_params.append(("offset", _params["offset"]))
|
4480
|
+
|
3402
4481
|
if _params.get("limit") is not None: # noqa: E501
|
3403
4482
|
_query_params.append(("limit", _params["limit"]))
|
4483
|
+
|
3404
4484
|
if _params.get("sort") is not None: # noqa: E501
|
3405
4485
|
_query_params.append(("sort", _params["sort"]))
|
4486
|
+
|
3406
4487
|
if _params.get("query") is not None: # noqa: E501
|
3407
4488
|
_query_params.append(("query", _params["query"]))
|
3408
|
-
|
3409
|
-
|
3410
|
-
|
3411
|
-
_query_params.append(("mode", _params["mode"]))
|
3412
|
-
if _params.get("kind") is not None: # noqa: E501
|
3413
|
-
_query_params.append(("kind", _params["kind"]))
|
3414
|
-
if _params.get("aggregate") is not None: # noqa: E501
|
3415
|
-
_query_params.append(("aggregate", _params["aggregate"]))
|
3416
|
-
if _params.get("groupby") is not None: # noqa: E501
|
3417
|
-
_query_params.append(("groupby", _params["groupby"]))
|
3418
|
-
if _params.get("trunc") is not None: # noqa: E501
|
3419
|
-
_query_params.append(("trunc", _params["trunc"]))
|
4489
|
+
|
4490
|
+
if _params.get("no_page") is not None: # noqa: E501
|
4491
|
+
_query_params.append(("no_page", _params["no_page"]))
|
3420
4492
|
|
3421
4493
|
# process the header parameters
|
3422
4494
|
_header_params = dict(_params.get("_headers", {}))
|
3423
|
-
|
3424
4495
|
# process the form parameters
|
3425
4496
|
_form_params = []
|
3426
4497
|
_files = {}
|
3427
|
-
|
3428
4498
|
# process the body parameter
|
3429
4499
|
_body_params = None
|
3430
|
-
|
3431
4500
|
# set the HTTP header `Accept`
|
3432
4501
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
3433
4502
|
["application/json"]
|
@@ -3437,14 +4506,14 @@ class OrganizationsV1Api(BaseApi):
|
|
3437
4506
|
_auth_settings = ["ApiKey"] # noqa: E501
|
3438
4507
|
|
3439
4508
|
_response_types_map = {
|
3440
|
-
"200": "
|
4509
|
+
"200": "V1ListProjectVersionsResponse",
|
3441
4510
|
"204": "object",
|
3442
4511
|
"403": "object",
|
3443
4512
|
"404": "object",
|
3444
4513
|
}
|
3445
4514
|
|
3446
4515
|
return self.api_client.call_api(
|
3447
|
-
"/api/v1/orgs/{owner}/
|
4516
|
+
"/api/v1/orgs/{owner}/versions/{kind}",
|
3448
4517
|
"GET",
|
3449
4518
|
_path_params,
|
3450
4519
|
_query_params,
|
@@ -3576,14 +4645,11 @@ class OrganizationsV1Api(BaseApi):
|
|
3576
4645
|
|
3577
4646
|
# process the query parameters
|
3578
4647
|
_query_params = []
|
3579
|
-
|
3580
4648
|
# process the header parameters
|
3581
4649
|
_header_params = dict(_params.get("_headers", {}))
|
3582
|
-
|
3583
4650
|
# process the form parameters
|
3584
4651
|
_form_params = []
|
3585
4652
|
_files = {}
|
3586
|
-
|
3587
4653
|
# process the body parameter
|
3588
4654
|
_body_params = None
|
3589
4655
|
if _params["body"]:
|
@@ -3809,29 +4875,32 @@ class OrganizationsV1Api(BaseApi):
|
|
3809
4875
|
_query_params = []
|
3810
4876
|
if _params.get("offset") is not None: # noqa: E501
|
3811
4877
|
_query_params.append(("offset", _params["offset"]))
|
4878
|
+
|
3812
4879
|
if _params.get("limit") is not None: # noqa: E501
|
3813
4880
|
_query_params.append(("limit", _params["limit"]))
|
4881
|
+
|
3814
4882
|
if _params.get("sort") is not None: # noqa: E501
|
3815
4883
|
_query_params.append(("sort", _params["sort"]))
|
4884
|
+
|
3816
4885
|
if _params.get("query") is not None: # noqa: E501
|
3817
4886
|
_query_params.append(("query", _params["query"]))
|
4887
|
+
|
3818
4888
|
if _params.get("bookmarks") is not None: # noqa: E501
|
3819
4889
|
_query_params.append(("bookmarks", _params["bookmarks"]))
|
4890
|
+
|
3820
4891
|
if _params.get("mode") is not None: # noqa: E501
|
3821
4892
|
_query_params.append(("mode", _params["mode"]))
|
4893
|
+
|
3822
4894
|
if _params.get("no_page") is not None: # noqa: E501
|
3823
4895
|
_query_params.append(("no_page", _params["no_page"]))
|
3824
4896
|
|
3825
4897
|
# process the header parameters
|
3826
4898
|
_header_params = dict(_params.get("_headers", {}))
|
3827
|
-
|
3828
4899
|
# process the form parameters
|
3829
4900
|
_form_params = []
|
3830
4901
|
_files = {}
|
3831
|
-
|
3832
4902
|
# process the body parameter
|
3833
4903
|
_body_params = None
|
3834
|
-
|
3835
4904
|
# set the HTTP header `Accept`
|
3836
4905
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
3837
4906
|
["application/json"]
|
@@ -4049,29 +5118,32 @@ class OrganizationsV1Api(BaseApi):
|
|
4049
5118
|
_query_params = []
|
4050
5119
|
if _params.get("offset") is not None: # noqa: E501
|
4051
5120
|
_query_params.append(("offset", _params["offset"]))
|
5121
|
+
|
4052
5122
|
if _params.get("limit") is not None: # noqa: E501
|
4053
5123
|
_query_params.append(("limit", _params["limit"]))
|
5124
|
+
|
4054
5125
|
if _params.get("sort") is not None: # noqa: E501
|
4055
5126
|
_query_params.append(("sort", _params["sort"]))
|
5127
|
+
|
4056
5128
|
if _params.get("query") is not None: # noqa: E501
|
4057
5129
|
_query_params.append(("query", _params["query"]))
|
5130
|
+
|
4058
5131
|
if _params.get("bookmarks") is not None: # noqa: E501
|
4059
5132
|
_query_params.append(("bookmarks", _params["bookmarks"]))
|
5133
|
+
|
4060
5134
|
if _params.get("mode") is not None: # noqa: E501
|
4061
5135
|
_query_params.append(("mode", _params["mode"]))
|
5136
|
+
|
4062
5137
|
if _params.get("no_page") is not None: # noqa: E501
|
4063
5138
|
_query_params.append(("no_page", _params["no_page"]))
|
4064
5139
|
|
4065
5140
|
# process the header parameters
|
4066
5141
|
_header_params = dict(_params.get("_headers", {}))
|
4067
|
-
|
4068
5142
|
# process the form parameters
|
4069
5143
|
_form_params = []
|
4070
5144
|
_files = {}
|
4071
|
-
|
4072
5145
|
# process the body parameter
|
4073
5146
|
_body_params = None
|
4074
|
-
|
4075
5147
|
# set the HTTP header `Accept`
|
4076
5148
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
4077
5149
|
["application/json"]
|
@@ -4200,17 +5272,13 @@ class OrganizationsV1Api(BaseApi):
|
|
4200
5272
|
|
4201
5273
|
# process the query parameters
|
4202
5274
|
_query_params = []
|
4203
|
-
|
4204
5275
|
# process the header parameters
|
4205
5276
|
_header_params = dict(_params.get("_headers", {}))
|
4206
|
-
|
4207
5277
|
# process the form parameters
|
4208
5278
|
_form_params = []
|
4209
5279
|
_files = {}
|
4210
|
-
|
4211
5280
|
# process the body parameter
|
4212
5281
|
_body_params = None
|
4213
|
-
|
4214
5282
|
# set the HTTP header `Accept`
|
4215
5283
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
4216
5284
|
["application/json"]
|
@@ -4339,17 +5407,13 @@ class OrganizationsV1Api(BaseApi):
|
|
4339
5407
|
|
4340
5408
|
# process the query parameters
|
4341
5409
|
_query_params = []
|
4342
|
-
|
4343
5410
|
# process the header parameters
|
4344
5411
|
_header_params = dict(_params.get("_headers", {}))
|
4345
|
-
|
4346
5412
|
# process the form parameters
|
4347
5413
|
_form_params = []
|
4348
5414
|
_files = {}
|
4349
|
-
|
4350
5415
|
# process the body parameter
|
4351
5416
|
_body_params = None
|
4352
|
-
|
4353
5417
|
# set the HTTP header `Accept`
|
4354
5418
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
4355
5419
|
["application/json"]
|
@@ -4385,18 +5449,18 @@ class OrganizationsV1Api(BaseApi):
|
|
4385
5449
|
)
|
4386
5450
|
|
4387
5451
|
@validate_call
|
4388
|
-
def
|
5452
|
+
def organization_license(
|
4389
5453
|
self,
|
4390
5454
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4391
5455
|
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4392
5456
|
**kwargs,
|
4393
5457
|
) -> V1Organization: # noqa: E501
|
4394
|
-
"""Organization
|
5458
|
+
"""Organization license # noqa: E501
|
4395
5459
|
|
4396
5460
|
This method makes a synchronous HTTP request by default. To make an
|
4397
5461
|
asynchronous HTTP request, please pass async_req=True
|
4398
5462
|
|
4399
|
-
>>> thread = api.
|
5463
|
+
>>> thread = api.organization_license(owner, body, async_req=True)
|
4400
5464
|
>>> result = thread.get()
|
4401
5465
|
|
4402
5466
|
:param owner: Owner of the namespace (required)
|
@@ -4419,21 +5483,21 @@ class OrganizationsV1Api(BaseApi):
|
|
4419
5483
|
:rtype: V1Organization
|
4420
5484
|
"""
|
4421
5485
|
kwargs["_return_http_data_only"] = True
|
4422
|
-
return self.
|
5486
|
+
return self.organization_license_with_http_info(owner, body, **kwargs) # noqa: E501
|
4423
5487
|
|
4424
5488
|
@validate_call
|
4425
|
-
def
|
5489
|
+
def organization_license_with_http_info(
|
4426
5490
|
self,
|
4427
5491
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4428
5492
|
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4429
5493
|
**kwargs,
|
4430
5494
|
): # noqa: E501
|
4431
|
-
"""Organization
|
5495
|
+
"""Organization license # noqa: E501
|
4432
5496
|
|
4433
5497
|
This method makes a synchronous HTTP request by default. To make an
|
4434
5498
|
asynchronous HTTP request, please pass async_req=True
|
4435
5499
|
|
4436
|
-
>>> thread = api.
|
5500
|
+
>>> thread = api.organization_license_with_http_info(owner, body, async_req=True)
|
4437
5501
|
>>> result = thread.get()
|
4438
5502
|
|
4439
5503
|
:param owner: Owner of the namespace (required)
|
@@ -4484,7 +5548,7 @@ class OrganizationsV1Api(BaseApi):
|
|
4484
5548
|
if _key not in _all_params:
|
4485
5549
|
raise ApiTypeError(
|
4486
5550
|
"Got an unexpected keyword argument '%s'"
|
4487
|
-
" to method
|
5551
|
+
" to method organization_license" % _key
|
4488
5552
|
)
|
4489
5553
|
_params[_key] = _val
|
4490
5554
|
del _params["kwargs"]
|
@@ -4498,14 +5562,11 @@ class OrganizationsV1Api(BaseApi):
|
|
4498
5562
|
|
4499
5563
|
# process the query parameters
|
4500
5564
|
_query_params = []
|
4501
|
-
|
4502
5565
|
# process the header parameters
|
4503
5566
|
_header_params = dict(_params.get("_headers", {}))
|
4504
|
-
|
4505
5567
|
# process the form parameters
|
4506
5568
|
_form_params = []
|
4507
5569
|
_files = {}
|
4508
|
-
|
4509
5570
|
# process the body parameter
|
4510
5571
|
_body_params = None
|
4511
5572
|
if _params["body"]:
|
@@ -4535,7 +5596,7 @@ class OrganizationsV1Api(BaseApi):
|
|
4535
5596
|
}
|
4536
5597
|
|
4537
5598
|
return self.api_client.call_api(
|
4538
|
-
"/api/v1/orgs/{owner}/
|
5599
|
+
"/api/v1/orgs/{owner}/license",
|
4539
5600
|
"POST",
|
4540
5601
|
_path_params,
|
4541
5602
|
_query_params,
|
@@ -4554,18 +5615,18 @@ class OrganizationsV1Api(BaseApi):
|
|
4554
5615
|
)
|
4555
5616
|
|
4556
5617
|
@validate_call
|
4557
|
-
def
|
5618
|
+
def organization_plan(
|
4558
5619
|
self,
|
4559
5620
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4560
5621
|
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4561
5622
|
**kwargs,
|
4562
5623
|
) -> V1Organization: # noqa: E501
|
4563
|
-
"""Organization
|
5624
|
+
"""Organization plan # noqa: E501
|
4564
5625
|
|
4565
5626
|
This method makes a synchronous HTTP request by default. To make an
|
4566
5627
|
asynchronous HTTP request, please pass async_req=True
|
4567
5628
|
|
4568
|
-
>>> thread = api.
|
5629
|
+
>>> thread = api.organization_plan(owner, body, async_req=True)
|
4569
5630
|
>>> result = thread.get()
|
4570
5631
|
|
4571
5632
|
:param owner: Owner of the namespace (required)
|
@@ -4588,21 +5649,21 @@ class OrganizationsV1Api(BaseApi):
|
|
4588
5649
|
:rtype: V1Organization
|
4589
5650
|
"""
|
4590
5651
|
kwargs["_return_http_data_only"] = True
|
4591
|
-
return self.
|
5652
|
+
return self.organization_plan_with_http_info(owner, body, **kwargs) # noqa: E501
|
4592
5653
|
|
4593
5654
|
@validate_call
|
4594
|
-
def
|
5655
|
+
def organization_plan_with_http_info(
|
4595
5656
|
self,
|
4596
5657
|
owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
|
4597
5658
|
body: Annotated[V1Organization, Field(..., description="Organization body")],
|
4598
5659
|
**kwargs,
|
4599
5660
|
): # noqa: E501
|
4600
|
-
"""Organization
|
5661
|
+
"""Organization plan # noqa: E501
|
4601
5662
|
|
4602
5663
|
This method makes a synchronous HTTP request by default. To make an
|
4603
5664
|
asynchronous HTTP request, please pass async_req=True
|
4604
5665
|
|
4605
|
-
>>> thread = api.
|
5666
|
+
>>> thread = api.organization_plan_with_http_info(owner, body, async_req=True)
|
4606
5667
|
>>> result = thread.get()
|
4607
5668
|
|
4608
5669
|
:param owner: Owner of the namespace (required)
|
@@ -4653,7 +5714,7 @@ class OrganizationsV1Api(BaseApi):
|
|
4653
5714
|
if _key not in _all_params:
|
4654
5715
|
raise ApiTypeError(
|
4655
5716
|
"Got an unexpected keyword argument '%s'"
|
4656
|
-
" to method
|
5717
|
+
" to method organization_plan" % _key
|
4657
5718
|
)
|
4658
5719
|
_params[_key] = _val
|
4659
5720
|
del _params["kwargs"]
|
@@ -4667,14 +5728,11 @@ class OrganizationsV1Api(BaseApi):
|
|
4667
5728
|
|
4668
5729
|
# process the query parameters
|
4669
5730
|
_query_params = []
|
4670
|
-
|
4671
5731
|
# process the header parameters
|
4672
5732
|
_header_params = dict(_params.get("_headers", {}))
|
4673
|
-
|
4674
5733
|
# process the form parameters
|
4675
5734
|
_form_params = []
|
4676
5735
|
_files = {}
|
4677
|
-
|
4678
5736
|
# process the body parameter
|
4679
5737
|
_body_params = None
|
4680
5738
|
if _params["body"]:
|
@@ -4704,7 +5762,7 @@ class OrganizationsV1Api(BaseApi):
|
|
4704
5762
|
}
|
4705
5763
|
|
4706
5764
|
return self.api_client.call_api(
|
4707
|
-
"/api/v1/orgs/{owner}/
|
5765
|
+
"/api/v1/orgs/{owner}/plan",
|
4708
5766
|
"POST",
|
4709
5767
|
_path_params,
|
4710
5768
|
_query_params,
|
@@ -4836,14 +5894,11 @@ class OrganizationsV1Api(BaseApi):
|
|
4836
5894
|
|
4837
5895
|
# process the query parameters
|
4838
5896
|
_query_params = []
|
4839
|
-
|
4840
5897
|
# process the header parameters
|
4841
5898
|
_header_params = dict(_params.get("_headers", {}))
|
4842
|
-
|
4843
5899
|
# process the form parameters
|
4844
5900
|
_form_params = []
|
4845
5901
|
_files = {}
|
4846
|
-
|
4847
5902
|
# process the body parameter
|
4848
5903
|
_body_params = None
|
4849
5904
|
if _params["body"]:
|
@@ -5026,11 +6081,9 @@ class OrganizationsV1Api(BaseApi):
|
|
5026
6081
|
|
5027
6082
|
# process the header parameters
|
5028
6083
|
_header_params = dict(_params.get("_headers", {}))
|
5029
|
-
|
5030
6084
|
# process the form parameters
|
5031
6085
|
_form_params = []
|
5032
6086
|
_files = {}
|
5033
|
-
|
5034
6087
|
# process the body parameter
|
5035
6088
|
_body_params = None
|
5036
6089
|
if _params["body"]:
|
@@ -5211,6 +6264,7 @@ class OrganizationsV1Api(BaseApi):
|
|
5211
6264
|
_path_params = {}
|
5212
6265
|
if _params["owner"]:
|
5213
6266
|
_path_params["owner"] = _params["owner"]
|
6267
|
+
|
5214
6268
|
if _params["member_user"]:
|
5215
6269
|
_path_params["member.user"] = _params["member_user"]
|
5216
6270
|
|
@@ -5221,11 +6275,9 @@ class OrganizationsV1Api(BaseApi):
|
|
5221
6275
|
|
5222
6276
|
# process the header parameters
|
5223
6277
|
_header_params = dict(_params.get("_headers", {}))
|
5224
|
-
|
5225
6278
|
# process the form parameters
|
5226
6279
|
_form_params = []
|
5227
6280
|
_files = {}
|
5228
|
-
|
5229
6281
|
# process the body parameter
|
5230
6282
|
_body_params = None
|
5231
6283
|
if _params["body"]:
|
@@ -5387,14 +6439,11 @@ class OrganizationsV1Api(BaseApi):
|
|
5387
6439
|
|
5388
6440
|
# process the query parameters
|
5389
6441
|
_query_params = []
|
5390
|
-
|
5391
6442
|
# process the header parameters
|
5392
6443
|
_header_params = dict(_params.get("_headers", {}))
|
5393
|
-
|
5394
6444
|
# process the form parameters
|
5395
6445
|
_form_params = []
|
5396
6446
|
_files = {}
|
5397
|
-
|
5398
6447
|
# process the body parameter
|
5399
6448
|
_body_params = None
|
5400
6449
|
if _params["body"]:
|
@@ -5577,11 +6626,9 @@ class OrganizationsV1Api(BaseApi):
|
|
5577
6626
|
|
5578
6627
|
# process the header parameters
|
5579
6628
|
_header_params = dict(_params.get("_headers", {}))
|
5580
|
-
|
5581
6629
|
# process the form parameters
|
5582
6630
|
_form_params = []
|
5583
6631
|
_files = {}
|
5584
|
-
|
5585
6632
|
# process the body parameter
|
5586
6633
|
_body_params = None
|
5587
6634
|
if _params["body"]:
|
@@ -5743,14 +6790,11 @@ class OrganizationsV1Api(BaseApi):
|
|
5743
6790
|
|
5744
6791
|
# process the query parameters
|
5745
6792
|
_query_params = []
|
5746
|
-
|
5747
6793
|
# process the header parameters
|
5748
6794
|
_header_params = dict(_params.get("_headers", {}))
|
5749
|
-
|
5750
6795
|
# process the form parameters
|
5751
6796
|
_form_params = []
|
5752
6797
|
_files = {}
|
5753
|
-
|
5754
6798
|
# process the body parameter
|
5755
6799
|
_body_params = None
|
5756
6800
|
if _params["body"]:
|
@@ -6068,14 +7112,11 @@ class OrganizationsV1Api(BaseApi):
|
|
6068
7112
|
|
6069
7113
|
# process the query parameters
|
6070
7114
|
_query_params = []
|
6071
|
-
|
6072
7115
|
# process the header parameters
|
6073
7116
|
_header_params = dict(_params.get("_headers", {}))
|
6074
|
-
|
6075
7117
|
# process the form parameters
|
6076
7118
|
_form_params = []
|
6077
7119
|
_files = {}
|
6078
|
-
|
6079
7120
|
# process the body parameter
|
6080
7121
|
_body_params = None
|
6081
7122
|
if _params["body"]:
|
@@ -6232,14 +7273,11 @@ class OrganizationsV1Api(BaseApi):
|
|
6232
7273
|
|
6233
7274
|
# process the query parameters
|
6234
7275
|
_query_params = []
|
6235
|
-
|
6236
7276
|
# process the header parameters
|
6237
7277
|
_header_params = dict(_params.get("_headers", {}))
|
6238
|
-
|
6239
7278
|
# process the form parameters
|
6240
7279
|
_form_params = []
|
6241
7280
|
_files = {}
|
6242
|
-
|
6243
7281
|
# process the body parameter
|
6244
7282
|
_body_params = None
|
6245
7283
|
if _params["body"]:
|
@@ -6396,14 +7434,11 @@ class OrganizationsV1Api(BaseApi):
|
|
6396
7434
|
|
6397
7435
|
# process the query parameters
|
6398
7436
|
_query_params = []
|
6399
|
-
|
6400
7437
|
# process the header parameters
|
6401
7438
|
_header_params = dict(_params.get("_headers", {}))
|
6402
|
-
|
6403
7439
|
# process the form parameters
|
6404
7440
|
_form_params = []
|
6405
7441
|
_files = {}
|
6406
|
-
|
6407
7442
|
# process the body parameter
|
6408
7443
|
_body_params = None
|
6409
7444
|
if _params["body"]:
|
@@ -6560,14 +7595,11 @@ class OrganizationsV1Api(BaseApi):
|
|
6560
7595
|
|
6561
7596
|
# process the query parameters
|
6562
7597
|
_query_params = []
|
6563
|
-
|
6564
7598
|
# process the header parameters
|
6565
7599
|
_header_params = dict(_params.get("_headers", {}))
|
6566
|
-
|
6567
7600
|
# process the form parameters
|
6568
7601
|
_form_params = []
|
6569
7602
|
_files = {}
|
6570
|
-
|
6571
7603
|
# process the body parameter
|
6572
7604
|
_body_params = None
|
6573
7605
|
if _params["body"]:
|
@@ -6750,11 +7782,9 @@ class OrganizationsV1Api(BaseApi):
|
|
6750
7782
|
|
6751
7783
|
# process the header parameters
|
6752
7784
|
_header_params = dict(_params.get("_headers", {}))
|
6753
|
-
|
6754
7785
|
# process the form parameters
|
6755
7786
|
_form_params = []
|
6756
7787
|
_files = {}
|
6757
|
-
|
6758
7788
|
# process the body parameter
|
6759
7789
|
_body_params = None
|
6760
7790
|
if _params["body"]:
|
@@ -6935,6 +7965,7 @@ class OrganizationsV1Api(BaseApi):
|
|
6935
7965
|
_path_params = {}
|
6936
7966
|
if _params["owner"]:
|
6937
7967
|
_path_params["owner"] = _params["owner"]
|
7968
|
+
|
6938
7969
|
if _params["member_user"]:
|
6939
7970
|
_path_params["member.user"] = _params["member_user"]
|
6940
7971
|
|
@@ -6945,11 +7976,9 @@ class OrganizationsV1Api(BaseApi):
|
|
6945
7976
|
|
6946
7977
|
# process the header parameters
|
6947
7978
|
_header_params = dict(_params.get("_headers", {}))
|
6948
|
-
|
6949
7979
|
# process the form parameters
|
6950
7980
|
_form_params = []
|
6951
7981
|
_files = {}
|
6952
|
-
|
6953
7982
|
# process the body parameter
|
6954
7983
|
_body_params = None
|
6955
7984
|
if _params["body"]:
|
@@ -7111,14 +8140,11 @@ class OrganizationsV1Api(BaseApi):
|
|
7111
8140
|
|
7112
8141
|
# process the query parameters
|
7113
8142
|
_query_params = []
|
7114
|
-
|
7115
8143
|
# process the header parameters
|
7116
8144
|
_header_params = dict(_params.get("_headers", {}))
|
7117
|
-
|
7118
8145
|
# process the form parameters
|
7119
8146
|
_form_params = []
|
7120
8147
|
_files = {}
|
7121
|
-
|
7122
8148
|
# process the body parameter
|
7123
8149
|
_body_params = None
|
7124
8150
|
if _params["body"]:
|