americancloud 1.2.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.
- americancloud-1.2.2/.gitignore +7 -0
- americancloud-1.2.2/CHANGELOG.md +23 -0
- americancloud-1.2.2/LICENSE +202 -0
- americancloud-1.2.2/NOTICE +8 -0
- americancloud-1.2.2/PKG-INFO +125 -0
- americancloud-1.2.2/README.md +100 -0
- americancloud-1.2.2/VERSIONING.md +71 -0
- americancloud-1.2.2/pyproject.toml +56 -0
- americancloud-1.2.2/src/americancloud/.fern/metadata.json +8 -0
- americancloud-1.2.2/src/americancloud/CONTRIBUTING.md +125 -0
- americancloud-1.2.2/src/americancloud/__init__.py +653 -0
- americancloud-1.2.2/src/americancloud/_default_clients.py +32 -0
- americancloud-1.2.2/src/americancloud/block_storage/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/block_storage/client.py +836 -0
- americancloud-1.2.2/src/americancloud/block_storage/raw_client.py +1952 -0
- americancloud-1.2.2/src/americancloud/block_storage/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/block_storage/types/list_block_storage_response.py +21 -0
- americancloud-1.2.2/src/americancloud/block_storage/types/list_snapshots_block_storage_response.py +21 -0
- americancloud-1.2.2/src/americancloud/client.py +695 -0
- americancloud-1.2.2/src/americancloud/core/__init__.py +127 -0
- americancloud-1.2.2/src/americancloud/core/api_error.py +23 -0
- americancloud-1.2.2/src/americancloud/core/client_wrapper.py +127 -0
- americancloud-1.2.2/src/americancloud/core/datetime_utils.py +70 -0
- americancloud-1.2.2/src/americancloud/core/file.py +67 -0
- americancloud-1.2.2/src/americancloud/core/force_multipart.py +18 -0
- americancloud-1.2.2/src/americancloud/core/http_client.py +839 -0
- americancloud-1.2.2/src/americancloud/core/http_response.py +59 -0
- americancloud-1.2.2/src/americancloud/core/http_sse/__init__.py +42 -0
- americancloud-1.2.2/src/americancloud/core/http_sse/_api.py +148 -0
- americancloud-1.2.2/src/americancloud/core/http_sse/_decoders.py +61 -0
- americancloud-1.2.2/src/americancloud/core/http_sse/_exceptions.py +7 -0
- americancloud-1.2.2/src/americancloud/core/http_sse/_models.py +17 -0
- americancloud-1.2.2/src/americancloud/core/jsonable_encoder.py +120 -0
- americancloud-1.2.2/src/americancloud/core/logging.py +107 -0
- americancloud-1.2.2/src/americancloud/core/parse_error.py +36 -0
- americancloud-1.2.2/src/americancloud/core/pydantic_utilities.py +508 -0
- americancloud-1.2.2/src/americancloud/core/query_encoder.py +58 -0
- americancloud-1.2.2/src/americancloud/core/remove_none_from_dict.py +11 -0
- americancloud-1.2.2/src/americancloud/core/request_options.py +35 -0
- americancloud-1.2.2/src/americancloud/core/serialization.py +347 -0
- americancloud-1.2.2/src/americancloud/database_backups/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/database_backups/client.py +1157 -0
- americancloud-1.2.2/src/americancloud/database_backups/raw_client.py +2577 -0
- americancloud-1.2.2/src/americancloud/database_backups/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/database_backups/types/trigger_backup_request_dto_backup_method.py +7 -0
- americancloud-1.2.2/src/americancloud/database_backups/types/trigger_backup_request_dto_deletion_policy.py +5 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/client.py +795 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/raw_client.py +1607 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/types/__init__.py +40 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/types/delete_backup_repo_database_infrastructure_request_mode.py +5 -0
- americancloud-1.2.2/src/americancloud/database_infrastructure/types/list_database_infrastructure_response.py +20 -0
- americancloud-1.2.2/src/americancloud/database_offerings/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/database_offerings/client.py +212 -0
- americancloud-1.2.2/src/americancloud/database_offerings/raw_client.py +452 -0
- americancloud-1.2.2/src/americancloud/database_offerings/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/database_offerings/types/list_database_offerings_request_type.py +7 -0
- americancloud-1.2.2/src/americancloud/database_offerings/types/list_database_offerings_response.py +21 -0
- americancloud-1.2.2/src/americancloud/database_operations/__init__.py +4 -0
- americancloud-1.2.2/src/americancloud/database_operations/client.py +118 -0
- americancloud-1.2.2/src/americancloud/database_operations/raw_client.py +226 -0
- americancloud-1.2.2/src/americancloud/database_regions/__init__.py +4 -0
- americancloud-1.2.2/src/americancloud/database_regions/client.py +106 -0
- americancloud-1.2.2/src/americancloud/database_regions/raw_client.py +219 -0
- americancloud-1.2.2/src/americancloud/databases/__init__.py +58 -0
- americancloud-1.2.2/src/americancloud/databases/client.py +1305 -0
- americancloud-1.2.2/src/americancloud/databases/raw_client.py +3017 -0
- americancloud-1.2.2/src/americancloud/databases/types/__init__.py +58 -0
- americancloud-1.2.2/src/americancloud/databases/types/create_database_cluster_dto_availability_type.py +5 -0
- americancloud-1.2.2/src/americancloud/databases/types/create_database_cluster_dto_network_config.py +63 -0
- americancloud-1.2.2/src/americancloud/databases/types/delete_load_balancer_databases_request_type.py +5 -0
- americancloud-1.2.2/src/americancloud/databases/types/list_databases_response.py +21 -0
- americancloud-1.2.2/src/americancloud/databases/types/modify_load_balancer_databases_request_type.py +5 -0
- americancloud-1.2.2/src/americancloud/dns_records/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/dns_records/client.py +596 -0
- americancloud-1.2.2/src/americancloud/dns_records/raw_client.py +1054 -0
- americancloud-1.2.2/src/americancloud/dns_records/types/__init__.py +40 -0
- americancloud-1.2.2/src/americancloud/dns_records/types/create_record_dto_type.py +5 -0
- americancloud-1.2.2/src/americancloud/dns_records/types/list_dns_records_response.py +21 -0
- americancloud-1.2.2/src/americancloud/dns_records/types/update_record_dto_type.py +5 -0
- americancloud-1.2.2/src/americancloud/dns_zones/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/dns_zones/client.py +266 -0
- americancloud-1.2.2/src/americancloud/dns_zones/raw_client.py +653 -0
- americancloud-1.2.2/src/americancloud/dns_zones/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/dns_zones/types/list_dns_zones_response.py +21 -0
- americancloud-1.2.2/src/americancloud/egress_rules/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/egress_rules/client.py +623 -0
- americancloud-1.2.2/src/americancloud/egress_rules/raw_client.py +1351 -0
- americancloud-1.2.2/src/americancloud/egress_rules/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/egress_rules/types/list_by_network_egress_rules_response.py +21 -0
- americancloud-1.2.2/src/americancloud/egress_rules/types/list_egress_rules_response.py +21 -0
- americancloud-1.2.2/src/americancloud/environment.py +7 -0
- americancloud-1.2.2/src/americancloud/errors/__init__.py +53 -0
- americancloud-1.2.2/src/americancloud/errors/bad_request_error.py +11 -0
- americancloud-1.2.2/src/americancloud/errors/conflict_error.py +11 -0
- americancloud-1.2.2/src/americancloud/errors/forbidden_error.py +11 -0
- americancloud-1.2.2/src/americancloud/errors/internal_server_error.py +11 -0
- americancloud-1.2.2/src/americancloud/errors/not_found_error.py +11 -0
- americancloud-1.2.2/src/americancloud/errors/unauthorized_error.py +11 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/client.py +350 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/raw_client.py +694 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/types/__init__.py +40 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/types/create_firewall_rule_dto_protocol.py +5 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/types/create_firewall_rule_dto_type.py +5 -0
- americancloud-1.2.2/src/americancloud/firewall_rules/types/list_firewall_rules_response.py +21 -0
- americancloud-1.2.2/src/americancloud/images/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/images/client.py +281 -0
- americancloud-1.2.2/src/americancloud/images/raw_client.py +647 -0
- americancloud-1.2.2/src/americancloud/images/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/images/types/list_images_response.py +21 -0
- americancloud-1.2.2/src/americancloud/isolated_networks/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/isolated_networks/client.py +563 -0
- americancloud-1.2.2/src/americancloud/isolated_networks/raw_client.py +1275 -0
- americancloud-1.2.2/src/americancloud/isolated_networks/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/isolated_networks/types/list_isolated_networks_response.py +21 -0
- americancloud-1.2.2/src/americancloud/kubernetes/__init__.py +49 -0
- americancloud-1.2.2/src/americancloud/kubernetes/client.py +1207 -0
- americancloud-1.2.2/src/americancloud/kubernetes/raw_client.py +2493 -0
- americancloud-1.2.2/src/americancloud/kubernetes/types/__init__.py +47 -0
- americancloud-1.2.2/src/americancloud/kubernetes/types/cluster_power_kubernetes_request_action.py +5 -0
- americancloud-1.2.2/src/americancloud/kubernetes/types/list_clusters_kubernetes_response.py +21 -0
- americancloud-1.2.2/src/americancloud/kubernetes/types/list_packages_kubernetes_response.py +21 -0
- americancloud-1.2.2/src/americancloud/kubernetes/types/list_versions_kubernetes_response.py +20 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/__init__.py +52 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/client.py +786 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/raw_client.py +1604 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/__init__.py +50 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/create_load_balancer_rule_dto_algorithm.py +5 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/create_load_balancer_rule_dto_protocol.py +5 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/list_instances_load_balancer_rules_response.py +21 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/list_load_balancer_rules_response.py +21 -0
- americancloud-1.2.2/src/americancloud/load_balancer_rules/types/update_load_balancer_rule_dto_algorithm.py +5 -0
- americancloud-1.2.2/src/americancloud/network_acls/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/network_acls/client.py +977 -0
- americancloud-1.2.2/src/americancloud/network_acls/raw_client.py +2163 -0
- americancloud-1.2.2/src/americancloud/network_acls/types/__init__.py +40 -0
- americancloud-1.2.2/src/americancloud/network_acls/types/list_lists_by_vpc_network_acls_response.py +21 -0
- americancloud-1.2.2/src/americancloud/network_acls/types/list_lists_network_acls_response.py +21 -0
- americancloud-1.2.2/src/americancloud/network_acls/types/list_rules_network_acls_response.py +21 -0
- americancloud-1.2.2/src/americancloud/object_storage/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/object_storage/client.py +841 -0
- americancloud-1.2.2/src/americancloud/object_storage/raw_client.py +1980 -0
- americancloud-1.2.2/src/americancloud/object_storage/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/object_storage/types/list_buckets_object_storage_response.py +21 -0
- americancloud-1.2.2/src/americancloud/object_storage/types/list_units_object_storage_response.py +21 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/client.py +353 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/raw_client.py +693 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/types/create_port_forwarding_rule_dto_protocol.py +5 -0
- americancloud-1.2.2/src/americancloud/port_forwarding/types/list_port_forwarding_response.py +21 -0
- americancloud-1.2.2/src/americancloud/public_ips/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/public_ips/client.py +879 -0
- americancloud-1.2.2/src/americancloud/public_ips/raw_client.py +2069 -0
- americancloud-1.2.2/src/americancloud/public_ips/types/__init__.py +40 -0
- americancloud-1.2.2/src/americancloud/public_ips/types/list_by_isolated_network_public_ips_response.py +21 -0
- americancloud-1.2.2/src/americancloud/public_ips/types/list_by_vpc_public_ips_response.py +21 -0
- americancloud-1.2.2/src/americancloud/public_ips/types/list_public_ips_response.py +21 -0
- americancloud-1.2.2/src/americancloud/py.typed +0 -0
- americancloud-1.2.2/src/americancloud/reference.md +12980 -0
- americancloud-1.2.2/src/americancloud/regions/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/regions/client.py +261 -0
- americancloud-1.2.2/src/americancloud/regions/raw_client.py +629 -0
- americancloud-1.2.2/src/americancloud/regions/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/regions/types/list_regions_response.py +21 -0
- americancloud-1.2.2/src/americancloud/snapshots/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/snapshots/client.py +573 -0
- americancloud-1.2.2/src/americancloud/snapshots/raw_client.py +1326 -0
- americancloud-1.2.2/src/americancloud/snapshots/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/snapshots/types/list_snapshots_response.py +21 -0
- americancloud-1.2.2/src/americancloud/ssh_keys/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/ssh_keys/client.py +286 -0
- americancloud-1.2.2/src/americancloud/ssh_keys/raw_client.py +650 -0
- americancloud-1.2.2/src/americancloud/ssh_keys/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/ssh_keys/types/list_ssh_keys_response.py +21 -0
- americancloud-1.2.2/src/americancloud/tests/conftest.py +21 -0
- americancloud-1.2.2/src/americancloud/tests/test_aiohttp_autodetect.py +113 -0
- americancloud-1.2.2/src/americancloud/types/__init__.py +380 -0
- americancloud-1.2.2/src/americancloud/types/access_key_dto.py +30 -0
- americancloud-1.2.2/src/americancloud/types/api_error_dto.py +39 -0
- americancloud-1.2.2/src/americancloud/types/api_error_dto_message.py +5 -0
- americancloud-1.2.2/src/americancloud/types/assign_vms_to_load_balancer_rule_dto.py +25 -0
- americancloud-1.2.2/src/americancloud/types/backup_cluster_config_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_delete_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_details_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_list_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_policy_list_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_repo_delete_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_repo_list_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_repo_setup_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_repo_status_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_repo_update_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_schedule_item_dto.py +45 -0
- americancloud-1.2.2/src/americancloud/types/backup_schedule_item_dto_backup_method.py +5 -0
- americancloud-1.2.2/src/americancloud/types/backup_schedule_list_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/backup_trigger_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/bandwidth_dto.py +33 -0
- americancloud-1.2.2/src/americancloud/types/bandwidth_usage_dto.py +44 -0
- americancloud-1.2.2/src/americancloud/types/bucket_dto.py +51 -0
- americancloud-1.2.2/src/americancloud/types/cluster_action_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/cluster_detail_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/cluster_status_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/connection_info_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/cost_breakdown_dto.py +38 -0
- americancloud-1.2.2/src/americancloud/types/cost_estimate_response_dto.py +34 -0
- americancloud-1.2.2/src/americancloud/types/create_cluster_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/create_cluster_restore_dto.py +38 -0
- americancloud-1.2.2/src/americancloud/types/create_kubernetes_cluster_request.py +64 -0
- americancloud-1.2.2/src/americancloud/types/create_snapshot_dto.py +35 -0
- americancloud-1.2.2/src/americancloud/types/create_snapshot_dto_type.py +5 -0
- americancloud-1.2.2/src/americancloud/types/create_ssh_key_response_dto.py +38 -0
- americancloud-1.2.2/src/americancloud/types/create_vm_dto.py +77 -0
- americancloud-1.2.2/src/americancloud/types/create_vm_dto_subscription_period.py +5 -0
- americancloud-1.2.2/src/americancloud/types/create_vm_response_dto.py +133 -0
- americancloud-1.2.2/src/americancloud/types/create_volume_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/create_vpc_network_dto.py +37 -0
- americancloud-1.2.2/src/americancloud/types/create_word_press_dto.py +29 -0
- americancloud-1.2.2/src/americancloud/types/database_offering_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/dbaas_regions_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/dbs_cost_estimate_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/detailed_isolated_network_response_dto.py +93 -0
- americancloud-1.2.2/src/americancloud/types/detailed_isolated_network_response_dto_status.py +7 -0
- americancloud-1.2.2/src/americancloud/types/detailed_vpc_network_response_dto.py +68 -0
- americancloud-1.2.2/src/americancloud/types/detailed_vpc_network_response_dto_status.py +5 -0
- americancloud-1.2.2/src/americancloud/types/discount_applied_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/egress_rule_response_dto.py +66 -0
- americancloud-1.2.2/src/americancloud/types/estimates_dto.py +28 -0
- americancloud-1.2.2/src/americancloud/types/firewall_rule_response_dto.py +71 -0
- americancloud-1.2.2/src/americancloud/types/image_dto.py +42 -0
- americancloud-1.2.2/src/americancloud/types/inbound_port_dto.py +25 -0
- americancloud-1.2.2/src/americancloud/types/inbound_port_dto_protocol.py +5 -0
- americancloud-1.2.2/src/americancloud/types/isolated_network_config_dto.py +30 -0
- americancloud-1.2.2/src/americancloud/types/isolated_network_response_dto.py +88 -0
- americancloud-1.2.2/src/americancloud/types/isolated_network_response_dto_status.py +5 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_cluster_response.py +89 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_config_response_dto.py +22 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_node_pool.py +58 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_node_response.py +68 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_node_response_role.py +5 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_node_root_volume.py +30 -0
- americancloud-1.2.2/src/americancloud/types/kubernetes_package_response.py +42 -0
- americancloud-1.2.2/src/americancloud/types/load_balancer_rule_instance_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/load_balancer_rule_response_dto.py +81 -0
- americancloud-1.2.2/src/americancloud/types/marketplace_app_dto.py +35 -0
- americancloud-1.2.2/src/americancloud/types/max_instances_dto.py +36 -0
- americancloud-1.2.2/src/americancloud/types/modify_backup_schedule_request_dto.py +41 -0
- americancloud-1.2.2/src/americancloud/types/nameservers_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/network_access_dto.py +45 -0
- americancloud-1.2.2/src/americancloud/types/network_acl_list_response_dto.py +49 -0
- americancloud-1.2.2/src/americancloud/types/network_acl_rule_response_dto.py +84 -0
- americancloud-1.2.2/src/americancloud/types/object_storage_success_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/object_storage_unit_dto.py +50 -0
- americancloud-1.2.2/src/americancloud/types/operation_status_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/paginated_response_dto.py +22 -0
- americancloud-1.2.2/src/americancloud/types/port_forwarding_rule_response_dto.py +71 -0
- americancloud-1.2.2/src/americancloud/types/prorated_estimate_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/public_ip_response_dto.py +100 -0
- americancloud-1.2.2/src/americancloud/types/quota_info_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/recent_operations_response_dto.py +17 -0
- americancloud-1.2.2/src/americancloud/types/record_response_dto.py +52 -0
- americancloud-1.2.2/src/americancloud/types/region_dto.py +35 -0
- americancloud-1.2.2/src/americancloud/types/session_response_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/snapshot_operation_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/snapshot_response_dto.py +65 -0
- americancloud-1.2.2/src/americancloud/types/snapshot_response_dto_type.py +5 -0
- americancloud-1.2.2/src/americancloud/types/ssh_key_list_item_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/validation_error_item_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/vm_console_response_dto.py +22 -0
- americancloud-1.2.2/src/americancloud/types/vm_disk_resize_response_dto.py +42 -0
- americancloud-1.2.2/src/americancloud/types/vm_hostname_update_response_dto.py +37 -0
- americancloud-1.2.2/src/americancloud/types/vm_metric_sample_dto.py +40 -0
- americancloud-1.2.2/src/americancloud/types/vm_package_dto.py +86 -0
- americancloud-1.2.2/src/americancloud/types/vm_password_reset_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/vm_power_action_response_dto.py +28 -0
- americancloud-1.2.2/src/americancloud/types/vm_power_action_response_dto_status.py +5 -0
- americancloud-1.2.2/src/americancloud/types/vm_reinstall_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/vm_response_dto.py +125 -0
- americancloud-1.2.2/src/americancloud/types/vm_specs_dto.py +31 -0
- americancloud-1.2.2/src/americancloud/types/volume_deletion_response_dto.py +32 -0
- americancloud-1.2.2/src/americancloud/types/volume_operation_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/volume_response_dto.py +54 -0
- americancloud-1.2.2/src/americancloud/types/vpc_network_config_dto.py +37 -0
- americancloud-1.2.2/src/americancloud/types/vpc_network_response_dto.py +57 -0
- americancloud-1.2.2/src/americancloud/types/vpc_network_response_dto_status.py +5 -0
- americancloud-1.2.2/src/americancloud/types/vpc_tier_response_dto.py +63 -0
- americancloud-1.2.2/src/americancloud/types/vpc_tier_response_dto_status.py +5 -0
- americancloud-1.2.2/src/americancloud/types/website_info_dto.py +94 -0
- americancloud-1.2.2/src/americancloud/types/websites_dto.py +33 -0
- americancloud-1.2.2/src/americancloud/types/word_press_instance_dto.py +69 -0
- americancloud-1.2.2/src/americancloud/types/word_press_package_dto.py +40 -0
- americancloud-1.2.2/src/americancloud/types/word_press_package_metadata_dto.py +50 -0
- americancloud-1.2.2/src/americancloud/types/word_press_success_response_dto.py +27 -0
- americancloud-1.2.2/src/americancloud/types/zone_response_dto.py +36 -0
- americancloud-1.2.2/src/americancloud/vm_packages/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/vm_packages/client.py +267 -0
- americancloud-1.2.2/src/americancloud/vm_packages/raw_client.py +629 -0
- americancloud-1.2.2/src/americancloud/vm_packages/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/vm_packages/types/list_vm_packages_response.py +21 -0
- americancloud-1.2.2/src/americancloud/vms/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/vms/client.py +1423 -0
- americancloud-1.2.2/src/americancloud/vms/raw_client.py +2984 -0
- americancloud-1.2.2/src/americancloud/vms/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/vms/types/list_vms_response.py +21 -0
- americancloud-1.2.2/src/americancloud/vms/types/power_vms_request_action.py +5 -0
- americancloud-1.2.2/src/americancloud/vpc_networks/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/vpc_networks/client.py +801 -0
- americancloud-1.2.2/src/americancloud/vpc_networks/raw_client.py +1767 -0
- americancloud-1.2.2/src/americancloud/vpc_networks/types/__init__.py +34 -0
- americancloud-1.2.2/src/americancloud/vpc_networks/types/list_vpc_networks_response.py +21 -0
- americancloud-1.2.2/src/americancloud/wordpress/__init__.py +37 -0
- americancloud-1.2.2/src/americancloud/wordpress/client.py +1158 -0
- americancloud-1.2.2/src/americancloud/wordpress/raw_client.py +3072 -0
- americancloud-1.2.2/src/americancloud/wordpress/types/__init__.py +38 -0
- americancloud-1.2.2/src/americancloud/wordpress/types/list_packages_wordpress_response.py +21 -0
- americancloud-1.2.2/src/americancloud/wordpress/types/list_upgrade_packages_wordpress_response.py +21 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the American Cloud Python SDK are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
See [`VERSIONING.md`](./VERSIONING.md) for how SDK versions relate to the API version.
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## [1.2.2] - 2026-06-02
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Initial public release of the American Cloud Python SDK (`americancloud`).
|
|
16
|
+
- Versioned in lockstep with the API platform: SDK `x.y.z` is generated from
|
|
17
|
+
OpenAPI document `x.y.z`. Targets American Cloud API `v1`.
|
|
18
|
+
- Coverage for compute, block storage, snapshots, networking (VPC, isolated
|
|
19
|
+
networks, ACLs, firewall, port-forwarding, load-balancer and egress rules),
|
|
20
|
+
public IPs, DNS, managed databases, Kubernetes, object storage, and WordPress.
|
|
21
|
+
|
|
22
|
+
[Unreleased]: https://github.com/American-Cloud/americancloud-sdk-python/compare/v1.2.2...HEAD
|
|
23
|
+
[1.2.2]: https://github.com/American-Cloud/americancloud-sdk-python/releases/tag/v1.2.2
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
American Cloud Python SDK
|
|
2
|
+
Copyright 2026 American Cloud
|
|
3
|
+
|
|
4
|
+
This product includes software developed at American Cloud
|
|
5
|
+
(https://americancloud.com).
|
|
6
|
+
|
|
7
|
+
Portions of this SDK are auto-generated from the American Cloud Platform
|
|
8
|
+
OpenAPI specification using Fern (https://buildwithfern.com).
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: americancloud
|
|
3
|
+
Version: 1.2.2
|
|
4
|
+
Summary: Official Python SDK for the American Cloud Platform API.
|
|
5
|
+
Project-URL: Homepage, https://americancloud.com
|
|
6
|
+
Project-URL: Documentation, https://americancloud.docs.buildwithfern.com
|
|
7
|
+
Project-URL: Repository, https://github.com/American-Cloud/americancloud-sdk-python
|
|
8
|
+
Project-URL: Changelog, https://github.com/American-Cloud/americancloud-sdk-python/blob/main/CHANGELOG.md
|
|
9
|
+
Author-email: American Cloud <support@americancloud.com>
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
License-File: NOTICE
|
|
13
|
+
Keywords: american-cloud,americancloud,api,client,cloud,sdk
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Requires-Dist: httpx>=0.23
|
|
22
|
+
Requires-Dist: pydantic<3,>=1.9
|
|
23
|
+
Requires-Dist: typing-extensions>=4.0
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# American Cloud Python SDK
|
|
27
|
+
|
|
28
|
+
Typed Python client for the [American Cloud](https://americancloud.com) public API.
|
|
29
|
+
|
|
30
|
+
This SDK is auto-generated from the OpenAPI specification using [Fern](https://buildwithfern.com). It targets American Cloud API **`v1`** — see [`VERSIONING.md`](./VERSIONING.md) for how SDK releases track the API.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pip install americancloud
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Authentication
|
|
39
|
+
|
|
40
|
+
Every request requires **both** parts of an American Cloud API key, sent as headers:
|
|
41
|
+
|
|
42
|
+
| Header | SDK option |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `X-API-Client-ID` | `api_key` |
|
|
45
|
+
| `X-API-Client-Secret` | `api_client_secret` |
|
|
46
|
+
|
|
47
|
+
Create and manage keys at **[console.americancloud.com/api-keys](https://console.americancloud.com/api-keys)**. The client secret is shown once at creation — store it securely. If lost, revoke the key and create a new one.
|
|
48
|
+
|
|
49
|
+
Each key is scoped at creation:
|
|
50
|
+
|
|
51
|
+
- **`read-only`** — `GET` endpoints only
|
|
52
|
+
- **`read-write`** — full access to all resource management endpoints
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
### Synchronous
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
import os
|
|
60
|
+
from americancloud import AmericancloudApi
|
|
61
|
+
|
|
62
|
+
client = AmericancloudApi(
|
|
63
|
+
api_key=os.environ["AMERICANCLOUD_API_CLIENT_ID"],
|
|
64
|
+
api_client_secret=os.environ["AMERICANCLOUD_API_CLIENT_SECRET"],
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
vms = client.vms.list_vms()
|
|
68
|
+
print(vms)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Asynchronous
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
import asyncio
|
|
75
|
+
import os
|
|
76
|
+
from americancloud import AsyncAmericancloudApi
|
|
77
|
+
|
|
78
|
+
async def main():
|
|
79
|
+
client = AsyncAmericancloudApi(
|
|
80
|
+
api_key=os.environ["AMERICANCLOUD_API_CLIENT_ID"],
|
|
81
|
+
api_client_secret=os.environ["AMERICANCLOUD_API_CLIENT_SECRET"],
|
|
82
|
+
)
|
|
83
|
+
vms = await client.vms.list_vms()
|
|
84
|
+
print(vms)
|
|
85
|
+
|
|
86
|
+
asyncio.run(main())
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The client is namespaced by resource — `client.vms`, `client.block_storage`, `client.kubernetes`, `client.dns_zones`, etc.
|
|
90
|
+
|
|
91
|
+
## API endpoint
|
|
92
|
+
|
|
93
|
+
The SDK targets the American Cloud production API at **`https://api.americancloud.com`** by default. To override (e.g. for a self-hosted or internal environment), pass `base_url`:
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
client = AmericancloudApi(
|
|
97
|
+
api_key="...",
|
|
98
|
+
api_client_secret="...",
|
|
99
|
+
base_url="https://your-custom-endpoint.example.com",
|
|
100
|
+
)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## API reference
|
|
104
|
+
|
|
105
|
+
- **Full reference + code samples**: [americancloud.docs.buildwithfern.com](https://americancloud.docs.buildwithfern.com)
|
|
106
|
+
- **Interactive Swagger UI**: [api.americancloud.com/api-v1](https://api.americancloud.com/api-v1)
|
|
107
|
+
|
|
108
|
+
## Versioning
|
|
109
|
+
|
|
110
|
+
The SDK version **matches the API platform version it was generated from** — SDK `x.y.z` is generated from OpenAPI document `x.y.z`, so the SDK↔API mapping is one-to-one by construction:
|
|
111
|
+
|
|
112
|
+
- **Patch / minor** releases are backward-compatible — safe to upgrade.
|
|
113
|
+
- **Major** releases track a new API URL version (`/api/v2`) and may require code changes; check the [`CHANGELOG`](./CHANGELOG.md) first.
|
|
114
|
+
- The `1.x` line targets API `v1`, which remains available for at least six months after a `v2` release.
|
|
115
|
+
- Additive API changes (new endpoints, optional fields, enum values) ship within a version — tolerate unknown fields and new enum values gracefully.
|
|
116
|
+
|
|
117
|
+
See [`VERSIONING.md`](./VERSIONING.md) for the full policy.
|
|
118
|
+
|
|
119
|
+
## Reporting issues
|
|
120
|
+
|
|
121
|
+
Open an issue against this repository, or contact American Cloud support.
|
|
122
|
+
|
|
123
|
+
## Contributing
|
|
124
|
+
|
|
125
|
+
This SDK is generated — do not edit the source by hand. See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for the generation workflow.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# American Cloud Python SDK
|
|
2
|
+
|
|
3
|
+
Typed Python client for the [American Cloud](https://americancloud.com) public API.
|
|
4
|
+
|
|
5
|
+
This SDK is auto-generated from the OpenAPI specification using [Fern](https://buildwithfern.com). It targets American Cloud API **`v1`** — see [`VERSIONING.md`](./VERSIONING.md) for how SDK releases track the API.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pip install americancloud
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Authentication
|
|
14
|
+
|
|
15
|
+
Every request requires **both** parts of an American Cloud API key, sent as headers:
|
|
16
|
+
|
|
17
|
+
| Header | SDK option |
|
|
18
|
+
|---|---|
|
|
19
|
+
| `X-API-Client-ID` | `api_key` |
|
|
20
|
+
| `X-API-Client-Secret` | `api_client_secret` |
|
|
21
|
+
|
|
22
|
+
Create and manage keys at **[console.americancloud.com/api-keys](https://console.americancloud.com/api-keys)**. The client secret is shown once at creation — store it securely. If lost, revoke the key and create a new one.
|
|
23
|
+
|
|
24
|
+
Each key is scoped at creation:
|
|
25
|
+
|
|
26
|
+
- **`read-only`** — `GET` endpoints only
|
|
27
|
+
- **`read-write`** — full access to all resource management endpoints
|
|
28
|
+
|
|
29
|
+
## Quick start
|
|
30
|
+
|
|
31
|
+
### Synchronous
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
import os
|
|
35
|
+
from americancloud import AmericancloudApi
|
|
36
|
+
|
|
37
|
+
client = AmericancloudApi(
|
|
38
|
+
api_key=os.environ["AMERICANCLOUD_API_CLIENT_ID"],
|
|
39
|
+
api_client_secret=os.environ["AMERICANCLOUD_API_CLIENT_SECRET"],
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
vms = client.vms.list_vms()
|
|
43
|
+
print(vms)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Asynchronous
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
import asyncio
|
|
50
|
+
import os
|
|
51
|
+
from americancloud import AsyncAmericancloudApi
|
|
52
|
+
|
|
53
|
+
async def main():
|
|
54
|
+
client = AsyncAmericancloudApi(
|
|
55
|
+
api_key=os.environ["AMERICANCLOUD_API_CLIENT_ID"],
|
|
56
|
+
api_client_secret=os.environ["AMERICANCLOUD_API_CLIENT_SECRET"],
|
|
57
|
+
)
|
|
58
|
+
vms = await client.vms.list_vms()
|
|
59
|
+
print(vms)
|
|
60
|
+
|
|
61
|
+
asyncio.run(main())
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The client is namespaced by resource — `client.vms`, `client.block_storage`, `client.kubernetes`, `client.dns_zones`, etc.
|
|
65
|
+
|
|
66
|
+
## API endpoint
|
|
67
|
+
|
|
68
|
+
The SDK targets the American Cloud production API at **`https://api.americancloud.com`** by default. To override (e.g. for a self-hosted or internal environment), pass `base_url`:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
client = AmericancloudApi(
|
|
72
|
+
api_key="...",
|
|
73
|
+
api_client_secret="...",
|
|
74
|
+
base_url="https://your-custom-endpoint.example.com",
|
|
75
|
+
)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## API reference
|
|
79
|
+
|
|
80
|
+
- **Full reference + code samples**: [americancloud.docs.buildwithfern.com](https://americancloud.docs.buildwithfern.com)
|
|
81
|
+
- **Interactive Swagger UI**: [api.americancloud.com/api-v1](https://api.americancloud.com/api-v1)
|
|
82
|
+
|
|
83
|
+
## Versioning
|
|
84
|
+
|
|
85
|
+
The SDK version **matches the API platform version it was generated from** — SDK `x.y.z` is generated from OpenAPI document `x.y.z`, so the SDK↔API mapping is one-to-one by construction:
|
|
86
|
+
|
|
87
|
+
- **Patch / minor** releases are backward-compatible — safe to upgrade.
|
|
88
|
+
- **Major** releases track a new API URL version (`/api/v2`) and may require code changes; check the [`CHANGELOG`](./CHANGELOG.md) first.
|
|
89
|
+
- The `1.x` line targets API `v1`, which remains available for at least six months after a `v2` release.
|
|
90
|
+
- Additive API changes (new endpoints, optional fields, enum values) ship within a version — tolerate unknown fields and new enum values gracefully.
|
|
91
|
+
|
|
92
|
+
See [`VERSIONING.md`](./VERSIONING.md) for the full policy.
|
|
93
|
+
|
|
94
|
+
## Reporting issues
|
|
95
|
+
|
|
96
|
+
Open an issue against this repository, or contact American Cloud support.
|
|
97
|
+
|
|
98
|
+
## Contributing
|
|
99
|
+
|
|
100
|
+
This SDK is generated — do not edit the source by hand. See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for the generation workflow.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Versioning & stability
|
|
2
|
+
|
|
3
|
+
**The SDK version matches the API platform version it was generated from.**
|
|
4
|
+
SDK `x.y.z` — in every language — is generated from version `x.y.z` of the
|
|
5
|
+
American Cloud OpenAPI document. There is no separate mapping table to consult:
|
|
6
|
+
if you want to know which API surface an SDK release covers, the version number
|
|
7
|
+
*is* the answer.
|
|
8
|
+
|
|
9
|
+
| | What it is | Where you see it |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| **API URL version** | The wire contract: `/api/v1/...` | The request path |
|
|
12
|
+
| **Platform / SDK version** | A specific revision of the API surface, and the SDK generated from it | `info.version` in the OpenAPI doc, and the SDK package version (npm / PyPI / Go tag) |
|
|
13
|
+
|
|
14
|
+
## The API URL version (`/api/v1`)
|
|
15
|
+
|
|
16
|
+
This is the breaking-change boundary:
|
|
17
|
+
|
|
18
|
+
- **Breaking changes** — removing an endpoint or field, changing a field's
|
|
19
|
+
type, or making a previously-optional parameter required — only ship under a
|
|
20
|
+
**new URL version** (`/api/v2`). They never land silently in `/api/v1`.
|
|
21
|
+
- **Additive changes** — new endpoints, new optional fields, new enum values —
|
|
22
|
+
may ship at any time *within* a version. Write code that tolerates unknown
|
|
23
|
+
fields and unrecognized enum values gracefully.
|
|
24
|
+
- When a new major version is released, the **previous version remains
|
|
25
|
+
available for at least six months**.
|
|
26
|
+
|
|
27
|
+
## The SDK / platform version (this package)
|
|
28
|
+
|
|
29
|
+
Semantic versioning, shared across the platform and all SDK languages:
|
|
30
|
+
|
|
31
|
+
- **Patch** (`1.2.1` → `1.2.2`) — fixes, documentation, SDK-internal or
|
|
32
|
+
packaging changes. No code changes required.
|
|
33
|
+
- **Minor** (`1.2.x` → `1.3.0`) — additive, backward-compatible API changes:
|
|
34
|
+
new endpoints, new optional parameters, new response fields, new enum
|
|
35
|
+
values. Safe to upgrade.
|
|
36
|
+
- **Major** (`1.x` → `2.0.0`) — tracks a new API URL version (`/api/v2`).
|
|
37
|
+
Read the CHANGELOG before upgrading.
|
|
38
|
+
|
|
39
|
+
All SDK languages (TypeScript, Go, Python) release together at each platform
|
|
40
|
+
version. A language may occasionally skip a number (e.g. a fix that only
|
|
41
|
+
affects one SDK) — version gaps are normal.
|
|
42
|
+
|
|
43
|
+
### Which API version does my SDK target?
|
|
44
|
+
|
|
45
|
+
> The **`1.x`** line of every SDK targets American Cloud API **`v1`**.
|
|
46
|
+
|
|
47
|
+
When API `v2` ships, SDKs move to `2.x` alongside it, and `1.x` keeps working
|
|
48
|
+
against `v1` for at least the six-month window above.
|
|
49
|
+
|
|
50
|
+
## How to know when you must upgrade
|
|
51
|
+
|
|
52
|
+
- **You never *have* to upgrade within a major line.** A pinned `1.x` version
|
|
53
|
+
keeps working as long as API `v1` is live.
|
|
54
|
+
- **Upgrade to get new features** — install the latest minor/patch.
|
|
55
|
+
- **Plan an upgrade when a new major ships** — that's the only release that
|
|
56
|
+
can require code changes, and the CHANGELOG documents exactly what changed.
|
|
57
|
+
|
|
58
|
+
We recommend pinning a version and upgrading deliberately, rather than
|
|
59
|
+
tracking the latest automatically.
|
|
60
|
+
|
|
61
|
+
## Package identifiers
|
|
62
|
+
|
|
63
|
+
| Language | Package | Install |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| TypeScript | `@americancloud/sdk` (npm) | `npm install @americancloud/sdk` |
|
|
66
|
+
| Python | `americancloud` (PyPI) | `pip install americancloud` |
|
|
67
|
+
| Go | `github.com/American-Cloud/americancloud-sdk-go` | `go get github.com/American-Cloud/americancloud-sdk-go` |
|
|
68
|
+
|
|
69
|
+
## Changelog
|
|
70
|
+
|
|
71
|
+
Per-release changes are recorded in [`CHANGELOG.md`](./CHANGELOG.md).
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling==1.29.0"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "americancloud"
|
|
7
|
+
version = "1.2.2"
|
|
8
|
+
description = "Official Python SDK for the American Cloud Platform API."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
13
|
+
authors = [{ name = "American Cloud", email = "support@americancloud.com" }]
|
|
14
|
+
keywords = ["americancloud", "american-cloud", "sdk", "api", "cloud", "client"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 5 - Production/Stable",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
21
|
+
"Typing :: Typed",
|
|
22
|
+
]
|
|
23
|
+
# Runtime dependencies use compatible lower bounds (not exact pins): this is a
|
|
24
|
+
# distributed library, so exact pins would force install conflicts on consumers
|
|
25
|
+
# who also depend on httpx/pydantic. Build/dev tooling above IS exact-pinned.
|
|
26
|
+
dependencies = [
|
|
27
|
+
"httpx>=0.23",
|
|
28
|
+
"pydantic>=1.9,<3",
|
|
29
|
+
"typing_extensions>=4.0",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://americancloud.com"
|
|
34
|
+
Documentation = "https://americancloud.docs.buildwithfern.com"
|
|
35
|
+
Repository = "https://github.com/American-Cloud/americancloud-sdk-python"
|
|
36
|
+
Changelog = "https://github.com/American-Cloud/americancloud-sdk-python/blob/main/CHANGELOG.md"
|
|
37
|
+
|
|
38
|
+
[tool.hatch.build.targets.wheel]
|
|
39
|
+
packages = ["src/americancloud"]
|
|
40
|
+
exclude = [
|
|
41
|
+
"src/americancloud/tests",
|
|
42
|
+
"src/americancloud/reference.md",
|
|
43
|
+
"src/americancloud/CONTRIBUTING.md",
|
|
44
|
+
"src/americancloud/.fern",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.sdist]
|
|
48
|
+
include = [
|
|
49
|
+
"src/americancloud",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE",
|
|
52
|
+
"NOTICE",
|
|
53
|
+
"CHANGELOG.md",
|
|
54
|
+
"VERSIONING.md",
|
|
55
|
+
"pyproject.toml",
|
|
56
|
+
]
|