octostar-python-client 1.0.0__tar.gz

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.
Files changed (316) hide show
  1. octostar-python-client-1.0.0/PKG-INFO +96 -0
  2. octostar-python-client-1.0.0/README.md +89 -0
  3. octostar-python-client-1.0.0/octostar/__init__.py +7 -0
  4. octostar-python-client-1.0.0/octostar/api/__init__.py +1 -0
  5. octostar-python-client-1.0.0/octostar/api/default/__init__.py +0 -0
  6. octostar-python-client-1.0.0/octostar/api/default/post_api_octostar_workspace_data_api_zip_import.py +265 -0
  7. octostar-python-client-1.0.0/octostar/api/jobs/__init__.py +0 -0
  8. octostar-python-client-1.0.0/octostar/api/jobs/delete_job.py +193 -0
  9. octostar-python-client-1.0.0/octostar/api/jobs/execute_new_job.py +200 -0
  10. octostar-python-client-1.0.0/octostar/api/jobs/get_job_logs.py +245 -0
  11. octostar-python-client-1.0.0/octostar/api/jobs/get_job_progress.py +196 -0
  12. octostar-python-client-1.0.0/octostar/api/jobs/get_jobs_url.py +207 -0
  13. octostar-python-client-1.0.0/octostar/api/jobs/list_jobs.py +180 -0
  14. octostar-python-client-1.0.0/octostar/api/jobs/list_jobs_children.py +201 -0
  15. octostar-python-client-1.0.0/octostar/api/jobs/list_pods.py +192 -0
  16. octostar-python-client-1.0.0/octostar/api/jobs/post_api_octostar_jobs_deploy_workspace_os_entity_uid.py +335 -0
  17. octostar-python-client-1.0.0/octostar/api/jobs/set_job_progress.py +213 -0
  18. octostar-python-client-1.0.0/octostar/api/metadata/__init__.py +0 -0
  19. octostar-python-client-1.0.0/octostar/api/metadata/get_whoami.py +162 -0
  20. octostar-python-client-1.0.0/octostar/api/notifications/__init__.py +0 -0
  21. octostar-python-client-1.0.0/octostar/api/notifications/delete_stream.py +186 -0
  22. octostar-python-client-1.0.0/octostar/api/notifications/fake_wso_event.py +205 -0
  23. octostar-python-client-1.0.0/octostar/api/notifications/get_subscriptions.py +165 -0
  24. octostar-python-client-1.0.0/octostar/api/notifications/publish_notification.py +199 -0
  25. octostar-python-client-1.0.0/octostar/api/notifications/pull_events_from_stream.py +210 -0
  26. octostar-python-client-1.0.0/octostar/api/notifications/push_event_to_stream.py +203 -0
  27. octostar-python-client-1.0.0/octostar/api/notifications/subscribe.py +188 -0
  28. octostar-python-client-1.0.0/octostar/api/notifications/toast.py +242 -0
  29. octostar-python-client-1.0.0/octostar/api/notifications/unsubscribe.py +188 -0
  30. octostar-python-client-1.0.0/octostar/api/ontology/__init__.py +0 -0
  31. octostar-python-client-1.0.0/octostar/api/ontology/fetch_ontology_data.py +167 -0
  32. octostar-python-client-1.0.0/octostar/api/ontology/get_ontologies.py +166 -0
  33. octostar-python-client-1.0.0/octostar/api/ontology/query.py +214 -0
  34. octostar-python-client-1.0.0/octostar/api/secrets/__init__.py +0 -0
  35. octostar-python-client-1.0.0/octostar/api/secrets/delete_secret.py +202 -0
  36. octostar-python-client-1.0.0/octostar/api/secrets/get_secret.py +199 -0
  37. octostar-python-client-1.0.0/octostar/api/secrets/write_secret.py +195 -0
  38. octostar-python-client-1.0.0/octostar/api/url_storage/__init__.py +0 -0
  39. octostar-python-client-1.0.0/octostar/api/url_storage/delete_object.py +186 -0
  40. octostar-python-client-1.0.0/octostar/api/url_storage/get_object.py +189 -0
  41. octostar-python-client-1.0.0/octostar/api/url_storage/post_object.py +190 -0
  42. octostar-python-client-1.0.0/octostar/api/url_storage/post_object_with_id.py +203 -0
  43. octostar-python-client-1.0.0/octostar/api/watchers/__init__.py +0 -0
  44. octostar-python-client-1.0.0/octostar/api/watchers/get_watcher_intents.py +170 -0
  45. octostar-python-client-1.0.0/octostar/api/watchers/get_watcher_jobs.py +170 -0
  46. octostar-python-client-1.0.0/octostar/api/workspace_data/__init__.py +0 -0
  47. octostar-python-client-1.0.0/octostar/api/workspace_data/copy.py +197 -0
  48. octostar-python-client-1.0.0/octostar/api/workspace_data/create_workspace.py +229 -0
  49. octostar-python-client-1.0.0/octostar/api/workspace_data/delete_concept_records.py +201 -0
  50. octostar-python-client-1.0.0/octostar/api/workspace_data/delete_entities.py +223 -0
  51. octostar-python-client-1.0.0/octostar/api/workspace_data/delete_workspace_records.py +186 -0
  52. octostar-python-client-1.0.0/octostar/api/workspace_data/export.py +195 -0
  53. octostar-python-client-1.0.0/octostar/api/workspace_data/get_attachment.py +258 -0
  54. octostar-python-client-1.0.0/octostar/api/workspace_data/get_files_tree.py +301 -0
  55. octostar-python-client-1.0.0/octostar/api/workspace_data/insert_records.py +259 -0
  56. octostar-python-client-1.0.0/octostar/api/workspace_data/nuke_db.py +217 -0
  57. octostar-python-client-1.0.0/octostar/api/workspace_data/rebuild_local_data.py +217 -0
  58. octostar-python-client-1.0.0/octostar/api/workspace_data/redo_concept.py +245 -0
  59. octostar-python-client-1.0.0/octostar/api/workspace_data/redo_mappings.py +217 -0
  60. octostar-python-client-1.0.0/octostar/api/workspace_data/upsert_entities.py +218 -0
  61. octostar-python-client-1.0.0/octostar/api/workspace_permissions/__init__.py +0 -0
  62. octostar-python-client-1.0.0/octostar/api/workspace_permissions/get_permissions.py +234 -0
  63. octostar-python-client-1.0.0/octostar/api/workspace_permissions/get_roles_list.py +192 -0
  64. octostar-python-client-1.0.0/octostar/api/workspace_permissions/get_workspace_users.py +222 -0
  65. octostar-python-client-1.0.0/octostar/api/workspace_tags/__init__.py +0 -0
  66. octostar-python-client-1.0.0/octostar/api/workspace_tags/delete_tag_from_entities.py +236 -0
  67. octostar-python-client-1.0.0/octostar/api/workspace_tags/get_workspace_tags.py +195 -0
  68. octostar-python-client-1.0.0/octostar/api/workspace_tags/get_workspaces_tags.py +216 -0
  69. octostar-python-client-1.0.0/octostar/api/workspace_tags/tag_entities.py +316 -0
  70. octostar-python-client-1.0.0/octostar/client.py +124 -0
  71. octostar-python-client-1.0.0/octostar/errors.py +14 -0
  72. octostar-python-client-1.0.0/octostar/models/__init__.py +393 -0
  73. octostar-python-client-1.0.0/octostar/models/acknowledgement.py +57 -0
  74. octostar-python-client-1.0.0/octostar/models/acknowledgement_with_data.py +65 -0
  75. octostar-python-client-1.0.0/octostar/models/copy_json_body.py +88 -0
  76. octostar-python-client-1.0.0/octostar/models/copy_json_body_options.py +57 -0
  77. octostar-python-client-1.0.0/octostar/models/copy_response_200.py +91 -0
  78. octostar-python-client-1.0.0/octostar/models/copy_response_200_status.py +8 -0
  79. octostar-python-client-1.0.0/octostar/models/copy_response_400.py +87 -0
  80. octostar-python-client-1.0.0/octostar/models/copy_response_400_data.py +43 -0
  81. octostar-python-client-1.0.0/octostar/models/copy_response_400_status.py +8 -0
  82. octostar-python-client-1.0.0/octostar/models/copy_response_401.py +57 -0
  83. octostar-python-client-1.0.0/octostar/models/copy_response_500.py +87 -0
  84. octostar-python-client-1.0.0/octostar/models/copy_response_500_data.py +43 -0
  85. octostar-python-client-1.0.0/octostar/models/copy_response_500_status.py +8 -0
  86. octostar-python-client-1.0.0/octostar/models/create_workspace_json_body.py +57 -0
  87. octostar-python-client-1.0.0/octostar/models/create_workspace_response_200.py +73 -0
  88. octostar-python-client-1.0.0/octostar/models/create_workspace_response_400.py +65 -0
  89. octostar-python-client-1.0.0/octostar/models/create_workspace_response_401.py +57 -0
  90. octostar-python-client-1.0.0/octostar/models/create_workspace_response_500.py +65 -0
  91. octostar-python-client-1.0.0/octostar/models/delete_entities_response_401.py +57 -0
  92. octostar-python-client-1.0.0/octostar/models/delete_entities_response_409.py +65 -0
  93. octostar-python-client-1.0.0/octostar/models/delete_entities_response_500.py +65 -0
  94. octostar-python-client-1.0.0/octostar/models/delete_job_response_401.py +57 -0
  95. octostar-python-client-1.0.0/octostar/models/delete_object_response_401.py +57 -0
  96. octostar-python-client-1.0.0/octostar/models/delete_secret_json_body.py +75 -0
  97. octostar-python-client-1.0.0/octostar/models/delete_secret_response_200.py +65 -0
  98. octostar-python-client-1.0.0/octostar/models/delete_stream_response_401.py +57 -0
  99. octostar-python-client-1.0.0/octostar/models/delete_tag_from_entities_response_401.py +57 -0
  100. octostar-python-client-1.0.0/octostar/models/entity.py +64 -0
  101. octostar-python-client-1.0.0/octostar/models/entity_response.py +79 -0
  102. octostar-python-client-1.0.0/octostar/models/entity_response_s3_urls.py +59 -0
  103. octostar-python-client-1.0.0/octostar/models/entity_response_s3_urls_additional_property.py +81 -0
  104. octostar-python-client-1.0.0/octostar/models/entity_response_s3_urls_additional_property_fields.py +97 -0
  105. octostar-python-client-1.0.0/octostar/models/execute_new_job_json_body.py +126 -0
  106. octostar-python-client-1.0.0/octostar/models/execute_new_job_json_body_annotation.py +48 -0
  107. octostar-python-client-1.0.0/octostar/models/execute_new_job_response_401.py +57 -0
  108. octostar-python-client-1.0.0/octostar/models/export_json_body.py +86 -0
  109. octostar-python-client-1.0.0/octostar/models/export_response_400.py +87 -0
  110. octostar-python-client-1.0.0/octostar/models/export_response_400_data.py +43 -0
  111. octostar-python-client-1.0.0/octostar/models/export_response_400_status.py +8 -0
  112. octostar-python-client-1.0.0/octostar/models/export_response_401.py +57 -0
  113. octostar-python-client-1.0.0/octostar/models/export_response_500.py +87 -0
  114. octostar-python-client-1.0.0/octostar/models/export_response_500_data.py +43 -0
  115. octostar-python-client-1.0.0/octostar/models/export_response_500_status.py +8 -0
  116. octostar-python-client-1.0.0/octostar/models/fake_wso_event_response_401.py +57 -0
  117. octostar-python-client-1.0.0/octostar/models/fetch_ontology_data_response_200.py +43 -0
  118. octostar-python-client-1.0.0/octostar/models/fetch_ontology_data_response_401.py +57 -0
  119. octostar-python-client-1.0.0/octostar/models/fetch_ontology_data_response_500.py +65 -0
  120. octostar-python-client-1.0.0/octostar/models/get_attachment_response_200.py +57 -0
  121. octostar-python-client-1.0.0/octostar/models/get_attachment_response_401.py +57 -0
  122. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_200.py +91 -0
  123. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_200_status.py +8 -0
  124. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_400.py +87 -0
  125. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_400_data.py +43 -0
  126. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_400_status.py +8 -0
  127. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_401.py +57 -0
  128. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_500.py +87 -0
  129. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_500_data.py +43 -0
  130. octostar-python-client-1.0.0/octostar/models/get_files_tree_response_500_status.py +8 -0
  131. octostar-python-client-1.0.0/octostar/models/get_job_logs_response_401.py +57 -0
  132. octostar-python-client-1.0.0/octostar/models/get_job_logs_response_404.py +57 -0
  133. octostar-python-client-1.0.0/octostar/models/get_job_logs_response_500.py +65 -0
  134. octostar-python-client-1.0.0/octostar/models/get_job_progress_response_401.py +57 -0
  135. octostar-python-client-1.0.0/octostar/models/get_jobs_url_json_body.py +58 -0
  136. octostar-python-client-1.0.0/octostar/models/get_jobs_url_response_401.py +57 -0
  137. octostar-python-client-1.0.0/octostar/models/get_jobs_url_response_500.py +65 -0
  138. octostar-python-client-1.0.0/octostar/models/get_object_response_401.py +57 -0
  139. octostar-python-client-1.0.0/octostar/models/get_ontologies_response_401.py +57 -0
  140. octostar-python-client-1.0.0/octostar/models/get_ontologies_response_500.py +65 -0
  141. octostar-python-client-1.0.0/octostar/models/get_permissions_response_200.py +78 -0
  142. octostar-python-client-1.0.0/octostar/models/get_permissions_response_400.py +65 -0
  143. octostar-python-client-1.0.0/octostar/models/get_permissions_response_401.py +57 -0
  144. octostar-python-client-1.0.0/octostar/models/get_permissions_response_500.py +65 -0
  145. octostar-python-client-1.0.0/octostar/models/get_roles_list_response_200.py +82 -0
  146. octostar-python-client-1.0.0/octostar/models/get_roles_list_response_200_data_item.py +57 -0
  147. octostar-python-client-1.0.0/octostar/models/get_roles_list_response_400.py +65 -0
  148. octostar-python-client-1.0.0/octostar/models/get_roles_list_response_401.py +57 -0
  149. octostar-python-client-1.0.0/octostar/models/get_roles_list_response_500.py +65 -0
  150. octostar-python-client-1.0.0/octostar/models/get_secret_json_body.py +65 -0
  151. octostar-python-client-1.0.0/octostar/models/get_secret_response_200.py +78 -0
  152. octostar-python-client-1.0.0/octostar/models/get_secret_response_200_message.py +122 -0
  153. octostar-python-client-1.0.0/octostar/models/get_secret_response_200_message_data_item.py +65 -0
  154. octostar-python-client-1.0.0/octostar/models/get_subscriptions_response_200_item.py +57 -0
  155. octostar-python-client-1.0.0/octostar/models/get_watcher_intents_response_200.py +91 -0
  156. octostar-python-client-1.0.0/octostar/models/get_watcher_intents_response_200_message_item.py +82 -0
  157. octostar-python-client-1.0.0/octostar/models/get_watcher_intents_response_200_status.py +8 -0
  158. octostar-python-client-1.0.0/octostar/models/get_watcher_intents_response_401.py +57 -0
  159. octostar-python-client-1.0.0/octostar/models/get_watcher_jobs_response_200.py +83 -0
  160. octostar-python-client-1.0.0/octostar/models/get_watcher_jobs_response_401.py +57 -0
  161. octostar-python-client-1.0.0/octostar/models/get_whoami_response_200.py +81 -0
  162. octostar-python-client-1.0.0/octostar/models/get_whoami_response_401.py +57 -0
  163. octostar-python-client-1.0.0/octostar/models/get_workspace_tags_response_401.py +57 -0
  164. octostar-python-client-1.0.0/octostar/models/get_workspace_users_response_200.py +82 -0
  165. octostar-python-client-1.0.0/octostar/models/get_workspace_users_response_200_data_item.py +57 -0
  166. octostar-python-client-1.0.0/octostar/models/get_workspace_users_response_400.py +65 -0
  167. octostar-python-client-1.0.0/octostar/models/get_workspace_users_response_401.py +57 -0
  168. octostar-python-client-1.0.0/octostar/models/get_workspace_users_response_500.py +65 -0
  169. octostar-python-client-1.0.0/octostar/models/get_workspaces_tags_response_401.py +57 -0
  170. octostar-python-client-1.0.0/octostar/models/insert_entity.py +92 -0
  171. octostar-python-client-1.0.0/octostar/models/insert_entity_base.py +249 -0
  172. octostar-python-client-1.0.0/octostar/models/insert_entity_relationships_item.py +87 -0
  173. octostar-python-client-1.0.0/octostar/models/insert_entity_request.py +73 -0
  174. octostar-python-client-1.0.0/octostar/models/insert_records_response_401.py +57 -0
  175. octostar-python-client-1.0.0/octostar/models/internal_server_error.py +65 -0
  176. octostar-python-client-1.0.0/octostar/models/job_execution_result.py +89 -0
  177. octostar-python-client-1.0.0/octostar/models/job_status.py +179 -0
  178. octostar-python-client-1.0.0/octostar/models/job_status_labels.py +43 -0
  179. octostar-python-client-1.0.0/octostar/models/job_with_url.py +65 -0
  180. octostar-python-client-1.0.0/octostar/models/list_jobs_children_response_401.py +57 -0
  181. octostar-python-client-1.0.0/octostar/models/list_jobs_children_response_500.py +65 -0
  182. octostar-python-client-1.0.0/octostar/models/list_jobs_response_401.py +57 -0
  183. octostar-python-client-1.0.0/octostar/models/list_jobs_response_500.py +65 -0
  184. octostar-python-client-1.0.0/octostar/models/list_pods_response_401.py +57 -0
  185. octostar-python-client-1.0.0/octostar/models/not_found_error.py +57 -0
  186. octostar-python-client-1.0.0/octostar/models/nuke_db_response_206.py +65 -0
  187. octostar-python-client-1.0.0/octostar/models/nuke_db_response_400.py +65 -0
  188. octostar-python-client-1.0.0/octostar/models/nuke_db_response_401.py +57 -0
  189. octostar-python-client-1.0.0/octostar/models/octostar_event.py +70 -0
  190. octostar-python-client-1.0.0/octostar/models/octostar_event_octostar_payload.py +81 -0
  191. octostar-python-client-1.0.0/octostar/models/octostar_event_octostar_payload_level.py +11 -0
  192. octostar-python-client-1.0.0/octostar/models/os_notification.py +105 -0
  193. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_json_body.py +75 -0
  194. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_json_body_secrets.py +48 -0
  195. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_200.py +82 -0
  196. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_200_data.py +43 -0
  197. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_400.py +65 -0
  198. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_403.py +65 -0
  199. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_404.py +65 -0
  200. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_409.py +65 -0
  201. octostar-python-client-1.0.0/octostar/models/post_api_octostar_jobs_deploy_workspace_os_entity_uid_response_500.py +65 -0
  202. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_multipart_data.py +191 -0
  203. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_multipart_data_include_dashboards_type_1.py +8 -0
  204. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_response_200.py +65 -0
  205. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_response_400.py +65 -0
  206. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_response_403.py +65 -0
  207. octostar-python-client-1.0.0/octostar/models/post_api_octostar_workspace_data_api_zip_import_response_500.py +65 -0
  208. octostar-python-client-1.0.0/octostar/models/post_object_json_body.py +43 -0
  209. octostar-python-client-1.0.0/octostar/models/post_object_response_401.py +57 -0
  210. octostar-python-client-1.0.0/octostar/models/post_object_with_id_json_body.py +43 -0
  211. octostar-python-client-1.0.0/octostar/models/post_object_with_id_response_401.py +57 -0
  212. octostar-python-client-1.0.0/octostar/models/progress_request.py +57 -0
  213. octostar-python-client-1.0.0/octostar/models/publish_notification_response_401.py +57 -0
  214. octostar-python-client-1.0.0/octostar/models/pull_events_from_stream_response_401.py +57 -0
  215. octostar-python-client-1.0.0/octostar/models/push_event_to_stream_response_401.py +57 -0
  216. octostar-python-client-1.0.0/octostar/models/query_json_body.py +58 -0
  217. octostar-python-client-1.0.0/octostar/models/query_response_400.py +65 -0
  218. octostar-python-client-1.0.0/octostar/models/query_response_401.py +57 -0
  219. octostar-python-client-1.0.0/octostar/models/rebuild_local_data_response_200.py +65 -0
  220. octostar-python-client-1.0.0/octostar/models/rebuild_local_data_response_400.py +65 -0
  221. octostar-python-client-1.0.0/octostar/models/rebuild_local_data_response_401.py +57 -0
  222. octostar-python-client-1.0.0/octostar/models/redo_concept_response_400.py +65 -0
  223. octostar-python-client-1.0.0/octostar/models/redo_concept_response_401.py +57 -0
  224. octostar-python-client-1.0.0/octostar/models/redo_mappings_response_200.py +65 -0
  225. octostar-python-client-1.0.0/octostar/models/redo_mappings_response_400.py +65 -0
  226. octostar-python-client-1.0.0/octostar/models/redo_mappings_response_401.py +57 -0
  227. octostar-python-client-1.0.0/octostar/models/set_job_progress_response_401.py +57 -0
  228. octostar-python-client-1.0.0/octostar/models/string_to_value_label_map.py +79 -0
  229. octostar-python-client-1.0.0/octostar/models/string_to_value_label_map_data.py +61 -0
  230. octostar-python-client-1.0.0/octostar/models/string_to_value_label_map_data_additional_property.py +64 -0
  231. octostar-python-client-1.0.0/octostar/models/subscribe_json_body_item.py +65 -0
  232. octostar-python-client-1.0.0/octostar/models/subscribe_response_401.py +57 -0
  233. octostar-python-client-1.0.0/octostar/models/successful_get_tags.py +82 -0
  234. octostar-python-client-1.0.0/octostar/models/successful_insertion.py +81 -0
  235. octostar-python-client-1.0.0/octostar/models/tag_entities_response_401.py +57 -0
  236. octostar-python-client-1.0.0/octostar/models/toast_level.py +11 -0
  237. octostar-python-client-1.0.0/octostar/models/toast_response_401.py +57 -0
  238. octostar-python-client-1.0.0/octostar/models/unsubscribe_json_body_item.py +65 -0
  239. octostar-python-client-1.0.0/octostar/models/unsubscribe_response_401.py +57 -0
  240. octostar-python-client-1.0.0/octostar/models/upsert_entities_response_401.py +57 -0
  241. octostar-python-client-1.0.0/octostar/models/upsert_entity.py +92 -0
  242. octostar-python-client-1.0.0/octostar/models/upsert_entity_base.py +249 -0
  243. octostar-python-client-1.0.0/octostar/models/upsert_entity_relationships_item.py +87 -0
  244. octostar-python-client-1.0.0/octostar/models/watcher_intent.py +198 -0
  245. octostar-python-client-1.0.0/octostar/models/watcher_job.py +207 -0
  246. octostar-python-client-1.0.0/octostar/models/watcher_job_params.py +64 -0
  247. octostar-python-client-1.0.0/octostar/models/write_secret_json_body.py +98 -0
  248. octostar-python-client-1.0.0/octostar/models/write_secret_json_body_data_item.py +65 -0
  249. octostar-python-client-1.0.0/octostar/models/write_secret_response_200.py +78 -0
  250. octostar-python-client-1.0.0/octostar/models/write_secret_response_200_message.py +114 -0
  251. octostar-python-client-1.0.0/octostar/models/write_secret_response_200_message_annotations.py +43 -0
  252. octostar-python-client-1.0.0/octostar/py.typed +1 -0
  253. octostar-python-client-1.0.0/octostar/types.py +44 -0
  254. octostar-python-client-1.0.0/octostar/utils/__init__.py +0 -0
  255. octostar-python-client-1.0.0/octostar/utils/jobs/__init__.py +0 -0
  256. octostar-python-client-1.0.0/octostar/utils/jobs/apps/__init__.py +0 -0
  257. octostar-python-client-1.0.0/octostar/utils/jobs/apps/get_app_by_title.py +72 -0
  258. octostar-python-client-1.0.0/octostar/utils/jobs/apps/get_app_secret.py +41 -0
  259. octostar-python-client-1.0.0/octostar/utils/jobs/delete_job.py +50 -0
  260. octostar-python-client-1.0.0/octostar/utils/jobs/execute_new_job.py +79 -0
  261. octostar-python-client-1.0.0/octostar/utils/jobs/get_job_logs.py +94 -0
  262. octostar-python-client-1.0.0/octostar/utils/jobs/get_job_progress.py +59 -0
  263. octostar-python-client-1.0.0/octostar/utils/jobs/get_job_url.py +55 -0
  264. octostar-python-client-1.0.0/octostar/utils/jobs/list_jobs.py +54 -0
  265. octostar-python-client-1.0.0/octostar/utils/jobs/list_jobs_children.py +61 -0
  266. octostar-python-client-1.0.0/octostar/utils/jobs/set_job_progress.py +62 -0
  267. octostar-python-client-1.0.0/octostar/utils/meta/__init__.py +0 -0
  268. octostar-python-client-1.0.0/octostar/utils/meta/get_whoami.py +22 -0
  269. octostar-python-client-1.0.0/octostar/utils/nifi.py +168 -0
  270. octostar-python-client-1.0.0/octostar/utils/notifications/__init__.py +0 -0
  271. octostar-python-client-1.0.0/octostar/utils/notifications/delete_stream.py +51 -0
  272. octostar-python-client-1.0.0/octostar/utils/notifications/get_my_subscriptions.py +46 -0
  273. octostar-python-client-1.0.0/octostar/utils/notifications/pull_event_from_stream.py +65 -0
  274. octostar-python-client-1.0.0/octostar/utils/notifications/pull_events_from_stream.py +58 -0
  275. octostar-python-client-1.0.0/octostar/utils/notifications/push_event_to_stream.py +88 -0
  276. octostar-python-client-1.0.0/octostar/utils/notifications/push_events_to_stream.py +97 -0
  277. octostar-python-client-1.0.0/octostar/utils/notifications/subscribe_to_workspace_object.py +1 -0
  278. octostar-python-client-1.0.0/octostar/utils/notifications/toast.py +73 -0
  279. octostar-python-client-1.0.0/octostar/utils/notifications/unsubscribe_to_workspace_object.py +1 -0
  280. octostar-python-client-1.0.0/octostar/utils/ontology/__init__.py +0 -0
  281. octostar-python-client-1.0.0/octostar/utils/ontology/fetch_ontology_data.py +60 -0
  282. octostar-python-client-1.0.0/octostar/utils/ontology/get_ontologies.py +52 -0
  283. octostar-python-client-1.0.0/octostar/utils/ontology/query_ontology.py +69 -0
  284. octostar-python-client-1.0.0/octostar/utils/watchers/__init__.py +0 -0
  285. octostar-python-client-1.0.0/octostar/utils/watchers/process.py +107 -0
  286. octostar-python-client-1.0.0/octostar/utils/watchers/save_new_latest_timestamp.py +85 -0
  287. octostar-python-client-1.0.0/octostar/utils/workspace/__init__.py +0 -0
  288. octostar-python-client-1.0.0/octostar/utils/workspace/delete_entities.py +87 -0
  289. octostar-python-client-1.0.0/octostar/utils/workspace/delete_entity.py +81 -0
  290. octostar-python-client-1.0.0/octostar/utils/workspace/delete_relationship.py +80 -0
  291. octostar-python-client-1.0.0/octostar/utils/workspace/delete_relationships.py +85 -0
  292. octostar-python-client-1.0.0/octostar/utils/workspace/get_filepath_from_item.py +63 -0
  293. octostar-python-client-1.0.0/octostar/utils/workspace/get_filepaths_from_items.py +78 -0
  294. octostar-python-client-1.0.0/octostar/utils/workspace/get_files_tree.py +95 -0
  295. octostar-python-client-1.0.0/octostar/utils/workspace/get_item_from_filepath.py +78 -0
  296. octostar-python-client-1.0.0/octostar/utils/workspace/get_items_from_filepaths.py +80 -0
  297. octostar-python-client-1.0.0/octostar/utils/workspace/permissions/PermissionLevel.py +7 -0
  298. octostar-python-client-1.0.0/octostar/utils/workspace/permissions/__init__.py +1 -0
  299. octostar-python-client-1.0.0/octostar/utils/workspace/permissions/get_permissions.py +70 -0
  300. octostar-python-client-1.0.0/octostar/utils/workspace/read_file.py +83 -0
  301. octostar-python-client-1.0.0/octostar/utils/workspace/tags/__init__.py +0 -0
  302. octostar-python-client-1.0.0/octostar/utils/workspace/tags/delete_tag_from_entities.py +58 -0
  303. octostar-python-client-1.0.0/octostar/utils/workspace/tags/tag_entities.py +85 -0
  304. octostar-python-client-1.0.0/octostar/utils/workspace/upsert_entities.py +81 -0
  305. octostar-python-client-1.0.0/octostar/utils/workspace/upsert_entity.py +66 -0
  306. octostar-python-client-1.0.0/octostar/utils/workspace/upsert_relationship.py +106 -0
  307. octostar-python-client-1.0.0/octostar/utils/workspace/upsert_relationships.py +168 -0
  308. octostar-python-client-1.0.0/octostar/utils/workspace/write_file.py +133 -0
  309. octostar-python-client-1.0.0/octostar_python_client.egg-info/PKG-INFO +96 -0
  310. octostar-python-client-1.0.0/octostar_python_client.egg-info/SOURCES.txt +259 -0
  311. octostar-python-client-1.0.0/octostar_python_client.egg-info/dependency_links.txt +1 -0
  312. octostar-python-client-1.0.0/octostar_python_client.egg-info/requires.txt +3 -0
  313. octostar-python-client-1.0.0/octostar_python_client.egg-info/top_level.txt +1 -0
  314. octostar-python-client-1.0.0/pyproject.toml +16 -0
  315. octostar-python-client-1.0.0/setup.cfg +4 -0
  316. octostar-python-client-1.0.0/setup.py +18 -0
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.1
2
+ Name: octostar-python-client
3
+ Version: 1.0.0
4
+ Summary: A client library for accessing Octostar API
5
+ Requires-Python: >=3.8, <4
6
+ Description-Content-Type: text/markdown
7
+
8
+ # octostar-python-client
9
+ A client library for accessing Octostar API
10
+
11
+ ## Usage
12
+ First, create a client:
13
+
14
+ ```python
15
+ from octostar import Client
16
+
17
+ client = Client(base_url="https://api.example.com")
18
+ ```
19
+
20
+ If the endpoints you're going to hit require authentication, use `AuthenticatedClient` instead:
21
+
22
+ ```python
23
+ from octostar import AuthenticatedClient
24
+
25
+ client = AuthenticatedClient(base_url="https://api.example.com", token="SuperSecretToken")
26
+ ```
27
+
28
+ Now call your endpoint and use your models:
29
+
30
+ ```python
31
+ from octostar.models import MyDataModel
32
+ from octostar.api.my_tag import get_my_data_model
33
+ from octostar.types import Response
34
+
35
+ my_data: MyDataModel = get_my_data_model.sync(client=client)
36
+ # or if you need more info (e.g. status_code)
37
+ response: Response[MyDataModel] = get_my_data_model.sync_detailed(client=client)
38
+ ```
39
+
40
+ Or do the same thing with an async version:
41
+
42
+ ```python
43
+ from octostar.models import MyDataModel
44
+ from octostar.api.my_tag import get_my_data_model
45
+ from octostar.types import Response
46
+
47
+ my_data: MyDataModel = await get_my_data_model.asyncio(client=client)
48
+ response: Response[MyDataModel] = await get_my_data_model.asyncio_detailed(client=client)
49
+ ```
50
+
51
+ By default, when you're calling an HTTPS API it will attempt to verify that SSL is working correctly. Using certificate verification is highly recommended most of the time, but sometimes you may need to authenticate to a server (especially an internal server) using a custom certificate bundle.
52
+
53
+ ```python
54
+ client = AuthenticatedClient(
55
+ base_url="https://internal_api.example.com",
56
+ token="SuperSecretToken",
57
+ verify_ssl="/path/to/certificate_bundle.pem",
58
+ )
59
+ ```
60
+
61
+ You can also disable certificate validation altogether, but beware that **this is a security risk**.
62
+
63
+ ```python
64
+ client = AuthenticatedClient(
65
+ base_url="https://internal_api.example.com",
66
+ token="SuperSecretToken",
67
+ verify_ssl=False
68
+ )
69
+ ```
70
+
71
+ There are more settings on the generated `Client` class which let you control more runtime behavior, check out the docstring on that class for more info.
72
+
73
+ Things to know:
74
+ 1. Every path/method combo becomes a Python module with four functions:
75
+ 1. `sync`: Blocking request that returns parsed data (if successful) or `None`
76
+ 1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful.
77
+ 1. `asyncio`: Like `sync` but async instead of blocking
78
+ 1. `asyncio_detailed`: Like `sync_detailed` but async instead of blocking
79
+
80
+ 1. All path/query params, and bodies become method arguments.
81
+ 1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
82
+ 1. Any endpoint which did not have a tag will be in `octostar.api.default`
83
+
84
+ ## Building / publishing this Client
85
+ This project uses [Poetry](https://python-poetry.org/) to manage dependencies and packaging. Here are the basics:
86
+ 1. Update the metadata in pyproject.toml (e.g. authors, version)
87
+ 1. If you're using a private repository, configure it with Poetry
88
+ 1. `poetry config repositories.<your-repository-name> <url-to-your-repository>`
89
+ 1. `poetry config http-basic.<your-repository-name> <username> <password>`
90
+ 1. Publish the client with `poetry publish --build -r <your-repository-name>` or, if for public PyPI, just `poetry publish --build`
91
+
92
+ If you want to install this client into another project without publishing it (e.g. for development) then:
93
+ 1. If that project **is using Poetry**, you can simply do `poetry add <path-to-this-client>` from that project
94
+ 1. If that project is not using Poetry:
95
+ 1. Build a wheel with `poetry build -f wheel`
96
+ 1. Install that wheel from the other project `pip install <path-to-wheel>`
@@ -0,0 +1,89 @@
1
+ # octostar-python-client
2
+ A client library for accessing Octostar API
3
+
4
+ ## Usage
5
+ First, create a client:
6
+
7
+ ```python
8
+ from octostar import Client
9
+
10
+ client = Client(base_url="https://api.example.com")
11
+ ```
12
+
13
+ If the endpoints you're going to hit require authentication, use `AuthenticatedClient` instead:
14
+
15
+ ```python
16
+ from octostar import AuthenticatedClient
17
+
18
+ client = AuthenticatedClient(base_url="https://api.example.com", token="SuperSecretToken")
19
+ ```
20
+
21
+ Now call your endpoint and use your models:
22
+
23
+ ```python
24
+ from octostar.models import MyDataModel
25
+ from octostar.api.my_tag import get_my_data_model
26
+ from octostar.types import Response
27
+
28
+ my_data: MyDataModel = get_my_data_model.sync(client=client)
29
+ # or if you need more info (e.g. status_code)
30
+ response: Response[MyDataModel] = get_my_data_model.sync_detailed(client=client)
31
+ ```
32
+
33
+ Or do the same thing with an async version:
34
+
35
+ ```python
36
+ from octostar.models import MyDataModel
37
+ from octostar.api.my_tag import get_my_data_model
38
+ from octostar.types import Response
39
+
40
+ my_data: MyDataModel = await get_my_data_model.asyncio(client=client)
41
+ response: Response[MyDataModel] = await get_my_data_model.asyncio_detailed(client=client)
42
+ ```
43
+
44
+ By default, when you're calling an HTTPS API it will attempt to verify that SSL is working correctly. Using certificate verification is highly recommended most of the time, but sometimes you may need to authenticate to a server (especially an internal server) using a custom certificate bundle.
45
+
46
+ ```python
47
+ client = AuthenticatedClient(
48
+ base_url="https://internal_api.example.com",
49
+ token="SuperSecretToken",
50
+ verify_ssl="/path/to/certificate_bundle.pem",
51
+ )
52
+ ```
53
+
54
+ You can also disable certificate validation altogether, but beware that **this is a security risk**.
55
+
56
+ ```python
57
+ client = AuthenticatedClient(
58
+ base_url="https://internal_api.example.com",
59
+ token="SuperSecretToken",
60
+ verify_ssl=False
61
+ )
62
+ ```
63
+
64
+ There are more settings on the generated `Client` class which let you control more runtime behavior, check out the docstring on that class for more info.
65
+
66
+ Things to know:
67
+ 1. Every path/method combo becomes a Python module with four functions:
68
+ 1. `sync`: Blocking request that returns parsed data (if successful) or `None`
69
+ 1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful.
70
+ 1. `asyncio`: Like `sync` but async instead of blocking
71
+ 1. `asyncio_detailed`: Like `sync_detailed` but async instead of blocking
72
+
73
+ 1. All path/query params, and bodies become method arguments.
74
+ 1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
75
+ 1. Any endpoint which did not have a tag will be in `octostar.api.default`
76
+
77
+ ## Building / publishing this Client
78
+ This project uses [Poetry](https://python-poetry.org/) to manage dependencies and packaging. Here are the basics:
79
+ 1. Update the metadata in pyproject.toml (e.g. authors, version)
80
+ 1. If you're using a private repository, configure it with Poetry
81
+ 1. `poetry config repositories.<your-repository-name> <url-to-your-repository>`
82
+ 1. `poetry config http-basic.<your-repository-name> <username> <password>`
83
+ 1. Publish the client with `poetry publish --build -r <your-repository-name>` or, if for public PyPI, just `poetry publish --build`
84
+
85
+ If you want to install this client into another project without publishing it (e.g. for development) then:
86
+ 1. If that project **is using Poetry**, you can simply do `poetry add <path-to-this-client>` from that project
87
+ 1. If that project is not using Poetry:
88
+ 1. Build a wheel with `poetry build -f wheel`
89
+ 1. Install that wheel from the other project `pip install <path-to-wheel>`
@@ -0,0 +1,7 @@
1
+ """ A client library for accessing Octostar API """
2
+ from .client import AuthenticatedClient, Client
3
+
4
+ __all__ = (
5
+ "AuthenticatedClient",
6
+ "Client",
7
+ )
@@ -0,0 +1 @@
1
+ """ Contains methods for accessing the API """
@@ -0,0 +1,265 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import Client, get_default_client
8
+ from ...models.post_api_octostar_workspace_data_api_zip_import_multipart_data import (
9
+ PostApiOctostarWorkspaceDataApiZipImportMultipartData,
10
+ )
11
+ from ...models.post_api_octostar_workspace_data_api_zip_import_response_200 import (
12
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
13
+ )
14
+ from ...models.post_api_octostar_workspace_data_api_zip_import_response_400 import (
15
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
16
+ )
17
+ from ...models.post_api_octostar_workspace_data_api_zip_import_response_403 import (
18
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
19
+ )
20
+ from ...models.post_api_octostar_workspace_data_api_zip_import_response_500 import (
21
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
22
+ )
23
+ from ...types import Response
24
+
25
+
26
+ def _get_kwargs(
27
+ *,
28
+ client: Client = None,
29
+ multipart_data: PostApiOctostarWorkspaceDataApiZipImportMultipartData,
30
+ ) -> Dict[str, Any]:
31
+ if not client:
32
+ client = get_default_client()
33
+ url = "{}/api/octostar/workspace_data_api/zip_import".format(client.base_url)
34
+
35
+ headers: Dict[str, str] = client.get_headers()
36
+ cookies: Dict[str, Any] = client.get_cookies()
37
+
38
+ multipart_multipart_data = multipart_data.to_multipart()
39
+
40
+ return {
41
+ "method": "post",
42
+ "url": url,
43
+ "headers": headers,
44
+ "cookies": cookies,
45
+ "timeout": client.get_timeout(),
46
+ "follow_redirects": client.follow_redirects,
47
+ "files": multipart_multipart_data,
48
+ }
49
+
50
+
51
+ def _parse_response(
52
+ *, client: Client = None, response: httpx.Response
53
+ ) -> Optional[
54
+ Union[
55
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
56
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
57
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
58
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
59
+ ]
60
+ ]:
61
+ if not client:
62
+ client = get_default_client()
63
+ if response.status_code == HTTPStatus.OK:
64
+ response_200 = PostApiOctostarWorkspaceDataApiZipImportResponse200.from_dict(response.json())
65
+
66
+ return response_200
67
+ if response.status_code == HTTPStatus.BAD_REQUEST:
68
+ response_400 = PostApiOctostarWorkspaceDataApiZipImportResponse400.from_dict(response.json())
69
+
70
+ return response_400
71
+ if response.status_code == HTTPStatus.FORBIDDEN:
72
+ response_403 = PostApiOctostarWorkspaceDataApiZipImportResponse403.from_dict(response.json())
73
+
74
+ return response_403
75
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
76
+ response_500 = PostApiOctostarWorkspaceDataApiZipImportResponse500.from_dict(response.json())
77
+
78
+ return response_500
79
+ if client.raise_on_unexpected_status:
80
+ raise errors.UnexpectedStatus(response.status_code, response.content)
81
+ else:
82
+ return None
83
+
84
+
85
+ def _build_response(
86
+ *, client: Client = None, response: httpx.Response
87
+ ) -> Response[
88
+ Union[
89
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
90
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
91
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
92
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
93
+ ]
94
+ ]:
95
+ if not client:
96
+ client = get_default_client()
97
+ return Response(
98
+ status_code=HTTPStatus(response.status_code),
99
+ content=response.content,
100
+ headers=response.headers,
101
+ parsed=_parse_response(client=client, response=response),
102
+ )
103
+
104
+
105
+ def sync_detailed(
106
+ *,
107
+ client: Client = None,
108
+ multipart_data: PostApiOctostarWorkspaceDataApiZipImportMultipartData,
109
+ ) -> Response[
110
+ Union[
111
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
112
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
113
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
114
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
115
+ ]
116
+ ]:
117
+ """Uploads a zip file for extraction.
118
+
119
+ Allows clients to upload a zip file containing entities for processing, with optional parameters to
120
+ specify the target, whether to include content, include dashboards, and whether to overwrite
121
+ existing data.
122
+
123
+ Args:
124
+ multipart_data (PostApiOctostarWorkspaceDataApiZipImportMultipartData):
125
+
126
+ Raises:
127
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
128
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
129
+
130
+ Returns:
131
+ Response[Union[PostApiOctostarWorkspaceDataApiZipImportResponse200, PostApiOctostarWorkspaceDataApiZipImportResponse400, PostApiOctostarWorkspaceDataApiZipImportResponse403, PostApiOctostarWorkspaceDataApiZipImportResponse500]]
132
+ """
133
+
134
+ if not client:
135
+ client = get_default_client()
136
+ kwargs = _get_kwargs(
137
+ client=client,
138
+ multipart_data=multipart_data,
139
+ )
140
+
141
+ response = httpx.request(
142
+ verify=client.verify_ssl,
143
+ **kwargs,
144
+ )
145
+ if response.is_error:
146
+ print(f"{str(response.status_code)} Error: {response.text} for request", str(kwargs))
147
+ return _build_response(client=client, response=response)
148
+
149
+
150
+ def sync(
151
+ *,
152
+ client: Client = None,
153
+ multipart_data: PostApiOctostarWorkspaceDataApiZipImportMultipartData,
154
+ ) -> Optional[
155
+ Union[
156
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
157
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
158
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
159
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
160
+ ]
161
+ ]:
162
+ """Uploads a zip file for extraction.
163
+
164
+ Allows clients to upload a zip file containing entities for processing, with optional parameters to
165
+ specify the target, whether to include content, include dashboards, and whether to overwrite
166
+ existing data.
167
+
168
+ Args:
169
+ multipart_data (PostApiOctostarWorkspaceDataApiZipImportMultipartData):
170
+
171
+ Raises:
172
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
173
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
174
+
175
+ Returns:
176
+ Union[PostApiOctostarWorkspaceDataApiZipImportResponse200, PostApiOctostarWorkspaceDataApiZipImportResponse400, PostApiOctostarWorkspaceDataApiZipImportResponse403, PostApiOctostarWorkspaceDataApiZipImportResponse500]
177
+ """
178
+
179
+ if not client:
180
+ client = get_default_client()
181
+ return sync_detailed(
182
+ client=client,
183
+ multipart_data=multipart_data,
184
+ ).parsed
185
+
186
+
187
+ async def asyncio_detailed(
188
+ *,
189
+ client: Client = None,
190
+ multipart_data: PostApiOctostarWorkspaceDataApiZipImportMultipartData,
191
+ ) -> Response[
192
+ Union[
193
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
194
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
195
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
196
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
197
+ ]
198
+ ]:
199
+ """Uploads a zip file for extraction.
200
+
201
+ Allows clients to upload a zip file containing entities for processing, with optional parameters to
202
+ specify the target, whether to include content, include dashboards, and whether to overwrite
203
+ existing data.
204
+
205
+ Args:
206
+ multipart_data (PostApiOctostarWorkspaceDataApiZipImportMultipartData):
207
+
208
+ Raises:
209
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
210
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
211
+
212
+ Returns:
213
+ Response[Union[PostApiOctostarWorkspaceDataApiZipImportResponse200, PostApiOctostarWorkspaceDataApiZipImportResponse400, PostApiOctostarWorkspaceDataApiZipImportResponse403, PostApiOctostarWorkspaceDataApiZipImportResponse500]]
214
+ """
215
+
216
+ if not client:
217
+ client = get_default_client()
218
+ kwargs = _get_kwargs(
219
+ client=client,
220
+ multipart_data=multipart_data,
221
+ )
222
+
223
+ async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
224
+ response = await _client.request(**kwargs)
225
+
226
+ return _build_response(client=client, response=response)
227
+
228
+
229
+ async def asyncio(
230
+ *,
231
+ client: Client = None,
232
+ multipart_data: PostApiOctostarWorkspaceDataApiZipImportMultipartData,
233
+ ) -> Optional[
234
+ Union[
235
+ PostApiOctostarWorkspaceDataApiZipImportResponse200,
236
+ PostApiOctostarWorkspaceDataApiZipImportResponse400,
237
+ PostApiOctostarWorkspaceDataApiZipImportResponse403,
238
+ PostApiOctostarWorkspaceDataApiZipImportResponse500,
239
+ ]
240
+ ]:
241
+ """Uploads a zip file for extraction.
242
+
243
+ Allows clients to upload a zip file containing entities for processing, with optional parameters to
244
+ specify the target, whether to include content, include dashboards, and whether to overwrite
245
+ existing data.
246
+
247
+ Args:
248
+ multipart_data (PostApiOctostarWorkspaceDataApiZipImportMultipartData):
249
+
250
+ Raises:
251
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
252
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
253
+
254
+ Returns:
255
+ Union[PostApiOctostarWorkspaceDataApiZipImportResponse200, PostApiOctostarWorkspaceDataApiZipImportResponse400, PostApiOctostarWorkspaceDataApiZipImportResponse403, PostApiOctostarWorkspaceDataApiZipImportResponse500]
256
+ """
257
+
258
+ if not client:
259
+ client = get_default_client()
260
+ return (
261
+ await asyncio_detailed(
262
+ client=client,
263
+ multipart_data=multipart_data,
264
+ )
265
+ ).parsed
@@ -0,0 +1,193 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import Client, get_default_client
8
+ from ...models.acknowledgement import Acknowledgement
9
+ from ...models.delete_job_response_401 import DeleteJobResponse401
10
+ from ...models.internal_server_error import InternalServerError
11
+ from ...models.not_found_error import NotFoundError
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ job_name: str,
17
+ *,
18
+ client: Client = None,
19
+ ) -> Dict[str, Any]:
20
+ if not client:
21
+ client = get_default_client()
22
+ url = "{}/api/octostar/jobs/delete/{job_name}".format(client.base_url, job_name=job_name)
23
+
24
+ headers: Dict[str, str] = client.get_headers()
25
+ cookies: Dict[str, Any] = client.get_cookies()
26
+
27
+ return {
28
+ "method": "delete",
29
+ "url": url,
30
+ "headers": headers,
31
+ "cookies": cookies,
32
+ "timeout": client.get_timeout(),
33
+ "follow_redirects": client.follow_redirects,
34
+ }
35
+
36
+
37
+ def _parse_response(
38
+ *, client: Client = None, response: httpx.Response
39
+ ) -> Optional[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
40
+ if not client:
41
+ client = get_default_client()
42
+ if response.status_code == HTTPStatus.OK:
43
+ response_200 = Acknowledgement.from_dict(response.json())
44
+
45
+ return response_200
46
+ if response.status_code == HTTPStatus.UNAUTHORIZED:
47
+ response_401 = DeleteJobResponse401.from_dict(response.json())
48
+
49
+ return response_401
50
+ if response.status_code == HTTPStatus.NOT_FOUND:
51
+ response_404 = NotFoundError.from_dict(response.json())
52
+
53
+ return response_404
54
+ if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR:
55
+ response_500 = InternalServerError.from_dict(response.json())
56
+
57
+ return response_500
58
+ if client.raise_on_unexpected_status:
59
+ raise errors.UnexpectedStatus(response.status_code, response.content)
60
+ else:
61
+ return None
62
+
63
+
64
+ def _build_response(
65
+ *, client: Client = None, response: httpx.Response
66
+ ) -> Response[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
67
+ if not client:
68
+ client = get_default_client()
69
+ return Response(
70
+ status_code=HTTPStatus(response.status_code),
71
+ content=response.content,
72
+ headers=response.headers,
73
+ parsed=_parse_response(client=client, response=response),
74
+ )
75
+
76
+
77
+ def sync_detailed(
78
+ job_name: str,
79
+ *,
80
+ client: Client = None,
81
+ ) -> Response[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
82
+ """Delete a specific job
83
+
84
+ Args:
85
+ job_name (str):
86
+
87
+ Raises:
88
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
89
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
90
+
91
+ Returns:
92
+ Response[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]
93
+ """
94
+
95
+ if not client:
96
+ client = get_default_client()
97
+ kwargs = _get_kwargs(
98
+ job_name=job_name,
99
+ client=client,
100
+ )
101
+
102
+ response = httpx.request(
103
+ verify=client.verify_ssl,
104
+ **kwargs,
105
+ )
106
+ if response.is_error:
107
+ print(f"{str(response.status_code)} Error: {response.text} for request", str(kwargs))
108
+ return _build_response(client=client, response=response)
109
+
110
+
111
+ def sync(
112
+ job_name: str,
113
+ *,
114
+ client: Client = None,
115
+ ) -> Optional[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
116
+ """Delete a specific job
117
+
118
+ Args:
119
+ job_name (str):
120
+
121
+ Raises:
122
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
123
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
124
+
125
+ Returns:
126
+ Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]
127
+ """
128
+
129
+ if not client:
130
+ client = get_default_client()
131
+ return sync_detailed(
132
+ job_name=job_name,
133
+ client=client,
134
+ ).parsed
135
+
136
+
137
+ async def asyncio_detailed(
138
+ job_name: str,
139
+ *,
140
+ client: Client = None,
141
+ ) -> Response[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
142
+ """Delete a specific job
143
+
144
+ Args:
145
+ job_name (str):
146
+
147
+ Raises:
148
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
149
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
150
+
151
+ Returns:
152
+ Response[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]
153
+ """
154
+
155
+ if not client:
156
+ client = get_default_client()
157
+ kwargs = _get_kwargs(
158
+ job_name=job_name,
159
+ client=client,
160
+ )
161
+
162
+ async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
163
+ response = await _client.request(**kwargs)
164
+
165
+ return _build_response(client=client, response=response)
166
+
167
+
168
+ async def asyncio(
169
+ job_name: str,
170
+ *,
171
+ client: Client = None,
172
+ ) -> Optional[Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]]:
173
+ """Delete a specific job
174
+
175
+ Args:
176
+ job_name (str):
177
+
178
+ Raises:
179
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
180
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
181
+
182
+ Returns:
183
+ Union[Acknowledgement, DeleteJobResponse401, InternalServerError, NotFoundError]
184
+ """
185
+
186
+ if not client:
187
+ client = get_default_client()
188
+ return (
189
+ await asyncio_detailed(
190
+ job_name=job_name,
191
+ client=client,
192
+ )
193
+ ).parsed