ibee 0.4.2__tar.gz → 0.5.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.
- ibee-0.5.2/PKG-INFO +171 -0
- ibee-0.5.2/README.md +150 -0
- {ibee-0.4.2 → ibee-0.5.2}/pyproject.toml +1 -1
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/__init__.py +261 -311
- ibee-0.4.2/src/ibee/client.py → ibee-0.5.2/src/ibee/base_client.py +10 -8
- {ibee-0.4.2/src/ibee/gpu_vms → ibee-0.5.2/src/ibee/billing}/__init__.py +4 -4
- ibee-0.5.2/src/ibee/billing/client.py +193 -0
- ibee-0.5.2/src/ibee/billing/raw_client.py +360 -0
- {ibee-0.4.2/src/ibee/cloud_vms → ibee-0.5.2/src/ibee/billing/types}/__init__.py +5 -4
- ibee-0.4.2/src/ibee/types/billing_eligibility_operation.py → ibee-0.5.2/src/ibee/billing/types/billing_eligibility_request_operation.py +2 -2
- ibee-0.5.2/src/ibee/billing/types/billing_eligibility_request_resource_type.py +19 -0
- ibee-0.5.2/src/ibee/block_storage/__init__.py +58 -0
- ibee-0.5.2/src/ibee/block_storage/client.py +1035 -0
- ibee-0.5.2/src/ibee/block_storage/raw_client.py +2056 -0
- ibee-0.5.2/src/ibee/block_storage/types/__init__.py +56 -0
- ibee-0.5.2/src/ibee/block_storage/types/attach_block_volume_request_mode.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/attach_block_volume_request_vm_state.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/attach_block_volume_request_vm_type.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/create_block_volume_request_volume_class.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/detach_block_volume_request_vm_state.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/detach_block_volume_request_vm_type.py +5 -0
- ibee-0.5.2/src/ibee/block_storage/types/resize_block_volume_request_vm_state.py +5 -0
- ibee-0.5.2/src/ibee/cdn/__init__.py +52 -0
- ibee-0.5.2/src/ibee/cdn/client.py +1627 -0
- ibee-0.5.2/src/ibee/cdn/raw_client.py +3474 -0
- ibee-0.5.2/src/ibee/cdn/types/__init__.py +50 -0
- ibee-0.5.2/src/ibee/cdn/types/create_cdn_distribution_request_cache_policy.py +7 -0
- ibee-0.5.2/src/ibee/cdn/types/create_cdn_distribution_request_origin_type.py +5 -0
- ibee-0.5.2/src/ibee/cdn/types/generate_cdn_url_request_disposition.py +5 -0
- ibee-0.5.2/src/ibee/cdn/types/purge_cdn_cache_request_mode.py +5 -0
- ibee-0.5.2/src/ibee/cdn/types/update_cdn_distribution_request_cache_policy.py +7 -0
- ibee-0.5.2/src/ibee/client.py +126 -0
- ibee-0.5.2/src/ibee/cloud_vms/__init__.py +49 -0
- ibee-0.5.2/src/ibee/cloud_vms/client.py +4934 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/cloud_vms/raw_client.py +1984 -415
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/cloud_vms/types/__init__.py +10 -1
- ibee-0.5.2/src/ibee/cloud_vms/types/create_cloud_vm_request_network_connectivity.py +5 -0
- ibee-0.5.2/src/ibee/cloud_vms/types/create_cloud_vm_request_vpc_attachment_mode.py +5 -0
- {ibee-0.4.2/src/ibee/firewalls → ibee-0.5.2/src/ibee/compute_catalog}/__init__.py +1 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/compute_catalog/client.py +32 -32
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/compute_catalog/raw_client.py +89 -22
- ibee-0.5.2/src/ibee/core/api_error.py +91 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/client_wrapper.py +4 -9
- ibee-0.5.2/src/ibee/core/http_client.py +843 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/jsonable_encoder.py +2 -5
- ibee-0.5.2/src/ibee/environment.py +8 -0
- ibee-0.5.2/src/ibee/errors/__init__.py +71 -0
- ibee-0.5.2/src/ibee/errors/gateway_timeout_error.py +11 -0
- ibee-0.5.2/src/ibee/errors/locked_error.py +11 -0
- ibee-0.5.2/src/ibee/errors/too_many_requests_error.py +11 -0
- ibee-0.5.2/src/ibee/errors/unprocessable_entity_error.py +11 -0
- {ibee-0.4.2/src/ibee/reserved_ips → ibee-0.5.2/src/ibee/firewalls}/__init__.py +1 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/firewalls/client.py +461 -387
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/firewalls/raw_client.py +507 -69
- ibee-0.5.2/src/ibee/gpu_vms/__init__.py +49 -0
- ibee-0.5.2/src/ibee/gpu_vms/client.py +4861 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/gpu_vms/raw_client.py +1939 -400
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/gpu_vms/types/__init__.py +10 -1
- ibee-0.5.2/src/ibee/gpu_vms/types/create_gpu_vm_request_network_connectivity.py +5 -0
- ibee-0.5.2/src/ibee/gpu_vms/types/create_gpu_vm_request_vpc_attachment_mode.py +5 -0
- ibee-0.5.2/src/ibee/held.py +565 -0
- ibee-0.5.2/src/ibee/load_balancers/client.py +1037 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/raw_client.py +396 -52
- ibee-0.5.2/src/ibee/object_storage/client.py +977 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/object_storage/raw_client.py +400 -58
- {ibee-0.4.2/src/ibee/compute_catalog → ibee-0.5.2/src/ibee/reserved_ips}/__init__.py +1 -0
- ibee-0.5.2/src/ibee/reserved_ips/client.py +877 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/reserved_ips/raw_client.py +408 -54
- ibee-0.5.2/src/ibee/secret_store/client.py +3695 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/raw_client.py +1726 -252
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/tests/test_aiohttp_autodetect.py +5 -5
- ibee-0.5.2/src/ibee/transport.py +208 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/__init__.py +163 -101
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy_enable_request.py +6 -0
- ibee-0.5.2/src/ibee/types/billing_catalog_selection.py +45 -0
- ibee-0.4.2/src/ibee/types/error_detail.py → ibee-0.5.2/src/ibee/types/billing_catalog_selection_product_id.py +1 -1
- ibee-0.5.2/src/ibee/types/billing_catalog_selection_sku_id.py +5 -0
- ibee-0.5.2/src/ibee/types/billing_eligibility.py +60 -0
- ibee-0.5.2/src/ibee/types/block_volume.py +38 -0
- ibee-0.5.2/src/ibee/types/block_volume_action.py +22 -0
- ibee-0.5.2/src/ibee/types/block_volume_attachment.py +26 -0
- ibee-0.5.2/src/ibee/types/block_volume_attachment_mode.py +5 -0
- ibee-0.5.2/src/ibee/types/block_volume_delete.py +22 -0
- ibee-0.5.2/src/ibee/types/block_volume_delete_status.py +5 -0
- ibee-0.5.2/src/ibee/types/block_volume_metadata.py +23 -0
- ibee-0.5.2/src/ibee/types/block_volume_operation.py +31 -0
- ibee-0.5.2/src/ibee/types/block_volume_operation_operation.py +7 -0
- ibee-0.5.2/src/ibee/types/block_volume_operation_status.py +5 -0
- ibee-0.5.2/src/ibee/types/block_volume_state.py +7 -0
- ibee-0.5.2/src/ibee/types/block_volume_volume_class.py +5 -0
- ibee-0.5.2/src/ibee/types/cdn_cache_purge.py +23 -0
- ibee-0.5.2/src/ibee/types/cdn_cache_purge_mode.py +5 -0
- ibee-0.4.2/src/ibee/types/bucket_stats.py → ibee-0.5.2/src/ibee/types/cdn_custom_domain.py +7 -5
- ibee-0.5.2/src/ibee/types/cdn_custom_domain_list.py +22 -0
- ibee-0.5.2/src/ibee/types/cdn_custom_domain_status.py +7 -0
- ibee-0.5.2/src/ibee/types/cdn_custom_domain_verification.py +23 -0
- ibee-0.5.2/src/ibee/types/cdn_custom_domain_verification_status.py +7 -0
- ibee-0.5.2/src/ibee/types/cdn_distribution.py +33 -0
- ibee-0.4.2/src/ibee/types/attach_network_request.py → ibee-0.5.2/src/ibee/types/cdn_distribution_list.py +4 -5
- ibee-0.5.2/src/ibee/types/cdn_distribution_origin_type.py +5 -0
- ibee-0.5.2/src/ibee/types/cdn_distribution_status.py +5 -0
- ibee-0.5.2/src/ibee/types/cdn_website_config.py +24 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/cloud_vm.py +2 -10
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_plan.py +4 -0
- ibee-0.5.2/src/ibee/types/error.py +57 -0
- ibee-0.5.2/src/ibee/types/error_detail.py +5 -0
- ibee-0.5.2/src/ibee/types/generated_cdn_url.py +21 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/gpu_vm.py +2 -10
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer.py +1 -6
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/manual_backup_run_request.py +6 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/nat_gateway.py +1 -13
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/nat_port_forwarding_rule.py +1 -9
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/reserved_ip.py +1 -14
- ibee-0.5.2/src/ibee/types/s3credential.py +26 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_create_request.py +6 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_attach_volume_request.py +6 -0
- ibee-0.5.2/src/ibee/types/vm_delete_request.py +38 -0
- ibee-0.5.2/src/ibee/types/vm_delete_request_public_ip_action.py +5 -0
- ibee-0.4.2/src/ibee/types/update_vm_request.py → ibee-0.5.2/src/ibee/types/vm_delete_request_reserved_ip_billing_catalog.py +5 -5
- ibee-0.5.2/src/ibee/types/vm_delete_request_reserved_ip_billing_catalog_sku_id.py +5 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_plan_request.py +6 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_root_disk_request.py +6 -0
- ibee-0.5.2/src/ibee/types/vpc_connectivity_type.py +5 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vm_console/client.py +58 -50
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vm_console/raw_client.py +163 -20
- ibee-0.5.2/src/ibee/vpcs/client.py +2453 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vpcs/raw_client.py +1008 -134
- ibee-0.5.2/src/ibee/vpcs/types/create_vpc_request_connectivity_type.py +5 -0
- ibee-0.5.2/src/ibee.egg-info/PKG-INFO +171 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee.egg-info/SOURCES.txt +64 -69
- ibee-0.5.2/tests/test_client_config.py +130 -0
- ibee-0.5.2/tests/test_held.py +303 -0
- ibee-0.5.2/tests/test_transport.py +286 -0
- ibee-0.4.2/PKG-INFO +0 -783
- ibee-0.4.2/README.md +0 -762
- ibee-0.4.2/src/ibee/billing/__init__.py +0 -55
- ibee-0.4.2/src/ibee/billing/admission.py +0 -65
- ibee-0.4.2/src/ibee/billing/client.py +0 -187
- ibee-0.4.2/src/ibee/billing/messages.py +0 -175
- ibee-0.4.2/src/ibee/billing/models.py +0 -20
- ibee-0.4.2/src/ibee/billing/raw_client.py +0 -137
- ibee-0.4.2/src/ibee/block_storage/__init__.py +0 -3
- ibee-0.4.2/src/ibee/block_storage/client.py +0 -727
- ibee-0.4.2/src/ibee/cdn/__init__.py +0 -3
- ibee-0.4.2/src/ibee/cdn/client.py +0 -525
- ibee-0.4.2/src/ibee/cloud_vms/client.py +0 -5021
- ibee-0.4.2/src/ibee/compute_workflows.py +0 -1552
- ibee-0.4.2/src/ibee/core/api_error.py +0 -227
- ibee-0.4.2/src/ibee/core/http_client.py +0 -748
- ibee-0.4.2/src/ibee/environment.py +0 -36
- ibee-0.4.2/src/ibee/errors/__init__.py +0 -128
- ibee-0.4.2/src/ibee/errors/api_errors.py +0 -131
- ibee-0.4.2/src/ibee/errors/billing_eligibility_error.py +0 -33
- ibee-0.4.2/src/ibee/errors/billing_errors.py +0 -128
- ibee-0.4.2/src/ibee/errors/compute_errors.py +0 -66
- ibee-0.4.2/src/ibee/errors/factory.py +0 -298
- ibee-0.4.2/src/ibee/errors/ibee_error.py +0 -28
- ibee-0.4.2/src/ibee/errors/networking_errors.py +0 -50
- ibee-0.4.2/src/ibee/errors/operation_errors.py +0 -69
- ibee-0.4.2/src/ibee/errors/secret_store_errors.py +0 -225
- ibee-0.4.2/src/ibee/errors/storage_errors.py +0 -52
- ibee-0.4.2/src/ibee/gpu_vms/client.py +0 -4978
- ibee-0.4.2/src/ibee/idempotency.py +0 -201
- ibee-0.4.2/src/ibee/load_balancers/client.py +0 -926
- ibee-0.4.2/src/ibee/networking_workflows.py +0 -1320
- ibee-0.4.2/src/ibee/object_storage/client.py +0 -765
- ibee-0.4.2/src/ibee/operations.py +0 -288
- ibee-0.4.2/src/ibee/pagination.py +0 -179
- ibee-0.4.2/src/ibee/reserved_ips/client.py +0 -836
- ibee-0.4.2/src/ibee/retry.py +0 -140
- ibee-0.4.2/src/ibee/secret_store/client.py +0 -1199
- ibee-0.4.2/src/ibee/secret_store_workflows.py +0 -546
- ibee-0.4.2/src/ibee/storage_workflows.py +0 -821
- ibee-0.4.2/src/ibee/tests/test_billing_eligibility.py +0 -120
- ibee-0.4.2/src/ibee/tests/test_cloud_vms_v03.py +0 -230
- ibee-0.4.2/src/ibee/tests/test_compute_catalog_v03.py +0 -62
- ibee-0.4.2/src/ibee/tests/test_networking_resources.py +0 -136
- ibee-0.4.2/src/ibee/tests/test_object_storage_v03.py +0 -121
- ibee-0.4.2/src/ibee/tests/test_single_call_creates.py +0 -91
- ibee-0.4.2/src/ibee/tests/test_vm_lifecycle_v03.py +0 -418
- ibee-0.4.2/src/ibee/types/billing_catalog_selection.py +0 -42
- ibee-0.4.2/src/ibee/types/billing_eligibility.py +0 -74
- ibee-0.4.2/src/ibee/types/billing_eligibility_enforcement_source.py +0 -7
- ibee-0.4.2/src/ibee/types/billing_eligibility_service_enforcement_state.py +0 -7
- ibee-0.4.2/src/ibee/types/bucket_summary.py +0 -21
- ibee-0.4.2/src/ibee/types/error.py +0 -20
- ibee-0.4.2/src/ibee/types/firewall_group_summary.py +0 -33
- ibee-0.4.2/src/ibee/types/load_balancer_custom_domain.py +0 -22
- ibee-0.4.2/src/ibee/types/network_interface.py +0 -26
- ibee-0.4.2/src/ibee/types/network_interface_status.py +0 -5
- ibee-0.4.2/src/ibee/types/s3credential.py +0 -38
- ibee-0.4.2/src/ibee/types/vpc_connectivity_type.py +0 -5
- ibee-0.4.2/src/ibee/types/vpc_virtual_ip.py +0 -40
- ibee-0.4.2/src/ibee/validation/__init__.py +0 -534
- ibee-0.4.2/src/ibee/validation/billing_catalog.py +0 -382
- ibee-0.4.2/src/ibee/validation/compute.py +0 -1000
- ibee-0.4.2/src/ibee/validation/network_services.py +0 -852
- ibee-0.4.2/src/ibee/validation/networking.py +0 -1144
- ibee-0.4.2/src/ibee/validation/recovery.py +0 -737
- ibee-0.4.2/src/ibee/validation/secret_store.py +0 -691
- ibee-0.4.2/src/ibee/validation/storage.py +0 -858
- ibee-0.4.2/src/ibee/vpcs/client.py +0 -2669
- ibee-0.4.2/src/ibee/vpcs/types/create_vpc_request_connectivity_type.py +0 -5
- ibee-0.4.2/src/ibee.egg-info/PKG-INFO +0 -783
- ibee-0.4.2/tests/test_authoritative_mutations.py +0 -95
- ibee-0.4.2/tests/test_billing_preflight_v04.py +0 -230
- ibee-0.4.2/tests/test_block_storage_cdn_v03.py +0 -93
- ibee-0.4.2/tests/test_compute_v04.py +0 -660
- ibee-0.4.2/tests/test_compute_validation_v04.py +0 -169
- ibee-0.4.2/tests/test_errors_v04.py +0 -227
- ibee-0.4.2/tests/test_network_services_v04.py +0 -470
- ibee-0.4.2/tests/test_networking_surface.py +0 -38
- ibee-0.4.2/tests/test_networking_v04.py +0 -615
- ibee-0.4.2/tests/test_object_storage.py +0 -83
- ibee-0.4.2/tests/test_operations_pagination_v04.py +0 -346
- ibee-0.4.2/tests/test_parity_alignment_v04.py +0 -238
- ibee-0.4.2/tests/test_recovery_v04.py +0 -530
- ibee-0.4.2/tests/test_retry_idempotency_v04.py +0 -315
- ibee-0.4.2/tests/test_review_fixes_v04.py +0 -391
- ibee-0.4.2/tests/test_secret_store.py +0 -286
- ibee-0.4.2/tests/test_secret_store_v04.py +0 -719
- ibee-0.4.2/tests/test_storage_v04.py +0 -724
- ibee-0.4.2/tests/test_validation_v04.py +0 -330
- ibee-0.4.2/tests/test_vm_placement.py +0 -168
- ibee-0.4.2/tests/test_workspace_id_validation.py +0 -73
- {ibee-0.4.2 → ibee-0.5.2}/LICENSE +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/setup.cfg +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/_default_clients.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/cloud_vms/types/create_cloud_vm_request_os_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/cloud_vms/types/get_cloud_vm_metrics_timeseries_request_range.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/datetime_utils.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/file.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/force_multipart.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_response.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_sse/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_sse/_api.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_sse/_decoders.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_sse/_exceptions.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/http_sse/_models.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/logging.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/parse_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/pydantic_utilities.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/query_encoder.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/remove_none_from_dict.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/request_options.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/core/serialization.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/bad_gateway_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/bad_request_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/conflict_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/forbidden_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/not_found_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/payment_required_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/service_unavailable_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/errors/unauthorized_error.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/gpu_vms/types/create_gpu_vm_request_os_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/gpu_vms/types/get_gpu_vm_metrics_timeseries_request_range.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/create_l4load_balancer_request_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/create_l7load_balancer_request_custom_domain.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/create_l7load_balancer_request_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/list_load_balancers_request_layer.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/load_balancers/types/update_l7load_balancer_request_custom_domain.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/object_storage/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/object_storage/types/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/object_storage/types/create_s3credential_request_bucket_scope.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/create_secret_identity_request_auth_method.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/create_secret_identity_request_token_policy_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/create_secret_identity_scope_request_access_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/update_secret_identity_request_token_policy_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/secret_store/types/update_secret_identity_scope_request_access_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/tests/conftest.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/attach_reserved_ip_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_frequency.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy_disable_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy_next_run_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy_schedule.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_policy_update_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_restore_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run_backup_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run_capture_scope.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run_recovery_point_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_run_trigger.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/backup_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/batch_create_secret_item.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/batch_create_secret_result.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/batch_create_secret_result_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/batch_create_secrets_response.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/billing_eligibility_billing_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/billing_eligibility_billing_state.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/billing_interval.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/bucket.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/bucket_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/cloud_vm_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_image.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_image_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_image_os_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_plan_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_plan_pricing_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_site.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/compute_site_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/create_firewall_rule_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/create_nat_port_forwarding_rule_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/create_nat_port_forwarding_rule_request_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/default_retention.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/default_retention_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/delete_response.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_attachment.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_group.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_rule.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_rule_fields.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_rule_fields_action.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_rule_fields_direction.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/firewall_rule_fields_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/gpu_vm_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/live_drift_summary.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_backend.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_backend_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_endpoint.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_layer.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_routing.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_routing_algorithm.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_rule.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_status_response.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_tls.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/load_balancer_tls_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/mount_guidance_acknowledge.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/mount_guidance_acknowledge_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/nat_pricing.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/network_allocation.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/network_allocation_connectivity.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/networking_resource_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/networking_site.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/operation_accepted.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/operation_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/operation_status_action.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/operation_status_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/power_action_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_point_summary.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore_recovery_point_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore_request_target_bandwidth_tb.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore_request_target_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_restore_target_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_volume_manifest_item.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/recovery_volume_manifest_item_role.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/reserved_ip_reservation_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/s3credential_created.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/s3credential_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/s3credential_revoked.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/s3credential_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_access.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_access_auth_method.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_action_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_action_status_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_auth_method.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_scope.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_scope_access_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_scope_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_identity_token_policy_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_lifecycle_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_lifecycle_status_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_store.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_store_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_store_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_value.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_version.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_version_summary.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_versions.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/secret_versions_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_create_request_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_delete_result.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_delete_result_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_set.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_set_capture_scope.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_set_list.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/snapshot_set_recovery_point_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/ssh_key_secret_ref.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/subnet.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_access_update_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_access_update_request_ssh_key_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_attach_volume_request_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_bandwidth_summary.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_close.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_session.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_session_console_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_session_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_session_status_console_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_console_state.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_detach_volume_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_event.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics_monitoring_status.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics_timeseries.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics_timeseries_range.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics_timeseries_resolution.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_metrics_vm_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_precheck.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_precheck_decision.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_precheck_mode.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_request.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_resize_shape.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vm_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vpc.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vpc_attached_node.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vpc_attached_node_connectivity.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vpc_detail.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/types/vpc_summary.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vm_console/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vm_console/types/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vm_console/types/vm_console_session_create_request_console_type.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vpcs/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vpcs/types/__init__.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vpcs/types/attach_vpc_node_request_connectivity.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee/vpcs/types/update_nat_port_forwarding_rule_request_protocol.py +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee.egg-info/dependency_links.txt +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee.egg-info/requires.txt +0 -0
- {ibee-0.4.2 → ibee-0.5.2}/src/ibee.egg-info/top_level.txt +0 -0
ibee-0.5.2/PKG-INFO
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ibee
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: Official Python SDK for the IBEE Solutions API
|
|
5
|
+
Author-email: IBEE Solutions <support@ibee.ai>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://ibee.ai
|
|
8
|
+
Project-URL: Documentation, https://ibee.ai/docs/api-reference
|
|
9
|
+
Project-URL: Repository, https://github.com/devs-ibee/ibee-python
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: httpx>=0.21.2
|
|
16
|
+
Requires-Dist: pydantic>=1.9.2
|
|
17
|
+
Requires-Dist: typing_extensions>=4.0.0
|
|
18
|
+
Provides-Extra: aiohttp
|
|
19
|
+
Requires-Dist: httpx-aiohttp; extra == "aiohttp"
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
# IBEE Solutions Python SDK
|
|
23
|
+
|
|
24
|
+
Official Python SDK for the IBEE Solutions API: cloud and GPU VMs, VPC networking,
|
|
25
|
+
Reserved IPs, firewalls, load balancers, object storage, Block Storage, CDN and
|
|
26
|
+
Secret Store.
|
|
27
|
+
|
|
28
|
+
The SDK is generated from the public API contract
|
|
29
|
+
([reference](https://ibee.ai/docs/api-reference)); every operation is one method,
|
|
30
|
+
sync (`Ibee`) and async (`AsyncIbee`). A small hand-written layer adds configuration
|
|
31
|
+
from the environment, safe retries, automatic idempotency keys and errors that carry
|
|
32
|
+
the server's answer unchanged. The server decides everything else (prices,
|
|
33
|
+
eligibility, limits, states).
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip install ibee
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Python 3.10 or later.
|
|
42
|
+
|
|
43
|
+
## Authenticate
|
|
44
|
+
|
|
45
|
+
Create a platform API token in the portal under Settings > API Tokens.
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from ibee import Ibee
|
|
49
|
+
|
|
50
|
+
client = Ibee(token="ibee_prod_key_...", workspace_id="710995")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or from the environment, first match wins:
|
|
54
|
+
|
|
55
|
+
| Setting | Argument | Environment |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| Token | `token=` | `IBEE_API_TOKEN`, then `IBEE_TOKEN` |
|
|
58
|
+
| Workspace | `workspace_id=` (each call may pass its own) | `IBEE_WORKSPACE_ID` |
|
|
59
|
+
| Endpoint | `base_url=`, `environment=IbeeEnvironment.DEVELOPMENT` | `IBEE_BASE_URL`, `IBEE_ENDPOINT`, then `IBEE_ENV` (`dev` or `prod`) |
|
|
60
|
+
|
|
61
|
+
The default endpoint is production, `https://api.ibee.ai/v1`. A base URL must be
|
|
62
|
+
`https` (`http` only for localhost). A development token is not sent to production,
|
|
63
|
+
or a production token to development.
|
|
64
|
+
|
|
65
|
+
## Example
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from ibee import Ibee
|
|
69
|
+
|
|
70
|
+
client = Ibee() # IBEE_API_TOKEN and IBEE_WORKSPACE_ID from the environment
|
|
71
|
+
|
|
72
|
+
sites = client.compute_catalog.list_compute_sites()
|
|
73
|
+
plans = client.compute_catalog.list_compute_plans(vm_type="cloud", site_id="site-1")
|
|
74
|
+
|
|
75
|
+
operation = client.cloud_vms.create_cloud_vm(
|
|
76
|
+
name="web-1",
|
|
77
|
+
site_id="site-1",
|
|
78
|
+
plan_id=plans.plans[0].plan_id,
|
|
79
|
+
template_id="ubuntu-24-04",
|
|
80
|
+
billing_term="HOURLY",
|
|
81
|
+
ssh_keys=["ssh-ed25519 AAAA... me"],
|
|
82
|
+
)
|
|
83
|
+
status = client.cloud_vms.get_compute_operation(operation.operation_id)
|
|
84
|
+
print(status.status) # accepted, running, ..., succeeded, failed
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Until the server resolves VM SKUs itself, `create_cloud_vm` and `create_gpu_vm` look
|
|
88
|
+
up the plan and image to fill `cpu`, `ram_mb`, `disk_gb`, `os_type`, `os_distro` and
|
|
89
|
+
the plan's `billing_catalog` for `billing_term`. The other temporary behaviours are
|
|
90
|
+
listed in [`src/ibee/held.py`](src/ibee/held.py) and the CHANGELOG.
|
|
91
|
+
|
|
92
|
+
The full method list is in [`src/ibee/reference.md`](src/ibee/reference.md).
|
|
93
|
+
|
|
94
|
+
## Errors
|
|
95
|
+
|
|
96
|
+
Every HTTP error raises the status-named class from `ibee.errors`
|
|
97
|
+
(`BadRequestError`, `UnauthorizedError`, `PaymentRequiredError`, `ForbiddenError`,
|
|
98
|
+
`NotFoundError`, `ConflictError`, `UnprocessableEntityError`, `LockedError`,
|
|
99
|
+
`TooManyRequestsError`, `BadGatewayError`, `ServiceUnavailableError`,
|
|
100
|
+
`GatewayTimeoutError`), or `ApiError` for any other status. All of them subclass
|
|
101
|
+
`ibee.core.api_error.ApiError` and carry the server's answer as received:
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
from ibee.core.api_error import ApiError
|
|
105
|
+
|
|
106
|
+
try:
|
|
107
|
+
client.cloud_vms.create_cloud_vm(name="web-1", plan_id="p1", template_id="t1")
|
|
108
|
+
except ApiError as error:
|
|
109
|
+
print(error.status_code) # 402
|
|
110
|
+
print(error.code) # "billing_denied" (the gateway's error, or detail.code)
|
|
111
|
+
print(error.billing_reason) # "resource_limit_reached"
|
|
112
|
+
print(error.message) # the server's message, or None when it sent none
|
|
113
|
+
print(error.admission_context_id) # billing admission context, when present
|
|
114
|
+
print(error.request_id) # the x-request-id response header
|
|
115
|
+
print(error.body) # the body exactly as received
|
|
116
|
+
print(error.idempotency_key) # the key sent, to retry the same write
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The SDK adds no wording of its own. Bad configuration (a missing token, an unsafe base
|
|
120
|
+
URL, a token for the other environment) raises `ibee.client.IbeeValidationError`, a
|
|
121
|
+
`ValueError`, before anything is sent.
|
|
122
|
+
|
|
123
|
+
## Retries and idempotency
|
|
124
|
+
|
|
125
|
+
- Where the contract has the `X-Idempotency-Key` header and you pass no
|
|
126
|
+
`idempotency_key`, the SDK sends a random one and reuses it on every retry.
|
|
127
|
+
- Reads (GET, HEAD, OPTIONS) are retried on 429, 502, 503 and 504.
|
|
128
|
+
- Writes are retried only when they carry an idempotency key, and only on 429 and
|
|
129
|
+
503. VM creates (cloud and GPU) are never retried.
|
|
130
|
+
- A response with a billing or admission answer (`billing_reason`,
|
|
131
|
+
`admission_context_id`, or a billing, admission, catalog or quote code) is never
|
|
132
|
+
retried, and neither is any other status.
|
|
133
|
+
- A failed connection is retried; other network errors follow the rules above.
|
|
134
|
+
- At most `max_retries` retries (default 2; `Ibee(max_retries=0)` or
|
|
135
|
+
`request_options={"max_retries": 0}` turns them off), with exponential backoff that
|
|
136
|
+
honours `Retry-After`.
|
|
137
|
+
|
|
138
|
+
## Async
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import asyncio
|
|
142
|
+
from ibee import AsyncIbee
|
|
143
|
+
|
|
144
|
+
async def main() -> None:
|
|
145
|
+
client = AsyncIbee()
|
|
146
|
+
print(await client.cloud_vms.list_cloud_vms())
|
|
147
|
+
|
|
148
|
+
asyncio.run(main())
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Development
|
|
152
|
+
|
|
153
|
+
`src/ibee` is generated by Fern from `contract/ibee-cloud.yaml`, an exact copy of
|
|
154
|
+
`fern/openapi/ibee-cloud.yaml` in platform-docs, with the settings in `fern/`. The
|
|
155
|
+
hand-written files are listed in `src/ibee/.fernignore`. Regenerate with
|
|
156
|
+
`scripts/regenerate.sh` (Fern CLI 5.45.3 and Docker). Run the tests with
|
|
157
|
+
`pip install -e . pytest && pytest -q`.
|
|
158
|
+
|
|
159
|
+
CI checks every pull request:
|
|
160
|
+
|
|
161
|
+
- `scripts/check_generated.sh`: regenerating from `contract/ibee-cloud.yaml` gives the
|
|
162
|
+
committed `src/ibee` (the hand-written files aside).
|
|
163
|
+
- `scripts/check_contract_calls.py`: the hand-written files call only operations and
|
|
164
|
+
paths of `contract/ibee-cloud.yaml`.
|
|
165
|
+
|
|
166
|
+
A pull request that changes `contract/**` gets the regenerated code pushed to its
|
|
167
|
+
branch (`.github/workflows/regenerate.yml`).
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
MIT
|
ibee-0.5.2/README.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# IBEE Solutions Python SDK
|
|
2
|
+
|
|
3
|
+
Official Python SDK for the IBEE Solutions API: cloud and GPU VMs, VPC networking,
|
|
4
|
+
Reserved IPs, firewalls, load balancers, object storage, Block Storage, CDN and
|
|
5
|
+
Secret Store.
|
|
6
|
+
|
|
7
|
+
The SDK is generated from the public API contract
|
|
8
|
+
([reference](https://ibee.ai/docs/api-reference)); every operation is one method,
|
|
9
|
+
sync (`Ibee`) and async (`AsyncIbee`). A small hand-written layer adds configuration
|
|
10
|
+
from the environment, safe retries, automatic idempotency keys and errors that carry
|
|
11
|
+
the server's answer unchanged. The server decides everything else (prices,
|
|
12
|
+
eligibility, limits, states).
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install ibee
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Python 3.10 or later.
|
|
21
|
+
|
|
22
|
+
## Authenticate
|
|
23
|
+
|
|
24
|
+
Create a platform API token in the portal under Settings > API Tokens.
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from ibee import Ibee
|
|
28
|
+
|
|
29
|
+
client = Ibee(token="ibee_prod_key_...", workspace_id="710995")
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Or from the environment, first match wins:
|
|
33
|
+
|
|
34
|
+
| Setting | Argument | Environment |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| Token | `token=` | `IBEE_API_TOKEN`, then `IBEE_TOKEN` |
|
|
37
|
+
| Workspace | `workspace_id=` (each call may pass its own) | `IBEE_WORKSPACE_ID` |
|
|
38
|
+
| Endpoint | `base_url=`, `environment=IbeeEnvironment.DEVELOPMENT` | `IBEE_BASE_URL`, `IBEE_ENDPOINT`, then `IBEE_ENV` (`dev` or `prod`) |
|
|
39
|
+
|
|
40
|
+
The default endpoint is production, `https://api.ibee.ai/v1`. A base URL must be
|
|
41
|
+
`https` (`http` only for localhost). A development token is not sent to production,
|
|
42
|
+
or a production token to development.
|
|
43
|
+
|
|
44
|
+
## Example
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
from ibee import Ibee
|
|
48
|
+
|
|
49
|
+
client = Ibee() # IBEE_API_TOKEN and IBEE_WORKSPACE_ID from the environment
|
|
50
|
+
|
|
51
|
+
sites = client.compute_catalog.list_compute_sites()
|
|
52
|
+
plans = client.compute_catalog.list_compute_plans(vm_type="cloud", site_id="site-1")
|
|
53
|
+
|
|
54
|
+
operation = client.cloud_vms.create_cloud_vm(
|
|
55
|
+
name="web-1",
|
|
56
|
+
site_id="site-1",
|
|
57
|
+
plan_id=plans.plans[0].plan_id,
|
|
58
|
+
template_id="ubuntu-24-04",
|
|
59
|
+
billing_term="HOURLY",
|
|
60
|
+
ssh_keys=["ssh-ed25519 AAAA... me"],
|
|
61
|
+
)
|
|
62
|
+
status = client.cloud_vms.get_compute_operation(operation.operation_id)
|
|
63
|
+
print(status.status) # accepted, running, ..., succeeded, failed
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Until the server resolves VM SKUs itself, `create_cloud_vm` and `create_gpu_vm` look
|
|
67
|
+
up the plan and image to fill `cpu`, `ram_mb`, `disk_gb`, `os_type`, `os_distro` and
|
|
68
|
+
the plan's `billing_catalog` for `billing_term`. The other temporary behaviours are
|
|
69
|
+
listed in [`src/ibee/held.py`](src/ibee/held.py) and the CHANGELOG.
|
|
70
|
+
|
|
71
|
+
The full method list is in [`src/ibee/reference.md`](src/ibee/reference.md).
|
|
72
|
+
|
|
73
|
+
## Errors
|
|
74
|
+
|
|
75
|
+
Every HTTP error raises the status-named class from `ibee.errors`
|
|
76
|
+
(`BadRequestError`, `UnauthorizedError`, `PaymentRequiredError`, `ForbiddenError`,
|
|
77
|
+
`NotFoundError`, `ConflictError`, `UnprocessableEntityError`, `LockedError`,
|
|
78
|
+
`TooManyRequestsError`, `BadGatewayError`, `ServiceUnavailableError`,
|
|
79
|
+
`GatewayTimeoutError`), or `ApiError` for any other status. All of them subclass
|
|
80
|
+
`ibee.core.api_error.ApiError` and carry the server's answer as received:
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
from ibee.core.api_error import ApiError
|
|
84
|
+
|
|
85
|
+
try:
|
|
86
|
+
client.cloud_vms.create_cloud_vm(name="web-1", plan_id="p1", template_id="t1")
|
|
87
|
+
except ApiError as error:
|
|
88
|
+
print(error.status_code) # 402
|
|
89
|
+
print(error.code) # "billing_denied" (the gateway's error, or detail.code)
|
|
90
|
+
print(error.billing_reason) # "resource_limit_reached"
|
|
91
|
+
print(error.message) # the server's message, or None when it sent none
|
|
92
|
+
print(error.admission_context_id) # billing admission context, when present
|
|
93
|
+
print(error.request_id) # the x-request-id response header
|
|
94
|
+
print(error.body) # the body exactly as received
|
|
95
|
+
print(error.idempotency_key) # the key sent, to retry the same write
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The SDK adds no wording of its own. Bad configuration (a missing token, an unsafe base
|
|
99
|
+
URL, a token for the other environment) raises `ibee.client.IbeeValidationError`, a
|
|
100
|
+
`ValueError`, before anything is sent.
|
|
101
|
+
|
|
102
|
+
## Retries and idempotency
|
|
103
|
+
|
|
104
|
+
- Where the contract has the `X-Idempotency-Key` header and you pass no
|
|
105
|
+
`idempotency_key`, the SDK sends a random one and reuses it on every retry.
|
|
106
|
+
- Reads (GET, HEAD, OPTIONS) are retried on 429, 502, 503 and 504.
|
|
107
|
+
- Writes are retried only when they carry an idempotency key, and only on 429 and
|
|
108
|
+
503. VM creates (cloud and GPU) are never retried.
|
|
109
|
+
- A response with a billing or admission answer (`billing_reason`,
|
|
110
|
+
`admission_context_id`, or a billing, admission, catalog or quote code) is never
|
|
111
|
+
retried, and neither is any other status.
|
|
112
|
+
- A failed connection is retried; other network errors follow the rules above.
|
|
113
|
+
- At most `max_retries` retries (default 2; `Ibee(max_retries=0)` or
|
|
114
|
+
`request_options={"max_retries": 0}` turns them off), with exponential backoff that
|
|
115
|
+
honours `Retry-After`.
|
|
116
|
+
|
|
117
|
+
## Async
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
import asyncio
|
|
121
|
+
from ibee import AsyncIbee
|
|
122
|
+
|
|
123
|
+
async def main() -> None:
|
|
124
|
+
client = AsyncIbee()
|
|
125
|
+
print(await client.cloud_vms.list_cloud_vms())
|
|
126
|
+
|
|
127
|
+
asyncio.run(main())
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Development
|
|
131
|
+
|
|
132
|
+
`src/ibee` is generated by Fern from `contract/ibee-cloud.yaml`, an exact copy of
|
|
133
|
+
`fern/openapi/ibee-cloud.yaml` in platform-docs, with the settings in `fern/`. The
|
|
134
|
+
hand-written files are listed in `src/ibee/.fernignore`. Regenerate with
|
|
135
|
+
`scripts/regenerate.sh` (Fern CLI 5.45.3 and Docker). Run the tests with
|
|
136
|
+
`pip install -e . pytest && pytest -q`.
|
|
137
|
+
|
|
138
|
+
CI checks every pull request:
|
|
139
|
+
|
|
140
|
+
- `scripts/check_generated.sh`: regenerating from `contract/ibee-cloud.yaml` gives the
|
|
141
|
+
committed `src/ibee` (the hand-written files aside).
|
|
142
|
+
- `scripts/check_contract_calls.py`: the hand-written files call only operations and
|
|
143
|
+
paths of `contract/ibee-cloud.yaml`.
|
|
144
|
+
|
|
145
|
+
A pull request that changes `contract/**` gets the regenerated code pushed to its
|
|
146
|
+
branch (`.github/workflows/regenerate.yml`).
|
|
147
|
+
|
|
148
|
+
## License
|
|
149
|
+
|
|
150
|
+
MIT
|