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,249 @@
|
|
|
1
|
+
"""Contains all the data models used in inputs/outputs"""
|
|
2
|
+
|
|
3
|
+
from .acknowledgement import Acknowledgement
|
|
4
|
+
from .acknowledgement_with_data import AcknowledgementWithData
|
|
5
|
+
from .app_status import AppStatus
|
|
6
|
+
from .app_status_annotations import AppStatusAnnotations
|
|
7
|
+
from .app_status_labels import AppStatusLabels
|
|
8
|
+
from .app_with_url import AppWithURL
|
|
9
|
+
from .delete_entities_response_401 import DeleteEntitiesResponse401
|
|
10
|
+
from .delete_entities_response_409 import DeleteEntitiesResponse409
|
|
11
|
+
from .delete_entities_response_500 import DeleteEntitiesResponse500
|
|
12
|
+
from .delete_stream_response_401 import DeleteStreamResponse401
|
|
13
|
+
from .delete_tag_from_entities_response_401 import DeleteTagFromEntitiesResponse401
|
|
14
|
+
from .deploy_app_json_body import DeployAppJsonBody
|
|
15
|
+
from .deploy_app_json_body_secrets import DeployAppJsonBodySecrets
|
|
16
|
+
from .deploy_app_response_200 import DeployAppResponse200
|
|
17
|
+
from .deploy_app_response_200_data import DeployAppResponse200Data
|
|
18
|
+
from .deploy_app_response_400 import DeployAppResponse400
|
|
19
|
+
from .deploy_app_response_403 import DeployAppResponse403
|
|
20
|
+
from .deploy_app_response_404 import DeployAppResponse404
|
|
21
|
+
from .deploy_app_response_409 import DeployAppResponse409
|
|
22
|
+
from .deploy_app_response_500 import DeployAppResponse500
|
|
23
|
+
from .entity import Entity
|
|
24
|
+
from .entity_response import EntityResponse
|
|
25
|
+
from .entity_response_s3_urls import EntityResponseS3Urls
|
|
26
|
+
from .entity_response_s3_urls_additional_property import (
|
|
27
|
+
EntityResponseS3UrlsAdditionalProperty,
|
|
28
|
+
)
|
|
29
|
+
from .entity_response_s3_urls_additional_property_fields import (
|
|
30
|
+
EntityResponseS3UrlsAdditionalPropertyFields,
|
|
31
|
+
)
|
|
32
|
+
from .execute_app_job_json_body import ExecuteAppJobJsonBody
|
|
33
|
+
from .execute_app_job_json_body_annotation import ExecuteAppJobJsonBodyAnnotation
|
|
34
|
+
from .execute_app_job_response_401 import ExecuteAppJobResponse401
|
|
35
|
+
from .fetch_ontology_data_response_200 import FetchOntologyDataResponse200
|
|
36
|
+
from .fetch_ontology_data_response_401 import FetchOntologyDataResponse401
|
|
37
|
+
from .fetch_ontology_data_response_500 import FetchOntologyDataResponse500
|
|
38
|
+
from .get_app_logs_response_401 import GetAppLogsResponse401
|
|
39
|
+
from .get_app_logs_response_404 import GetAppLogsResponse404
|
|
40
|
+
from .get_app_logs_response_500 import GetAppLogsResponse500
|
|
41
|
+
from .get_apps_url_json_body import GetAppsUrlJsonBody
|
|
42
|
+
from .get_apps_url_response_401 import GetAppsUrlResponse401
|
|
43
|
+
from .get_apps_url_response_500 import GetAppsUrlResponse500
|
|
44
|
+
from .get_attachment_response_200 import GetAttachmentResponse200
|
|
45
|
+
from .get_attachment_response_401 import GetAttachmentResponse401
|
|
46
|
+
from .get_files_tree_response_200 import GetFilesTreeResponse200
|
|
47
|
+
from .get_files_tree_response_200_status import GetFilesTreeResponse200Status
|
|
48
|
+
from .get_files_tree_response_400 import GetFilesTreeResponse400
|
|
49
|
+
from .get_files_tree_response_400_data import GetFilesTreeResponse400Data
|
|
50
|
+
from .get_files_tree_response_400_status import GetFilesTreeResponse400Status
|
|
51
|
+
from .get_files_tree_response_401 import GetFilesTreeResponse401
|
|
52
|
+
from .get_files_tree_response_500 import GetFilesTreeResponse500
|
|
53
|
+
from .get_files_tree_response_500_data import GetFilesTreeResponse500Data
|
|
54
|
+
from .get_files_tree_response_500_status import GetFilesTreeResponse500Status
|
|
55
|
+
from .get_job_logs_response_401 import GetJobLogsResponse401
|
|
56
|
+
from .get_job_logs_response_404 import GetJobLogsResponse404
|
|
57
|
+
from .get_job_logs_response_500 import GetJobLogsResponse500
|
|
58
|
+
from .get_job_progress_response_401 import GetJobProgressResponse401
|
|
59
|
+
from .get_object_response_401 import GetObjectResponse401
|
|
60
|
+
from .get_ontologies_response_401 import GetOntologiesResponse401
|
|
61
|
+
from .get_ontologies_response_500 import GetOntologiesResponse500
|
|
62
|
+
from .get_permissions_response_200 import GetPermissionsResponse200
|
|
63
|
+
from .get_permissions_response_400 import GetPermissionsResponse400
|
|
64
|
+
from .get_permissions_response_401 import GetPermissionsResponse401
|
|
65
|
+
from .get_permissions_response_500 import GetPermissionsResponse500
|
|
66
|
+
from .get_processing_status_response_200 import GetProcessingStatusResponse200
|
|
67
|
+
from .get_processing_status_response_200_data import GetProcessingStatusResponse200Data
|
|
68
|
+
from .get_processing_status_response_400 import GetProcessingStatusResponse400
|
|
69
|
+
from .get_processing_status_response_500 import GetProcessingStatusResponse500
|
|
70
|
+
from .get_subscriptions_response_200_item import GetSubscriptionsResponse200Item
|
|
71
|
+
from .get_version_response_200 import GetVersionResponse200
|
|
72
|
+
from .get_version_response_404 import GetVersionResponse404
|
|
73
|
+
from .get_whoami_response_200 import GetWhoamiResponse200
|
|
74
|
+
from .get_whoami_response_401 import GetWhoamiResponse401
|
|
75
|
+
from .insert_entity import InsertEntity
|
|
76
|
+
from .insert_entity_base import InsertEntityBase
|
|
77
|
+
from .insert_entity_relationships_item import InsertEntityRelationshipsItem
|
|
78
|
+
from .insert_entity_request import InsertEntityRequest
|
|
79
|
+
from .internal_server_error import InternalServerError
|
|
80
|
+
from .job_execution_result import JobExecutionResult
|
|
81
|
+
from .job_status import JobStatus
|
|
82
|
+
from .job_status_labels import JobStatusLabels
|
|
83
|
+
from .job_with_url import JobWithURL
|
|
84
|
+
from .kill_job_response_401 import KillJobResponse401
|
|
85
|
+
from .list_app_jobs_response_401 import ListAppJobsResponse401
|
|
86
|
+
from .list_app_jobs_response_500 import ListAppJobsResponse500
|
|
87
|
+
from .list_apps_response_401 import ListAppsResponse401
|
|
88
|
+
from .list_apps_response_500 import ListAppsResponse500
|
|
89
|
+
from .multi_query_json_body import MultiQueryJsonBody
|
|
90
|
+
from .multi_query_json_body_queries_item import MultiQueryJsonBodyQueriesItem
|
|
91
|
+
from .multi_query_response_400 import MultiQueryResponse400
|
|
92
|
+
from .multi_query_response_401 import MultiQueryResponse401
|
|
93
|
+
from .not_found_error import NotFoundError
|
|
94
|
+
from .octostar_event import OctostarEvent
|
|
95
|
+
from .octostar_event_octostar_payload import OctostarEventOctostarPayload
|
|
96
|
+
from .octostar_event_octostar_payload_level import OctostarEventOctostarPayloadLevel
|
|
97
|
+
from .os_notification import OsNotification
|
|
98
|
+
from .child_processing_status import ChildProcessingStatus
|
|
99
|
+
from .processing_status import ProcessingStatus
|
|
100
|
+
from .processing_status_code import ProcessingStatusCode
|
|
101
|
+
from .progress_request import ProgressRequest
|
|
102
|
+
from .publish_notification_response_401 import PublishNotificationResponse401
|
|
103
|
+
from .pull_events_from_stream_response_401 import PullEventsFromStreamResponse401
|
|
104
|
+
from .push_event_to_stream_response_401 import PushEventToStreamResponse401
|
|
105
|
+
from .query_json_body import QueryJsonBody
|
|
106
|
+
from .query_json_body_params import QueryJsonBodyParams
|
|
107
|
+
from .query_response_400 import QueryResponse400
|
|
108
|
+
from .query_response_401 import QueryResponse401
|
|
109
|
+
from .set_job_progress_response_401 import SetJobProgressResponse401
|
|
110
|
+
from .string_to_value_label_map import StringToValueLabelMap
|
|
111
|
+
from .string_to_value_label_map_data import StringToValueLabelMapData
|
|
112
|
+
from .string_to_value_label_map_data_additional_property import (
|
|
113
|
+
StringToValueLabelMapDataAdditionalProperty,
|
|
114
|
+
)
|
|
115
|
+
from .successful_get_tags import SuccessfulGetTags
|
|
116
|
+
from .successful_insertion import SuccessfulInsertion
|
|
117
|
+
from .tag_entities_response_401 import TagEntitiesResponse401
|
|
118
|
+
from .toast_level import ToastLevel
|
|
119
|
+
from .toast_response_401 import ToastResponse401
|
|
120
|
+
from .undeploy_app_response_401 import UndeployAppResponse401
|
|
121
|
+
from .update_processing_status_response_200 import UpdateProcessingStatusResponse200
|
|
122
|
+
from .update_processing_status_response_400 import UpdateProcessingStatusResponse400
|
|
123
|
+
from .update_processing_status_response_500 import UpdateProcessingStatusResponse500
|
|
124
|
+
from .upsert_entities_response_401 import UpsertEntitiesResponse401
|
|
125
|
+
from .upsert_entity import UpsertEntity
|
|
126
|
+
from .upsert_entity_base import UpsertEntityBase
|
|
127
|
+
from .upsert_entity_relationships_item import UpsertEntityRelationshipsItem
|
|
128
|
+
|
|
129
|
+
__all__ = [
|
|
130
|
+
"Acknowledgement",
|
|
131
|
+
"AcknowledgementWithData",
|
|
132
|
+
"AppStatus",
|
|
133
|
+
"AppStatusAnnotations",
|
|
134
|
+
"AppStatusLabels",
|
|
135
|
+
"AppWithURL",
|
|
136
|
+
"DeleteEntitiesResponse401",
|
|
137
|
+
"DeleteEntitiesResponse409",
|
|
138
|
+
"DeleteEntitiesResponse500",
|
|
139
|
+
"DeleteStreamResponse401",
|
|
140
|
+
"DeleteTagFromEntitiesResponse401",
|
|
141
|
+
"DeployAppJsonBody",
|
|
142
|
+
"DeployAppJsonBodySecrets",
|
|
143
|
+
"DeployAppResponse200",
|
|
144
|
+
"DeployAppResponse200Data",
|
|
145
|
+
"DeployAppResponse400",
|
|
146
|
+
"DeployAppResponse403",
|
|
147
|
+
"DeployAppResponse404",
|
|
148
|
+
"DeployAppResponse409",
|
|
149
|
+
"DeployAppResponse500",
|
|
150
|
+
"Entity",
|
|
151
|
+
"EntityResponse",
|
|
152
|
+
"EntityResponseS3Urls",
|
|
153
|
+
"EntityResponseS3UrlsAdditionalProperty",
|
|
154
|
+
"EntityResponseS3UrlsAdditionalPropertyFields",
|
|
155
|
+
"ExecuteAppJobJsonBody",
|
|
156
|
+
"ExecuteAppJobJsonBodyAnnotation",
|
|
157
|
+
"ExecuteAppJobResponse401",
|
|
158
|
+
"FetchOntologyDataResponse200",
|
|
159
|
+
"FetchOntologyDataResponse401",
|
|
160
|
+
"FetchOntologyDataResponse500",
|
|
161
|
+
"GetAppLogsResponse401",
|
|
162
|
+
"GetAppLogsResponse404",
|
|
163
|
+
"GetAppLogsResponse500",
|
|
164
|
+
"GetAppsUrlJsonBody",
|
|
165
|
+
"GetAppsUrlResponse401",
|
|
166
|
+
"GetAppsUrlResponse500",
|
|
167
|
+
"GetAttachmentResponse200",
|
|
168
|
+
"GetAttachmentResponse401",
|
|
169
|
+
"GetFilesTreeResponse200",
|
|
170
|
+
"GetFilesTreeResponse200Status",
|
|
171
|
+
"GetFilesTreeResponse400",
|
|
172
|
+
"GetFilesTreeResponse400Data",
|
|
173
|
+
"GetFilesTreeResponse400Status",
|
|
174
|
+
"GetFilesTreeResponse401",
|
|
175
|
+
"GetFilesTreeResponse500",
|
|
176
|
+
"GetFilesTreeResponse500Data",
|
|
177
|
+
"GetFilesTreeResponse500Status",
|
|
178
|
+
"GetJobLogsResponse401",
|
|
179
|
+
"GetJobLogsResponse404",
|
|
180
|
+
"GetJobLogsResponse500",
|
|
181
|
+
"GetJobProgressResponse401",
|
|
182
|
+
"GetObjectResponse401",
|
|
183
|
+
"GetOntologiesResponse401",
|
|
184
|
+
"GetOntologiesResponse500",
|
|
185
|
+
"GetPermissionsResponse200",
|
|
186
|
+
"GetPermissionsResponse400",
|
|
187
|
+
"GetPermissionsResponse401",
|
|
188
|
+
"GetPermissionsResponse500",
|
|
189
|
+
"GetProcessingStatusResponse200",
|
|
190
|
+
"GetProcessingStatusResponse200Data",
|
|
191
|
+
"GetProcessingStatusResponse400",
|
|
192
|
+
"GetProcessingStatusResponse500",
|
|
193
|
+
"GetSubscriptionsResponse200Item",
|
|
194
|
+
"GetVersionResponse200",
|
|
195
|
+
"GetVersionResponse404",
|
|
196
|
+
"GetWhoamiResponse200",
|
|
197
|
+
"GetWhoamiResponse401",
|
|
198
|
+
"InsertEntity",
|
|
199
|
+
"InsertEntityBase",
|
|
200
|
+
"InsertEntityRelationshipsItem",
|
|
201
|
+
"InsertEntityRequest",
|
|
202
|
+
"InternalServerError",
|
|
203
|
+
"JobExecutionResult",
|
|
204
|
+
"JobStatus",
|
|
205
|
+
"JobStatusLabels",
|
|
206
|
+
"JobWithURL",
|
|
207
|
+
"KillJobResponse401",
|
|
208
|
+
"ListAppJobsResponse401",
|
|
209
|
+
"ListAppJobsResponse500",
|
|
210
|
+
"ListAppsResponse401",
|
|
211
|
+
"ListAppsResponse500",
|
|
212
|
+
"MultiQueryJsonBody",
|
|
213
|
+
"MultiQueryJsonBodyQueriesItem",
|
|
214
|
+
"MultiQueryResponse400",
|
|
215
|
+
"MultiQueryResponse401",
|
|
216
|
+
"NotFoundError",
|
|
217
|
+
"OctostarEvent",
|
|
218
|
+
"OctostarEventOctostarPayload",
|
|
219
|
+
"OctostarEventOctostarPayloadLevel",
|
|
220
|
+
"OsNotification",
|
|
221
|
+
"ChildProcessingStatus",
|
|
222
|
+
"ProcessingStatus",
|
|
223
|
+
"ProcessingStatusCode",
|
|
224
|
+
"ProgressRequest",
|
|
225
|
+
"PublishNotificationResponse401",
|
|
226
|
+
"PullEventsFromStreamResponse401",
|
|
227
|
+
"PushEventToStreamResponse401",
|
|
228
|
+
"QueryJsonBody",
|
|
229
|
+
"QueryJsonBodyParams",
|
|
230
|
+
"QueryResponse400",
|
|
231
|
+
"QueryResponse401",
|
|
232
|
+
"SetJobProgressResponse401",
|
|
233
|
+
"StringToValueLabelMap",
|
|
234
|
+
"StringToValueLabelMapData",
|
|
235
|
+
"StringToValueLabelMapDataAdditionalProperty",
|
|
236
|
+
"SuccessfulGetTags",
|
|
237
|
+
"SuccessfulInsertion",
|
|
238
|
+
"TagEntitiesResponse401",
|
|
239
|
+
"ToastLevel",
|
|
240
|
+
"ToastResponse401",
|
|
241
|
+
"UndeployAppResponse401",
|
|
242
|
+
"UpdateProcessingStatusResponse200",
|
|
243
|
+
"UpdateProcessingStatusResponse400",
|
|
244
|
+
"UpdateProcessingStatusResponse500",
|
|
245
|
+
"UpsertEntitiesResponse401",
|
|
246
|
+
"UpsertEntity",
|
|
247
|
+
"UpsertEntityBase",
|
|
248
|
+
"UpsertEntityRelationshipsItem",
|
|
249
|
+
]
|
|
@@ -0,0 +1,74 @@
|
|
|
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="Acknowledgement")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@attr.s(auto_attribs=True)
|
|
28
|
+
class Acknowledgement:
|
|
29
|
+
"""
|
|
30
|
+
### Attributes:
|
|
31
|
+
* `message (Union[Unset, str])`: None Example: sent
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
message: Union[Unset, str] = UNSET
|
|
35
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
36
|
+
|
|
37
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
38
|
+
message = self.message
|
|
39
|
+
|
|
40
|
+
field_dict: Dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update({})
|
|
43
|
+
if message is not UNSET:
|
|
44
|
+
field_dict["message"] = message
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
50
|
+
d = src_dict.copy()
|
|
51
|
+
message = d.pop("message", UNSET)
|
|
52
|
+
|
|
53
|
+
acknowledgement = cls(
|
|
54
|
+
message=message,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
acknowledgement.additional_properties = d
|
|
58
|
+
return acknowledgement
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def additional_keys(self) -> List[str]:
|
|
62
|
+
return list(self.additional_properties.keys())
|
|
63
|
+
|
|
64
|
+
def __getitem__(self, key: str) -> Any:
|
|
65
|
+
return self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
+
self.additional_properties[key] = value
|
|
69
|
+
|
|
70
|
+
def __delitem__(self, key: str) -> None:
|
|
71
|
+
del self.additional_properties[key]
|
|
72
|
+
|
|
73
|
+
def __contains__(self, key: str) -> bool:
|
|
74
|
+
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="AcknowledgementWithData")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@attr.s(auto_attribs=True)
|
|
28
|
+
class AcknowledgementWithData:
|
|
29
|
+
"""
|
|
30
|
+
### Attributes:
|
|
31
|
+
* `data (Union[Unset, str])`: None Example: {}
|
|
32
|
+
* `status (Union[Unset, str])`: None Example: success
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
data: Union[Unset, str] = UNSET
|
|
36
|
+
status: 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
|
+
data = self.data
|
|
41
|
+
status = self.status
|
|
42
|
+
|
|
43
|
+
field_dict: Dict[str, Any] = {}
|
|
44
|
+
field_dict.update(self.additional_properties)
|
|
45
|
+
field_dict.update({})
|
|
46
|
+
if data is not UNSET:
|
|
47
|
+
field_dict["data"] = data
|
|
48
|
+
if status is not UNSET:
|
|
49
|
+
field_dict["status"] = status
|
|
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
|
+
data = d.pop("data", UNSET)
|
|
57
|
+
|
|
58
|
+
status = d.pop("status", UNSET)
|
|
59
|
+
|
|
60
|
+
acknowledgement_with_data = cls(
|
|
61
|
+
data=data,
|
|
62
|
+
status=status,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
acknowledgement_with_data.additional_properties = d
|
|
66
|
+
return acknowledgement_with_data
|
|
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,239 @@
|
|
|
1
|
+
from typing import (
|
|
2
|
+
Any,
|
|
3
|
+
Dict,
|
|
4
|
+
Type,
|
|
5
|
+
TypeVar,
|
|
6
|
+
Tuple,
|
|
7
|
+
Optional,
|
|
8
|
+
BinaryIO,
|
|
9
|
+
TextIO,
|
|
10
|
+
TYPE_CHECKING,
|
|
11
|
+
List,
|
|
12
|
+
Union,
|
|
13
|
+
cast,
|
|
14
|
+
)
|
|
15
|
+
import datetime
|
|
16
|
+
|
|
17
|
+
import attr
|
|
18
|
+
from dateutil.parser import isoparse
|
|
19
|
+
|
|
20
|
+
from ..types import UNSET, Unset
|
|
21
|
+
|
|
22
|
+
if TYPE_CHECKING:
|
|
23
|
+
from ..models.app_status_annotations import AppStatusAnnotations
|
|
24
|
+
from ..models.app_status_labels import AppStatusLabels
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
T = TypeVar("T", bound="AppStatus")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@attr.s(auto_attribs=True)
|
|
31
|
+
class AppStatus:
|
|
32
|
+
"""
|
|
33
|
+
### Attributes:
|
|
34
|
+
* `active (Union[Unset, int])`: The active status of the App Example: 1
|
|
35
|
+
* `app_state (Union[Unset, str])`: The current state of the app Example: booting
|
|
36
|
+
* `app_url (Union[Unset, str])`: The URL where the app can be accessed Example: https://home.local.test/apps/od-c2-d2-e61/
|
|
37
|
+
* `annotations (Union[Unset, AppStatusAnnotations])`: Annotations for the app Example: {'deployment.kubernetes.io/revision': '1', 'os-app-name': 'MyAPP', 'os-app-title': 'MyAPP is awesome', 'os-manifest': '...', 'os-ontology': 'os_ontology_v1', 'os-username': 'admin'}
|
|
38
|
+
* `completion_time (Union[Unset, None, datetime.datetime])`: The completion time of the App
|
|
39
|
+
* `creation_timestamp (Union[Unset, datetime.datetime])`: The creation timestamp of the App Example: 2025-04-09T08:34:00+00:00
|
|
40
|
+
* `failed (Union[Unset, None, int])`: If the App has failed
|
|
41
|
+
* `labels (Union[Unset, AppStatusLabels])`: Labels assigned to the App Example: {'app.kubernetes.io/instance': 'local', 'app.kubernetes.io/name': 'my-service', 'os-alias': 'my-service', 'os-ancestor': 'od-c2-d2-e61', 'os-app-id': 'od-c2-d2-e61', 'os-deployment-id': 'od-c2-d2-e61', 'os-entity-id': 'e61b7226-b3ac-4974-b9f7-66f4eda5b51d', 'os-instance-type': 'normal', 'os-needs-ingress': 'true', 'os-ontology': 'os_ontology_v1', 'os-username': 'admin', 'os-workload-type': 'frontend', 'os-workspace': 'd2cc4d61-3f0a-499f-a867-75bfd29a1d08'}
|
|
42
|
+
* `name (Union[Unset, str])`: The name of the App Example: od-c2-d2-e61
|
|
43
|
+
* `namespace (Union[Unset, str])`: The namespace where the app is deployed Example: octostar-main
|
|
44
|
+
* `ready (Union[Unset, int])`: The ready status of the App
|
|
45
|
+
* `start_time (Union[Unset, datetime.datetime])`: The start time of the App Example: 2025-04-09T08:34:00+00:00
|
|
46
|
+
* `succeeded (Union[Unset, None, int])`: If the App has succeeded
|
|
47
|
+
* `uid (Union[Unset, str])`: The unique identifier of the App Example: 5c4c446c-3399-4e23-9f8b-b3d129ae3801
|
|
48
|
+
* `state (Union[Unset, str])`: The current state of the job (for worker jobs) Example: running
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
active: Union[Unset, int] = UNSET
|
|
52
|
+
app_state: Union[Unset, str] = UNSET
|
|
53
|
+
app_url: Union[Unset, str] = UNSET
|
|
54
|
+
annotations: Union[Unset, "AppStatusAnnotations"] = UNSET
|
|
55
|
+
completion_time: Union[Unset, None, datetime.datetime] = UNSET
|
|
56
|
+
creation_timestamp: Union[Unset, datetime.datetime] = UNSET
|
|
57
|
+
failed: Union[Unset, None, int] = UNSET
|
|
58
|
+
labels: Union[Unset, "AppStatusLabels"] = UNSET
|
|
59
|
+
name: Union[Unset, str] = UNSET
|
|
60
|
+
namespace: Union[Unset, str] = UNSET
|
|
61
|
+
ready: Union[Unset, int] = UNSET
|
|
62
|
+
start_time: Union[Unset, datetime.datetime] = UNSET
|
|
63
|
+
succeeded: Union[Unset, None, int] = UNSET
|
|
64
|
+
uid: Union[Unset, str] = UNSET
|
|
65
|
+
state: Union[Unset, str] = UNSET
|
|
66
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
67
|
+
|
|
68
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
69
|
+
from ..models.app_status_annotations import AppStatusAnnotations
|
|
70
|
+
from ..models.app_status_labels import AppStatusLabels
|
|
71
|
+
|
|
72
|
+
active = self.active
|
|
73
|
+
app_state = self.app_state
|
|
74
|
+
app_url = self.app_url
|
|
75
|
+
annotations: Union[Unset, Dict[str, Any]] = UNSET
|
|
76
|
+
if not isinstance(self.annotations, Unset):
|
|
77
|
+
annotations = self.annotations.to_dict()
|
|
78
|
+
|
|
79
|
+
completion_time: Union[Unset, None, str] = UNSET
|
|
80
|
+
if not isinstance(self.completion_time, Unset):
|
|
81
|
+
completion_time = (
|
|
82
|
+
self.completion_time.isoformat() if self.completion_time else None
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
creation_timestamp: Union[Unset, str] = UNSET
|
|
86
|
+
if not isinstance(self.creation_timestamp, Unset):
|
|
87
|
+
creation_timestamp = self.creation_timestamp.isoformat()
|
|
88
|
+
|
|
89
|
+
failed = self.failed
|
|
90
|
+
labels: Union[Unset, Dict[str, Any]] = UNSET
|
|
91
|
+
if not isinstance(self.labels, Unset):
|
|
92
|
+
labels = self.labels.to_dict()
|
|
93
|
+
|
|
94
|
+
name = self.name
|
|
95
|
+
namespace = self.namespace
|
|
96
|
+
ready = self.ready
|
|
97
|
+
start_time: Union[Unset, str] = UNSET
|
|
98
|
+
if not isinstance(self.start_time, Unset):
|
|
99
|
+
start_time = self.start_time.isoformat()
|
|
100
|
+
|
|
101
|
+
succeeded = self.succeeded
|
|
102
|
+
uid = self.uid
|
|
103
|
+
state = self.state
|
|
104
|
+
|
|
105
|
+
field_dict: Dict[str, Any] = {}
|
|
106
|
+
field_dict.update(self.additional_properties)
|
|
107
|
+
field_dict.update({})
|
|
108
|
+
if active is not UNSET:
|
|
109
|
+
field_dict["active"] = active
|
|
110
|
+
if app_state is not UNSET:
|
|
111
|
+
field_dict["app_state"] = app_state
|
|
112
|
+
if app_url is not UNSET:
|
|
113
|
+
field_dict["app_url"] = app_url
|
|
114
|
+
if annotations is not UNSET:
|
|
115
|
+
field_dict["annotations"] = annotations
|
|
116
|
+
if completion_time is not UNSET:
|
|
117
|
+
field_dict["completion_time"] = completion_time
|
|
118
|
+
if creation_timestamp is not UNSET:
|
|
119
|
+
field_dict["creation_timestamp"] = creation_timestamp
|
|
120
|
+
if failed is not UNSET:
|
|
121
|
+
field_dict["failed"] = failed
|
|
122
|
+
if labels is not UNSET:
|
|
123
|
+
field_dict["labels"] = labels
|
|
124
|
+
if name is not UNSET:
|
|
125
|
+
field_dict["name"] = name
|
|
126
|
+
if namespace is not UNSET:
|
|
127
|
+
field_dict["namespace"] = namespace
|
|
128
|
+
if ready is not UNSET:
|
|
129
|
+
field_dict["ready"] = ready
|
|
130
|
+
if start_time is not UNSET:
|
|
131
|
+
field_dict["start_time"] = start_time
|
|
132
|
+
if succeeded is not UNSET:
|
|
133
|
+
field_dict["succeeded"] = succeeded
|
|
134
|
+
if uid is not UNSET:
|
|
135
|
+
field_dict["uid"] = uid
|
|
136
|
+
if state is not UNSET:
|
|
137
|
+
field_dict["state"] = state
|
|
138
|
+
|
|
139
|
+
return field_dict
|
|
140
|
+
|
|
141
|
+
@classmethod
|
|
142
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
143
|
+
from ..models.app_status_annotations import AppStatusAnnotations
|
|
144
|
+
from ..models.app_status_labels import AppStatusLabels
|
|
145
|
+
|
|
146
|
+
d = src_dict.copy()
|
|
147
|
+
active = d.pop("active", UNSET)
|
|
148
|
+
|
|
149
|
+
app_state = d.pop("app_state", UNSET)
|
|
150
|
+
|
|
151
|
+
app_url = d.pop("app_url", UNSET)
|
|
152
|
+
|
|
153
|
+
_annotations = d.pop("annotations", UNSET)
|
|
154
|
+
annotations: Union[Unset, AppStatusAnnotations]
|
|
155
|
+
if isinstance(_annotations, Unset):
|
|
156
|
+
annotations = UNSET
|
|
157
|
+
else:
|
|
158
|
+
annotations = AppStatusAnnotations.from_dict(_annotations)
|
|
159
|
+
|
|
160
|
+
_completion_time = d.pop("completion_time", UNSET)
|
|
161
|
+
completion_time: Union[Unset, None, datetime.datetime]
|
|
162
|
+
if _completion_time is None:
|
|
163
|
+
completion_time = None
|
|
164
|
+
elif isinstance(_completion_time, Unset):
|
|
165
|
+
completion_time = UNSET
|
|
166
|
+
else:
|
|
167
|
+
completion_time = isoparse(_completion_time)
|
|
168
|
+
|
|
169
|
+
_creation_timestamp = d.pop("creation_timestamp", UNSET)
|
|
170
|
+
creation_timestamp: Union[Unset, datetime.datetime]
|
|
171
|
+
if isinstance(_creation_timestamp, Unset):
|
|
172
|
+
creation_timestamp = UNSET
|
|
173
|
+
else:
|
|
174
|
+
creation_timestamp = isoparse(_creation_timestamp)
|
|
175
|
+
|
|
176
|
+
failed = d.pop("failed", UNSET)
|
|
177
|
+
|
|
178
|
+
_labels = d.pop("labels", UNSET)
|
|
179
|
+
labels: Union[Unset, AppStatusLabels]
|
|
180
|
+
if isinstance(_labels, Unset):
|
|
181
|
+
labels = UNSET
|
|
182
|
+
else:
|
|
183
|
+
labels = AppStatusLabels.from_dict(_labels)
|
|
184
|
+
|
|
185
|
+
name = d.pop("name", UNSET)
|
|
186
|
+
|
|
187
|
+
namespace = d.pop("namespace", UNSET)
|
|
188
|
+
|
|
189
|
+
ready = d.pop("ready", UNSET)
|
|
190
|
+
|
|
191
|
+
_start_time = d.pop("start_time", UNSET)
|
|
192
|
+
start_time: Union[Unset, datetime.datetime]
|
|
193
|
+
if isinstance(_start_time, Unset):
|
|
194
|
+
start_time = UNSET
|
|
195
|
+
else:
|
|
196
|
+
start_time = isoparse(_start_time)
|
|
197
|
+
|
|
198
|
+
succeeded = d.pop("succeeded", UNSET)
|
|
199
|
+
|
|
200
|
+
uid = d.pop("uid", UNSET)
|
|
201
|
+
|
|
202
|
+
state = d.pop("state", UNSET)
|
|
203
|
+
|
|
204
|
+
app_status = cls(
|
|
205
|
+
active=active,
|
|
206
|
+
app_state=app_state,
|
|
207
|
+
app_url=app_url,
|
|
208
|
+
annotations=annotations,
|
|
209
|
+
completion_time=completion_time,
|
|
210
|
+
creation_timestamp=creation_timestamp,
|
|
211
|
+
failed=failed,
|
|
212
|
+
labels=labels,
|
|
213
|
+
name=name,
|
|
214
|
+
namespace=namespace,
|
|
215
|
+
ready=ready,
|
|
216
|
+
start_time=start_time,
|
|
217
|
+
succeeded=succeeded,
|
|
218
|
+
uid=uid,
|
|
219
|
+
state=state,
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
app_status.additional_properties = d
|
|
223
|
+
return app_status
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def additional_keys(self) -> List[str]:
|
|
227
|
+
return list(self.additional_properties.keys())
|
|
228
|
+
|
|
229
|
+
def __getitem__(self, key: str) -> Any:
|
|
230
|
+
return self.additional_properties[key]
|
|
231
|
+
|
|
232
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
233
|
+
self.additional_properties[key] = value
|
|
234
|
+
|
|
235
|
+
def __delitem__(self, key: str) -> None:
|
|
236
|
+
del self.additional_properties[key]
|
|
237
|
+
|
|
238
|
+
def __contains__(self, key: str) -> bool:
|
|
239
|
+
return key in self.additional_properties
|