cirro-api-client 0.0.2__tar.gz → 0.0.4__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 (280) hide show
  1. cirro_api_client-0.0.4/PKG-INFO +136 -0
  2. cirro_api_client-0.0.4/README.md +113 -0
  3. cirro_api_client-0.0.4/cirro_api_client/__init__.py +4 -0
  4. cirro_api_client-0.0.4/cirro_api_client/cirro_auth.py +20 -0
  5. cirro_api_client-0.0.4/cirro_api_client/cirro_client.py +59 -0
  6. cirro_api_client-0.0.4/cirro_api_client/v1/__init__.py +7 -0
  7. cirro_api_client-0.0.4/cirro_api_client/v1/api/__init__.py +1 -0
  8. cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/create_billing_account.py +168 -0
  9. cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/delete_billing_account.py +97 -0
  10. cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/generate_billing_report.py +81 -0
  11. cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/get_billing_accounts.py +171 -0
  12. cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/update_billing_account.py +114 -0
  13. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/__init__.py +0 -0
  14. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/create_dashboard.py +181 -0
  15. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/delete_dashboard.py +167 -0
  16. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/get_dashboard.py +167 -0
  17. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/get_dashboards.py +163 -0
  18. cirro_api_client-0.0.4/cirro_api_client/v1/api/dashboards/update_dashboard.py +190 -0
  19. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/__init__.py +0 -0
  20. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/delete_dataset.py +104 -0
  21. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/get_dataset.py +167 -0
  22. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/get_dataset_manifest.py +171 -0
  23. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/get_datasets.py +194 -0
  24. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/import_public_dataset.py +181 -0
  25. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/ingest_samples.py +104 -0
  26. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/regenerate_manifest.py +104 -0
  27. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/rerun_transform.py +104 -0
  28. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/update_dataset.py +190 -0
  29. cirro_api_client-0.0.4/cirro_api_client/v1/api/datasets/upload_dataset.py +181 -0
  30. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/__init__.py +0 -0
  31. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/get_execution_logs.py +192 -0
  32. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/get_project_summary.py +179 -0
  33. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/get_task_logs.py +205 -0
  34. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/get_tasks_for_execution.py +193 -0
  35. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/run_analysis.py +181 -0
  36. cirro_api_client-0.0.4/cirro_api_client/v1/api/execution/stop_analysis.py +171 -0
  37. cirro_api_client-0.0.4/cirro_api_client/v1/api/file/__init__.py +0 -0
  38. cirro_api_client-0.0.4/cirro_api_client/v1/api/file/generate_project_file_access_token.py +181 -0
  39. cirro_api_client-0.0.4/cirro_api_client/v1/api/file/generate_project_sftp_token.py +181 -0
  40. cirro_api_client-0.0.4/cirro_api_client/v1/api/metadata/__init__.py +0 -0
  41. cirro_api_client-0.0.4/cirro_api_client/v1/api/metadata/get_project_samples.py +194 -0
  42. cirro_api_client-0.0.4/cirro_api_client/v1/api/metadata/get_project_schema.py +146 -0
  43. cirro_api_client-0.0.4/cirro_api_client/v1/api/metadata/update_project_schema.py +110 -0
  44. cirro_api_client-0.0.4/cirro_api_client/v1/api/metadata/update_sample.py +190 -0
  45. cirro_api_client-0.0.4/cirro_api_client/v1/api/metrics/__init__.py +0 -0
  46. cirro_api_client-0.0.4/cirro_api_client/v1/api/metrics/get_all_metrics.py +139 -0
  47. cirro_api_client-0.0.4/cirro_api_client/v1/api/metrics/get_project_metrics.py +158 -0
  48. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/__init__.py +0 -0
  49. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/create_notebook_instance.py +181 -0
  50. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/delete_notebook_instance.py +104 -0
  51. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/generate_notebook_instance_url.py +171 -0
  52. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/get_notebook_instance_status.py +171 -0
  53. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/get_notebook_instances.py +163 -0
  54. cirro_api_client-0.0.4/cirro_api_client/v1/api/notebooks/stop_notebook_instance.py +104 -0
  55. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/__init__.py +0 -0
  56. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/archive_custom_process.py +97 -0
  57. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/create_custom_process.py +178 -0
  58. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/get_process.py +154 -0
  59. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/get_process_parameters.py +154 -0
  60. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/get_processes.py +171 -0
  61. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/sync_custom_process.py +158 -0
  62. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/update_custom_process.py +114 -0
  63. cirro_api_client-0.0.4/cirro_api_client/v1/api/processes/validate_file_requirements.py +181 -0
  64. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/__init__.py +0 -0
  65. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/create_project.py +168 -0
  66. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/get_project.py +154 -0
  67. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/get_project_users.py +163 -0
  68. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/get_projects.py +139 -0
  69. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/redeploy_project.py +97 -0
  70. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/set_user_project_role.py +114 -0
  71. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/update_project.py +177 -0
  72. cirro_api_client-0.0.4/cirro_api_client/v1/api/projects/update_project_tags.py +117 -0
  73. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/__init__.py +0 -0
  74. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/create_project_reference.py +177 -0
  75. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/delete_project_reference.py +97 -0
  76. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/get_reference_types.py +139 -0
  77. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/get_references.py +139 -0
  78. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/get_references_for_project.py +163 -0
  79. cirro_api_client-0.0.4/cirro_api_client/v1/api/references/refresh_project_references.py +97 -0
  80. cirro_api_client-0.0.4/cirro_api_client/v1/api/system/__init__.py +0 -0
  81. cirro_api_client-0.0.4/cirro_api_client/v1/api/system/get_service_connections.py +139 -0
  82. cirro_api_client-0.0.4/cirro_api_client/v1/api/system/info.py +126 -0
  83. cirro_api_client-0.0.4/cirro_api_client/v1/api/users/__init__.py +0 -0
  84. cirro_api_client-0.0.4/cirro_api_client/v1/api/users/get_user.py +154 -0
  85. cirro_api_client-0.0.4/cirro_api_client/v1/api/users/get_users.py +167 -0
  86. cirro_api_client-0.0.4/cirro_api_client/v1/api/users/invite_user.py +168 -0
  87. cirro_api_client-0.0.4/cirro_api_client/v1/api/users/update_user.py +177 -0
  88. cirro_api_client-0.0.4/cirro_api_client/v1/client.py +288 -0
  89. cirro_api_client-0.0.4/cirro_api_client/v1/errors.py +14 -0
  90. cirro_api_client-0.0.4/cirro_api_client/v1/models/__init__.py +181 -0
  91. cirro_api_client-0.0.4/cirro_api_client/v1/models/access_type.py +11 -0
  92. cirro_api_client-0.0.4/cirro_api_client/v1/models/allowed_data_type.py +88 -0
  93. cirro_api_client-0.0.4/cirro_api_client/v1/models/aws_credentials.py +95 -0
  94. cirro_api_client-0.0.4/cirro_api_client/v1/models/billing_account.py +147 -0
  95. cirro_api_client-0.0.4/cirro_api_client/v1/models/billing_account_request.py +123 -0
  96. cirro_api_client-0.0.4/cirro_api_client/v1/models/billing_method.py +10 -0
  97. cirro_api_client-0.0.4/cirro_api_client/v1/models/budget_period.py +10 -0
  98. cirro_api_client-0.0.4/cirro_api_client/v1/models/cloud_account.py +76 -0
  99. cirro_api_client-0.0.4/cirro_api_client/v1/models/contact.py +82 -0
  100. cirro_api_client-0.0.4/cirro_api_client/v1/models/create_notebook_instance_request.py +82 -0
  101. cirro_api_client-0.0.4/cirro_api_client/v1/models/create_reference_request.py +82 -0
  102. cirro_api_client-0.0.4/cirro_api_client/v1/models/create_response.py +66 -0
  103. cirro_api_client-0.0.4/cirro_api_client/v1/models/custom_pipeline_settings.py +163 -0
  104. cirro_api_client-0.0.4/cirro_api_client/v1/models/customer_type.py +10 -0
  105. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard.py +132 -0
  106. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard_dashboard_data.py +44 -0
  107. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard_info.py +44 -0
  108. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard_request.py +98 -0
  109. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard_request_dashboard_data.py +44 -0
  110. cirro_api_client-0.0.4/cirro_api_client/v1/models/dashboard_request_info.py +44 -0
  111. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset.py +156 -0
  112. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset_assets_manifest.py +104 -0
  113. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset_detail.py +192 -0
  114. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset_detail_info.py +44 -0
  115. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset_detail_params.py +44 -0
  116. cirro_api_client-0.0.4/cirro_api_client/v1/models/dataset_viz.py +85 -0
  117. cirro_api_client-0.0.4/cirro_api_client/v1/models/error_message.py +58 -0
  118. cirro_api_client-0.0.4/cirro_api_client/v1/models/executor.py +10 -0
  119. cirro_api_client-0.0.4/cirro_api_client/v1/models/file_access_request.py +101 -0
  120. cirro_api_client-0.0.4/cirro_api_client/v1/models/file_entry.py +89 -0
  121. cirro_api_client-0.0.4/cirro_api_client/v1/models/file_entry_metadata.py +49 -0
  122. cirro_api_client-0.0.4/cirro_api_client/v1/models/file_name_pattern.py +66 -0
  123. cirro_api_client-0.0.4/cirro_api_client/v1/models/file_requirements.py +88 -0
  124. cirro_api_client-0.0.4/cirro_api_client/v1/models/form_schema.py +89 -0
  125. cirro_api_client-0.0.4/cirro_api_client/v1/models/form_schema_form.py +44 -0
  126. cirro_api_client-0.0.4/cirro_api_client/v1/models/form_schema_ui.py +44 -0
  127. cirro_api_client-0.0.4/cirro_api_client/v1/models/generate_sftp_credentials_request.py +58 -0
  128. cirro_api_client-0.0.4/cirro_api_client/v1/models/get_execution_logs_response.py +72 -0
  129. cirro_api_client-0.0.4/cirro_api_client/v1/models/get_project_summary_response_200.py +66 -0
  130. cirro_api_client-0.0.4/cirro_api_client/v1/models/import_data_request.py +77 -0
  131. cirro_api_client-0.0.4/cirro_api_client/v1/models/invite_user_request.py +74 -0
  132. cirro_api_client-0.0.4/cirro_api_client/v1/models/invite_user_response.py +58 -0
  133. cirro_api_client-0.0.4/cirro_api_client/v1/models/log_entry.py +69 -0
  134. cirro_api_client-0.0.4/cirro_api_client/v1/models/metric_record.py +101 -0
  135. cirro_api_client-0.0.4/cirro_api_client/v1/models/metric_record_services.py +49 -0
  136. cirro_api_client-0.0.4/cirro_api_client/v1/models/notebook_instance.py +126 -0
  137. cirro_api_client-0.0.4/cirro_api_client/v1/models/notebook_instance_status_response.py +66 -0
  138. cirro_api_client-0.0.4/cirro_api_client/v1/models/open_notebook_instance_response.py +66 -0
  139. cirro_api_client-0.0.4/cirro_api_client/v1/models/paginated_response_dataset_list_dto.py +80 -0
  140. cirro_api_client-0.0.4/cirro_api_client/v1/models/paginated_response_sample_dto.py +80 -0
  141. cirro_api_client-0.0.4/cirro_api_client/v1/models/pipeline_code.py +85 -0
  142. cirro_api_client-0.0.4/cirro_api_client/v1/models/portal_error_response.py +96 -0
  143. cirro_api_client-0.0.4/cirro_api_client/v1/models/process.py +148 -0
  144. cirro_api_client-0.0.4/cirro_api_client/v1/models/process_detail.py +228 -0
  145. cirro_api_client-0.0.4/cirro_api_client/v1/models/project.py +114 -0
  146. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_detail.py +176 -0
  147. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_metrics.py +125 -0
  148. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_request.py +183 -0
  149. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_role.py +11 -0
  150. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_settings.py +244 -0
  151. cirro_api_client-0.0.4/cirro_api_client/v1/models/project_user.py +100 -0
  152. cirro_api_client-0.0.4/cirro_api_client/v1/models/reference.py +122 -0
  153. cirro_api_client-0.0.4/cirro_api_client/v1/models/reference_type.py +96 -0
  154. cirro_api_client-0.0.4/cirro_api_client/v1/models/reference_type_validation_item.py +44 -0
  155. cirro_api_client-0.0.4/cirro_api_client/v1/models/repository_type.py +11 -0
  156. cirro_api_client-0.0.4/cirro_api_client/v1/models/resources_info.py +84 -0
  157. cirro_api_client-0.0.4/cirro_api_client/v1/models/run_analysis_request.py +139 -0
  158. cirro_api_client-0.0.4/cirro_api_client/v1/models/run_analysis_request_params.py +44 -0
  159. cirro_api_client-0.0.4/cirro_api_client/v1/models/sample.py +106 -0
  160. cirro_api_client-0.0.4/cirro_api_client/v1/models/sample_metadata.py +44 -0
  161. cirro_api_client-0.0.4/cirro_api_client/v1/models/sample_request.py +72 -0
  162. cirro_api_client-0.0.4/cirro_api_client/v1/models/sample_request_metadata.py +44 -0
  163. cirro_api_client-0.0.4/cirro_api_client/v1/models/service_connection.py +66 -0
  164. cirro_api_client-0.0.4/cirro_api_client/v1/models/set_user_project_role_request.py +78 -0
  165. cirro_api_client-0.0.4/cirro_api_client/v1/models/sftp_credentials.py +84 -0
  166. cirro_api_client-0.0.4/cirro_api_client/v1/models/status.py +16 -0
  167. cirro_api_client-0.0.4/cirro_api_client/v1/models/stop_execution_response.py +71 -0
  168. cirro_api_client-0.0.4/cirro_api_client/v1/models/sync_status.py +9 -0
  169. cirro_api_client-0.0.4/cirro_api_client/v1/models/system_info_response.py +120 -0
  170. cirro_api_client-0.0.4/cirro_api_client/v1/models/tag.py +74 -0
  171. cirro_api_client-0.0.4/cirro_api_client/v1/models/task.py +129 -0
  172. cirro_api_client-0.0.4/cirro_api_client/v1/models/update_dataset_request.py +96 -0
  173. cirro_api_client-0.0.4/cirro_api_client/v1/models/update_user_request.py +96 -0
  174. cirro_api_client-0.0.4/cirro_api_client/v1/models/update_user_request_settings.py +44 -0
  175. cirro_api_client-0.0.4/cirro_api_client/v1/models/upload_dataset_create_response.py +74 -0
  176. cirro_api_client-0.0.4/cirro_api_client/v1/models/upload_dataset_request.py +85 -0
  177. cirro_api_client-0.0.4/cirro_api_client/v1/models/user.py +82 -0
  178. cirro_api_client-0.0.4/cirro_api_client/v1/models/validate_file_requirements_request.py +66 -0
  179. cirro_api_client-0.0.4/cirro_api_client/v1/py.typed +1 -0
  180. cirro_api_client-0.0.4/cirro_api_client/v1/types.py +44 -0
  181. cirro_api_client-0.0.4/pyproject.toml +28 -0
  182. cirro_api_client-0.0.2/PKG-INFO +0 -264
  183. cirro_api_client-0.0.2/README.md +0 -238
  184. cirro_api_client-0.0.2/cirro_api_client/__init__.py +0 -119
  185. cirro_api_client-0.0.2/cirro_api_client/api/__init__.py +0 -17
  186. cirro_api_client-0.0.2/cirro_api_client/api/billing_api.py +0 -736
  187. cirro_api_client-0.0.2/cirro_api_client/api/dashboards_api.py +0 -797
  188. cirro_api_client-0.0.2/cirro_api_client/api/datasets_api.py +0 -1555
  189. cirro_api_client-0.0.2/cirro_api_client/api/execution_api.py +0 -990
  190. cirro_api_client-0.0.2/cirro_api_client/api/file_api.py +0 -355
  191. cirro_api_client-0.0.2/cirro_api_client/api/metadata_api.py +0 -659
  192. cirro_api_client-0.0.2/cirro_api_client/api/metrics_api.py +0 -301
  193. cirro_api_client-0.0.2/cirro_api_client/api/notebooks_api.py +0 -915
  194. cirro_api_client-0.0.2/cirro_api_client/api/processes_api.py +0 -1182
  195. cirro_api_client-0.0.2/cirro_api_client/api/projects_api.py +0 -1182
  196. cirro_api_client-0.0.2/cirro_api_client/api/references_api.py +0 -849
  197. cirro_api_client-0.0.2/cirro_api_client/api/system_api.py +0 -287
  198. cirro_api_client-0.0.2/cirro_api_client/api/users_api.py +0 -622
  199. cirro_api_client-0.0.2/cirro_api_client/api_client.py +0 -738
  200. cirro_api_client-0.0.2/cirro_api_client/api_response.py +0 -21
  201. cirro_api_client-0.0.2/cirro_api_client/cirro_api_client.py +0 -39
  202. cirro_api_client-0.0.2/cirro_api_client/configuration.py +0 -322
  203. cirro_api_client-0.0.2/cirro_api_client/exceptions.py +0 -201
  204. cirro_api_client-0.0.2/cirro_api_client/models/__init__.py +0 -90
  205. cirro_api_client-0.0.2/cirro_api_client/models/access_type.py +0 -48
  206. cirro_api_client-0.0.2/cirro_api_client/models/allowed_data_type.py +0 -102
  207. cirro_api_client-0.0.2/cirro_api_client/models/aws_credentials.py +0 -98
  208. cirro_api_client-0.0.2/cirro_api_client/models/billing_account.py +0 -118
  209. cirro_api_client-0.0.2/cirro_api_client/models/billing_account_request.py +0 -113
  210. cirro_api_client-0.0.2/cirro_api_client/models/billing_method.py +0 -47
  211. cirro_api_client-0.0.2/cirro_api_client/models/budget_period.py +0 -47
  212. cirro_api_client-0.0.2/cirro_api_client/models/cloud_account.py +0 -115
  213. cirro_api_client-0.0.2/cirro_api_client/models/contact.py +0 -95
  214. cirro_api_client-0.0.2/cirro_api_client/models/create_notebook_instance_request.py +0 -104
  215. cirro_api_client-0.0.2/cirro_api_client/models/create_reference_request.py +0 -97
  216. cirro_api_client-0.0.2/cirro_api_client/models/create_response.py +0 -91
  217. cirro_api_client-0.0.2/cirro_api_client/models/custom_pipeline_settings.py +0 -124
  218. cirro_api_client-0.0.2/cirro_api_client/models/customer_type.py +0 -47
  219. cirro_api_client-0.0.2/cirro_api_client/models/dashboard.py +0 -106
  220. cirro_api_client-0.0.2/cirro_api_client/models/dashboard_request.py +0 -99
  221. cirro_api_client-0.0.2/cirro_api_client/models/dataset.py +0 -120
  222. cirro_api_client-0.0.2/cirro_api_client/models/dataset_assets_manifest.py +0 -110
  223. cirro_api_client-0.0.2/cirro_api_client/models/dataset_detail.py +0 -127
  224. cirro_api_client-0.0.2/cirro_api_client/models/dataset_viz.py +0 -96
  225. cirro_api_client-0.0.2/cirro_api_client/models/error_message.py +0 -89
  226. cirro_api_client-0.0.2/cirro_api_client/models/executor.py +0 -47
  227. cirro_api_client-0.0.2/cirro_api_client/models/file_access_request.py +0 -105
  228. cirro_api_client-0.0.2/cirro_api_client/models/file_entry.py +0 -94
  229. cirro_api_client-0.0.2/cirro_api_client/models/file_name_pattern.py +0 -92
  230. cirro_api_client-0.0.2/cirro_api_client/models/file_requirements.py +0 -102
  231. cirro_api_client-0.0.2/cirro_api_client/models/form_schema.py +0 -92
  232. cirro_api_client-0.0.2/cirro_api_client/models/generate_sftp_credentials_request.py +0 -91
  233. cirro_api_client-0.0.2/cirro_api_client/models/get_execution_logs_response.py +0 -97
  234. cirro_api_client-0.0.2/cirro_api_client/models/import_data_request.py +0 -95
  235. cirro_api_client-0.0.2/cirro_api_client/models/invite_user_request.py +0 -95
  236. cirro_api_client-0.0.2/cirro_api_client/models/invite_user_response.py +0 -89
  237. cirro_api_client-0.0.2/cirro_api_client/models/log_entry.py +0 -92
  238. cirro_api_client-0.0.2/cirro_api_client/models/metric_record.py +0 -94
  239. cirro_api_client-0.0.2/cirro_api_client/models/notebook_instance.py +0 -107
  240. cirro_api_client-0.0.2/cirro_api_client/models/notebook_instance_status_response.py +0 -92
  241. cirro_api_client-0.0.2/cirro_api_client/models/open_notebook_instance_response.py +0 -91
  242. cirro_api_client-0.0.2/cirro_api_client/models/paginated_response_dataset_list_dto.py +0 -100
  243. cirro_api_client-0.0.2/cirro_api_client/models/paginated_response_sample_dto.py +0 -100
  244. cirro_api_client-0.0.2/cirro_api_client/models/pipeline_code.py +0 -105
  245. cirro_api_client-0.0.2/cirro_api_client/models/portal_error_response.py +0 -104
  246. cirro_api_client-0.0.2/cirro_api_client/models/process.py +0 -109
  247. cirro_api_client-0.0.2/cirro_api_client/models/process_detail.py +0 -146
  248. cirro_api_client-0.0.2/cirro_api_client/models/process_detail_all_of_pipeline_code.py +0 -105
  249. cirro_api_client-0.0.2/cirro_api_client/models/project.py +0 -109
  250. cirro_api_client-0.0.2/cirro_api_client/models/project_detail.py +0 -133
  251. cirro_api_client-0.0.2/cirro_api_client/models/project_metrics.py +0 -109
  252. cirro_api_client-0.0.2/cirro_api_client/models/project_request.py +0 -137
  253. cirro_api_client-0.0.2/cirro_api_client/models/project_role.py +0 -48
  254. cirro_api_client-0.0.2/cirro_api_client/models/project_settings.py +0 -170
  255. cirro_api_client-0.0.2/cirro_api_client/models/project_user.py +0 -100
  256. cirro_api_client-0.0.2/cirro_api_client/models/reference.py +0 -110
  257. cirro_api_client-0.0.2/cirro_api_client/models/reference_type.py +0 -95
  258. cirro_api_client-0.0.2/cirro_api_client/models/repository_type.py +0 -48
  259. cirro_api_client-0.0.2/cirro_api_client/models/resources_info.py +0 -96
  260. cirro_api_client-0.0.2/cirro_api_client/models/run_analysis_request.py +0 -103
  261. cirro_api_client-0.0.2/cirro_api_client/models/sample.py +0 -100
  262. cirro_api_client-0.0.2/cirro_api_client/models/sample_request.py +0 -93
  263. cirro_api_client-0.0.2/cirro_api_client/models/service_connection.py +0 -91
  264. cirro_api_client-0.0.2/cirro_api_client/models/set_user_project_role_request.py +0 -95
  265. cirro_api_client-0.0.2/cirro_api_client/models/sftp_credentials.py +0 -96
  266. cirro_api_client-0.0.2/cirro_api_client/models/status.py +0 -53
  267. cirro_api_client-0.0.2/cirro_api_client/models/stop_execution_response.py +0 -92
  268. cirro_api_client-0.0.2/cirro_api_client/models/sync_status.py +0 -46
  269. cirro_api_client-0.0.2/cirro_api_client/models/system_info_response.py +0 -108
  270. cirro_api_client-0.0.2/cirro_api_client/models/tag.py +0 -93
  271. cirro_api_client-0.0.2/cirro_api_client/models/task.py +0 -104
  272. cirro_api_client-0.0.2/cirro_api_client/models/update_dataset_request.py +0 -105
  273. cirro_api_client-0.0.2/cirro_api_client/models/update_user_request.py +0 -99
  274. cirro_api_client-0.0.2/cirro_api_client/models/upload_dataset_create_response.py +0 -94
  275. cirro_api_client-0.0.2/cirro_api_client/models/upload_dataset_request.py +0 -97
  276. cirro_api_client-0.0.2/cirro_api_client/models/user.py +0 -95
  277. cirro_api_client-0.0.2/cirro_api_client/models/validate_file_requirements_request.py +0 -92
  278. cirro_api_client-0.0.2/cirro_api_client/rest.py +0 -268
  279. cirro_api_client-0.0.2/pyproject.toml +0 -30
  280. /cirro_api_client-0.0.2/cirro_api_client/py.typed → /cirro_api_client-0.0.4/cirro_api_client/v1/api/billing/__init__.py +0 -0
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.1
2
+ Name: cirro_api_client
3
+ Version: 0.0.4
4
+ Summary: A client library for accessing Cirro
5
+ Home-page: https://github.com/CirroBio/Cirro-client-python
6
+ License: MIT
7
+ Keywords: Cirro
8
+ Author: Cirro
9
+ Author-email: support@cirro.bio
10
+ Requires-Python: >=3.8,<4.0
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Requires-Dist: attrs (>=21.3.0)
19
+ Requires-Dist: httpx (>=0.20.0,<0.27.0)
20
+ Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
21
+ Project-URL: Repository, https://github.com/CirroBio/Cirro-client-python
22
+ Description-Content-Type: text/markdown
23
+
24
+ # Cirro API Client
25
+
26
+ Low-level client for the Cirro API. Rather than using this package directly, we recommend using the [Cirro SDK](https://github.com/CirroBio/Cirro-client).
27
+
28
+ This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project:
29
+
30
+ ## Requirements.
31
+
32
+ Python 3.8+.
33
+
34
+ ## Installation & Usage
35
+ ### pip install
36
+
37
+ Via PyPI:
38
+ ```sh
39
+ pip install cirro-api-client
40
+ ```
41
+
42
+ You can also install it directory from the repository using:
43
+
44
+ ```sh
45
+ pip install git+https://github.com/CirroBio/Cirro-client-python.git
46
+ ```
47
+
48
+ ## Getting Started
49
+
50
+ ### Basic usage
51
+
52
+ ```python
53
+ import os
54
+ from typing import List
55
+ from pprint import pprint
56
+
57
+ from cirro_api_client.v1 import CirroApiClient
58
+ from cirro_api_client.v1.api.projects import get_projects
59
+ from cirro_api_client.v1.models import Project
60
+ from cirro_api_client.v1.types import Response
61
+
62
+ # Create a client
63
+ client = CirroApiClient(base_url="https://api.cirro.bio",
64
+ token=os.environ['TOKEN'])
65
+
66
+ # Call API endpoint, get list of projects
67
+ projects: List[Project] = get_projects.sync(client=client)
68
+ print("The response of get_projects:\n")
69
+ pprint(projects)
70
+ ## or if you need more info (e.g. status_code)
71
+ resp: Response[List[Project]] = get_projects.sync_detailed(client=client)
72
+ projects = resp.parsed
73
+ ```
74
+
75
+ ### Async usage
76
+ ```python
77
+ import os
78
+ from typing import List
79
+
80
+ from cirro_api_client.v1 import CirroApiClient
81
+ from cirro_api_client.v1.api.projects import get_projects
82
+ from cirro_api_client.v1.models import Project
83
+
84
+ client = CirroApiClient(base_url="https://api.cirro.bio",
85
+ token=os.environ['TOKEN'])
86
+
87
+ # async method
88
+ async with client as client:
89
+ projects: List[Project] = await get_projects.asyncio(client=client)
90
+ ```
91
+
92
+ ### Advanced usage
93
+
94
+ There are more settings on the generated `CirroApiClient` class which let you control more runtime behavior, check out the docstring on that class for more info. You can also customize the underlying `httpx.Client` or `httpx.AsyncClient` (depending on your use-case):
95
+
96
+ ```python
97
+ import os
98
+ from cirro_api_client.v1 import CirroApiClient
99
+
100
+ def log_request(request):
101
+ print(f"Request event hook: {request.method} {request.url} - Waiting for response")
102
+
103
+ def log_response(response):
104
+ request = response.request
105
+ print(f"Response event hook: {request.method} {request.url} - Status {response.status_code}")
106
+
107
+ client = CirroApiClient(
108
+ base_url="https://api.cirro.bio",
109
+ token=os.environ['TOKEN'],
110
+ httpx_args={"event_hooks": {"request": [log_request], "response": [log_response]}},
111
+ )
112
+
113
+ # Or get the underlying httpx client to modify directly with client.get_httpx_client() or client.get_async_httpx_client()
114
+ ```
115
+
116
+ You can even set the httpx client directly, but beware that this will override any existing settings (e.g., base_url):
117
+
118
+ ```python
119
+ import os
120
+ import httpx
121
+ from cirro_api_client.v1 import CirroApiClient
122
+
123
+ client = CirroApiClient(base_url="https://api.cirro.bio",
124
+ token=os.environ['TOKEN'])
125
+
126
+ # Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
127
+ client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="http://localhost:8030"))
128
+ ```
129
+
130
+ ## Developer information
131
+
132
+ Re-generate the API client by running:
133
+
134
+ ```sh
135
+ openapi-python-client.exe update --url https://api.cirro.bio/openapi/cirro-data-latest.yml --config config.yml --custom-template-path=templates/
136
+ ```
@@ -0,0 +1,113 @@
1
+ # Cirro API Client
2
+
3
+ Low-level client for the Cirro API. Rather than using this package directly, we recommend using the [Cirro SDK](https://github.com/CirroBio/Cirro-client).
4
+
5
+ This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project:
6
+
7
+ ## Requirements.
8
+
9
+ Python 3.8+.
10
+
11
+ ## Installation & Usage
12
+ ### pip install
13
+
14
+ Via PyPI:
15
+ ```sh
16
+ pip install cirro-api-client
17
+ ```
18
+
19
+ You can also install it directory from the repository using:
20
+
21
+ ```sh
22
+ pip install git+https://github.com/CirroBio/Cirro-client-python.git
23
+ ```
24
+
25
+ ## Getting Started
26
+
27
+ ### Basic usage
28
+
29
+ ```python
30
+ import os
31
+ from typing import List
32
+ from pprint import pprint
33
+
34
+ from cirro_api_client.v1 import CirroApiClient
35
+ from cirro_api_client.v1.api.projects import get_projects
36
+ from cirro_api_client.v1.models import Project
37
+ from cirro_api_client.v1.types import Response
38
+
39
+ # Create a client
40
+ client = CirroApiClient(base_url="https://api.cirro.bio",
41
+ token=os.environ['TOKEN'])
42
+
43
+ # Call API endpoint, get list of projects
44
+ projects: List[Project] = get_projects.sync(client=client)
45
+ print("The response of get_projects:\n")
46
+ pprint(projects)
47
+ ## or if you need more info (e.g. status_code)
48
+ resp: Response[List[Project]] = get_projects.sync_detailed(client=client)
49
+ projects = resp.parsed
50
+ ```
51
+
52
+ ### Async usage
53
+ ```python
54
+ import os
55
+ from typing import List
56
+
57
+ from cirro_api_client.v1 import CirroApiClient
58
+ from cirro_api_client.v1.api.projects import get_projects
59
+ from cirro_api_client.v1.models import Project
60
+
61
+ client = CirroApiClient(base_url="https://api.cirro.bio",
62
+ token=os.environ['TOKEN'])
63
+
64
+ # async method
65
+ async with client as client:
66
+ projects: List[Project] = await get_projects.asyncio(client=client)
67
+ ```
68
+
69
+ ### Advanced usage
70
+
71
+ There are more settings on the generated `CirroApiClient` class which let you control more runtime behavior, check out the docstring on that class for more info. You can also customize the underlying `httpx.Client` or `httpx.AsyncClient` (depending on your use-case):
72
+
73
+ ```python
74
+ import os
75
+ from cirro_api_client.v1 import CirroApiClient
76
+
77
+ def log_request(request):
78
+ print(f"Request event hook: {request.method} {request.url} - Waiting for response")
79
+
80
+ def log_response(response):
81
+ request = response.request
82
+ print(f"Response event hook: {request.method} {request.url} - Status {response.status_code}")
83
+
84
+ client = CirroApiClient(
85
+ base_url="https://api.cirro.bio",
86
+ token=os.environ['TOKEN'],
87
+ httpx_args={"event_hooks": {"request": [log_request], "response": [log_response]}},
88
+ )
89
+
90
+ # Or get the underlying httpx client to modify directly with client.get_httpx_client() or client.get_async_httpx_client()
91
+ ```
92
+
93
+ You can even set the httpx client directly, but beware that this will override any existing settings (e.g., base_url):
94
+
95
+ ```python
96
+ import os
97
+ import httpx
98
+ from cirro_api_client.v1 import CirroApiClient
99
+
100
+ client = CirroApiClient(base_url="https://api.cirro.bio",
101
+ token=os.environ['TOKEN'])
102
+
103
+ # Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
104
+ client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="http://localhost:8030"))
105
+ ```
106
+
107
+ ## Developer information
108
+
109
+ Re-generate the API client by running:
110
+
111
+ ```sh
112
+ openapi-python-client.exe update --url https://api.cirro.bio/openapi/cirro-data-latest.yml --config config.yml --custom-template-path=templates/
113
+ ```
@@ -0,0 +1,4 @@
1
+ from .cirro_auth import TokenAuth
2
+ from .cirro_client import CirroApiClient
3
+
4
+ __all__ = ("CirroApiClient", "TokenAuth")
@@ -0,0 +1,20 @@
1
+ from abc import ABC
2
+ from typing import Dict
3
+
4
+ from attr import define
5
+
6
+
7
+ class AuthMethod(ABC):
8
+ def get_auth_headers(self) -> Dict[str, str]:
9
+ """
10
+ The returned dict must include headers to add to authenticate properly to Cirro
11
+ """
12
+ raise NotImplementedError()
13
+
14
+
15
+ @define
16
+ class TokenAuth(AuthMethod):
17
+ token: str
18
+
19
+ def get_auth_headers(self) -> Dict[str, str]:
20
+ return {"Authorization": f"Bearer {self.token}"}
@@ -0,0 +1,59 @@
1
+ import importlib.metadata
2
+ import platform
3
+ from typing import Dict
4
+
5
+ from attrs import define, field
6
+
7
+ from cirro_api_client.cirro_auth import AuthMethod
8
+ from cirro_api_client.v1.client import Client
9
+
10
+
11
+ def _get_user_agent(package_name: str, client_name: str) -> str:
12
+ try:
13
+ pkg_version = importlib.metadata.version(package_name)
14
+ except (importlib.metadata.PackageNotFoundError, ValueError):
15
+ pkg_version = "Unknown"
16
+ python_version = platform.python_version()
17
+ return f"{client_name} {pkg_version} (Python {python_version})"
18
+
19
+
20
+ # noinspection PyUnresolvedReferences
21
+ @define
22
+ class CirroApiClient(Client):
23
+ """A class for interacting with the Cirro API
24
+
25
+ Attributes:
26
+ auth_method: The method used to authenticate API requests
27
+
28
+ base_url: The base URL for the API, all requests are made to a relative path to this URL
29
+
30
+ cookies: A dictionary of cookies to be sent with every request
31
+
32
+ headers: A dictionary of headers to be sent with every request
33
+
34
+ timeout: The maximum amount of a time a request can take. API functions will raise
35
+ httpx.TimeoutException if this is exceeded.
36
+
37
+ verify_ssl: Whether to verify the SSL certificate of the API server. This should be True in production,
38
+ but can be set to False for testing purposes.
39
+
40
+ follow_redirects: Whether to follow redirects. Default value is False.
41
+
42
+ httpx_args: A dictionary of additional arguments to be passed to the ``httpx.Client`` and ``httpx.AsyncClient`` constructor.
43
+
44
+ raise_on_unexpected_status: Whether to raise an errors.UnexpectedStatus if the API returns a
45
+ status code that was not documented in the source OpenAPI document. Can also be provided as a keyword
46
+ argument to the constructor.
47
+ """
48
+
49
+ auth_method: AuthMethod
50
+ raise_on_unexpected_status: bool = field(default=True, kw_only=True)
51
+ _client_name: str = field(init=False, default="Cirro API Client")
52
+ _package_name: str = field(init=False, default="cirro-api-client")
53
+ _user_agent: str = field(init=False)
54
+
55
+ def __attrs_post_init__(self):
56
+ self._user_agent = _get_user_agent(self._package_name, self._client_name)
57
+
58
+ def get_headers(self) -> Dict[str, str]:
59
+ return {"User-Agent": self._user_agent, **self.auth_method.get_auth_headers()}
@@ -0,0 +1,7 @@
1
+ """ A client library for accessing Cirro Data """
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,168 @@
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 AuthenticatedClient, Client
8
+ from ...models.billing_account_request import BillingAccountRequest
9
+ from ...models.create_response import CreateResponse
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: BillingAccountRequest,
16
+ ) -> Dict[str, Any]:
17
+ headers: Dict[str, Any] = {}
18
+
19
+ _kwargs: Dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/billing",
22
+ }
23
+
24
+ _body = body.to_dict()
25
+
26
+ _kwargs["json"] = _body
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
35
+ ) -> Optional[CreateResponse]:
36
+ if response.status_code == HTTPStatus.OK:
37
+ response_200 = CreateResponse.from_dict(response.json())
38
+
39
+ return response_200
40
+ if client.raise_on_unexpected_status:
41
+ raise errors.UnexpectedStatus(response.status_code, response.content)
42
+ else:
43
+ return None
44
+
45
+
46
+ def _build_response(
47
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
48
+ ) -> Response[CreateResponse]:
49
+ return Response(
50
+ status_code=HTTPStatus(response.status_code),
51
+ content=response.content,
52
+ headers=response.headers,
53
+ parsed=_parse_response(client=client, response=response),
54
+ )
55
+
56
+
57
+ def sync_detailed(
58
+ *,
59
+ client: Client,
60
+ body: BillingAccountRequest,
61
+ ) -> Response[CreateResponse]:
62
+ """Create billing account
63
+
64
+ Creates a billing account
65
+
66
+ Args:
67
+ body (BillingAccountRequest):
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[CreateResponse]
75
+ """
76
+
77
+ kwargs = _get_kwargs(
78
+ body=body,
79
+ )
80
+
81
+ response = client.get_httpx_client().request(
82
+ **kwargs,
83
+ )
84
+
85
+ return _build_response(client=client, response=response)
86
+
87
+
88
+ def sync(
89
+ *,
90
+ client: Client,
91
+ body: BillingAccountRequest,
92
+ ) -> Optional[CreateResponse]:
93
+ """Create billing account
94
+
95
+ Creates a billing account
96
+
97
+ Args:
98
+ body (BillingAccountRequest):
99
+
100
+ Raises:
101
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
103
+
104
+ Returns:
105
+ CreateResponse
106
+ """
107
+
108
+ return sync_detailed(
109
+ client=client,
110
+ body=body,
111
+ ).parsed
112
+
113
+
114
+ async def asyncio_detailed(
115
+ *,
116
+ client: Client,
117
+ body: BillingAccountRequest,
118
+ ) -> Response[CreateResponse]:
119
+ """Create billing account
120
+
121
+ Creates a billing account
122
+
123
+ Args:
124
+ body (BillingAccountRequest):
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[CreateResponse]
132
+ """
133
+
134
+ kwargs = _get_kwargs(
135
+ body=body,
136
+ )
137
+
138
+ response = await client.get_async_httpx_client().request(**kwargs)
139
+
140
+ return _build_response(client=client, response=response)
141
+
142
+
143
+ async def asyncio(
144
+ *,
145
+ client: Client,
146
+ body: BillingAccountRequest,
147
+ ) -> Optional[CreateResponse]:
148
+ """Create billing account
149
+
150
+ Creates a billing account
151
+
152
+ Args:
153
+ body (BillingAccountRequest):
154
+
155
+ Raises:
156
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
157
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
158
+
159
+ Returns:
160
+ CreateResponse
161
+ """
162
+
163
+ return (
164
+ await asyncio_detailed(
165
+ client=client,
166
+ body=body,
167
+ )
168
+ ).parsed
@@ -0,0 +1,97 @@
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 AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs(
12
+ billing_account_id: str,
13
+ ) -> Dict[str, Any]:
14
+ _kwargs: Dict[str, Any] = {
15
+ "method": "delete",
16
+ "url": f"/billing/{billing_account_id}",
17
+ }
18
+
19
+ return _kwargs
20
+
21
+
22
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
23
+ if response.status_code == HTTPStatus.OK:
24
+ return None
25
+ if client.raise_on_unexpected_status:
26
+ raise errors.UnexpectedStatus(response.status_code, response.content)
27
+ else:
28
+ return None
29
+
30
+
31
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
32
+ return Response(
33
+ status_code=HTTPStatus(response.status_code),
34
+ content=response.content,
35
+ headers=response.headers,
36
+ parsed=_parse_response(client=client, response=response),
37
+ )
38
+
39
+
40
+ def sync_detailed(
41
+ billing_account_id: str,
42
+ *,
43
+ client: Client,
44
+ ) -> Response[Any]:
45
+ """Delete billing account
46
+
47
+ Deletes a billing account
48
+
49
+ Args:
50
+ billing_account_id (str):
51
+
52
+ Raises:
53
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
54
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
55
+
56
+ Returns:
57
+ Response[Any]
58
+ """
59
+
60
+ kwargs = _get_kwargs(
61
+ billing_account_id=billing_account_id,
62
+ )
63
+
64
+ response = client.get_httpx_client().request(
65
+ **kwargs,
66
+ )
67
+
68
+ return _build_response(client=client, response=response)
69
+
70
+
71
+ async def asyncio_detailed(
72
+ billing_account_id: str,
73
+ *,
74
+ client: Client,
75
+ ) -> Response[Any]:
76
+ """Delete billing account
77
+
78
+ Deletes a billing account
79
+
80
+ Args:
81
+ billing_account_id (str):
82
+
83
+ Raises:
84
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
86
+
87
+ Returns:
88
+ Response[Any]
89
+ """
90
+
91
+ kwargs = _get_kwargs(
92
+ billing_account_id=billing_account_id,
93
+ )
94
+
95
+ response = await client.get_async_httpx_client().request(**kwargs)
96
+
97
+ return _build_response(client=client, response=response)
@@ -0,0 +1,81 @@
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 AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs() -> Dict[str, Any]:
12
+ _kwargs: Dict[str, Any] = {
13
+ "method": "get",
14
+ "url": "/billing-report",
15
+ }
16
+
17
+ return _kwargs
18
+
19
+
20
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
21
+ if client.raise_on_unexpected_status:
22
+ raise errors.UnexpectedStatus(response.status_code, response.content)
23
+ else:
24
+ return None
25
+
26
+
27
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
28
+ return Response(
29
+ status_code=HTTPStatus(response.status_code),
30
+ content=response.content,
31
+ headers=response.headers,
32
+ parsed=_parse_response(client=client, response=response),
33
+ )
34
+
35
+
36
+ def sync_detailed(
37
+ *,
38
+ client: Client,
39
+ ) -> Response[Any]:
40
+ """Generate billing report
41
+
42
+ Generates a billing report xlsx with cost information
43
+
44
+ Raises:
45
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
46
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
47
+
48
+ Returns:
49
+ Response[Any]
50
+ """
51
+
52
+ kwargs = _get_kwargs()
53
+
54
+ response = client.get_httpx_client().request(
55
+ **kwargs,
56
+ )
57
+
58
+ return _build_response(client=client, response=response)
59
+
60
+
61
+ async def asyncio_detailed(
62
+ *,
63
+ client: Client,
64
+ ) -> Response[Any]:
65
+ """Generate billing report
66
+
67
+ Generates a billing report xlsx with cost information
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[Any]
75
+ """
76
+
77
+ kwargs = _get_kwargs()
78
+
79
+ response = await client.get_async_httpx_client().request(**kwargs)
80
+
81
+ return _build_response(client=client, response=response)