cirro-api-client 0.1.0__tar.gz → 0.1.2__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.1.0 → cirro_api_client-0.1.2}/PKG-INFO +3 -2
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/README.md +2 -2
- cirro_api_client-0.1.2/cirro_api_client/v1/api/processes/calculate_pipeline_cost.py +186 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/api/projects/approve_access_request.py +122 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/api/projects/create_access_request.py +186 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/api/projects/deny_access_request.py +105 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/api/projects/get_access_requests.py +189 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/api/projects/get_discoverable_projects.py +140 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/__init__.py +16 -4
- cirro_api_client-0.1.2/cirro_api_client/v1/models/approve_project_access_request.py +48 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/audit_event.py +24 -55
- cirro_api_client-0.1.0/cirro_api_client/v1/models/audit_event_changes_type_0.py → cirro_api_client-0.1.2/cirro_api_client/v1/models/audit_event_changes.py +6 -6
- cirro_api_client-0.1.0/cirro_api_client/v1/models/audit_event_event_detail_type_0.py → cirro_api_client-0.1.2/cirro_api_client/v1/models/audit_event_event_detail.py +5 -5
- cirro_api_client-0.1.2/cirro_api_client/v1/models/calculate_pipeline_cost_request.py +32 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/models/create_project_access_request.py +56 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/models/pipeline_cost.py +76 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/models/project_access_request.py +115 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_settings.py +21 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/models/request_status.py +16 -0
- cirro_api_client-0.1.2/cirro_api_client/v1/models/sample.py +187 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/pyproject.toml +2 -2
- cirro_api_client-0.1.0/cirro_api_client/v1/models/sample.py +0 -94
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/cirro_auth.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/cirro_client.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/audit/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/audit/get_event.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/audit/list_events.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/create_billing_account.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/delete_billing_account.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/generate_billing_report.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/get_billing_accounts.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/billing/update_billing_account.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/create_dashboard.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/delete_dashboard.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/get_dashboard.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/get_dashboards.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/dashboards/update_dashboard.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/delete_dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/get_dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/get_dataset_manifest.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/get_datasets.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/import_public_dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/ingest_samples.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/regenerate_manifest.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/rerun_transform.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/update_dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/datasets/upload_dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/get_execution_logs.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/get_project_summary.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/get_task_logs.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/get_tasks_for_execution.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/run_analysis.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/execution/stop_analysis.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/file/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/file/generate_project_file_access_token.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/file/generate_project_sftp_token.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metadata/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metadata/get_project_samples.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metadata/get_project_schema.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metadata/update_project_schema.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metadata/update_sample.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metrics/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metrics/get_all_metrics.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/metrics/get_project_metrics.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/create_notebook_instance.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/delete_notebook_instance.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/generate_notebook_instance_url.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/get_notebook_instance_status.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/get_notebook_instances.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/notebooks/stop_notebook_instance.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/archive_custom_process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/create_custom_process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/get_process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/get_process_parameters.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/get_processes.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/sync_custom_process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/update_custom_process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/processes/validate_file_requirements.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/create_project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/get_project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/get_project_users.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/get_projects.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/redeploy_project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/set_user_project_role.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/update_project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/projects/update_project_tags.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/create_project_reference.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/delete_project_reference.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/get_reference_types.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/get_references.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/get_references_for_project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/references/refresh_project_references.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/system/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/system/get_service_connections.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/system/info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/__init__.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/get_user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/get_users.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/invite_user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/sign_out_user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/api/users/update_user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/client.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/errors.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/access_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/allowed_data_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/auth_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/aws_credentials.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/billing_account.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/billing_account_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/billing_method.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/budget_period.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/cloud_account.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/cloud_account_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/column_definition.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/contact.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/create_notebook_instance_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/create_reference_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/create_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/custom_pipeline_settings.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/customer_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard_dashboard_data.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard_request_dashboard_data.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dashboard_request_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset_assets_manifest.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset_detail.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset_detail_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset_detail_params.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/dataset_viz.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/error_message.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/executor.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_access_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_entry.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_entry_metadata.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_mapping_rule.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_name_pattern.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/file_requirements.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/form_schema.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/form_schema_form.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/form_schema_ui.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/generate_sftp_credentials_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/get_execution_logs_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/get_project_summary_response_200.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/import_data_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/invite_user_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/invite_user_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/log_entry.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/login_provider.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/metric_record.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/metric_record_services.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/notebook_instance.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/notebook_instance_status_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/open_notebook_instance_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/paginated_response_dataset_list_dto.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/paginated_response_sample_dto.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/pipeline_code.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/portal_error_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/process.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/process_detail.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_detail.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_metrics.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_role.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/project_user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/reference.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/reference_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/reference_type_validation_item.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/repository_type.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/resources_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/run_analysis_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/run_analysis_request_params.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/sample_metadata.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/sample_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/sample_request_metadata.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/service_connection.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/set_user_project_role_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/sftp_credentials.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/status.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/stop_execution_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/sync_status.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/system_info_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/table.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/tag.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/task.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/tenant_info.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/update_dataset_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/update_user_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/update_user_request_settings.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/upload_dataset_create_response.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/upload_dataset_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/user.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/user_detail.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/user_project_assignment.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/models/validate_file_requirements_request.py +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/cirro_api_client/v1/py.typed +0 -0
- {cirro_api_client-0.1.0 → cirro_api_client-0.1.2}/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.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A client library for accessing Cirro
|
|
5
5
|
Home-page: https://github.com/CirroBio/Cirro-client-python
|
|
6
6
|
License: MIT
|
|
@@ -138,5 +138,6 @@ client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="
|
|
|
138
138
|
Re-generate the API client by running:
|
|
139
139
|
|
|
140
140
|
```sh
|
|
141
|
-
openapi-python-client
|
|
141
|
+
openapi-python-client update --url https://dev.cirro.bio/openapi/cirro-data-latest.yml --config config.yml --custom-template-path=templates/
|
|
142
142
|
```
|
|
143
|
+
|
|
@@ -115,5 +115,5 @@ client.set_httpx_client(httpx.Client(base_url="https://api.cirro.bio", proxies="
|
|
|
115
115
|
Re-generate the API client by running:
|
|
116
116
|
|
|
117
117
|
```sh
|
|
118
|
-
openapi-python-client
|
|
119
|
-
```
|
|
118
|
+
openapi-python-client update --url https://dev.cirro.bio/openapi/cirro-data-latest.yml --config config.yml --custom-template-path=templates/
|
|
119
|
+
```
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.calculate_pipeline_cost_request import CalculatePipelineCostRequest
|
|
9
|
+
from ...models.pipeline_cost import PipelineCost
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
process_id: str,
|
|
15
|
+
*,
|
|
16
|
+
body: CalculatePipelineCostRequest,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
headers: Dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: Dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": f"/processes/{process_id}/cost",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_body = body.to_dict()
|
|
26
|
+
|
|
27
|
+
_kwargs["json"] = _body
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[PipelineCost]:
|
|
35
|
+
if response.status_code == HTTPStatus.OK:
|
|
36
|
+
response_200 = PipelineCost.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
|
|
40
|
+
errors.handle_error_response(response, client.raise_on_unexpected_status)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[PipelineCost]:
|
|
44
|
+
return Response(
|
|
45
|
+
status_code=HTTPStatus(response.status_code),
|
|
46
|
+
content=response.content,
|
|
47
|
+
headers=response.headers,
|
|
48
|
+
parsed=_parse_response(client=client, response=response),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def sync_detailed(
|
|
53
|
+
process_id: str,
|
|
54
|
+
*,
|
|
55
|
+
client: Client,
|
|
56
|
+
body: CalculatePipelineCostRequest,
|
|
57
|
+
) -> Response[PipelineCost]:
|
|
58
|
+
"""Calculate pipeline cost
|
|
59
|
+
|
|
60
|
+
Retrieves the cost of running the pipeline
|
|
61
|
+
|
|
62
|
+
Args:
|
|
63
|
+
process_id (str):
|
|
64
|
+
body (CalculatePipelineCostRequest):
|
|
65
|
+
client (Client): instance of the API client
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[PipelineCost]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
process_id=process_id,
|
|
77
|
+
body=body,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
response = client.get_httpx_client().request(
|
|
81
|
+
auth=client.get_auth(),
|
|
82
|
+
**kwargs,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def sync(
|
|
89
|
+
process_id: str,
|
|
90
|
+
*,
|
|
91
|
+
client: Client,
|
|
92
|
+
body: CalculatePipelineCostRequest,
|
|
93
|
+
) -> Optional[PipelineCost]:
|
|
94
|
+
"""Calculate pipeline cost
|
|
95
|
+
|
|
96
|
+
Retrieves the cost of running the pipeline
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
process_id (str):
|
|
100
|
+
body (CalculatePipelineCostRequest):
|
|
101
|
+
client (Client): instance of the API client
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
PipelineCost
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
try:
|
|
112
|
+
return sync_detailed(
|
|
113
|
+
process_id=process_id,
|
|
114
|
+
client=client,
|
|
115
|
+
body=body,
|
|
116
|
+
).parsed
|
|
117
|
+
except errors.NotFoundException:
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
async def asyncio_detailed(
|
|
122
|
+
process_id: str,
|
|
123
|
+
*,
|
|
124
|
+
client: Client,
|
|
125
|
+
body: CalculatePipelineCostRequest,
|
|
126
|
+
) -> Response[PipelineCost]:
|
|
127
|
+
"""Calculate pipeline cost
|
|
128
|
+
|
|
129
|
+
Retrieves the cost of running the pipeline
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
process_id (str):
|
|
133
|
+
body (CalculatePipelineCostRequest):
|
|
134
|
+
client (Client): instance of the API client
|
|
135
|
+
|
|
136
|
+
Raises:
|
|
137
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
138
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
139
|
+
|
|
140
|
+
Returns:
|
|
141
|
+
Response[PipelineCost]
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
kwargs = _get_kwargs(
|
|
145
|
+
process_id=process_id,
|
|
146
|
+
body=body,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
150
|
+
|
|
151
|
+
return _build_response(client=client, response=response)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def asyncio(
|
|
155
|
+
process_id: str,
|
|
156
|
+
*,
|
|
157
|
+
client: Client,
|
|
158
|
+
body: CalculatePipelineCostRequest,
|
|
159
|
+
) -> Optional[PipelineCost]:
|
|
160
|
+
"""Calculate pipeline cost
|
|
161
|
+
|
|
162
|
+
Retrieves the cost of running the pipeline
|
|
163
|
+
|
|
164
|
+
Args:
|
|
165
|
+
process_id (str):
|
|
166
|
+
body (CalculatePipelineCostRequest):
|
|
167
|
+
client (Client): instance of the API client
|
|
168
|
+
|
|
169
|
+
Raises:
|
|
170
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
171
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
172
|
+
|
|
173
|
+
Returns:
|
|
174
|
+
PipelineCost
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
try:
|
|
178
|
+
return (
|
|
179
|
+
await asyncio_detailed(
|
|
180
|
+
process_id=process_id,
|
|
181
|
+
client=client,
|
|
182
|
+
body=body,
|
|
183
|
+
)
|
|
184
|
+
).parsed
|
|
185
|
+
except errors.NotFoundException:
|
|
186
|
+
return None
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.approve_project_access_request import ApproveProjectAccessRequest
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
project_id: str,
|
|
14
|
+
access_request_id: str,
|
|
15
|
+
*,
|
|
16
|
+
body: ApproveProjectAccessRequest,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
headers: Dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: Dict[str, Any] = {
|
|
21
|
+
"method": "put",
|
|
22
|
+
"url": f"/projects/{project_id}/access-requests/{access_request_id}:approve",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_body = body.to_dict()
|
|
26
|
+
|
|
27
|
+
_kwargs["json"] = _body
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
35
|
+
if response.status_code == HTTPStatus.OK:
|
|
36
|
+
return None
|
|
37
|
+
|
|
38
|
+
errors.handle_error_response(response, client.raise_on_unexpected_status)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
42
|
+
return Response(
|
|
43
|
+
status_code=HTTPStatus(response.status_code),
|
|
44
|
+
content=response.content,
|
|
45
|
+
headers=response.headers,
|
|
46
|
+
parsed=_parse_response(client=client, response=response),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def sync_detailed(
|
|
51
|
+
project_id: str,
|
|
52
|
+
access_request_id: str,
|
|
53
|
+
*,
|
|
54
|
+
client: Client,
|
|
55
|
+
body: ApproveProjectAccessRequest,
|
|
56
|
+
) -> Response[Any]:
|
|
57
|
+
"""Approve access request
|
|
58
|
+
|
|
59
|
+
Approves an access request for the project
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
project_id (str):
|
|
63
|
+
access_request_id (str):
|
|
64
|
+
body (ApproveProjectAccessRequest):
|
|
65
|
+
client (Client): instance of the API client
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[Any]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
project_id=project_id,
|
|
77
|
+
access_request_id=access_request_id,
|
|
78
|
+
body=body,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
response = client.get_httpx_client().request(
|
|
82
|
+
auth=client.get_auth(),
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
async def asyncio_detailed(
|
|
90
|
+
project_id: str,
|
|
91
|
+
access_request_id: str,
|
|
92
|
+
*,
|
|
93
|
+
client: Client,
|
|
94
|
+
body: ApproveProjectAccessRequest,
|
|
95
|
+
) -> Response[Any]:
|
|
96
|
+
"""Approve access request
|
|
97
|
+
|
|
98
|
+
Approves an access request for the project
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
project_id (str):
|
|
102
|
+
access_request_id (str):
|
|
103
|
+
body (ApproveProjectAccessRequest):
|
|
104
|
+
client (Client): instance of the API client
|
|
105
|
+
|
|
106
|
+
Raises:
|
|
107
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
108
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
Response[Any]
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
kwargs = _get_kwargs(
|
|
115
|
+
project_id=project_id,
|
|
116
|
+
access_request_id=access_request_id,
|
|
117
|
+
body=body,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
121
|
+
|
|
122
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...models.create_project_access_request import CreateProjectAccessRequest
|
|
9
|
+
from ...models.create_response import CreateResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
project_id: str,
|
|
15
|
+
*,
|
|
16
|
+
body: CreateProjectAccessRequest,
|
|
17
|
+
) -> Dict[str, Any]:
|
|
18
|
+
headers: Dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: Dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": f"/projects/{project_id}/access-requests",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_body = body.to_dict()
|
|
26
|
+
|
|
27
|
+
_kwargs["json"] = _body
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[CreateResponse]:
|
|
35
|
+
if response.status_code == HTTPStatus.CREATED:
|
|
36
|
+
response_201 = CreateResponse.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_201
|
|
39
|
+
|
|
40
|
+
errors.handle_error_response(response, client.raise_on_unexpected_status)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[CreateResponse]:
|
|
44
|
+
return Response(
|
|
45
|
+
status_code=HTTPStatus(response.status_code),
|
|
46
|
+
content=response.content,
|
|
47
|
+
headers=response.headers,
|
|
48
|
+
parsed=_parse_response(client=client, response=response),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def sync_detailed(
|
|
53
|
+
project_id: str,
|
|
54
|
+
*,
|
|
55
|
+
client: Client,
|
|
56
|
+
body: CreateProjectAccessRequest,
|
|
57
|
+
) -> Response[CreateResponse]:
|
|
58
|
+
"""Create access request
|
|
59
|
+
|
|
60
|
+
Creates an access request for the project
|
|
61
|
+
|
|
62
|
+
Args:
|
|
63
|
+
project_id (str):
|
|
64
|
+
body (CreateProjectAccessRequest):
|
|
65
|
+
client (Client): instance of the API client
|
|
66
|
+
|
|
67
|
+
Raises:
|
|
68
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
69
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Response[CreateResponse]
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
kwargs = _get_kwargs(
|
|
76
|
+
project_id=project_id,
|
|
77
|
+
body=body,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
response = client.get_httpx_client().request(
|
|
81
|
+
auth=client.get_auth(),
|
|
82
|
+
**kwargs,
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
return _build_response(client=client, response=response)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def sync(
|
|
89
|
+
project_id: str,
|
|
90
|
+
*,
|
|
91
|
+
client: Client,
|
|
92
|
+
body: CreateProjectAccessRequest,
|
|
93
|
+
) -> Optional[CreateResponse]:
|
|
94
|
+
"""Create access request
|
|
95
|
+
|
|
96
|
+
Creates an access request for the project
|
|
97
|
+
|
|
98
|
+
Args:
|
|
99
|
+
project_id (str):
|
|
100
|
+
body (CreateProjectAccessRequest):
|
|
101
|
+
client (Client): instance of the API client
|
|
102
|
+
|
|
103
|
+
Raises:
|
|
104
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
105
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
|
+
|
|
107
|
+
Returns:
|
|
108
|
+
CreateResponse
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
try:
|
|
112
|
+
return sync_detailed(
|
|
113
|
+
project_id=project_id,
|
|
114
|
+
client=client,
|
|
115
|
+
body=body,
|
|
116
|
+
).parsed
|
|
117
|
+
except errors.NotFoundException:
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
async def asyncio_detailed(
|
|
122
|
+
project_id: str,
|
|
123
|
+
*,
|
|
124
|
+
client: Client,
|
|
125
|
+
body: CreateProjectAccessRequest,
|
|
126
|
+
) -> Response[CreateResponse]:
|
|
127
|
+
"""Create access request
|
|
128
|
+
|
|
129
|
+
Creates an access request for the project
|
|
130
|
+
|
|
131
|
+
Args:
|
|
132
|
+
project_id (str):
|
|
133
|
+
body (CreateProjectAccessRequest):
|
|
134
|
+
client (Client): instance of the API client
|
|
135
|
+
|
|
136
|
+
Raises:
|
|
137
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
138
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
139
|
+
|
|
140
|
+
Returns:
|
|
141
|
+
Response[CreateResponse]
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
kwargs = _get_kwargs(
|
|
145
|
+
project_id=project_id,
|
|
146
|
+
body=body,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
150
|
+
|
|
151
|
+
return _build_response(client=client, response=response)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def asyncio(
|
|
155
|
+
project_id: str,
|
|
156
|
+
*,
|
|
157
|
+
client: Client,
|
|
158
|
+
body: CreateProjectAccessRequest,
|
|
159
|
+
) -> Optional[CreateResponse]:
|
|
160
|
+
"""Create access request
|
|
161
|
+
|
|
162
|
+
Creates an access request for the project
|
|
163
|
+
|
|
164
|
+
Args:
|
|
165
|
+
project_id (str):
|
|
166
|
+
body (CreateProjectAccessRequest):
|
|
167
|
+
client (Client): instance of the API client
|
|
168
|
+
|
|
169
|
+
Raises:
|
|
170
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
171
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
172
|
+
|
|
173
|
+
Returns:
|
|
174
|
+
CreateResponse
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
try:
|
|
178
|
+
return (
|
|
179
|
+
await asyncio_detailed(
|
|
180
|
+
project_id=project_id,
|
|
181
|
+
client=client,
|
|
182
|
+
body=body,
|
|
183
|
+
)
|
|
184
|
+
).parsed
|
|
185
|
+
except errors.NotFoundException:
|
|
186
|
+
return None
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Dict, Optional
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import Client
|
|
8
|
+
from ...types import Response
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
project_id: str,
|
|
13
|
+
access_request_id: str,
|
|
14
|
+
) -> Dict[str, Any]:
|
|
15
|
+
_kwargs: Dict[str, Any] = {
|
|
16
|
+
"method": "put",
|
|
17
|
+
"url": f"/projects/{project_id}/access-requests/{access_request_id}:deny",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Client, response: httpx.Response) -> Optional[Any]:
|
|
24
|
+
if response.status_code == HTTPStatus.OK:
|
|
25
|
+
return None
|
|
26
|
+
|
|
27
|
+
errors.handle_error_response(response, client.raise_on_unexpected_status)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _build_response(*, client: Client, response: httpx.Response) -> Response[Any]:
|
|
31
|
+
return Response(
|
|
32
|
+
status_code=HTTPStatus(response.status_code),
|
|
33
|
+
content=response.content,
|
|
34
|
+
headers=response.headers,
|
|
35
|
+
parsed=_parse_response(client=client, response=response),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def sync_detailed(
|
|
40
|
+
project_id: str,
|
|
41
|
+
access_request_id: str,
|
|
42
|
+
*,
|
|
43
|
+
client: Client,
|
|
44
|
+
) -> Response[Any]:
|
|
45
|
+
"""Deny access request
|
|
46
|
+
|
|
47
|
+
Denies an access request for the project
|
|
48
|
+
|
|
49
|
+
Args:
|
|
50
|
+
project_id (str):
|
|
51
|
+
access_request_id (str):
|
|
52
|
+
client (Client): instance of the API client
|
|
53
|
+
|
|
54
|
+
Raises:
|
|
55
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
56
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
Response[Any]
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
kwargs = _get_kwargs(
|
|
63
|
+
project_id=project_id,
|
|
64
|
+
access_request_id=access_request_id,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
response = client.get_httpx_client().request(
|
|
68
|
+
auth=client.get_auth(),
|
|
69
|
+
**kwargs,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
return _build_response(client=client, response=response)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
async def asyncio_detailed(
|
|
76
|
+
project_id: str,
|
|
77
|
+
access_request_id: str,
|
|
78
|
+
*,
|
|
79
|
+
client: Client,
|
|
80
|
+
) -> Response[Any]:
|
|
81
|
+
"""Deny access request
|
|
82
|
+
|
|
83
|
+
Denies an access request for the project
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
project_id (str):
|
|
87
|
+
access_request_id (str):
|
|
88
|
+
client (Client): instance of the API client
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
Response[Any]
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
kwargs = _get_kwargs(
|
|
99
|
+
project_id=project_id,
|
|
100
|
+
access_request_id=access_request_id,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
response = await client.get_async_httpx_client().request(auth=client.get_auth(), **kwargs)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|