rapidata 1.6.4__py3-none-any.whl → 1.7.1__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.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/api_client/__init__.py +6 -1
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/client_api.py +836 -0
- rapidata/api_client/api/identity_api.py +305 -49
- rapidata/api_client/api/order_api.py +7 -7
- rapidata/api_client/models/__init__.py +5 -1
- rapidata/api_client/models/clients_query_result.py +107 -0
- rapidata/api_client/models/clients_query_result_paged_result.py +105 -0
- rapidata/api_client/models/create_bridge_token_result.py +89 -0
- rapidata/api_client/models/create_client_model.py +1 -1
- rapidata/api_client/models/problem_details.py +133 -0
- rapidata/api_client/models/query_model.py +8 -8
- rapidata/api_client/models/read_bridge_token_keys_result.py +99 -0
- rapidata/api_client_README.md +10 -2
- rapidata/rapidata_client/assets/media_asset.py +54 -2
- rapidata/rapidata_client/dataset/rapidata_dataset.py +13 -7
- rapidata/rapidata_client/order/rapidata_order.py +14 -9
- rapidata/rapidata_client/order/rapidata_order_builder.py +5 -1
- rapidata/rapidata_client/referee/early_stopping_referee.py +4 -3
- rapidata/rapidata_client/simple_builders/simple_classification_builders.py +17 -10
- rapidata/rapidata_client/simple_builders/simple_compare_builders.py +31 -10
- rapidata/service/credential_manager.py +1 -1
- {rapidata-1.6.4.dist-info → rapidata-1.7.1.dist-info}/METADATA +1 -1
- {rapidata-1.6.4.dist-info → rapidata-1.7.1.dist-info}/RECORD +26 -20
- {rapidata-1.6.4.dist-info → rapidata-1.7.1.dist-info}/LICENSE +0 -0
- {rapidata-1.6.4.dist-info → rapidata-1.7.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ClientsQueryResult(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ClientsQueryResult
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
client_id: Optional[StrictStr] = Field(alias="clientId")
|
|
31
|
+
display_name: Optional[StrictStr] = Field(alias="displayName")
|
|
32
|
+
created_at: Optional[datetime] = Field(alias="createdAt")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["clientId", "displayName", "createdAt"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of ClientsQueryResult from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# set to None if client_id (nullable) is None
|
|
75
|
+
# and model_fields_set contains the field
|
|
76
|
+
if self.client_id is None and "client_id" in self.model_fields_set:
|
|
77
|
+
_dict['clientId'] = None
|
|
78
|
+
|
|
79
|
+
# set to None if display_name (nullable) is None
|
|
80
|
+
# and model_fields_set contains the field
|
|
81
|
+
if self.display_name is None and "display_name" in self.model_fields_set:
|
|
82
|
+
_dict['displayName'] = None
|
|
83
|
+
|
|
84
|
+
# set to None if created_at (nullable) is None
|
|
85
|
+
# and model_fields_set contains the field
|
|
86
|
+
if self.created_at is None and "created_at" in self.model_fields_set:
|
|
87
|
+
_dict['createdAt'] = None
|
|
88
|
+
|
|
89
|
+
return _dict
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
93
|
+
"""Create an instance of ClientsQueryResult from a dict"""
|
|
94
|
+
if obj is None:
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
if not isinstance(obj, dict):
|
|
98
|
+
return cls.model_validate(obj)
|
|
99
|
+
|
|
100
|
+
_obj = cls.model_validate({
|
|
101
|
+
"clientId": obj.get("clientId"),
|
|
102
|
+
"displayName": obj.get("displayName"),
|
|
103
|
+
"createdAt": obj.get("createdAt")
|
|
104
|
+
})
|
|
105
|
+
return _obj
|
|
106
|
+
|
|
107
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from rapidata.api_client.models.clients_query_result import ClientsQueryResult
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ClientsQueryResultPagedResult(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ClientsQueryResultPagedResult
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
total: StrictInt
|
|
31
|
+
page: StrictInt
|
|
32
|
+
page_size: StrictInt = Field(alias="pageSize")
|
|
33
|
+
items: List[ClientsQueryResult]
|
|
34
|
+
total_pages: Optional[StrictInt] = Field(default=None, alias="totalPages")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["total", "page", "pageSize", "items", "totalPages"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of ClientsQueryResultPagedResult from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
"total_pages",
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
|
79
|
+
_items = []
|
|
80
|
+
if self.items:
|
|
81
|
+
for _item_items in self.items:
|
|
82
|
+
if _item_items:
|
|
83
|
+
_items.append(_item_items.to_dict())
|
|
84
|
+
_dict['items'] = _items
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of ClientsQueryResultPagedResult from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"total": obj.get("total"),
|
|
98
|
+
"page": obj.get("page"),
|
|
99
|
+
"pageSize": obj.get("pageSize"),
|
|
100
|
+
"items": [ClientsQueryResult.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
|
101
|
+
"totalPages": obj.get("totalPages")
|
|
102
|
+
})
|
|
103
|
+
return _obj
|
|
104
|
+
|
|
105
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CreateBridgeTokenResult(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CreateBridgeTokenResult
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
read_key: StrictStr = Field(alias="readKey")
|
|
30
|
+
write_key: StrictStr = Field(alias="writeKey")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["readKey", "writeKey"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of CreateBridgeTokenResult from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of CreateBridgeTokenResult from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"readKey": obj.get("readKey"),
|
|
85
|
+
"writeKey": obj.get("writeKey")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -27,7 +27,7 @@ class CreateClientModel(BaseModel):
|
|
|
27
27
|
The model for creating a new client.
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
display_name: Optional[StrictStr] = Field(default=None, description="An optional display name for the client.", alias="displayName")
|
|
30
|
-
customer_id: Optional[StrictStr] = Field(default=None, alias="customerId")
|
|
30
|
+
customer_id: Optional[StrictStr] = Field(default=None, description="An optional customer ID to create the client for.", alias="customerId")
|
|
31
31
|
__properties: ClassVar[List[str]] = ["displayName", "customerId"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ProblemDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ProblemDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
type: Optional[StrictStr] = None
|
|
30
|
+
title: Optional[StrictStr] = None
|
|
31
|
+
status: Optional[StrictInt] = None
|
|
32
|
+
detail: Optional[StrictStr] = None
|
|
33
|
+
instance: Optional[StrictStr] = None
|
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
|
35
|
+
__properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
populate_by_name=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of ProblemDetails from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
"additional_properties",
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# puts key-value pairs in additional_properties in the top level
|
|
79
|
+
if self.additional_properties is not None:
|
|
80
|
+
for _key, _value in self.additional_properties.items():
|
|
81
|
+
_dict[_key] = _value
|
|
82
|
+
|
|
83
|
+
# set to None if type (nullable) is None
|
|
84
|
+
# and model_fields_set contains the field
|
|
85
|
+
if self.type is None and "type" in self.model_fields_set:
|
|
86
|
+
_dict['type'] = None
|
|
87
|
+
|
|
88
|
+
# set to None if title (nullable) is None
|
|
89
|
+
# and model_fields_set contains the field
|
|
90
|
+
if self.title is None and "title" in self.model_fields_set:
|
|
91
|
+
_dict['title'] = None
|
|
92
|
+
|
|
93
|
+
# set to None if status (nullable) is None
|
|
94
|
+
# and model_fields_set contains the field
|
|
95
|
+
if self.status is None and "status" in self.model_fields_set:
|
|
96
|
+
_dict['status'] = None
|
|
97
|
+
|
|
98
|
+
# set to None if detail (nullable) is None
|
|
99
|
+
# and model_fields_set contains the field
|
|
100
|
+
if self.detail is None and "detail" in self.model_fields_set:
|
|
101
|
+
_dict['detail'] = None
|
|
102
|
+
|
|
103
|
+
# set to None if instance (nullable) is None
|
|
104
|
+
# and model_fields_set contains the field
|
|
105
|
+
if self.instance is None and "instance" in self.model_fields_set:
|
|
106
|
+
_dict['instance'] = None
|
|
107
|
+
|
|
108
|
+
return _dict
|
|
109
|
+
|
|
110
|
+
@classmethod
|
|
111
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
112
|
+
"""Create an instance of ProblemDetails from a dict"""
|
|
113
|
+
if obj is None:
|
|
114
|
+
return None
|
|
115
|
+
|
|
116
|
+
if not isinstance(obj, dict):
|
|
117
|
+
return cls.model_validate(obj)
|
|
118
|
+
|
|
119
|
+
_obj = cls.model_validate({
|
|
120
|
+
"type": obj.get("type"),
|
|
121
|
+
"title": obj.get("title"),
|
|
122
|
+
"status": obj.get("status"),
|
|
123
|
+
"detail": obj.get("detail"),
|
|
124
|
+
"instance": obj.get("instance")
|
|
125
|
+
})
|
|
126
|
+
# store additional fields in additional_properties
|
|
127
|
+
for _key in obj.keys():
|
|
128
|
+
if _key not in cls.__properties:
|
|
129
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
130
|
+
|
|
131
|
+
return _obj
|
|
132
|
+
|
|
133
|
+
|
|
@@ -27,12 +27,12 @@ from typing_extensions import Self
|
|
|
27
27
|
|
|
28
28
|
class QueryModel(BaseModel):
|
|
29
29
|
"""
|
|
30
|
-
|
|
30
|
+
QueryModel
|
|
31
31
|
""" # noqa: E501
|
|
32
|
-
|
|
32
|
+
page: Optional[PageInfo] = None
|
|
33
33
|
filter: Optional[RootFilter] = None
|
|
34
|
-
sort_criteria: Optional[List[SortCriterion]] = Field(default=None,
|
|
35
|
-
__properties: ClassVar[List[str]] = ["
|
|
34
|
+
sort_criteria: Optional[List[SortCriterion]] = Field(default=None, alias="sortCriteria")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["page", "filter", "sortCriteria"]
|
|
36
36
|
|
|
37
37
|
model_config = ConfigDict(
|
|
38
38
|
populate_by_name=True,
|
|
@@ -73,9 +73,9 @@ class QueryModel(BaseModel):
|
|
|
73
73
|
exclude=excluded_fields,
|
|
74
74
|
exclude_none=True,
|
|
75
75
|
)
|
|
76
|
-
# override the default output from pydantic by calling `to_dict()` of
|
|
77
|
-
if self.
|
|
78
|
-
_dict['
|
|
76
|
+
# override the default output from pydantic by calling `to_dict()` of page
|
|
77
|
+
if self.page:
|
|
78
|
+
_dict['page'] = self.page.to_dict()
|
|
79
79
|
# override the default output from pydantic by calling `to_dict()` of filter
|
|
80
80
|
if self.filter:
|
|
81
81
|
_dict['filter'] = self.filter.to_dict()
|
|
@@ -103,7 +103,7 @@ class QueryModel(BaseModel):
|
|
|
103
103
|
return cls.model_validate(obj)
|
|
104
104
|
|
|
105
105
|
_obj = cls.model_validate({
|
|
106
|
-
"
|
|
106
|
+
"page": PageInfo.from_dict(obj["page"]) if obj.get("page") is not None else None,
|
|
107
107
|
"filter": RootFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None,
|
|
108
108
|
"sortCriteria": [SortCriterion.from_dict(_item) for _item in obj["sortCriteria"]] if obj.get("sortCriteria") is not None else None
|
|
109
109
|
})
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ReadBridgeTokenKeysResult(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ReadBridgeTokenKeysResult
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
access_token: Optional[StrictStr] = Field(alias="accessToken")
|
|
30
|
+
refresh_token: Optional[StrictStr] = Field(alias="refreshToken")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["accessToken", "refreshToken"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ReadBridgeTokenKeysResult from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# set to None if access_token (nullable) is None
|
|
73
|
+
# and model_fields_set contains the field
|
|
74
|
+
if self.access_token is None and "access_token" in self.model_fields_set:
|
|
75
|
+
_dict['accessToken'] = None
|
|
76
|
+
|
|
77
|
+
# set to None if refresh_token (nullable) is None
|
|
78
|
+
# and model_fields_set contains the field
|
|
79
|
+
if self.refresh_token is None and "refresh_token" in self.model_fields_set:
|
|
80
|
+
_dict['refreshToken'] = None
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of ReadBridgeTokenKeysResult from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"accessToken": obj.get("accessToken"),
|
|
95
|
+
"refreshToken": obj.get("refreshToken")
|
|
96
|
+
})
|
|
97
|
+
return _obj
|
|
98
|
+
|
|
99
|
+
|
rapidata/api_client_README.md
CHANGED
|
@@ -75,6 +75,9 @@ Class | Method | HTTP request | Description
|
|
|
75
75
|
*CampaignApi* | [**campaign_pause_post**](rapidata/api_client/docs/CampaignApi.md#campaign_pause_post) | **POST** /Campaign/Pause | Pauses a campaign.
|
|
76
76
|
*CampaignApi* | [**campaign_query_get**](rapidata/api_client/docs/CampaignApi.md#campaign_query_get) | **GET** /Campaign/Query | Queries orders based on a filter, page, and sort criteria.
|
|
77
77
|
*CampaignApi* | [**campaign_resume_post**](rapidata/api_client/docs/CampaignApi.md#campaign_resume_post) | **POST** /Campaign/Resume | Resumes a campaign.
|
|
78
|
+
*ClientApi* | [**client_client_id_delete**](rapidata/api_client/docs/ClientApi.md#client_client_id_delete) | **DELETE** /Client/{clientId} | Deletes a customers client.
|
|
79
|
+
*ClientApi* | [**client_post**](rapidata/api_client/docs/ClientApi.md#client_post) | **POST** /Client | Creates a new client for the current customer.
|
|
80
|
+
*ClientApi* | [**client_query_get**](rapidata/api_client/docs/ClientApi.md#client_query_get) | **GET** /Client/Query | Gets the clients for the current customer.
|
|
78
81
|
*CocoApi* | [**coco_submit_post**](rapidata/api_client/docs/CocoApi.md#coco_submit_post) | **POST** /Coco/Submit | Creates a new validation set based on a previously uploaded CoCo set.
|
|
79
82
|
*CocoApi* | [**coco_upload_post**](rapidata/api_client/docs/CocoApi.md#coco_upload_post) | **POST** /Coco/Upload | Uploads a CoCo set to the system.
|
|
80
83
|
*CompareWorkflowApi* | [**compare_workflow_get_result_overview_get**](rapidata/api_client/docs/CompareWorkflowApi.md#compare_workflow_get_result_overview_get) | **GET** /CompareWorkflow/GetResultOverview | Get the result overview for a compare workflow.
|
|
@@ -89,7 +92,8 @@ Class | Method | HTTP request | Description
|
|
|
89
92
|
*DatasetApi* | [**dataset_upload_datapoint_post**](rapidata/api_client/docs/DatasetApi.md#dataset_upload_datapoint_post) | **POST** /Dataset/UploadDatapoint | Creates a new multi asset datapoint.
|
|
90
93
|
*DatasetApi* | [**dataset_upload_files_from_s3_post**](rapidata/api_client/docs/DatasetApi.md#dataset_upload_files_from_s3_post) | **POST** /Dataset/UploadFilesFromS3 | Uploads files from an S3 bucket to a dataset.
|
|
91
94
|
*DatasetApi* | [**dataset_upload_images_to_dataset_post**](rapidata/api_client/docs/DatasetApi.md#dataset_upload_images_to_dataset_post) | **POST** /Dataset/UploadImagesToDataset | Uploads images to a dataset.
|
|
92
|
-
*IdentityApi* | [**
|
|
95
|
+
*IdentityApi* | [**identity_create_bridge_token_post**](rapidata/api_client/docs/IdentityApi.md#identity_create_bridge_token_post) | **POST** /Identity/CreateBridgeToken | Creates a pair of read and write keys for a client. The write key is used to store the authentication result. The read key is used to retrieve the authentication result.
|
|
96
|
+
*IdentityApi* | [**identity_read_bridge_token_get**](rapidata/api_client/docs/IdentityApi.md#identity_read_bridge_token_get) | **GET** /Identity/ReadBridgeToken | Tries to read the bridge token keys for a given read key. The read key is used to retrieve the authentication result written by the write key.
|
|
93
97
|
*IdentityApi* | [**identity_register_temporary_post**](rapidata/api_client/docs/IdentityApi.md#identity_register_temporary_post) | **POST** /Identity/RegisterTemporary | Registers and logs in a temporary customer.
|
|
94
98
|
*NewsletterApi* | [**newsletter_post**](rapidata/api_client/docs/NewsletterApi.md#newsletter_post) | **POST** /Newsletter | Signs a user up to the newsletter.
|
|
95
99
|
*NewsletterApi* | [**newsletter_unsubscribe_post**](rapidata/api_client/docs/NewsletterApi.md#newsletter_unsubscribe_post) | **POST** /Newsletter/Unsubscribe | Unsubscribes a user from the newsletter.
|
|
@@ -171,6 +175,8 @@ Class | Method | HTTP request | Description
|
|
|
171
175
|
- [ClassificationMetadataFilterConfig](rapidata/api_client/docs/ClassificationMetadataFilterConfig.md)
|
|
172
176
|
- [ClassificationMetadataModel](rapidata/api_client/docs/ClassificationMetadataModel.md)
|
|
173
177
|
- [ClassifyPayload](rapidata/api_client/docs/ClassifyPayload.md)
|
|
178
|
+
- [ClientsQueryResult](rapidata/api_client/docs/ClientsQueryResult.md)
|
|
179
|
+
- [ClientsQueryResultPagedResult](rapidata/api_client/docs/ClientsQueryResultPagedResult.md)
|
|
174
180
|
- [CloneDatasetModel](rapidata/api_client/docs/CloneDatasetModel.md)
|
|
175
181
|
- [CloneOrderModel](rapidata/api_client/docs/CloneOrderModel.md)
|
|
176
182
|
- [CloneOrderResult](rapidata/api_client/docs/CloneOrderResult.md)
|
|
@@ -192,6 +198,7 @@ Class | Method | HTTP request | Description
|
|
|
192
198
|
- [CountMetadata](rapidata/api_client/docs/CountMetadata.md)
|
|
193
199
|
- [CountMetadataModel](rapidata/api_client/docs/CountMetadataModel.md)
|
|
194
200
|
- [CountryUserFilterModel](rapidata/api_client/docs/CountryUserFilterModel.md)
|
|
201
|
+
- [CreateBridgeTokenResult](rapidata/api_client/docs/CreateBridgeTokenResult.md)
|
|
195
202
|
- [CreateClientModel](rapidata/api_client/docs/CreateClientModel.md)
|
|
196
203
|
- [CreateClientResult](rapidata/api_client/docs/CreateClientResult.md)
|
|
197
204
|
- [CreateComplexOrderModel](rapidata/api_client/docs/CreateComplexOrderModel.md)
|
|
@@ -316,6 +323,7 @@ Class | Method | HTTP request | Description
|
|
|
316
323
|
- [PolygonTruth](rapidata/api_client/docs/PolygonTruth.md)
|
|
317
324
|
- [PrivateTextMetadataInput](rapidata/api_client/docs/PrivateTextMetadataInput.md)
|
|
318
325
|
- [ProbabilisticAttachCategoryRefereeConfig](rapidata/api_client/docs/ProbabilisticAttachCategoryRefereeConfig.md)
|
|
326
|
+
- [ProblemDetails](rapidata/api_client/docs/ProblemDetails.md)
|
|
319
327
|
- [PromptMetadata](rapidata/api_client/docs/PromptMetadata.md)
|
|
320
328
|
- [PromptMetadataInput](rapidata/api_client/docs/PromptMetadataInput.md)
|
|
321
329
|
- [PromptMetadataModel](rapidata/api_client/docs/PromptMetadataModel.md)
|
|
@@ -323,7 +331,6 @@ Class | Method | HTTP request | Description
|
|
|
323
331
|
- [PublicTextMetadataInput](rapidata/api_client/docs/PublicTextMetadataInput.md)
|
|
324
332
|
- [QueryCampaignsModel](rapidata/api_client/docs/QueryCampaignsModel.md)
|
|
325
333
|
- [QueryModel](rapidata/api_client/docs/QueryModel.md)
|
|
326
|
-
- [QueryOrdersModel](rapidata/api_client/docs/QueryOrdersModel.md)
|
|
327
334
|
- [QueryValidationRapidsResult](rapidata/api_client/docs/QueryValidationRapidsResult.md)
|
|
328
335
|
- [QueryValidationRapidsResultAsset](rapidata/api_client/docs/QueryValidationRapidsResultAsset.md)
|
|
329
336
|
- [QueryValidationRapidsResultPagedResult](rapidata/api_client/docs/QueryValidationRapidsResultPagedResult.md)
|
|
@@ -335,6 +342,7 @@ Class | Method | HTTP request | Description
|
|
|
335
342
|
- [RapidResultModel](rapidata/api_client/docs/RapidResultModel.md)
|
|
336
343
|
- [RapidResultModelResult](rapidata/api_client/docs/RapidResultModelResult.md)
|
|
337
344
|
- [RapidSkippedModel](rapidata/api_client/docs/RapidSkippedModel.md)
|
|
345
|
+
- [ReadBridgeTokenKeysResult](rapidata/api_client/docs/ReadBridgeTokenKeysResult.md)
|
|
338
346
|
- [RegisterTemporaryCustomerModel](rapidata/api_client/docs/RegisterTemporaryCustomerModel.md)
|
|
339
347
|
- [RootFilter](rapidata/api_client/docs/RootFilter.md)
|
|
340
348
|
- [SendCompletionMailStepModel](rapidata/api_client/docs/SendCompletionMailStepModel.md)
|