wds-client 0.17.0__py3-none-any.whl → 0.19.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.
- wds_client/__init__.py +1 -2
- wds_client/api/__init__.py +0 -1
- wds_client/api_client.py +8 -1
- wds_client/configuration.py +1 -1
- wds_client/models/generic_job.py +2 -2
- wds_client/models/job_v1.py +2 -2
- wds_client/models/record_query_response.py +3 -3
- wds_client/models/record_type_schema.py +3 -3
- {wds_client-0.17.0.dist-info → wds_client-0.19.0.dist-info}/METADATA +1 -1
- {wds_client-0.17.0.dist-info → wds_client-0.19.0.dist-info}/RECORD +12 -13
- {wds_client-0.17.0.dist-info → wds_client-0.19.0.dist-info}/WHEEL +1 -1
- wds_client/api/instances_api.py +0 -860
- {wds_client-0.17.0.dist-info → wds_client-0.19.0.dist-info}/top_level.txt +0 -0
wds_client/__init__.py
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
""" # noqa: E501
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "0.
|
17
|
+
__version__ = "0.19.0"
|
18
18
|
|
19
19
|
# import apis into sdk package
|
20
20
|
from wds_client.api.capabilities_api import CapabilitiesApi
|
@@ -22,7 +22,6 @@ from wds_client.api.cloning_api import CloningApi
|
|
22
22
|
from wds_client.api.collection_api import CollectionApi
|
23
23
|
from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
|
24
24
|
from wds_client.api.import_api import ImportApi
|
25
|
-
from wds_client.api.instances_api import InstancesApi
|
26
25
|
from wds_client.api.job_api import JobApi
|
27
26
|
from wds_client.api.records_api import RecordsApi
|
28
27
|
from wds_client.api.schema_api import SchemaApi
|
wds_client/api/__init__.py
CHANGED
@@ -6,7 +6,6 @@ from wds_client.api.cloning_api import CloningApi
|
|
6
6
|
from wds_client.api.collection_api import CollectionApi
|
7
7
|
from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
|
8
8
|
from wds_client.api.import_api import ImportApi
|
9
|
-
from wds_client.api.instances_api import InstancesApi
|
10
9
|
from wds_client.api.job_api import JobApi
|
11
10
|
from wds_client.api.records_api import RecordsApi
|
12
11
|
from wds_client.api.schema_api import SchemaApi
|
wds_client/api_client.py
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
import datetime
|
16
16
|
from dateutil.parser import parse
|
17
17
|
from enum import Enum
|
18
|
+
import decimal
|
18
19
|
import json
|
19
20
|
import mimetypes
|
20
21
|
import os
|
@@ -66,6 +67,7 @@ class ApiClient:
|
|
66
67
|
'bool': bool,
|
67
68
|
'date': datetime.date,
|
68
69
|
'datetime': datetime.datetime,
|
70
|
+
'decimal': decimal.Decimal,
|
69
71
|
'object': object,
|
70
72
|
}
|
71
73
|
_pool = None
|
@@ -88,7 +90,7 @@ class ApiClient:
|
|
88
90
|
self.default_headers[header_name] = header_value
|
89
91
|
self.cookie = cookie
|
90
92
|
# Set default User-Agent.
|
91
|
-
self.user_agent = 'wds-client/0.
|
93
|
+
self.user_agent = 'wds-client/0.19.0/python'
|
92
94
|
self.client_side_validation = configuration.client_side_validation
|
93
95
|
|
94
96
|
def __enter__(self):
|
@@ -338,6 +340,7 @@ class ApiClient:
|
|
338
340
|
If obj is str, int, long, float, bool, return directly.
|
339
341
|
If obj is datetime.datetime, datetime.date
|
340
342
|
convert to string in iso8601 format.
|
343
|
+
If obj is decimal.Decimal return string representation.
|
341
344
|
If obj is list, sanitize each element in the list.
|
342
345
|
If obj is dict, return the dict.
|
343
346
|
If obj is OpenAPI model, return the properties dict.
|
@@ -363,6 +366,8 @@ class ApiClient:
|
|
363
366
|
)
|
364
367
|
elif isinstance(obj, (datetime.datetime, datetime.date)):
|
365
368
|
return obj.isoformat()
|
369
|
+
elif isinstance(obj, decimal.Decimal):
|
370
|
+
return str(obj)
|
366
371
|
|
367
372
|
elif isinstance(obj, dict):
|
368
373
|
obj_dict = obj
|
@@ -454,6 +459,8 @@ class ApiClient:
|
|
454
459
|
return self.__deserialize_date(data)
|
455
460
|
elif klass == datetime.datetime:
|
456
461
|
return self.__deserialize_datetime(data)
|
462
|
+
elif klass == decimal.Decimal:
|
463
|
+
return decimal.Decimal(data)
|
457
464
|
elif issubclass(klass, Enum):
|
458
465
|
return self.__deserialize_enum(data, klass)
|
459
466
|
else:
|
wds_client/configuration.py
CHANGED
@@ -392,7 +392,7 @@ class Configuration:
|
|
392
392
|
"OS: {env}\n"\
|
393
393
|
"Python Version: {pyversion}\n"\
|
394
394
|
"Version of the API: v0.2\n"\
|
395
|
-
"SDK Package Version: 0.
|
395
|
+
"SDK Package Version: 0.19.0".\
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
397
397
|
|
398
398
|
def get_host_settings(self):
|
wds_client/models/generic_job.py
CHANGED
@@ -41,8 +41,8 @@ class GenericJob(BaseModel):
|
|
41
41
|
@field_validator('job_type')
|
42
42
|
def job_type_validate_enum(cls, value):
|
43
43
|
"""Validates the enum"""
|
44
|
-
if value not in set(['DATA_IMPORT', 'UNKNOWN']):
|
45
|
-
raise ValueError("must be one of enum values ('DATA_IMPORT', 'UNKNOWN')")
|
44
|
+
if value not in set(['DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN']):
|
45
|
+
raise ValueError("must be one of enum values ('DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN')")
|
46
46
|
return value
|
47
47
|
|
48
48
|
@field_validator('status')
|
wds_client/models/job_v1.py
CHANGED
@@ -39,8 +39,8 @@ class JobV1(BaseModel):
|
|
39
39
|
@field_validator('job_type')
|
40
40
|
def job_type_validate_enum(cls, value):
|
41
41
|
"""Validates the enum"""
|
42
|
-
if value not in set(['DATA_IMPORT', 'UNKNOWN']):
|
43
|
-
raise ValueError("must be one of enum values ('DATA_IMPORT', 'UNKNOWN')")
|
42
|
+
if value not in set(['DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN']):
|
43
|
+
raise ValueError("must be one of enum values ('DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN')")
|
44
44
|
return value
|
45
45
|
|
46
46
|
@field_validator('status')
|
@@ -78,9 +78,9 @@ class RecordQueryResponse(BaseModel):
|
|
78
78
|
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
|
79
79
|
_items = []
|
80
80
|
if self.records:
|
81
|
-
for
|
82
|
-
if
|
83
|
-
_items.append(
|
81
|
+
for _item_records in self.records:
|
82
|
+
if _item_records:
|
83
|
+
_items.append(_item_records.to_dict())
|
84
84
|
_dict['records'] = _items
|
85
85
|
return _dict
|
86
86
|
|
@@ -75,9 +75,9 @@ class RecordTypeSchema(BaseModel):
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of each item in attributes (list)
|
76
76
|
_items = []
|
77
77
|
if self.attributes:
|
78
|
-
for
|
79
|
-
if
|
80
|
-
_items.append(
|
78
|
+
for _item_attributes in self.attributes:
|
79
|
+
if _item_attributes:
|
80
|
+
_items.append(_item_attributes.to_dict())
|
81
81
|
_dict['attributes'] = _items
|
82
82
|
return _dict
|
83
83
|
|
@@ -1,17 +1,16 @@
|
|
1
|
-
wds_client/__init__.py,sha256=
|
2
|
-
wds_client/api_client.py,sha256=
|
1
|
+
wds_client/__init__.py,sha256=RkwXdwvMzLBwKp3lHQMI1PJNP1m_vdnKyXin1t6PiSA,3562
|
2
|
+
wds_client/api_client.py,sha256=4RR2OtmvRaiggCJpyIHQ42OOjUVsxDYvbwCb52VLIFY,27193
|
3
3
|
wds_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
4
|
-
wds_client/configuration.py,sha256=
|
4
|
+
wds_client/configuration.py,sha256=UDhv4851Ul7YtbVDTKtGEbBn9jxs6dFDyfp76afBXyY,15455
|
5
5
|
wds_client/exceptions.py,sha256=674T2OrRc-tySXqf45i00iZdt3r6AS-RnWjBUgRxAvc,6122
|
6
6
|
wds_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
wds_client/rest.py,sha256=Gbp9F8A2qoMDg4xrkCjSAG0FDHXUxcNB8oyfzJXxw4U,9554
|
8
|
-
wds_client/api/__init__.py,sha256=
|
8
|
+
wds_client/api/__init__.py,sha256=ZF44Ef5IcJM1LX1WdEyd7eLnPm5TUs7HTnL-TbHEU_Q,536
|
9
9
|
wds_client/api/capabilities_api.py,sha256=fbu84ZPzJq2cWS_x4HK_AeuvycDavlvbD-RkumXzs1M,10329
|
10
10
|
wds_client/api/cloning_api.py,sha256=LkDwC-FYSyWqYqWHZZTI5Xic-jo01VlrjbT9J1joLjw,32455
|
11
11
|
wds_client/api/collection_api.py,sha256=abZF56OGRIiqbloMi6zd7ahdBkwFwEMO6m4ZbNP8DXA,55679
|
12
12
|
wds_client/api/general_wds_information_api.py,sha256=xwfn820K0Q1BaWtIEWWuIkMUNxeFFq2LQiiYIY4BUrA,20256
|
13
13
|
wds_client/api/import_api.py,sha256=-R7A7mr-FkkF-CKA_aEdXw_gFi101vm3n6pgWEoXgfU,12930
|
14
|
-
wds_client/api/instances_api.py,sha256=chNSyh-oiihu_6CcsUa2af853TwtDLFRxGTWpPKS9zo,33855
|
15
14
|
wds_client/api/job_api.py,sha256=2oQdl-1Si_QloKtiPGgOitftCb0GMto-O-PZoyUZ7kE,21802
|
16
15
|
wds_client/api/records_api.py,sha256=5sESj3Wq6oG2f82Rbtr-Wab4yOr64N023IFr5U5YFNo,106659
|
17
16
|
wds_client/api/schema_api.py,sha256=nIuLrh_GJUjkoAZwomIrQXagYZU4HLvg4naHh3uBWZM,61103
|
@@ -35,15 +34,15 @@ wds_client/models/collection.py,sha256=LxuptlecUwSBpieeyuIUCgKghO47i1R7xyv_-HHKo
|
|
35
34
|
wds_client/models/collection_request.py,sha256=eNm5jUvaTqz20jrN0qoNg8iXf84sNmEF1ZpyP608fPM,3205
|
36
35
|
wds_client/models/commit.py,sha256=yE9OxZ_1kGnbD3U80QTBi8HOELfxd21Eb3-RraPqbsc,2720
|
37
36
|
wds_client/models/error_response.py,sha256=U1Fl24jQhD2gEEREBSemaUp8PHKO7XHJ4pSLmgnVxz0,3115
|
38
|
-
wds_client/models/generic_job.py,sha256
|
37
|
+
wds_client/models/generic_job.py,sha256=-LW-WC1T_SSfpAZTdxoEKc3_Njn-Iab1Opmy7E2hwfU,4421
|
39
38
|
wds_client/models/git.py,sha256=ylt-GWcCKsfZmWfBHQIT7EO5mHhLqQnnf8hANgUZcl0,2962
|
40
39
|
wds_client/models/import_request.py,sha256=r8Tph4ZXFfXpI3n1nlbqs7azgrdEynwlQYrn4RvufWw,3309
|
41
40
|
wds_client/models/job.py,sha256=vaqbX9i6Oe0plmCAD9hBbpSCysvSxAqWkkOTuRwCTBo,3499
|
42
|
-
wds_client/models/job_v1.py,sha256=
|
43
|
-
wds_client/models/record_query_response.py,sha256=
|
41
|
+
wds_client/models/job_v1.py,sha256=2-M7pJrzvdNiCTIRxOW8GiY9WJfDL_QeitPNQzojRvE,3962
|
42
|
+
wds_client/models/record_query_response.py,sha256=mwIUazdWiw1uu9Kq0MeSe4wqJAgA-5mQFS8os0GpofI,3833
|
44
43
|
wds_client/models/record_request.py,sha256=c-jJuqOgogRM5HdR2HoafMnpIAdfCukysSBFCqnwCjM,2796
|
45
44
|
wds_client/models/record_response.py,sha256=ZniN8hDVM7QAEbhwbUnr5RXYpZJHqwFPxBlmlhorBDk,3001
|
46
|
-
wds_client/models/record_type_schema.py,sha256=
|
45
|
+
wds_client/models/record_type_schema.py,sha256=UMlHVrAwfrsEn0-9YjgVw9WfVB2mBOi1ntsGwECaspQ,3785
|
47
46
|
wds_client/models/search_filter.py,sha256=TWUJEqSOdgER6OV9IrNodSnn9JZ8Q7Spc0e1EYWm7M0,2860
|
48
47
|
wds_client/models/search_request.py,sha256=RLJq3S4vC4bg9dprEH0kT-h9m6PVblBkAzVHYw5XW-I,3801
|
49
48
|
wds_client/models/search_sort_direction.py,sha256=fnqUYvbgXHQ5mESZnxDvcUZ5wi6i770fkqu00jtCATM,932
|
@@ -52,7 +51,7 @@ wds_client/models/tsv_upload_response.py,sha256=yhj-3KEFzs-EYnaGZvsr6KgrK6wlYCZK
|
|
52
51
|
wds_client/models/version_response.py,sha256=pQ9eukrGQPdLBwvPKN_ucFlMKff25oGywruwIdL918o,3516
|
53
52
|
wds_client/models/workspace_init.py,sha256=XHtI3gddZY3_X0byd232m15cChbvln_jWBDZoE8_20w,2942
|
54
53
|
wds_client/models/workspace_init_clone.py,sha256=MTQuoSuJrYCQLbWGPA8VCcB3phs7101HcUj3Q27yVK0,2847
|
55
|
-
wds_client-0.
|
56
|
-
wds_client-0.
|
57
|
-
wds_client-0.
|
58
|
-
wds_client-0.
|
54
|
+
wds_client-0.19.0.dist-info/METADATA,sha256=500qlsU91_jc0vML6RrG3Ko6wR3dogYyaIwrsJ0qiMw,675
|
55
|
+
wds_client-0.19.0.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
|
56
|
+
wds_client-0.19.0.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
|
57
|
+
wds_client-0.19.0.dist-info/RECORD,,
|
wds_client/api/instances_api.py
DELETED
@@ -1,860 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Workspace Data Service
|
5
|
-
|
6
|
-
This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v0.2
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
-
|
11
|
-
Do not edit the class manually.
|
12
|
-
""" # noqa: E501
|
13
|
-
|
14
|
-
import warnings
|
15
|
-
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
-
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
-
from typing_extensions import Annotated
|
18
|
-
|
19
|
-
from pydantic import Field, StrictStr
|
20
|
-
from typing import List
|
21
|
-
from typing_extensions import Annotated
|
22
|
-
|
23
|
-
from wds_client.api_client import ApiClient, RequestSerialized
|
24
|
-
from wds_client.api_response import ApiResponse
|
25
|
-
from wds_client.rest import RESTResponseType
|
26
|
-
|
27
|
-
|
28
|
-
class InstancesApi:
|
29
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
30
|
-
Ref: https://openapi-generator.tech
|
31
|
-
|
32
|
-
Do not edit the class manually.
|
33
|
-
"""
|
34
|
-
|
35
|
-
def __init__(self, api_client=None) -> None:
|
36
|
-
if api_client is None:
|
37
|
-
api_client = ApiClient.get_default()
|
38
|
-
self.api_client = api_client
|
39
|
-
|
40
|
-
|
41
|
-
@validate_call
|
42
|
-
def create_wds_instance(
|
43
|
-
self,
|
44
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
45
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
46
|
-
_request_timeout: Union[
|
47
|
-
None,
|
48
|
-
Annotated[StrictFloat, Field(gt=0)],
|
49
|
-
Tuple[
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
51
|
-
Annotated[StrictFloat, Field(gt=0)]
|
52
|
-
]
|
53
|
-
] = None,
|
54
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
55
|
-
_content_type: Optional[StrictStr] = None,
|
56
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
57
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
58
|
-
) -> None:
|
59
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
60
|
-
|
61
|
-
Use POST /collections/v1/{workspaceId} instead.
|
62
|
-
|
63
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
64
|
-
:type instanceid: str
|
65
|
-
:param v: API version (required)
|
66
|
-
:type v: str
|
67
|
-
:param _request_timeout: timeout setting for this request. If one
|
68
|
-
number provided, it will be total request
|
69
|
-
timeout. It can also be a pair (tuple) of
|
70
|
-
(connection, read) timeouts.
|
71
|
-
:type _request_timeout: int, tuple(int, int), optional
|
72
|
-
:param _request_auth: set to override the auth_settings for an a single
|
73
|
-
request; this effectively ignores the
|
74
|
-
authentication in the spec for a single request.
|
75
|
-
:type _request_auth: dict, optional
|
76
|
-
:param _content_type: force content-type for the request.
|
77
|
-
:type _content_type: str, Optional
|
78
|
-
:param _headers: set to override the headers for a single
|
79
|
-
request; this effectively ignores the headers
|
80
|
-
in the spec for a single request.
|
81
|
-
:type _headers: dict, optional
|
82
|
-
:param _host_index: set to override the host_index for a single
|
83
|
-
request; this effectively ignores the host_index
|
84
|
-
in the spec for a single request.
|
85
|
-
:type _host_index: int, optional
|
86
|
-
:return: Returns the result object.
|
87
|
-
""" # noqa: E501
|
88
|
-
warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
89
|
-
|
90
|
-
_param = self._create_wds_instance_serialize(
|
91
|
-
instanceid=instanceid,
|
92
|
-
v=v,
|
93
|
-
_request_auth=_request_auth,
|
94
|
-
_content_type=_content_type,
|
95
|
-
_headers=_headers,
|
96
|
-
_host_index=_host_index
|
97
|
-
)
|
98
|
-
|
99
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
100
|
-
'201': None,
|
101
|
-
'409': "ErrorResponse",
|
102
|
-
}
|
103
|
-
response_data = self.api_client.call_api(
|
104
|
-
*_param,
|
105
|
-
_request_timeout=_request_timeout
|
106
|
-
)
|
107
|
-
response_data.read()
|
108
|
-
return self.api_client.response_deserialize(
|
109
|
-
response_data=response_data,
|
110
|
-
response_types_map=_response_types_map,
|
111
|
-
).data
|
112
|
-
|
113
|
-
|
114
|
-
@validate_call
|
115
|
-
def create_wds_instance_with_http_info(
|
116
|
-
self,
|
117
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
118
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
119
|
-
_request_timeout: Union[
|
120
|
-
None,
|
121
|
-
Annotated[StrictFloat, Field(gt=0)],
|
122
|
-
Tuple[
|
123
|
-
Annotated[StrictFloat, Field(gt=0)],
|
124
|
-
Annotated[StrictFloat, Field(gt=0)]
|
125
|
-
]
|
126
|
-
] = None,
|
127
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
128
|
-
_content_type: Optional[StrictStr] = None,
|
129
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
130
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
131
|
-
) -> ApiResponse[None]:
|
132
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
133
|
-
|
134
|
-
Use POST /collections/v1/{workspaceId} instead.
|
135
|
-
|
136
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
137
|
-
:type instanceid: str
|
138
|
-
:param v: API version (required)
|
139
|
-
:type v: str
|
140
|
-
:param _request_timeout: timeout setting for this request. If one
|
141
|
-
number provided, it will be total request
|
142
|
-
timeout. It can also be a pair (tuple) of
|
143
|
-
(connection, read) timeouts.
|
144
|
-
:type _request_timeout: int, tuple(int, int), optional
|
145
|
-
:param _request_auth: set to override the auth_settings for an a single
|
146
|
-
request; this effectively ignores the
|
147
|
-
authentication in the spec for a single request.
|
148
|
-
:type _request_auth: dict, optional
|
149
|
-
:param _content_type: force content-type for the request.
|
150
|
-
:type _content_type: str, Optional
|
151
|
-
:param _headers: set to override the headers for a single
|
152
|
-
request; this effectively ignores the headers
|
153
|
-
in the spec for a single request.
|
154
|
-
:type _headers: dict, optional
|
155
|
-
:param _host_index: set to override the host_index for a single
|
156
|
-
request; this effectively ignores the host_index
|
157
|
-
in the spec for a single request.
|
158
|
-
:type _host_index: int, optional
|
159
|
-
:return: Returns the result object.
|
160
|
-
""" # noqa: E501
|
161
|
-
warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
162
|
-
|
163
|
-
_param = self._create_wds_instance_serialize(
|
164
|
-
instanceid=instanceid,
|
165
|
-
v=v,
|
166
|
-
_request_auth=_request_auth,
|
167
|
-
_content_type=_content_type,
|
168
|
-
_headers=_headers,
|
169
|
-
_host_index=_host_index
|
170
|
-
)
|
171
|
-
|
172
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
173
|
-
'201': None,
|
174
|
-
'409': "ErrorResponse",
|
175
|
-
}
|
176
|
-
response_data = self.api_client.call_api(
|
177
|
-
*_param,
|
178
|
-
_request_timeout=_request_timeout
|
179
|
-
)
|
180
|
-
response_data.read()
|
181
|
-
return self.api_client.response_deserialize(
|
182
|
-
response_data=response_data,
|
183
|
-
response_types_map=_response_types_map,
|
184
|
-
)
|
185
|
-
|
186
|
-
|
187
|
-
@validate_call
|
188
|
-
def create_wds_instance_without_preload_content(
|
189
|
-
self,
|
190
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
191
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
192
|
-
_request_timeout: Union[
|
193
|
-
None,
|
194
|
-
Annotated[StrictFloat, Field(gt=0)],
|
195
|
-
Tuple[
|
196
|
-
Annotated[StrictFloat, Field(gt=0)],
|
197
|
-
Annotated[StrictFloat, Field(gt=0)]
|
198
|
-
]
|
199
|
-
] = None,
|
200
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
201
|
-
_content_type: Optional[StrictStr] = None,
|
202
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
203
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
204
|
-
) -> RESTResponseType:
|
205
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
206
|
-
|
207
|
-
Use POST /collections/v1/{workspaceId} instead.
|
208
|
-
|
209
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
210
|
-
:type instanceid: str
|
211
|
-
:param v: API version (required)
|
212
|
-
:type v: str
|
213
|
-
:param _request_timeout: timeout setting for this request. If one
|
214
|
-
number provided, it will be total request
|
215
|
-
timeout. It can also be a pair (tuple) of
|
216
|
-
(connection, read) timeouts.
|
217
|
-
:type _request_timeout: int, tuple(int, int), optional
|
218
|
-
:param _request_auth: set to override the auth_settings for an a single
|
219
|
-
request; this effectively ignores the
|
220
|
-
authentication in the spec for a single request.
|
221
|
-
:type _request_auth: dict, optional
|
222
|
-
:param _content_type: force content-type for the request.
|
223
|
-
:type _content_type: str, Optional
|
224
|
-
:param _headers: set to override the headers for a single
|
225
|
-
request; this effectively ignores the headers
|
226
|
-
in the spec for a single request.
|
227
|
-
:type _headers: dict, optional
|
228
|
-
:param _host_index: set to override the host_index for a single
|
229
|
-
request; this effectively ignores the host_index
|
230
|
-
in the spec for a single request.
|
231
|
-
:type _host_index: int, optional
|
232
|
-
:return: Returns the result object.
|
233
|
-
""" # noqa: E501
|
234
|
-
warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
235
|
-
|
236
|
-
_param = self._create_wds_instance_serialize(
|
237
|
-
instanceid=instanceid,
|
238
|
-
v=v,
|
239
|
-
_request_auth=_request_auth,
|
240
|
-
_content_type=_content_type,
|
241
|
-
_headers=_headers,
|
242
|
-
_host_index=_host_index
|
243
|
-
)
|
244
|
-
|
245
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
246
|
-
'201': None,
|
247
|
-
'409': "ErrorResponse",
|
248
|
-
}
|
249
|
-
response_data = self.api_client.call_api(
|
250
|
-
*_param,
|
251
|
-
_request_timeout=_request_timeout
|
252
|
-
)
|
253
|
-
return response_data.response
|
254
|
-
|
255
|
-
|
256
|
-
def _create_wds_instance_serialize(
|
257
|
-
self,
|
258
|
-
instanceid,
|
259
|
-
v,
|
260
|
-
_request_auth,
|
261
|
-
_content_type,
|
262
|
-
_headers,
|
263
|
-
_host_index,
|
264
|
-
) -> RequestSerialized:
|
265
|
-
|
266
|
-
_host = None
|
267
|
-
|
268
|
-
_collection_formats: Dict[str, str] = {
|
269
|
-
}
|
270
|
-
|
271
|
-
_path_params: Dict[str, str] = {}
|
272
|
-
_query_params: List[Tuple[str, str]] = []
|
273
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
274
|
-
_form_params: List[Tuple[str, str]] = []
|
275
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
276
|
-
_body_params: Optional[bytes] = None
|
277
|
-
|
278
|
-
# process the path parameters
|
279
|
-
if instanceid is not None:
|
280
|
-
_path_params['instanceid'] = instanceid
|
281
|
-
if v is not None:
|
282
|
-
_path_params['v'] = v
|
283
|
-
# process the query parameters
|
284
|
-
# process the header parameters
|
285
|
-
# process the form parameters
|
286
|
-
# process the body parameter
|
287
|
-
|
288
|
-
|
289
|
-
# set the HTTP header `Accept`
|
290
|
-
if 'Accept' not in _header_params:
|
291
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
292
|
-
[
|
293
|
-
'application/json'
|
294
|
-
]
|
295
|
-
)
|
296
|
-
|
297
|
-
|
298
|
-
# authentication setting
|
299
|
-
_auth_settings: List[str] = [
|
300
|
-
'bearerAuth'
|
301
|
-
]
|
302
|
-
|
303
|
-
return self.api_client.param_serialize(
|
304
|
-
method='POST',
|
305
|
-
resource_path='/instances/{v}/{instanceid}',
|
306
|
-
path_params=_path_params,
|
307
|
-
query_params=_query_params,
|
308
|
-
header_params=_header_params,
|
309
|
-
body=_body_params,
|
310
|
-
post_params=_form_params,
|
311
|
-
files=_files,
|
312
|
-
auth_settings=_auth_settings,
|
313
|
-
collection_formats=_collection_formats,
|
314
|
-
_host=_host,
|
315
|
-
_request_auth=_request_auth
|
316
|
-
)
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
@validate_call
|
322
|
-
def delete_wds_instance(
|
323
|
-
self,
|
324
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
325
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
326
|
-
_request_timeout: Union[
|
327
|
-
None,
|
328
|
-
Annotated[StrictFloat, Field(gt=0)],
|
329
|
-
Tuple[
|
330
|
-
Annotated[StrictFloat, Field(gt=0)],
|
331
|
-
Annotated[StrictFloat, Field(gt=0)]
|
332
|
-
]
|
333
|
-
] = None,
|
334
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
335
|
-
_content_type: Optional[StrictStr] = None,
|
336
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
337
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
338
|
-
) -> None:
|
339
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
340
|
-
|
341
|
-
Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
|
342
|
-
|
343
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
344
|
-
:type instanceid: str
|
345
|
-
:param v: API version (required)
|
346
|
-
:type v: str
|
347
|
-
:param _request_timeout: timeout setting for this request. If one
|
348
|
-
number provided, it will be total request
|
349
|
-
timeout. It can also be a pair (tuple) of
|
350
|
-
(connection, read) timeouts.
|
351
|
-
:type _request_timeout: int, tuple(int, int), optional
|
352
|
-
:param _request_auth: set to override the auth_settings for an a single
|
353
|
-
request; this effectively ignores the
|
354
|
-
authentication in the spec for a single request.
|
355
|
-
:type _request_auth: dict, optional
|
356
|
-
:param _content_type: force content-type for the request.
|
357
|
-
:type _content_type: str, Optional
|
358
|
-
:param _headers: set to override the headers for a single
|
359
|
-
request; this effectively ignores the headers
|
360
|
-
in the spec for a single request.
|
361
|
-
:type _headers: dict, optional
|
362
|
-
:param _host_index: set to override the host_index for a single
|
363
|
-
request; this effectively ignores the host_index
|
364
|
-
in the spec for a single request.
|
365
|
-
:type _host_index: int, optional
|
366
|
-
:return: Returns the result object.
|
367
|
-
""" # noqa: E501
|
368
|
-
warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
369
|
-
|
370
|
-
_param = self._delete_wds_instance_serialize(
|
371
|
-
instanceid=instanceid,
|
372
|
-
v=v,
|
373
|
-
_request_auth=_request_auth,
|
374
|
-
_content_type=_content_type,
|
375
|
-
_headers=_headers,
|
376
|
-
_host_index=_host_index
|
377
|
-
)
|
378
|
-
|
379
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
380
|
-
'200': None,
|
381
|
-
'404': "ErrorResponse",
|
382
|
-
}
|
383
|
-
response_data = self.api_client.call_api(
|
384
|
-
*_param,
|
385
|
-
_request_timeout=_request_timeout
|
386
|
-
)
|
387
|
-
response_data.read()
|
388
|
-
return self.api_client.response_deserialize(
|
389
|
-
response_data=response_data,
|
390
|
-
response_types_map=_response_types_map,
|
391
|
-
).data
|
392
|
-
|
393
|
-
|
394
|
-
@validate_call
|
395
|
-
def delete_wds_instance_with_http_info(
|
396
|
-
self,
|
397
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
398
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
399
|
-
_request_timeout: Union[
|
400
|
-
None,
|
401
|
-
Annotated[StrictFloat, Field(gt=0)],
|
402
|
-
Tuple[
|
403
|
-
Annotated[StrictFloat, Field(gt=0)],
|
404
|
-
Annotated[StrictFloat, Field(gt=0)]
|
405
|
-
]
|
406
|
-
] = None,
|
407
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
408
|
-
_content_type: Optional[StrictStr] = None,
|
409
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
410
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
411
|
-
) -> ApiResponse[None]:
|
412
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
413
|
-
|
414
|
-
Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
|
415
|
-
|
416
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
417
|
-
:type instanceid: str
|
418
|
-
:param v: API version (required)
|
419
|
-
:type v: str
|
420
|
-
:param _request_timeout: timeout setting for this request. If one
|
421
|
-
number provided, it will be total request
|
422
|
-
timeout. It can also be a pair (tuple) of
|
423
|
-
(connection, read) timeouts.
|
424
|
-
:type _request_timeout: int, tuple(int, int), optional
|
425
|
-
:param _request_auth: set to override the auth_settings for an a single
|
426
|
-
request; this effectively ignores the
|
427
|
-
authentication in the spec for a single request.
|
428
|
-
:type _request_auth: dict, optional
|
429
|
-
:param _content_type: force content-type for the request.
|
430
|
-
:type _content_type: str, Optional
|
431
|
-
:param _headers: set to override the headers for a single
|
432
|
-
request; this effectively ignores the headers
|
433
|
-
in the spec for a single request.
|
434
|
-
:type _headers: dict, optional
|
435
|
-
:param _host_index: set to override the host_index for a single
|
436
|
-
request; this effectively ignores the host_index
|
437
|
-
in the spec for a single request.
|
438
|
-
:type _host_index: int, optional
|
439
|
-
:return: Returns the result object.
|
440
|
-
""" # noqa: E501
|
441
|
-
warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
442
|
-
|
443
|
-
_param = self._delete_wds_instance_serialize(
|
444
|
-
instanceid=instanceid,
|
445
|
-
v=v,
|
446
|
-
_request_auth=_request_auth,
|
447
|
-
_content_type=_content_type,
|
448
|
-
_headers=_headers,
|
449
|
-
_host_index=_host_index
|
450
|
-
)
|
451
|
-
|
452
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
453
|
-
'200': None,
|
454
|
-
'404': "ErrorResponse",
|
455
|
-
}
|
456
|
-
response_data = self.api_client.call_api(
|
457
|
-
*_param,
|
458
|
-
_request_timeout=_request_timeout
|
459
|
-
)
|
460
|
-
response_data.read()
|
461
|
-
return self.api_client.response_deserialize(
|
462
|
-
response_data=response_data,
|
463
|
-
response_types_map=_response_types_map,
|
464
|
-
)
|
465
|
-
|
466
|
-
|
467
|
-
@validate_call
|
468
|
-
def delete_wds_instance_without_preload_content(
|
469
|
-
self,
|
470
|
-
instanceid: Annotated[StrictStr, Field(description="WDS instance id; by convention equal to workspace id")],
|
471
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
472
|
-
_request_timeout: Union[
|
473
|
-
None,
|
474
|
-
Annotated[StrictFloat, Field(gt=0)],
|
475
|
-
Tuple[
|
476
|
-
Annotated[StrictFloat, Field(gt=0)],
|
477
|
-
Annotated[StrictFloat, Field(gt=0)]
|
478
|
-
]
|
479
|
-
] = None,
|
480
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
481
|
-
_content_type: Optional[StrictStr] = None,
|
482
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
483
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
484
|
-
) -> RESTResponseType:
|
485
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
486
|
-
|
487
|
-
Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
|
488
|
-
|
489
|
-
:param instanceid: WDS instance id; by convention equal to workspace id (required)
|
490
|
-
:type instanceid: str
|
491
|
-
:param v: API version (required)
|
492
|
-
:type v: str
|
493
|
-
:param _request_timeout: timeout setting for this request. If one
|
494
|
-
number provided, it will be total request
|
495
|
-
timeout. It can also be a pair (tuple) of
|
496
|
-
(connection, read) timeouts.
|
497
|
-
:type _request_timeout: int, tuple(int, int), optional
|
498
|
-
:param _request_auth: set to override the auth_settings for an a single
|
499
|
-
request; this effectively ignores the
|
500
|
-
authentication in the spec for a single request.
|
501
|
-
:type _request_auth: dict, optional
|
502
|
-
:param _content_type: force content-type for the request.
|
503
|
-
:type _content_type: str, Optional
|
504
|
-
:param _headers: set to override the headers for a single
|
505
|
-
request; this effectively ignores the headers
|
506
|
-
in the spec for a single request.
|
507
|
-
:type _headers: dict, optional
|
508
|
-
:param _host_index: set to override the host_index for a single
|
509
|
-
request; this effectively ignores the host_index
|
510
|
-
in the spec for a single request.
|
511
|
-
:type _host_index: int, optional
|
512
|
-
:return: Returns the result object.
|
513
|
-
""" # noqa: E501
|
514
|
-
warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
|
515
|
-
|
516
|
-
_param = self._delete_wds_instance_serialize(
|
517
|
-
instanceid=instanceid,
|
518
|
-
v=v,
|
519
|
-
_request_auth=_request_auth,
|
520
|
-
_content_type=_content_type,
|
521
|
-
_headers=_headers,
|
522
|
-
_host_index=_host_index
|
523
|
-
)
|
524
|
-
|
525
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
526
|
-
'200': None,
|
527
|
-
'404': "ErrorResponse",
|
528
|
-
}
|
529
|
-
response_data = self.api_client.call_api(
|
530
|
-
*_param,
|
531
|
-
_request_timeout=_request_timeout
|
532
|
-
)
|
533
|
-
return response_data.response
|
534
|
-
|
535
|
-
|
536
|
-
def _delete_wds_instance_serialize(
|
537
|
-
self,
|
538
|
-
instanceid,
|
539
|
-
v,
|
540
|
-
_request_auth,
|
541
|
-
_content_type,
|
542
|
-
_headers,
|
543
|
-
_host_index,
|
544
|
-
) -> RequestSerialized:
|
545
|
-
|
546
|
-
_host = None
|
547
|
-
|
548
|
-
_collection_formats: Dict[str, str] = {
|
549
|
-
}
|
550
|
-
|
551
|
-
_path_params: Dict[str, str] = {}
|
552
|
-
_query_params: List[Tuple[str, str]] = []
|
553
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
554
|
-
_form_params: List[Tuple[str, str]] = []
|
555
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
556
|
-
_body_params: Optional[bytes] = None
|
557
|
-
|
558
|
-
# process the path parameters
|
559
|
-
if instanceid is not None:
|
560
|
-
_path_params['instanceid'] = instanceid
|
561
|
-
if v is not None:
|
562
|
-
_path_params['v'] = v
|
563
|
-
# process the query parameters
|
564
|
-
# process the header parameters
|
565
|
-
# process the form parameters
|
566
|
-
# process the body parameter
|
567
|
-
|
568
|
-
|
569
|
-
# set the HTTP header `Accept`
|
570
|
-
if 'Accept' not in _header_params:
|
571
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
572
|
-
[
|
573
|
-
'application/json'
|
574
|
-
]
|
575
|
-
)
|
576
|
-
|
577
|
-
|
578
|
-
# authentication setting
|
579
|
-
_auth_settings: List[str] = [
|
580
|
-
'bearerAuth'
|
581
|
-
]
|
582
|
-
|
583
|
-
return self.api_client.param_serialize(
|
584
|
-
method='DELETE',
|
585
|
-
resource_path='/instances/{v}/{instanceid}',
|
586
|
-
path_params=_path_params,
|
587
|
-
query_params=_query_params,
|
588
|
-
header_params=_header_params,
|
589
|
-
body=_body_params,
|
590
|
-
post_params=_form_params,
|
591
|
-
files=_files,
|
592
|
-
auth_settings=_auth_settings,
|
593
|
-
collection_formats=_collection_formats,
|
594
|
-
_host=_host,
|
595
|
-
_request_auth=_request_auth
|
596
|
-
)
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
@validate_call
|
602
|
-
def list_wds_instances(
|
603
|
-
self,
|
604
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
605
|
-
_request_timeout: Union[
|
606
|
-
None,
|
607
|
-
Annotated[StrictFloat, Field(gt=0)],
|
608
|
-
Tuple[
|
609
|
-
Annotated[StrictFloat, Field(gt=0)],
|
610
|
-
Annotated[StrictFloat, Field(gt=0)]
|
611
|
-
]
|
612
|
-
] = None,
|
613
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
614
|
-
_content_type: Optional[StrictStr] = None,
|
615
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
616
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
617
|
-
) -> List[str]:
|
618
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
619
|
-
|
620
|
-
Use GET /collections/v1/{workspaceId} instead.
|
621
|
-
|
622
|
-
:param v: API version (required)
|
623
|
-
:type v: str
|
624
|
-
:param _request_timeout: timeout setting for this request. If one
|
625
|
-
number provided, it will be total request
|
626
|
-
timeout. It can also be a pair (tuple) of
|
627
|
-
(connection, read) timeouts.
|
628
|
-
:type _request_timeout: int, tuple(int, int), optional
|
629
|
-
:param _request_auth: set to override the auth_settings for an a single
|
630
|
-
request; this effectively ignores the
|
631
|
-
authentication in the spec for a single request.
|
632
|
-
:type _request_auth: dict, optional
|
633
|
-
:param _content_type: force content-type for the request.
|
634
|
-
:type _content_type: str, Optional
|
635
|
-
:param _headers: set to override the headers for a single
|
636
|
-
request; this effectively ignores the headers
|
637
|
-
in the spec for a single request.
|
638
|
-
:type _headers: dict, optional
|
639
|
-
:param _host_index: set to override the host_index for a single
|
640
|
-
request; this effectively ignores the host_index
|
641
|
-
in the spec for a single request.
|
642
|
-
:type _host_index: int, optional
|
643
|
-
:return: Returns the result object.
|
644
|
-
""" # noqa: E501
|
645
|
-
warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
|
646
|
-
|
647
|
-
_param = self._list_wds_instances_serialize(
|
648
|
-
v=v,
|
649
|
-
_request_auth=_request_auth,
|
650
|
-
_content_type=_content_type,
|
651
|
-
_headers=_headers,
|
652
|
-
_host_index=_host_index
|
653
|
-
)
|
654
|
-
|
655
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
656
|
-
'200': "List[str]",
|
657
|
-
}
|
658
|
-
response_data = self.api_client.call_api(
|
659
|
-
*_param,
|
660
|
-
_request_timeout=_request_timeout
|
661
|
-
)
|
662
|
-
response_data.read()
|
663
|
-
return self.api_client.response_deserialize(
|
664
|
-
response_data=response_data,
|
665
|
-
response_types_map=_response_types_map,
|
666
|
-
).data
|
667
|
-
|
668
|
-
|
669
|
-
@validate_call
|
670
|
-
def list_wds_instances_with_http_info(
|
671
|
-
self,
|
672
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
673
|
-
_request_timeout: Union[
|
674
|
-
None,
|
675
|
-
Annotated[StrictFloat, Field(gt=0)],
|
676
|
-
Tuple[
|
677
|
-
Annotated[StrictFloat, Field(gt=0)],
|
678
|
-
Annotated[StrictFloat, Field(gt=0)]
|
679
|
-
]
|
680
|
-
] = None,
|
681
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
682
|
-
_content_type: Optional[StrictStr] = None,
|
683
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
684
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
685
|
-
) -> ApiResponse[List[str]]:
|
686
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
687
|
-
|
688
|
-
Use GET /collections/v1/{workspaceId} instead.
|
689
|
-
|
690
|
-
:param v: API version (required)
|
691
|
-
:type v: str
|
692
|
-
:param _request_timeout: timeout setting for this request. If one
|
693
|
-
number provided, it will be total request
|
694
|
-
timeout. It can also be a pair (tuple) of
|
695
|
-
(connection, read) timeouts.
|
696
|
-
:type _request_timeout: int, tuple(int, int), optional
|
697
|
-
:param _request_auth: set to override the auth_settings for an a single
|
698
|
-
request; this effectively ignores the
|
699
|
-
authentication in the spec for a single request.
|
700
|
-
:type _request_auth: dict, optional
|
701
|
-
:param _content_type: force content-type for the request.
|
702
|
-
:type _content_type: str, Optional
|
703
|
-
:param _headers: set to override the headers for a single
|
704
|
-
request; this effectively ignores the headers
|
705
|
-
in the spec for a single request.
|
706
|
-
:type _headers: dict, optional
|
707
|
-
:param _host_index: set to override the host_index for a single
|
708
|
-
request; this effectively ignores the host_index
|
709
|
-
in the spec for a single request.
|
710
|
-
:type _host_index: int, optional
|
711
|
-
:return: Returns the result object.
|
712
|
-
""" # noqa: E501
|
713
|
-
warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
|
714
|
-
|
715
|
-
_param = self._list_wds_instances_serialize(
|
716
|
-
v=v,
|
717
|
-
_request_auth=_request_auth,
|
718
|
-
_content_type=_content_type,
|
719
|
-
_headers=_headers,
|
720
|
-
_host_index=_host_index
|
721
|
-
)
|
722
|
-
|
723
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
724
|
-
'200': "List[str]",
|
725
|
-
}
|
726
|
-
response_data = self.api_client.call_api(
|
727
|
-
*_param,
|
728
|
-
_request_timeout=_request_timeout
|
729
|
-
)
|
730
|
-
response_data.read()
|
731
|
-
return self.api_client.response_deserialize(
|
732
|
-
response_data=response_data,
|
733
|
-
response_types_map=_response_types_map,
|
734
|
-
)
|
735
|
-
|
736
|
-
|
737
|
-
@validate_call
|
738
|
-
def list_wds_instances_without_preload_content(
|
739
|
-
self,
|
740
|
-
v: Annotated[StrictStr, Field(description="API version")],
|
741
|
-
_request_timeout: Union[
|
742
|
-
None,
|
743
|
-
Annotated[StrictFloat, Field(gt=0)],
|
744
|
-
Tuple[
|
745
|
-
Annotated[StrictFloat, Field(gt=0)],
|
746
|
-
Annotated[StrictFloat, Field(gt=0)]
|
747
|
-
]
|
748
|
-
] = None,
|
749
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
750
|
-
_content_type: Optional[StrictStr] = None,
|
751
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
752
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
753
|
-
) -> RESTResponseType:
|
754
|
-
"""(Deprecated) This API will be deleted on or after August 25, 2024.
|
755
|
-
|
756
|
-
Use GET /collections/v1/{workspaceId} instead.
|
757
|
-
|
758
|
-
:param v: API version (required)
|
759
|
-
:type v: str
|
760
|
-
:param _request_timeout: timeout setting for this request. If one
|
761
|
-
number provided, it will be total request
|
762
|
-
timeout. It can also be a pair (tuple) of
|
763
|
-
(connection, read) timeouts.
|
764
|
-
:type _request_timeout: int, tuple(int, int), optional
|
765
|
-
:param _request_auth: set to override the auth_settings for an a single
|
766
|
-
request; this effectively ignores the
|
767
|
-
authentication in the spec for a single request.
|
768
|
-
:type _request_auth: dict, optional
|
769
|
-
:param _content_type: force content-type for the request.
|
770
|
-
:type _content_type: str, Optional
|
771
|
-
:param _headers: set to override the headers for a single
|
772
|
-
request; this effectively ignores the headers
|
773
|
-
in the spec for a single request.
|
774
|
-
:type _headers: dict, optional
|
775
|
-
:param _host_index: set to override the host_index for a single
|
776
|
-
request; this effectively ignores the host_index
|
777
|
-
in the spec for a single request.
|
778
|
-
:type _host_index: int, optional
|
779
|
-
:return: Returns the result object.
|
780
|
-
""" # noqa: E501
|
781
|
-
warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
|
782
|
-
|
783
|
-
_param = self._list_wds_instances_serialize(
|
784
|
-
v=v,
|
785
|
-
_request_auth=_request_auth,
|
786
|
-
_content_type=_content_type,
|
787
|
-
_headers=_headers,
|
788
|
-
_host_index=_host_index
|
789
|
-
)
|
790
|
-
|
791
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
792
|
-
'200': "List[str]",
|
793
|
-
}
|
794
|
-
response_data = self.api_client.call_api(
|
795
|
-
*_param,
|
796
|
-
_request_timeout=_request_timeout
|
797
|
-
)
|
798
|
-
return response_data.response
|
799
|
-
|
800
|
-
|
801
|
-
def _list_wds_instances_serialize(
|
802
|
-
self,
|
803
|
-
v,
|
804
|
-
_request_auth,
|
805
|
-
_content_type,
|
806
|
-
_headers,
|
807
|
-
_host_index,
|
808
|
-
) -> RequestSerialized:
|
809
|
-
|
810
|
-
_host = None
|
811
|
-
|
812
|
-
_collection_formats: Dict[str, str] = {
|
813
|
-
}
|
814
|
-
|
815
|
-
_path_params: Dict[str, str] = {}
|
816
|
-
_query_params: List[Tuple[str, str]] = []
|
817
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
818
|
-
_form_params: List[Tuple[str, str]] = []
|
819
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
820
|
-
_body_params: Optional[bytes] = None
|
821
|
-
|
822
|
-
# process the path parameters
|
823
|
-
if v is not None:
|
824
|
-
_path_params['v'] = v
|
825
|
-
# process the query parameters
|
826
|
-
# process the header parameters
|
827
|
-
# process the form parameters
|
828
|
-
# process the body parameter
|
829
|
-
|
830
|
-
|
831
|
-
# set the HTTP header `Accept`
|
832
|
-
if 'Accept' not in _header_params:
|
833
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
834
|
-
[
|
835
|
-
'application/json'
|
836
|
-
]
|
837
|
-
)
|
838
|
-
|
839
|
-
|
840
|
-
# authentication setting
|
841
|
-
_auth_settings: List[str] = [
|
842
|
-
'bearerAuth'
|
843
|
-
]
|
844
|
-
|
845
|
-
return self.api_client.param_serialize(
|
846
|
-
method='GET',
|
847
|
-
resource_path='/instances/{v}',
|
848
|
-
path_params=_path_params,
|
849
|
-
query_params=_query_params,
|
850
|
-
header_params=_header_params,
|
851
|
-
body=_body_params,
|
852
|
-
post_params=_form_params,
|
853
|
-
files=_files,
|
854
|
-
auth_settings=_auth_settings,
|
855
|
-
collection_formats=_collection_formats,
|
856
|
-
_host=_host,
|
857
|
-
_request_auth=_request_auth
|
858
|
-
)
|
859
|
-
|
860
|
-
|
File without changes
|