octostar-python-client 0.1.759__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.
- octostar/__init__.py +9 -0
- octostar/api/__init__.py +1 -0
- octostar/api/apps/__init__.py +0 -0
- octostar/api/apps/deploy_app.py +210 -0
- octostar/api/apps/execute_app_job.py +188 -0
- octostar/api/apps/get_app_logs.py +210 -0
- octostar/api/apps/get_apps_url.py +188 -0
- octostar/api/apps/get_job_logs.py +210 -0
- octostar/api/apps/get_job_progress.py +162 -0
- octostar/api/apps/kill_job.py +160 -0
- octostar/api/apps/list_app_jobs.py +276 -0
- octostar/api/apps/list_apps.py +251 -0
- octostar/api/apps/set_job_progress.py +216 -0
- octostar/api/apps/undeploy_app.py +160 -0
- octostar/api/metadata/__init__.py +0 -0
- octostar/api/metadata/get_version.py +232 -0
- octostar/api/metadata/get_whoami.py +232 -0
- octostar/api/notifications/__init__.py +0 -0
- octostar/api/notifications/delete_stream.py +222 -0
- octostar/api/notifications/get_subscriptions.py +240 -0
- octostar/api/notifications/publish_notification.py +275 -0
- octostar/api/notifications/pull_events_from_stream.py +282 -0
- octostar/api/notifications/push_event_to_stream.py +265 -0
- octostar/api/notifications/toast.py +264 -0
- octostar/api/ontology/__init__.py +0 -0
- octostar/api/ontology/fetch_ontology_data.py +275 -0
- octostar/api/ontology/get_ontologies.py +237 -0
- octostar/api/ontology/multi_query.py +297 -0
- octostar/api/ontology/query.py +276 -0
- octostar/api/pipeline/__init__.py +1 -0
- octostar/api/pipeline/get_processing_status.py +185 -0
- octostar/api/pipeline/update_processing_status.py +164 -0
- octostar/api/search/__init__.py +0 -0
- octostar/api/search/get_annotations.py +153 -0
- octostar/api/workspace_data/__init__.py +0 -0
- octostar/api/workspace_data/delete_blob.py +212 -0
- octostar/api/workspace_data/delete_entities.py +326 -0
- octostar/api/workspace_data/download_blob.py +235 -0
- octostar/api/workspace_data/get_attachment.py +336 -0
- octostar/api/workspace_data/get_files_tree.py +397 -0
- octostar/api/workspace_data/upload_blob.py +235 -0
- octostar/api/workspace_data/upsert_entities.py +284 -0
- octostar/api/workspace_permissions/__init__.py +0 -0
- octostar/api/workspace_permissions/get_permissions.py +325 -0
- octostar/api/workspace_tags/__init__.py +0 -0
- octostar/api/workspace_tags/delete_tag_from_entities.py +141 -0
- octostar/api/workspace_tags/tag_entities.py +180 -0
- octostar/client.py +492 -0
- octostar/errors.py +50 -0
- octostar/models/__init__.py +249 -0
- octostar/models/acknowledgement.py +74 -0
- octostar/models/acknowledgement_with_data.py +82 -0
- octostar/models/app_status.py +239 -0
- octostar/models/app_status_annotations.py +66 -0
- octostar/models/app_status_labels.py +69 -0
- octostar/models/app_with_url.py +82 -0
- octostar/models/child_processing_status.py +118 -0
- octostar/models/delete_entities_response_401.py +74 -0
- octostar/models/delete_entities_response_409.py +82 -0
- octostar/models/delete_entities_response_500.py +82 -0
- octostar/models/delete_stream_response_401.py +74 -0
- octostar/models/delete_tag_from_entities_response_401.py +74 -0
- octostar/models/deploy_app_json_body.py +90 -0
- octostar/models/deploy_app_json_body_secrets.py +65 -0
- octostar/models/deploy_app_response_200.py +98 -0
- octostar/models/deploy_app_response_200_data.py +60 -0
- octostar/models/deploy_app_response_400.py +82 -0
- octostar/models/deploy_app_response_403.py +82 -0
- octostar/models/deploy_app_response_404.py +82 -0
- octostar/models/deploy_app_response_409.py +82 -0
- octostar/models/deploy_app_response_500.py +82 -0
- octostar/models/entity.py +80 -0
- octostar/models/entity_response.py +99 -0
- octostar/models/entity_response_s3_urls.py +93 -0
- octostar/models/entity_response_s3_urls_additional_property.py +105 -0
- octostar/models/entity_response_s3_urls_additional_property_fields.py +114 -0
- octostar/models/execute_app_job_json_body.py +151 -0
- octostar/models/execute_app_job_json_body_annotation.py +65 -0
- octostar/models/execute_app_job_response_401.py +74 -0
- octostar/models/fetch_ontology_data_response_200.py +60 -0
- octostar/models/fetch_ontology_data_response_401.py +74 -0
- octostar/models/fetch_ontology_data_response_500.py +82 -0
- octostar/models/get_app_logs_response_401.py +74 -0
- octostar/models/get_app_logs_response_404.py +74 -0
- octostar/models/get_app_logs_response_500.py +82 -0
- octostar/models/get_apps_url_json_body.py +76 -0
- octostar/models/get_apps_url_response_401.py +74 -0
- octostar/models/get_apps_url_response_500.py +82 -0
- octostar/models/get_attachment_response_200.py +74 -0
- octostar/models/get_attachment_response_401.py +74 -0
- octostar/models/get_files_tree_response_200.py +106 -0
- octostar/models/get_files_tree_response_200_status.py +8 -0
- octostar/models/get_files_tree_response_400.py +111 -0
- octostar/models/get_files_tree_response_400_data.py +60 -0
- octostar/models/get_files_tree_response_400_status.py +8 -0
- octostar/models/get_files_tree_response_401.py +74 -0
- octostar/models/get_files_tree_response_500.py +111 -0
- octostar/models/get_files_tree_response_500_data.py +60 -0
- octostar/models/get_files_tree_response_500_status.py +8 -0
- octostar/models/get_job_logs_response_401.py +74 -0
- octostar/models/get_job_logs_response_404.py +74 -0
- octostar/models/get_job_logs_response_500.py +82 -0
- octostar/models/get_job_progress_response_401.py +74 -0
- octostar/models/get_object_response_401.py +74 -0
- octostar/models/get_ontologies_response_401.py +74 -0
- octostar/models/get_ontologies_response_500.py +81 -0
- octostar/models/get_permissions_response_200.py +98 -0
- octostar/models/get_permissions_response_400.py +82 -0
- octostar/models/get_permissions_response_401.py +74 -0
- octostar/models/get_permissions_response_500.py +82 -0
- octostar/models/get_processing_status_response_200.py +104 -0
- octostar/models/get_processing_status_response_200_data.py +87 -0
- octostar/models/get_processing_status_response_400.py +82 -0
- octostar/models/get_processing_status_response_500.py +82 -0
- octostar/models/get_subscriptions_response_200_item.py +74 -0
- octostar/models/get_version_response_200.py +74 -0
- octostar/models/get_version_response_404.py +74 -0
- octostar/models/get_whoami_response_200.py +129 -0
- octostar/models/get_whoami_response_401.py +74 -0
- octostar/models/insert_entity.py +114 -0
- octostar/models/insert_entity_base.py +266 -0
- octostar/models/insert_entity_relationships_item.py +107 -0
- octostar/models/insert_entity_request.py +94 -0
- octostar/models/internal_server_error.py +82 -0
- octostar/models/job_execution_result.py +146 -0
- octostar/models/job_status.py +196 -0
- octostar/models/job_status_labels.py +60 -0
- octostar/models/job_with_url.py +82 -0
- octostar/models/kill_job_response_401.py +74 -0
- octostar/models/list_app_jobs_response_401.py +74 -0
- octostar/models/list_app_jobs_response_500.py +82 -0
- octostar/models/list_apps_response_401.py +74 -0
- octostar/models/list_apps_response_500.py +82 -0
- octostar/models/multi_query_json_body.py +100 -0
- octostar/models/multi_query_json_body_queries_item.py +80 -0
- octostar/models/multi_query_response_400.py +82 -0
- octostar/models/multi_query_response_401.py +74 -0
- octostar/models/not_found_error.py +74 -0
- octostar/models/octostar_event.py +96 -0
- octostar/models/octostar_event_octostar_payload.py +100 -0
- octostar/models/octostar_event_octostar_payload_level.py +11 -0
- octostar/models/os_notification.py +122 -0
- octostar/models/processing_status.py +262 -0
- octostar/models/processing_status_code.py +14 -0
- octostar/models/progress_request.py +73 -0
- octostar/models/publish_notification_response_401.py +74 -0
- octostar/models/pull_events_from_stream_response_401.py +74 -0
- octostar/models/push_event_to_stream_response_401.py +74 -0
- octostar/models/query_json_body.py +101 -0
- octostar/models/query_json_body_params.py +60 -0
- octostar/models/query_response_400.py +82 -0
- octostar/models/query_response_401.py +74 -0
- octostar/models/set_job_progress_response_401.py +74 -0
- octostar/models/string_to_value_label_map.py +99 -0
- octostar/models/string_to_value_label_map_data.py +89 -0
- octostar/models/string_to_value_label_map_data_additional_property.py +80 -0
- octostar/models/successful_get_tags.py +103 -0
- octostar/models/successful_insertion.py +98 -0
- octostar/models/tag_entities_response_401.py +74 -0
- octostar/models/toast_level.py +11 -0
- octostar/models/toast_response_401.py +74 -0
- octostar/models/undeploy_app_response_401.py +74 -0
- octostar/models/update_processing_status_response_200.py +82 -0
- octostar/models/update_processing_status_response_400.py +82 -0
- octostar/models/update_processing_status_response_500.py +82 -0
- octostar/models/upsert_entities_response_401.py +74 -0
- octostar/models/upsert_entity.py +114 -0
- octostar/models/upsert_entity_base.py +266 -0
- octostar/models/upsert_entity_relationships_item.py +107 -0
- octostar/py.typed +1 -0
- octostar/types.py +54 -0
- octostar/utils/__init__.py +15 -0
- octostar/utils/chat/__init__.py +0 -0
- octostar/utils/chat/chat.py +513 -0
- octostar/utils/chat/detokenize.py +105 -0
- octostar/utils/chat/get_default_model.py +50 -0
- octostar/utils/chat/list_models.py +91 -0
- octostar/utils/chat/tokenize.py +105 -0
- octostar/utils/commons.py +226 -0
- octostar/utils/exceptions.py +134 -0
- octostar/utils/jobs/__init__.py +0 -0
- octostar/utils/jobs/apps/__init__.py +0 -0
- octostar/utils/jobs/apps/deploy_app.py +81 -0
- octostar/utils/jobs/apps/execute_app_job.py +114 -0
- octostar/utils/jobs/apps/get_app_logs.py +113 -0
- octostar/utils/jobs/apps/get_app_secret.py +102 -0
- octostar/utils/jobs/apps/get_apps_url.py +73 -0
- octostar/utils/jobs/apps/list_app_jobs.py +62 -0
- octostar/utils/jobs/apps/list_apps.py +126 -0
- octostar/utils/jobs/apps/undeploy_app.py +48 -0
- octostar/utils/jobs/get_job_logs.py +113 -0
- octostar/utils/jobs/get_job_progress.py +76 -0
- octostar/utils/jobs/kill_job.py +47 -0
- octostar/utils/jobs/set_job_progress.py +67 -0
- octostar/utils/meta/__init__.py +0 -0
- octostar/utils/meta/get_version.py +30 -0
- octostar/utils/meta/get_whoami.py +30 -0
- octostar/utils/notifications/__init__.py +0 -0
- octostar/utils/notifications/delete_stream.py +58 -0
- octostar/utils/notifications/get_my_subscriptions.py +49 -0
- octostar/utils/notifications/publish_notification.py +73 -0
- octostar/utils/notifications/pull_event_from_stream.py +63 -0
- octostar/utils/notifications/pull_events_from_stream.py +64 -0
- octostar/utils/notifications/push_event_to_stream.py +109 -0
- octostar/utils/notifications/push_events_to_stream.py +137 -0
- octostar/utils/notifications/toast.py +92 -0
- octostar/utils/ontology/__init__.py +10 -0
- octostar/utils/ontology/fetch_ontology_data.py +141 -0
- octostar/utils/ontology/get_ontologies.py +55 -0
- octostar/utils/ontology/multiquery_ontology.py +287 -0
- octostar/utils/ontology/query_ontology.py +186 -0
- octostar/utils/pipeline/__init__.py +1 -0
- octostar/utils/pipeline/get_processing_status.py +230 -0
- octostar/utils/pipeline/update_processing_status.py +286 -0
- octostar/utils/search/__init__.py +11 -0
- octostar/utils/search/bulk_update.py +138 -0
- octostar/utils/search/count.py +117 -0
- octostar/utils/search/get_entity_annotations.py +304 -0
- octostar/utils/search/get_index_definition.py +111 -0
- octostar/utils/search/multi_search.py +129 -0
- octostar/utils/workspace/__init__.py +0 -0
- octostar/utils/workspace/delete_entities.py +247 -0
- octostar/utils/workspace/delete_entity.py +81 -0
- octostar/utils/workspace/delete_relationship.py +78 -0
- octostar/utils/workspace/delete_relationships.py +85 -0
- octostar/utils/workspace/delete_temporary_blob.py +85 -0
- octostar/utils/workspace/extract_entities.py +140 -0
- octostar/utils/workspace/get_filepath_from_item.py +85 -0
- octostar/utils/workspace/get_filepaths_from_items.py +100 -0
- octostar/utils/workspace/get_files_tree.py +102 -0
- octostar/utils/workspace/get_item_from_filepath.py +102 -0
- octostar/utils/workspace/get_items_from_filepaths.py +108 -0
- octostar/utils/workspace/linkcharts/__init__.py +0 -0
- octostar/utils/workspace/linkcharts/create_linkchart.py +241 -0
- octostar/utils/workspace/permissions/PermissionLevel.py +8 -0
- octostar/utils/workspace/permissions/__init__.py +1 -0
- octostar/utils/workspace/permissions/get_permissions.py +81 -0
- octostar/utils/workspace/read_attachment.py +284 -0
- octostar/utils/workspace/read_file.py +113 -0
- octostar/utils/workspace/read_temporary_blob.py +428 -0
- octostar/utils/workspace/saved_searches/__init__.py +0 -0
- octostar/utils/workspace/saved_searches/create_saved_search.py +183 -0
- octostar/utils/workspace/tags/__init__.py +0 -0
- octostar/utils/workspace/tags/delete_tag_from_entities.py +96 -0
- octostar/utils/workspace/tags/tag_entities.py +175 -0
- octostar/utils/workspace/upsert_entities.py +268 -0
- octostar/utils/workspace/upsert_entity.py +110 -0
- octostar/utils/workspace/upsert_relationship.py +128 -0
- octostar/utils/workspace/upsert_relationships.py +194 -0
- octostar/utils/workspace/write_attachment.py +263 -0
- octostar/utils/workspace/write_file.py +335 -0
- octostar/utils/workspace/write_temporary_blob.py +218 -0
- octostar_python_client-0.1.759.dist-info/METADATA +159 -0
- octostar_python_client-0.1.759.dist-info/RECORD +257 -0
- octostar_python_client-0.1.759.dist-info/WHEEL +5 -0
- octostar_python_client-0.1.759.dist-info/licenses/LICENSE +21 -0
- octostar_python_client-0.1.759.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import Union
|
|
21
|
+
from ..types import UNSET, Unset
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
T = TypeVar("T", bound="DeployAppResponse409")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@attr.s(auto_attribs=True)
|
|
28
|
+
class DeployAppResponse409:
|
|
29
|
+
"""
|
|
30
|
+
### Attributes:
|
|
31
|
+
* `status (Union[Unset, str])`: None
|
|
32
|
+
* `message (Union[Unset, str])`: None
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
status: Union[Unset, str] = UNSET
|
|
36
|
+
message: Union[Unset, str] = UNSET
|
|
37
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
40
|
+
status = self.status
|
|
41
|
+
message = self.message
|
|
42
|
+
|
|
43
|
+
field_dict: Dict[str, Any] = {}
|
|
44
|
+
field_dict.update(self.additional_properties)
|
|
45
|
+
field_dict.update({})
|
|
46
|
+
if status is not UNSET:
|
|
47
|
+
field_dict["status"] = status
|
|
48
|
+
if message is not UNSET:
|
|
49
|
+
field_dict["message"] = message
|
|
50
|
+
|
|
51
|
+
return field_dict
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
55
|
+
d = src_dict.copy()
|
|
56
|
+
status = d.pop("status", UNSET)
|
|
57
|
+
|
|
58
|
+
message = d.pop("message", UNSET)
|
|
59
|
+
|
|
60
|
+
deploy_app_response_409 = cls(
|
|
61
|
+
status=status,
|
|
62
|
+
message=message,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
deploy_app_response_409.additional_properties = d
|
|
66
|
+
return deploy_app_response_409
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> List[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import Union
|
|
21
|
+
from ..types import UNSET, Unset
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
T = TypeVar("T", bound="DeployAppResponse500")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@attr.s(auto_attribs=True)
|
|
28
|
+
class DeployAppResponse500:
|
|
29
|
+
"""
|
|
30
|
+
### Attributes:
|
|
31
|
+
* `status (Union[Unset, str])`: None
|
|
32
|
+
* `message (Union[Unset, str])`: None
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
status: Union[Unset, str] = UNSET
|
|
36
|
+
message: Union[Unset, str] = UNSET
|
|
37
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
40
|
+
status = self.status
|
|
41
|
+
message = self.message
|
|
42
|
+
|
|
43
|
+
field_dict: Dict[str, Any] = {}
|
|
44
|
+
field_dict.update(self.additional_properties)
|
|
45
|
+
field_dict.update({})
|
|
46
|
+
if status is not UNSET:
|
|
47
|
+
field_dict["status"] = status
|
|
48
|
+
if message is not UNSET:
|
|
49
|
+
field_dict["message"] = message
|
|
50
|
+
|
|
51
|
+
return field_dict
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
55
|
+
d = src_dict.copy()
|
|
56
|
+
status = d.pop("status", UNSET)
|
|
57
|
+
|
|
58
|
+
message = d.pop("message", UNSET)
|
|
59
|
+
|
|
60
|
+
deploy_app_response_500 = cls(
|
|
61
|
+
status=status,
|
|
62
|
+
message=message,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
deploy_app_response_500.additional_properties = d
|
|
66
|
+
return deploy_app_response_500
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> List[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
T = TypeVar("T", bound="Entity")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@attr.s(auto_attribs=True)
|
|
25
|
+
class Entity:
|
|
26
|
+
"""
|
|
27
|
+
### Attributes:
|
|
28
|
+
* `entity_id (str)`: None Example: 12345
|
|
29
|
+
* `entity_type (str)`: None Example: type1
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
entity_id: str
|
|
33
|
+
entity_type: str
|
|
34
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
35
|
+
|
|
36
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
37
|
+
entity_id = self.entity_id
|
|
38
|
+
entity_type = self.entity_type
|
|
39
|
+
|
|
40
|
+
field_dict: Dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update(
|
|
43
|
+
{
|
|
44
|
+
"entity_id": entity_id,
|
|
45
|
+
"entity_type": entity_type,
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return field_dict
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
53
|
+
d = src_dict.copy()
|
|
54
|
+
entity_id = d.pop("entity_id")
|
|
55
|
+
|
|
56
|
+
entity_type = d.pop("entity_type")
|
|
57
|
+
|
|
58
|
+
entity = cls(
|
|
59
|
+
entity_id=entity_id,
|
|
60
|
+
entity_type=entity_type,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
entity.additional_properties = d
|
|
64
|
+
return entity
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def additional_keys(self) -> List[str]:
|
|
68
|
+
return list(self.additional_properties.keys())
|
|
69
|
+
|
|
70
|
+
def __getitem__(self, key: str) -> Any:
|
|
71
|
+
return self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
74
|
+
self.additional_properties[key] = value
|
|
75
|
+
|
|
76
|
+
def __delitem__(self, key: str) -> None:
|
|
77
|
+
del self.additional_properties[key]
|
|
78
|
+
|
|
79
|
+
def __contains__(self, key: str) -> bool:
|
|
80
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import Union
|
|
21
|
+
from typing import cast
|
|
22
|
+
from typing import Dict
|
|
23
|
+
from ..types import UNSET, Unset
|
|
24
|
+
|
|
25
|
+
if TYPE_CHECKING:
|
|
26
|
+
from ..models.entity_response_s3_urls import EntityResponseS3Urls
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
T = TypeVar("T", bound="EntityResponse")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@attr.s(auto_attribs=True)
|
|
33
|
+
class EntityResponse:
|
|
34
|
+
"""
|
|
35
|
+
### Attributes:
|
|
36
|
+
* `s3_urls (Union[Unset, EntityResponseS3Urls])`:
|
|
37
|
+
* `status (Union[Unset, str])`: None
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
s3_urls: Union[Unset, "EntityResponseS3Urls"] = UNSET
|
|
41
|
+
status: Union[Unset, str] = UNSET
|
|
42
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
43
|
+
|
|
44
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
45
|
+
from ..models.entity_response_s3_urls import EntityResponseS3Urls
|
|
46
|
+
|
|
47
|
+
s3_urls: Union[Unset, Dict[str, Any]] = UNSET
|
|
48
|
+
if not isinstance(self.s3_urls, Unset):
|
|
49
|
+
s3_urls = self.s3_urls.to_dict()
|
|
50
|
+
|
|
51
|
+
status = self.status
|
|
52
|
+
|
|
53
|
+
field_dict: Dict[str, Any] = {}
|
|
54
|
+
field_dict.update(self.additional_properties)
|
|
55
|
+
field_dict.update({})
|
|
56
|
+
if s3_urls is not UNSET:
|
|
57
|
+
field_dict["s3_urls"] = s3_urls
|
|
58
|
+
if status is not UNSET:
|
|
59
|
+
field_dict["status"] = status
|
|
60
|
+
|
|
61
|
+
return field_dict
|
|
62
|
+
|
|
63
|
+
@classmethod
|
|
64
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
65
|
+
from ..models.entity_response_s3_urls import EntityResponseS3Urls
|
|
66
|
+
|
|
67
|
+
d = src_dict.copy()
|
|
68
|
+
_s3_urls = d.pop("s3_urls", UNSET)
|
|
69
|
+
s3_urls: Union[Unset, EntityResponseS3Urls]
|
|
70
|
+
if isinstance(_s3_urls, Unset):
|
|
71
|
+
s3_urls = UNSET
|
|
72
|
+
else:
|
|
73
|
+
s3_urls = EntityResponseS3Urls.from_dict(_s3_urls)
|
|
74
|
+
|
|
75
|
+
status = d.pop("status", UNSET)
|
|
76
|
+
|
|
77
|
+
entity_response = cls(
|
|
78
|
+
s3_urls=s3_urls,
|
|
79
|
+
status=status,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
entity_response.additional_properties = d
|
|
83
|
+
return entity_response
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def additional_keys(self) -> List[str]:
|
|
87
|
+
return list(self.additional_properties.keys())
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, key: str) -> Any:
|
|
90
|
+
return self.additional_properties[key]
|
|
91
|
+
|
|
92
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
93
|
+
self.additional_properties[key] = value
|
|
94
|
+
|
|
95
|
+
def __delitem__(self, key: str) -> None:
|
|
96
|
+
del self.additional_properties[key]
|
|
97
|
+
|
|
98
|
+
def __contains__(self, key: str) -> bool:
|
|
99
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import cast
|
|
21
|
+
from typing import Dict
|
|
22
|
+
|
|
23
|
+
if TYPE_CHECKING:
|
|
24
|
+
from ..models.entity_response_s3_urls_additional_property import (
|
|
25
|
+
EntityResponseS3UrlsAdditionalProperty,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
T = TypeVar("T", bound="EntityResponseS3Urls")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@attr.s(auto_attribs=True)
|
|
33
|
+
class EntityResponseS3Urls:
|
|
34
|
+
""" """
|
|
35
|
+
|
|
36
|
+
additional_properties: Dict[str, "EntityResponseS3UrlsAdditionalProperty"] = (
|
|
37
|
+
attr.ib(init=False, factory=dict)
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
41
|
+
from ..models.entity_response_s3_urls_additional_property import (
|
|
42
|
+
EntityResponseS3UrlsAdditionalProperty,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
field_dict: Dict[str, Any] = {}
|
|
46
|
+
for prop_name, prop in self.additional_properties.items():
|
|
47
|
+
field_dict[prop_name] = prop.to_dict()
|
|
48
|
+
|
|
49
|
+
field_dict.update({})
|
|
50
|
+
|
|
51
|
+
return field_dict
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
55
|
+
from ..models.entity_response_s3_urls_additional_property import (
|
|
56
|
+
EntityResponseS3UrlsAdditionalProperty,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
d = src_dict.copy()
|
|
60
|
+
entity_response_s3_urls = cls()
|
|
61
|
+
|
|
62
|
+
from ..models.entity_response_s3_urls_additional_property_fields import (
|
|
63
|
+
EntityResponseS3UrlsAdditionalPropertyFields,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
additional_properties = {}
|
|
67
|
+
for prop_name, prop_dict in d.items():
|
|
68
|
+
additional_property = EntityResponseS3UrlsAdditionalProperty.from_dict(
|
|
69
|
+
prop_dict
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
additional_properties[prop_name] = additional_property
|
|
73
|
+
|
|
74
|
+
entity_response_s3_urls.additional_properties = additional_properties
|
|
75
|
+
return entity_response_s3_urls
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def additional_keys(self) -> List[str]:
|
|
79
|
+
return list(self.additional_properties.keys())
|
|
80
|
+
|
|
81
|
+
def __getitem__(self, key: str) -> "EntityResponseS3UrlsAdditionalProperty":
|
|
82
|
+
return self.additional_properties[key]
|
|
83
|
+
|
|
84
|
+
def __setitem__(
|
|
85
|
+
self, key: str, value: "EntityResponseS3UrlsAdditionalProperty"
|
|
86
|
+
) -> None:
|
|
87
|
+
self.additional_properties[key] = value
|
|
88
|
+
|
|
89
|
+
def __delitem__(self, key: str) -> None:
|
|
90
|
+
del self.additional_properties[key]
|
|
91
|
+
|
|
92
|
+
def __contains__(self, key: str) -> bool:
|
|
93
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import Union
|
|
21
|
+
from typing import cast
|
|
22
|
+
from typing import Dict
|
|
23
|
+
from ..types import UNSET, Unset
|
|
24
|
+
|
|
25
|
+
if TYPE_CHECKING:
|
|
26
|
+
from ..models.entity_response_s3_urls_additional_property_fields import (
|
|
27
|
+
EntityResponseS3UrlsAdditionalPropertyFields,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
T = TypeVar("T", bound="EntityResponseS3UrlsAdditionalProperty")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@attr.s(auto_attribs=True)
|
|
35
|
+
class EntityResponseS3UrlsAdditionalProperty:
|
|
36
|
+
"""
|
|
37
|
+
### Attributes:
|
|
38
|
+
* `fields (Union[Unset, EntityResponseS3UrlsAdditionalPropertyFields])`:
|
|
39
|
+
* `url (Union[Unset, str])`: None
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
fields: Union[Unset, "EntityResponseS3UrlsAdditionalPropertyFields"] = UNSET
|
|
43
|
+
url: Union[Unset, str] = UNSET
|
|
44
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
45
|
+
|
|
46
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
47
|
+
from ..models.entity_response_s3_urls_additional_property_fields import (
|
|
48
|
+
EntityResponseS3UrlsAdditionalPropertyFields,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
fields: Union[Unset, Dict[str, Any]] = UNSET
|
|
52
|
+
if not isinstance(self.fields, Unset):
|
|
53
|
+
fields = self.fields.to_dict()
|
|
54
|
+
|
|
55
|
+
url = self.url
|
|
56
|
+
|
|
57
|
+
field_dict: Dict[str, Any] = {}
|
|
58
|
+
field_dict.update(self.additional_properties)
|
|
59
|
+
field_dict.update({})
|
|
60
|
+
if fields is not UNSET:
|
|
61
|
+
field_dict["fields"] = fields
|
|
62
|
+
if url is not UNSET:
|
|
63
|
+
field_dict["url"] = url
|
|
64
|
+
|
|
65
|
+
return field_dict
|
|
66
|
+
|
|
67
|
+
@classmethod
|
|
68
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
69
|
+
from ..models.entity_response_s3_urls_additional_property_fields import (
|
|
70
|
+
EntityResponseS3UrlsAdditionalPropertyFields,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
d = src_dict.copy()
|
|
74
|
+
_fields = d.pop("fields", UNSET)
|
|
75
|
+
fields: Union[Unset, EntityResponseS3UrlsAdditionalPropertyFields]
|
|
76
|
+
if isinstance(_fields, Unset):
|
|
77
|
+
fields = UNSET
|
|
78
|
+
else:
|
|
79
|
+
fields = EntityResponseS3UrlsAdditionalPropertyFields.from_dict(_fields)
|
|
80
|
+
|
|
81
|
+
url = d.pop("url", UNSET)
|
|
82
|
+
|
|
83
|
+
entity_response_s3_urls_additional_property = cls(
|
|
84
|
+
fields=fields,
|
|
85
|
+
url=url,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
entity_response_s3_urls_additional_property.additional_properties = d
|
|
89
|
+
return entity_response_s3_urls_additional_property
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def additional_keys(self) -> List[str]:
|
|
93
|
+
return list(self.additional_properties.keys())
|
|
94
|
+
|
|
95
|
+
def __getitem__(self, key: str) -> Any:
|
|
96
|
+
return self.additional_properties[key]
|
|
97
|
+
|
|
98
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
99
|
+
self.additional_properties[key] = value
|
|
100
|
+
|
|
101
|
+
def __delitem__(self, key: str) -> None:
|
|
102
|
+
del self.additional_properties[key]
|
|
103
|
+
|
|
104
|
+
def __contains__(self, key: str) -> bool:
|
|
105
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from typing import List
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import attr
|
|
17
|
+
|
|
18
|
+
from ..types import UNSET, Unset
|
|
19
|
+
|
|
20
|
+
from typing import Union
|
|
21
|
+
from ..types import UNSET, Unset
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
T = TypeVar("T", bound="EntityResponseS3UrlsAdditionalPropertyFields")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@attr.s(auto_attribs=True)
|
|
28
|
+
class EntityResponseS3UrlsAdditionalPropertyFields:
|
|
29
|
+
"""
|
|
30
|
+
### Attributes:
|
|
31
|
+
* `key (Union[Unset, str])`: None
|
|
32
|
+
* `policy (Union[Unset, str])`: None
|
|
33
|
+
* `x-amz-algorithm (Union[Unset, str])`: None
|
|
34
|
+
* `x-amz-credential (Union[Unset, str])`: None
|
|
35
|
+
* `x-amz-date (Union[Unset, str])`: None
|
|
36
|
+
* `x-amz-signature (Union[Unset, str])`: None
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
key: Union[Unset, str] = UNSET
|
|
40
|
+
policy: Union[Unset, str] = UNSET
|
|
41
|
+
x_amz_algorithm: Union[Unset, str] = UNSET
|
|
42
|
+
x_amz_credential: Union[Unset, str] = UNSET
|
|
43
|
+
x_amz_date: Union[Unset, str] = UNSET
|
|
44
|
+
x_amz_signature: Union[Unset, str] = UNSET
|
|
45
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
46
|
+
|
|
47
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
48
|
+
key = self.key
|
|
49
|
+
policy = self.policy
|
|
50
|
+
x_amz_algorithm = self.x_amz_algorithm
|
|
51
|
+
x_amz_credential = self.x_amz_credential
|
|
52
|
+
x_amz_date = self.x_amz_date
|
|
53
|
+
x_amz_signature = self.x_amz_signature
|
|
54
|
+
|
|
55
|
+
field_dict: Dict[str, Any] = {}
|
|
56
|
+
field_dict.update(self.additional_properties)
|
|
57
|
+
field_dict.update({})
|
|
58
|
+
if key is not UNSET:
|
|
59
|
+
field_dict["key"] = key
|
|
60
|
+
if policy is not UNSET:
|
|
61
|
+
field_dict["policy"] = policy
|
|
62
|
+
if x_amz_algorithm is not UNSET:
|
|
63
|
+
field_dict["x-amz-algorithm"] = x_amz_algorithm
|
|
64
|
+
if x_amz_credential is not UNSET:
|
|
65
|
+
field_dict["x-amz-credential"] = x_amz_credential
|
|
66
|
+
if x_amz_date is not UNSET:
|
|
67
|
+
field_dict["x-amz-date"] = x_amz_date
|
|
68
|
+
if x_amz_signature is not UNSET:
|
|
69
|
+
field_dict["x-amz-signature"] = x_amz_signature
|
|
70
|
+
|
|
71
|
+
return field_dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
75
|
+
d = src_dict.copy()
|
|
76
|
+
key = d.pop("key", UNSET)
|
|
77
|
+
|
|
78
|
+
policy = d.pop("policy", UNSET)
|
|
79
|
+
|
|
80
|
+
x_amz_algorithm = d.pop("x-amz-algorithm", UNSET)
|
|
81
|
+
|
|
82
|
+
x_amz_credential = d.pop("x-amz-credential", UNSET)
|
|
83
|
+
|
|
84
|
+
x_amz_date = d.pop("x-amz-date", UNSET)
|
|
85
|
+
|
|
86
|
+
x_amz_signature = d.pop("x-amz-signature", UNSET)
|
|
87
|
+
|
|
88
|
+
entity_response_s3_urls_additional_property_fields = cls(
|
|
89
|
+
key=key,
|
|
90
|
+
policy=policy,
|
|
91
|
+
x_amz_algorithm=x_amz_algorithm,
|
|
92
|
+
x_amz_credential=x_amz_credential,
|
|
93
|
+
x_amz_date=x_amz_date,
|
|
94
|
+
x_amz_signature=x_amz_signature,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
entity_response_s3_urls_additional_property_fields.additional_properties = d
|
|
98
|
+
return entity_response_s3_urls_additional_property_fields
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def additional_keys(self) -> List[str]:
|
|
102
|
+
return list(self.additional_properties.keys())
|
|
103
|
+
|
|
104
|
+
def __getitem__(self, key: str) -> Any:
|
|
105
|
+
return self.additional_properties[key]
|
|
106
|
+
|
|
107
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
108
|
+
self.additional_properties[key] = value
|
|
109
|
+
|
|
110
|
+
def __delitem__(self, key: str) -> None:
|
|
111
|
+
del self.additional_properties[key]
|
|
112
|
+
|
|
113
|
+
def __contains__(self, key: str) -> bool:
|
|
114
|
+
return key in self.additional_properties
|