cirro-api-client 0.0.4__tar.gz → 0.0.6__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.
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/PKG-INFO +16 -10
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/README.md +15 -9
- cirro_api_client-0.0.6/cirro_api_client/__init__.py +4 -0
- cirro_api_client-0.0.6/cirro_api_client/cirro_auth.py +29 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/cirro_client.py +3 -8
- cirro_api_client-0.0.6/cirro_api_client/v1/__init__.py +4 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/create_billing_account.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/delete_billing_account.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/generate_billing_report.py +6 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/get_billing_accounts.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/update_billing_account.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/create_dashboard.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/delete_dashboard.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/get_dashboard.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/get_dashboards.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/update_dashboard.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/delete_dataset.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/get_dataset.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/get_dataset_manifest.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/get_datasets.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/import_public_dataset.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/ingest_samples.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/regenerate_manifest.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/rerun_transform.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/update_dataset.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/upload_dataset.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/get_execution_logs.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/get_project_summary.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/get_task_logs.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/get_tasks_for_execution.py +9 -4
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/run_analysis.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/stop_analysis.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/file/generate_project_file_access_token.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/file/generate_project_sftp_token.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metadata/get_project_samples.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metadata/get_project_schema.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metadata/update_project_schema.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metadata/update_sample.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metrics/get_all_metrics.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metrics/get_project_metrics.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/create_notebook_instance.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/delete_notebook_instance.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/generate_notebook_instance_url.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/get_notebook_instance_status.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/get_notebook_instances.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/stop_notebook_instance.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/archive_custom_process.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/create_custom_process.py +9 -4
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/get_process.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/get_process_parameters.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/get_processes.py +9 -8
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/sync_custom_process.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/update_custom_process.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/validate_file_requirements.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/create_project.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/get_project.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/get_project_users.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/get_projects.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/redeploy_project.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/set_user_project_role.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/update_project.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/update_project_tags.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/create_project_reference.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/delete_project_reference.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/get_reference_types.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/get_references.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/get_references_for_project.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/refresh_project_references.py +8 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/system/get_service_connections.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/system/info.py +6 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/users/get_user.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/users/get_users.py +10 -5
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/users/invite_user.py +10 -9
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/users/update_user.py +10 -5
- cirro_api_client-0.0.6/cirro_api_client/v1/client.py +138 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/allowed_data_type.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/aws_credentials.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/billing_account.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/billing_account_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/cloud_account.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/contact.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/create_notebook_instance_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/create_reference_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/create_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/custom_pipeline_settings.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard_dashboard_data.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard_info.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard_request_dashboard_data.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dashboard_request_info.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset_assets_manifest.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset_detail.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset_detail_info.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset_detail_params.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/dataset_viz.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/error_message.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/file_access_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/file_entry.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/file_entry_metadata.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/file_name_pattern.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/file_requirements.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/form_schema.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/form_schema_form.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/form_schema_ui.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/generate_sftp_credentials_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/get_execution_logs_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/get_project_summary_response_200.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/import_data_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/invite_user_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/invite_user_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/log_entry.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/metric_record.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/metric_record_services.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/notebook_instance.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/notebook_instance_status_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/open_notebook_instance_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/paginated_response_dataset_list_dto.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/paginated_response_sample_dto.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/pipeline_code.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/portal_error_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/process.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/process_detail.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_detail.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_metrics.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_settings.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_user.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/reference.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/reference_type.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/reference_type_validation_item.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/resources_info.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/run_analysis_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/run_analysis_request_params.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sample.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sample_metadata.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sample_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sample_request_metadata.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/service_connection.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/set_user_project_role_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sftp_credentials.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/stop_execution_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/system_info_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/tag.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/task.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/update_dataset_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/update_user_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/update_user_request_settings.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/upload_dataset_create_response.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/upload_dataset_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/user.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/validate_file_requirements_request.py +0 -12
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/pyproject.toml +2 -1
- cirro_api_client-0.0.4/cirro_api_client/__init__.py +0 -4
- cirro_api_client-0.0.4/cirro_api_client/cirro_auth.py +0 -20
- cirro_api_client-0.0.4/cirro_api_client/v1/__init__.py +0 -7
- cirro_api_client-0.0.4/cirro_api_client/v1/client.py +0 -288
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/billing/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/dashboards/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/datasets/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/execution/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/file/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metadata/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/metrics/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/notebooks/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/processes/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/projects/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/references/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/system/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/api/users/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/errors.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/__init__.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/access_type.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/billing_method.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/budget_period.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/customer_type.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/executor.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/project_role.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/repository_type.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/status.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/models/sync_status.py +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/py.typed +0 -0
- {cirro_api_client-0.0.4 → cirro_api_client-0.0.6}/cirro_api_client/v1/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirro_api_client
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: A client library for accessing Cirro
|
|
5
5
|
Home-page: https://github.com/CirroBio/Cirro-client-python
|
|
6
6
|
License: MIT
|
|
@@ -22,10 +22,11 @@ Project-URL: Repository, https://github.com/CirroBio/Cirro-client-python
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
|
|
24
24
|
# Cirro API Client
|
|
25
|
+
[](https://pypi.org/project/cirro_api_client/)
|
|
25
26
|
|
|
26
27
|
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
|
|
|
28
|
-
This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project
|
|
29
|
+
This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project.
|
|
29
30
|
|
|
30
31
|
## Requirements.
|
|
31
32
|
|
|
@@ -54,14 +55,19 @@ import os
|
|
|
54
55
|
from typing import List
|
|
55
56
|
from pprint import pprint
|
|
56
57
|
|
|
57
|
-
from cirro_api_client
|
|
58
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
58
59
|
from cirro_api_client.v1.api.projects import get_projects
|
|
59
60
|
from cirro_api_client.v1.models import Project
|
|
60
61
|
from cirro_api_client.v1.types import Response
|
|
61
62
|
|
|
63
|
+
# Create auth method, you can also extend the AuthMethod class
|
|
64
|
+
auth_method = TokenAuth(token=os.environ['TOKEN'])
|
|
65
|
+
# You can also use the RefreshableTokenAuth class
|
|
66
|
+
# auth_method = RefreshableTokenAuth(token_getter=lambda : os.environ['TOKEN'])
|
|
67
|
+
|
|
62
68
|
# Create a client
|
|
63
69
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
64
|
-
|
|
70
|
+
auth_method=auth_method)
|
|
65
71
|
|
|
66
72
|
# Call API endpoint, get list of projects
|
|
67
73
|
projects: List[Project] = get_projects.sync(client=client)
|
|
@@ -77,12 +83,12 @@ projects = resp.parsed
|
|
|
77
83
|
import os
|
|
78
84
|
from typing import List
|
|
79
85
|
|
|
80
|
-
from cirro_api_client
|
|
86
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
81
87
|
from cirro_api_client.v1.api.projects import get_projects
|
|
82
88
|
from cirro_api_client.v1.models import Project
|
|
83
89
|
|
|
84
90
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
85
|
-
token=os.environ['TOKEN'])
|
|
91
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']))
|
|
86
92
|
|
|
87
93
|
# async method
|
|
88
94
|
async with client as client:
|
|
@@ -95,7 +101,7 @@ There are more settings on the generated `CirroApiClient` class which let you co
|
|
|
95
101
|
|
|
96
102
|
```python
|
|
97
103
|
import os
|
|
98
|
-
from cirro_api_client
|
|
104
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
99
105
|
|
|
100
106
|
def log_request(request):
|
|
101
107
|
print(f"Request event hook: {request.method} {request.url} - Waiting for response")
|
|
@@ -106,7 +112,7 @@ def log_response(response):
|
|
|
106
112
|
|
|
107
113
|
client = CirroApiClient(
|
|
108
114
|
base_url="https://api.cirro.bio",
|
|
109
|
-
token=os.environ['TOKEN'],
|
|
115
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']),
|
|
110
116
|
httpx_args={"event_hooks": {"request": [log_request], "response": [log_response]}},
|
|
111
117
|
)
|
|
112
118
|
|
|
@@ -118,10 +124,10 @@ You can even set the httpx client directly, but beware that this will override a
|
|
|
118
124
|
```python
|
|
119
125
|
import os
|
|
120
126
|
import httpx
|
|
121
|
-
from cirro_api_client
|
|
127
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
122
128
|
|
|
123
129
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
124
|
-
token=os.environ['TOKEN'])
|
|
130
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']))
|
|
125
131
|
|
|
126
132
|
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
|
|
127
133
|
client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="http://localhost:8030"))
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Cirro API Client
|
|
2
|
+
[](https://pypi.org/project/cirro_api_client/)
|
|
2
3
|
|
|
3
4
|
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
|
|
|
5
|
-
This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project
|
|
6
|
+
This Python package is automatically generated by the [OpenAPI Python Client](https://github.com/openapi-generators/openapi-python-client) project.
|
|
6
7
|
|
|
7
8
|
## Requirements.
|
|
8
9
|
|
|
@@ -31,14 +32,19 @@ import os
|
|
|
31
32
|
from typing import List
|
|
32
33
|
from pprint import pprint
|
|
33
34
|
|
|
34
|
-
from cirro_api_client
|
|
35
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
35
36
|
from cirro_api_client.v1.api.projects import get_projects
|
|
36
37
|
from cirro_api_client.v1.models import Project
|
|
37
38
|
from cirro_api_client.v1.types import Response
|
|
38
39
|
|
|
40
|
+
# Create auth method, you can also extend the AuthMethod class
|
|
41
|
+
auth_method = TokenAuth(token=os.environ['TOKEN'])
|
|
42
|
+
# You can also use the RefreshableTokenAuth class
|
|
43
|
+
# auth_method = RefreshableTokenAuth(token_getter=lambda : os.environ['TOKEN'])
|
|
44
|
+
|
|
39
45
|
# Create a client
|
|
40
46
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
41
|
-
|
|
47
|
+
auth_method=auth_method)
|
|
42
48
|
|
|
43
49
|
# Call API endpoint, get list of projects
|
|
44
50
|
projects: List[Project] = get_projects.sync(client=client)
|
|
@@ -54,12 +60,12 @@ projects = resp.parsed
|
|
|
54
60
|
import os
|
|
55
61
|
from typing import List
|
|
56
62
|
|
|
57
|
-
from cirro_api_client
|
|
63
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
58
64
|
from cirro_api_client.v1.api.projects import get_projects
|
|
59
65
|
from cirro_api_client.v1.models import Project
|
|
60
66
|
|
|
61
67
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
62
|
-
token=os.environ['TOKEN'])
|
|
68
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']))
|
|
63
69
|
|
|
64
70
|
# async method
|
|
65
71
|
async with client as client:
|
|
@@ -72,7 +78,7 @@ There are more settings on the generated `CirroApiClient` class which let you co
|
|
|
72
78
|
|
|
73
79
|
```python
|
|
74
80
|
import os
|
|
75
|
-
from cirro_api_client
|
|
81
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
76
82
|
|
|
77
83
|
def log_request(request):
|
|
78
84
|
print(f"Request event hook: {request.method} {request.url} - Waiting for response")
|
|
@@ -83,7 +89,7 @@ def log_response(response):
|
|
|
83
89
|
|
|
84
90
|
client = CirroApiClient(
|
|
85
91
|
base_url="https://api.cirro.bio",
|
|
86
|
-
token=os.environ['TOKEN'],
|
|
92
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']),
|
|
87
93
|
httpx_args={"event_hooks": {"request": [log_request], "response": [log_response]}},
|
|
88
94
|
)
|
|
89
95
|
|
|
@@ -95,10 +101,10 @@ You can even set the httpx client directly, but beware that this will override a
|
|
|
95
101
|
```python
|
|
96
102
|
import os
|
|
97
103
|
import httpx
|
|
98
|
-
from cirro_api_client
|
|
104
|
+
from cirro_api_client import CirroApiClient, TokenAuth
|
|
99
105
|
|
|
100
106
|
client = CirroApiClient(base_url="https://api.cirro.bio",
|
|
101
|
-
token=os.environ['TOKEN'])
|
|
107
|
+
auth_method=TokenAuth(token=os.environ['TOKEN']))
|
|
102
108
|
|
|
103
109
|
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
|
|
104
110
|
client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="http://localhost:8030"))
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
from abc import ABC
|
|
3
|
+
|
|
4
|
+
from attr import define
|
|
5
|
+
from httpx import Auth, Request, Response
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AuthMethod(Auth, ABC):
|
|
9
|
+
"""
|
|
10
|
+
Defines the method used for authenticating with Cirro
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@define
|
|
15
|
+
class TokenAuth(AuthMethod):
|
|
16
|
+
token: str
|
|
17
|
+
|
|
18
|
+
def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
|
|
19
|
+
request.headers["Authorization"] = f"Bearer {self.token}"
|
|
20
|
+
yield request
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@define
|
|
24
|
+
class RefreshableTokenAuth(AuthMethod):
|
|
25
|
+
token_getter: typing.Callable[[], str]
|
|
26
|
+
|
|
27
|
+
def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
|
|
28
|
+
request.headers["Authorization"] = f"Bearer {self.token_getter()}"
|
|
29
|
+
yield request
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import importlib.metadata
|
|
2
2
|
import platform
|
|
3
|
-
from typing import Dict
|
|
4
3
|
|
|
5
4
|
from attrs import define, field
|
|
6
5
|
|
|
@@ -48,12 +47,8 @@ class CirroApiClient(Client):
|
|
|
48
47
|
|
|
49
48
|
auth_method: AuthMethod
|
|
50
49
|
raise_on_unexpected_status: bool = field(default=True, kw_only=True)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_user_agent: str = field(init=False)
|
|
50
|
+
client_name: str = field(kw_only=True, default="Cirro API Client")
|
|
51
|
+
package_name: str = field(kw_only=True, default="cirro-api-client")
|
|
54
52
|
|
|
55
53
|
def __attrs_post_init__(self):
|
|
56
|
-
self.
|
|
57
|
-
|
|
58
|
-
def get_headers(self) -> Dict[str, str]:
|
|
59
|
-
return {"User-Agent": self._user_agent, **self.auth_method.get_auth_headers()}
|
|
54
|
+
self._headers["User-Agent"] = _get_user_agent(self.package_name, self.client_name)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict, Optional
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...models.billing_account_request import BillingAccountRequest
|
|
9
9
|
from ...models.create_response import CreateResponse
|
|
10
10
|
from ...types import Response
|
|
@@ -30,9 +30,7 @@ def _get_kwargs(
|
|
|
30
30
|
return _kwargs
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def _parse_response(
|
|
34
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
-
) -> Optional[CreateResponse]:
|
|
33
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[CreateResponse]:
|
|
36
34
|
if response.status_code == HTTPStatus.OK:
|
|
37
35
|
response_200 = CreateResponse.from_dict(response.json())
|
|
38
36
|
|
|
@@ -43,9 +41,7 @@ def _parse_response(
|
|
|
43
41
|
return None
|
|
44
42
|
|
|
45
43
|
|
|
46
|
-
def _build_response(
|
|
47
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
48
|
-
) -> Response[CreateResponse]:
|
|
44
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[CreateResponse]:
|
|
49
45
|
return Response(
|
|
50
46
|
status_code=HTTPStatus(response.status_code),
|
|
51
47
|
content=response.content,
|
|
@@ -65,6 +61,7 @@ def sync_detailed(
|
|
|
65
61
|
|
|
66
62
|
Args:
|
|
67
63
|
body (BillingAccountRequest):
|
|
64
|
+
client (Client): instance of the API client
|
|
68
65
|
|
|
69
66
|
Raises:
|
|
70
67
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -79,6 +76,7 @@ def sync_detailed(
|
|
|
79
76
|
)
|
|
80
77
|
|
|
81
78
|
response = client.get_httpx_client().request(
|
|
79
|
+
auth=client.get_auth(),
|
|
82
80
|
**kwargs,
|
|
83
81
|
)
|
|
84
82
|
|
|
@@ -96,6 +94,7 @@ def sync(
|
|
|
96
94
|
|
|
97
95
|
Args:
|
|
98
96
|
body (BillingAccountRequest):
|
|
97
|
+
client (Client): instance of the API client
|
|
99
98
|
|
|
100
99
|
Raises:
|
|
101
100
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -122,6 +121,7 @@ async def asyncio_detailed(
|
|
|
122
121
|
|
|
123
122
|
Args:
|
|
124
123
|
body (BillingAccountRequest):
|
|
124
|
+
client (Client): instance of the API client
|
|
125
125
|
|
|
126
126
|
Raises:
|
|
127
127
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,7 +135,7 @@ async def asyncio_detailed(
|
|
|
135
135
|
body=body,
|
|
136
136
|
)
|
|
137
137
|
|
|
138
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
138
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
139
139
|
|
|
140
140
|
return _build_response(client=client, response=response)
|
|
141
141
|
|
|
@@ -151,6 +151,7 @@ async def asyncio(
|
|
|
151
151
|
|
|
152
152
|
Args:
|
|
153
153
|
body (BillingAccountRequest):
|
|
154
|
+
client (Client): instance of the API client
|
|
154
155
|
|
|
155
156
|
Raises:
|
|
156
157
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict, Optional
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...types import Response
|
|
9
9
|
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ def _get_kwargs(
|
|
|
19
19
|
return _kwargs
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def _parse_response(*, client:
|
|
22
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
23
23
|
if response.status_code == HTTPStatus.OK:
|
|
24
24
|
return None
|
|
25
25
|
if client.raise_on_unexpected_status:
|
|
@@ -28,7 +28,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
28
28
|
return None
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
def _build_response(*, client:
|
|
31
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
32
32
|
return Response(
|
|
33
33
|
status_code=HTTPStatus(response.status_code),
|
|
34
34
|
content=response.content,
|
|
@@ -48,6 +48,7 @@ def sync_detailed(
|
|
|
48
48
|
|
|
49
49
|
Args:
|
|
50
50
|
billing_account_id (str):
|
|
51
|
+
client (Client): instance of the API client
|
|
51
52
|
|
|
52
53
|
Raises:
|
|
53
54
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -62,6 +63,7 @@ def sync_detailed(
|
|
|
62
63
|
)
|
|
63
64
|
|
|
64
65
|
response = client.get_httpx_client().request(
|
|
66
|
+
auth=client.get_auth(),
|
|
65
67
|
**kwargs,
|
|
66
68
|
)
|
|
67
69
|
|
|
@@ -79,6 +81,7 @@ async def asyncio_detailed(
|
|
|
79
81
|
|
|
80
82
|
Args:
|
|
81
83
|
billing_account_id (str):
|
|
84
|
+
client (Client): instance of the API client
|
|
82
85
|
|
|
83
86
|
Raises:
|
|
84
87
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -92,6 +95,6 @@ async def asyncio_detailed(
|
|
|
92
95
|
billing_account_id=billing_account_id,
|
|
93
96
|
)
|
|
94
97
|
|
|
95
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
98
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
96
99
|
|
|
97
100
|
return _build_response(client=client, response=response)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict, Optional
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...types import Response
|
|
9
9
|
|
|
10
10
|
|
|
@@ -17,14 +17,14 @@ def _get_kwargs() -> Dict[str, Any]:
|
|
|
17
17
|
return _kwargs
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
def _parse_response(*, client:
|
|
20
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
21
21
|
if client.raise_on_unexpected_status:
|
|
22
22
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
23
23
|
else:
|
|
24
24
|
return None
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
def _build_response(*, client:
|
|
27
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
28
28
|
return Response(
|
|
29
29
|
status_code=HTTPStatus(response.status_code),
|
|
30
30
|
content=response.content,
|
|
@@ -52,6 +52,7 @@ def sync_detailed(
|
|
|
52
52
|
kwargs = _get_kwargs()
|
|
53
53
|
|
|
54
54
|
response = client.get_httpx_client().request(
|
|
55
|
+
auth=client.get_auth(),
|
|
55
56
|
**kwargs,
|
|
56
57
|
)
|
|
57
58
|
|
|
@@ -76,6 +77,6 @@ async def asyncio_detailed(
|
|
|
76
77
|
|
|
77
78
|
kwargs = _get_kwargs()
|
|
78
79
|
|
|
79
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
80
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
80
81
|
|
|
81
82
|
return _build_response(client=client, response=response)
|
|
@@ -4,7 +4,7 @@ from typing import Any, Dict, List, Optional, Union
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...models.billing_account import BillingAccount
|
|
9
9
|
from ...types import UNSET, Response, Unset
|
|
10
10
|
|
|
@@ -28,9 +28,7 @@ def _get_kwargs(
|
|
|
28
28
|
return _kwargs
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
def _parse_response(
|
|
32
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
-
) -> Optional[List["BillingAccount"]]:
|
|
31
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[List["BillingAccount"]]:
|
|
34
32
|
if response.status_code == HTTPStatus.OK:
|
|
35
33
|
response_200 = []
|
|
36
34
|
_response_200 = response.json()
|
|
@@ -46,9 +44,7 @@ def _parse_response(
|
|
|
46
44
|
return None
|
|
47
45
|
|
|
48
46
|
|
|
49
|
-
def _build_response(
|
|
50
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
51
|
-
) -> Response[List["BillingAccount"]]:
|
|
47
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[List["BillingAccount"]]:
|
|
52
48
|
return Response(
|
|
53
49
|
status_code=HTTPStatus(response.status_code),
|
|
54
50
|
content=response.content,
|
|
@@ -68,6 +64,7 @@ def sync_detailed(
|
|
|
68
64
|
|
|
69
65
|
Args:
|
|
70
66
|
include_archived (Union[Unset, bool]): Default: False.
|
|
67
|
+
client (Client): instance of the API client
|
|
71
68
|
|
|
72
69
|
Raises:
|
|
73
70
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -82,6 +79,7 @@ def sync_detailed(
|
|
|
82
79
|
)
|
|
83
80
|
|
|
84
81
|
response = client.get_httpx_client().request(
|
|
82
|
+
auth=client.get_auth(),
|
|
85
83
|
**kwargs,
|
|
86
84
|
)
|
|
87
85
|
|
|
@@ -99,6 +97,7 @@ def sync(
|
|
|
99
97
|
|
|
100
98
|
Args:
|
|
101
99
|
include_archived (Union[Unset, bool]): Default: False.
|
|
100
|
+
client (Client): instance of the API client
|
|
102
101
|
|
|
103
102
|
Raises:
|
|
104
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -125,6 +124,7 @@ async def asyncio_detailed(
|
|
|
125
124
|
|
|
126
125
|
Args:
|
|
127
126
|
include_archived (Union[Unset, bool]): Default: False.
|
|
127
|
+
client (Client): instance of the API client
|
|
128
128
|
|
|
129
129
|
Raises:
|
|
130
130
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -138,7 +138,7 @@ async def asyncio_detailed(
|
|
|
138
138
|
include_archived=include_archived,
|
|
139
139
|
)
|
|
140
140
|
|
|
141
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
141
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
142
142
|
|
|
143
143
|
return _build_response(client=client, response=response)
|
|
144
144
|
|
|
@@ -154,6 +154,7 @@ async def asyncio(
|
|
|
154
154
|
|
|
155
155
|
Args:
|
|
156
156
|
include_archived (Union[Unset, bool]): Default: False.
|
|
157
|
+
client (Client): instance of the API client
|
|
157
158
|
|
|
158
159
|
Raises:
|
|
159
160
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict, Optional
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...models.billing_account_request import BillingAccountRequest
|
|
9
9
|
from ...types import Response
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ def _get_kwargs(
|
|
|
30
30
|
return _kwargs
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
def _parse_response(*, client:
|
|
33
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
34
34
|
if response.status_code == HTTPStatus.OK:
|
|
35
35
|
return None
|
|
36
36
|
if client.raise_on_unexpected_status:
|
|
@@ -39,7 +39,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
39
39
|
return None
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def _build_response(*, client:
|
|
42
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
43
43
|
return Response(
|
|
44
44
|
status_code=HTTPStatus(response.status_code),
|
|
45
45
|
content=response.content,
|
|
@@ -61,6 +61,7 @@ def sync_detailed(
|
|
|
61
61
|
Args:
|
|
62
62
|
billing_account_id (str):
|
|
63
63
|
body (BillingAccountRequest):
|
|
64
|
+
client (Client): instance of the API client
|
|
64
65
|
|
|
65
66
|
Raises:
|
|
66
67
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -76,6 +77,7 @@ def sync_detailed(
|
|
|
76
77
|
)
|
|
77
78
|
|
|
78
79
|
response = client.get_httpx_client().request(
|
|
80
|
+
auth=client.get_auth(),
|
|
79
81
|
**kwargs,
|
|
80
82
|
)
|
|
81
83
|
|
|
@@ -95,6 +97,7 @@ async def asyncio_detailed(
|
|
|
95
97
|
Args:
|
|
96
98
|
billing_account_id (str):
|
|
97
99
|
body (BillingAccountRequest):
|
|
100
|
+
client (Client): instance of the API client
|
|
98
101
|
|
|
99
102
|
Raises:
|
|
100
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -109,6 +112,6 @@ async def asyncio_detailed(
|
|
|
109
112
|
body=body,
|
|
110
113
|
)
|
|
111
114
|
|
|
112
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
115
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
113
116
|
|
|
114
117
|
return _build_response(client=client, response=response)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Dict, Optional
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
|
-
from ...client import
|
|
7
|
+
from ...client import Client
|
|
8
8
|
from ...models.create_response import CreateResponse
|
|
9
9
|
from ...models.dashboard_request import DashboardRequest
|
|
10
10
|
from ...types import Response
|
|
@@ -31,9 +31,7 @@ def _get_kwargs(
|
|
|
31
31
|
return _kwargs
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
def _parse_response(
|
|
35
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
-
) -> Optional[CreateResponse]:
|
|
34
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[CreateResponse]:
|
|
37
35
|
if response.status_code == HTTPStatus.OK:
|
|
38
36
|
response_200 = CreateResponse.from_dict(response.json())
|
|
39
37
|
|
|
@@ -44,9 +42,7 @@ def _parse_response(
|
|
|
44
42
|
return None
|
|
45
43
|
|
|
46
44
|
|
|
47
|
-
def _build_response(
|
|
48
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
49
|
-
) -> Response[CreateResponse]:
|
|
45
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[CreateResponse]:
|
|
50
46
|
return Response(
|
|
51
47
|
status_code=HTTPStatus(response.status_code),
|
|
52
48
|
content=response.content,
|
|
@@ -68,6 +64,7 @@ def sync_detailed(
|
|
|
68
64
|
Args:
|
|
69
65
|
project_id (str):
|
|
70
66
|
body (DashboardRequest):
|
|
67
|
+
client (Client): instance of the API client
|
|
71
68
|
|
|
72
69
|
Raises:
|
|
73
70
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -83,6 +80,7 @@ def sync_detailed(
|
|
|
83
80
|
)
|
|
84
81
|
|
|
85
82
|
response = client.get_httpx_client().request(
|
|
83
|
+
auth=client.get_auth(),
|
|
86
84
|
**kwargs,
|
|
87
85
|
)
|
|
88
86
|
|
|
@@ -102,6 +100,7 @@ def sync(
|
|
|
102
100
|
Args:
|
|
103
101
|
project_id (str):
|
|
104
102
|
body (DashboardRequest):
|
|
103
|
+
client (Client): instance of the API client
|
|
105
104
|
|
|
106
105
|
Raises:
|
|
107
106
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -131,6 +130,7 @@ async def asyncio_detailed(
|
|
|
131
130
|
Args:
|
|
132
131
|
project_id (str):
|
|
133
132
|
body (DashboardRequest):
|
|
133
|
+
client (Client): instance of the API client
|
|
134
134
|
|
|
135
135
|
Raises:
|
|
136
136
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -145,7 +145,7 @@ async def asyncio_detailed(
|
|
|
145
145
|
body=body,
|
|
146
146
|
)
|
|
147
147
|
|
|
148
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
148
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
149
149
|
|
|
150
150
|
return _build_response(client=client, response=response)
|
|
151
151
|
|
|
@@ -163,6 +163,7 @@ async def asyncio(
|
|
|
163
163
|
Args:
|
|
164
164
|
project_id (str):
|
|
165
165
|
body (DashboardRequest):
|
|
166
|
+
client (Client): instance of the API client
|
|
166
167
|
|
|
167
168
|
Raises:
|
|
168
169
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|