hostinger-api 0.0.12__tar.gz → 0.0.13__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.
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/PKG-INFO +22 -7
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/README.md +21 -6
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/__init__.py +18 -6
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/billing_catalog_api.py +44 -8
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/billing_orders_api.py +19 -16
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/billing_payment_methods_api.py +19 -19
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/billing_subscriptions_api.py +16 -16
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/dns_snapshot_api.py +19 -19
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/dns_zone_api.py +43 -43
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/domains_availability_api.py +13 -13
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/domains_forwarding_api.py +22 -22
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/domains_portfolio_api.py +58 -58
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/domains_whois_api.py +40 -40
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_actions_api.py +13 -13
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_backups_api.py +19 -19
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_data_centers_api.py +7 -7
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_firewall_api.py +79 -79
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_malware_scanner_api.py +28 -28
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_post_install_scripts_api.py +37 -37
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_public_keys_api.py +31 -31
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_recovery_api.py +16 -16
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_snapshots_api.py +25 -25
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vps_virtual_machine_api.py +436 -132
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vpsos_templates_api.py +13 -13
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/vpsptr_records_api.py +13 -13
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api_client.py +2 -2
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/configuration.py +3 -3
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/exceptions.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/__init__.py +17 -5
- hostinger_api-0.0.12/hostinger_api/models/common_schema_unprocessable_content_response_schema.py → hostinger_api-0.0.13/hostinger_api/models/billing_create_new_service_order_v1422_response.py +9 -9
- hostinger_api-0.0.12/hostinger_api/models/common_schema_unprocessable_content_response_schema_errors.py → hostinger_api-0.0.13/hostinger_api/models/billing_create_new_service_order_v1422_response_errors.py +5 -5
- hostinger_api-0.0.12/hostinger_api/models/common_schema_error_response_schema.py → hostinger_api-0.0.13/hostinger_api/models/billing_get_catalog_item_list_v1401_response.py +8 -8
- hostinger_api-0.0.12/hostinger_api/models/common_schema_unauthorized_response_schema.py → hostinger_api-0.0.13/hostinger_api/models/billing_get_catalog_item_list_v1500_response.py +8 -8
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_catalog_catalog_item_price_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_catalog_catalog_item_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_order_billing_address_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_order_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_store_request_items_inner.py +1 -1
- hostinger_api-0.0.13/hostinger_api/models/billing_v1_order_virtual_machine_order_resource.py +95 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_payment_method_payment_method_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_subscription_cancel_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_subscription_subscription_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/common_schema_pagination_meta_schema.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/common_success_empty_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_snapshot_snapshot_with_content_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_destroy_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_destroy_request_filters_inner.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_name_record_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_record_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_reset_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request_zone_inner.py +2 -2
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request_zone_inner_records_inner.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_availability_availability_request.py +3 -3
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_availability_availability_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_domain_domain_extended_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_domain_domain_extended_resource_domain_contacts.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_domain_domain_extended_resource_name_servers.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_domain_domain_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_forwarding_forwarding_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_forwarding_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_portfolio_purchase_request.py +2 -2
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_portfolio_purchase_request_domain_contacts.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_portfolio_update_nameservers_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_whois_profile_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_whois_store_request.py +2 -2
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_action_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_backup_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_firewall_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_post_install_script_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_public_key_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_action_action_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_backup_backup_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_data_center_data_center_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_firewall_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_firewall_rule_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_rules_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_ip_address_ip_address_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_malware_metrics_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection.py +19 -14
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_cpu_usage.py +127 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_disk_space.py +127 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_incoming_traffic.py +127 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_outgoing_traffic.py +127 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_ram_usage.py +127 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_metrics_metrics_collection_uptime.py +127 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_post_install_script_post_install_script_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_post_install_script_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_attach_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_public_key_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_template_template_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_hostname_update_request.py +1 -1
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_virtual_machine_metric_get_request.py +88 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_nameservers_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_panel_password_update_request.py +1 -1
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_virtual_machine_purchase_request.py +95 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_recovery_start_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_recreate_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_root_password_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_setup_request.py +3 -3
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_setup_request_public_key.py +3 -3
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource.py +24 -21
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_ipv4.py +131 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_ipv6.py +131 -0
- hostinger_api-0.0.13/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_template.py +127 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/rest.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api.egg-info/PKG-INFO +22 -7
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api.egg-info/SOURCES.txt +33 -9
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/pyproject.toml +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/setup.py +2 -2
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_catalog_api.py +1 -1
- hostinger_api-0.0.12/test/test_common_schema_unprocessable_content_response_schema.py → hostinger_api-0.0.13/test/test_billing_create_new_service_order_v1422_response.py +13 -13
- hostinger_api-0.0.12/test/test_common_schema_unprocessable_content_response_schema_errors.py → hostinger_api-0.0.13/test/test_billing_create_new_service_order_v1422_response_errors.py +12 -12
- hostinger_api-0.0.12/test/test_common_schema_unauthorized_response_schema.py → hostinger_api-0.0.13/test/test_billing_get_catalog_item_list_v1401_response.py +12 -12
- hostinger_api-0.0.12/test/test_common_schema_error_response_schema.py → hostinger_api-0.0.13/test/test_billing_get_catalog_item_list_v1500_response.py +12 -12
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_orders_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_payment_methods_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_subscriptions_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_catalog_catalog_item_price_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_catalog_catalog_item_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_order_order_billing_address_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_order_order_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_order_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_order_store_request_items_inner.py +1 -1
- hostinger_api-0.0.13/test/test_billing_v1_order_virtual_machine_order_resource.py +87 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_payment_method_payment_method_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_subscription_cancel_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_billing_v1_subscription_subscription_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_common_schema_pagination_meta_schema.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_common_success_empty_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dns_snapshot_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dns_zone_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_snapshot_snapshot_with_content_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_destroy_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_destroy_request_filters_inner.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_name_record_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_record_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_reset_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request_zone_inner.py +5 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request_zone_inner_records_inner.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_availability_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_forwarding_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_portfolio_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_availability_availability_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_availability_availability_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_domain_domain_extended_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_domain_domain_extended_resource_domain_contacts.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_domain_domain_extended_resource_name_servers.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_domain_domain_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_forwarding_forwarding_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_forwarding_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_portfolio_purchase_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_portfolio_purchase_request_domain_contacts.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_portfolio_update_nameservers_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_whois_profile_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_v1_whois_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_domains_whois_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_actions_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_backups_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_data_centers_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_firewall_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_get_action_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_get_backup_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_get_firewall_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_get_post_install_script_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_get_public_key_list_v1200_response.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_malware_scanner_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_post_install_scripts_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_public_keys_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_recovery_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_snapshots_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vps_virtual_machine_api.py +8 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsos_templates_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsptr_records_api.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_action_action_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_backup_backup_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_data_center_data_center_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_firewall_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_firewall_rule_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_rules_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_ip_address_ip_address_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_malware_metrics_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection.py +7 -19
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_cpu_usage.py +50 -0
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_disk_space.py +50 -0
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_incoming_traffic.py +50 -0
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_outgoing_traffic.py +50 -0
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_ram_usage.py +50 -0
- hostinger_api-0.0.13/test/test_vpsv1_metrics_metrics_collection_uptime.py +50 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_post_install_script_post_install_script_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_post_install_script_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_attach_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_public_key_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_store_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_template_template_resource.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_hostname_update_request.py +1 -1
- hostinger_api-0.0.13/test/test_vpsv1_virtual_machine_metric_get_request.py +52 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_nameservers_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_panel_password_update_request.py +1 -1
- hostinger_api-0.0.13/test/test_vpsv1_virtual_machine_purchase_request.py +80 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_recovery_start_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_recreate_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_root_password_update_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_setup_request.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_setup_request_public_key.py +1 -1
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_virtual_machine_resource.py +4 -18
- hostinger_api-0.0.13/test/test_vpsv1_virtual_machine_virtual_machine_resource_ipv4.py +48 -0
- hostinger_api-0.0.13/test/test_vpsv1_virtual_machine_virtual_machine_resource_ipv6.py +48 -0
- hostinger_api-0.0.13/test/test_vpsv1_virtual_machine_virtual_machine_resource_template.py +52 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/__init__.py +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api_response.py +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/py.typed +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api.egg-info/dependency_links.txt +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api.egg-info/requires.txt +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api.egg-info/top_level.txt +0 -0
- {hostinger_api-0.0.12 → hostinger_api-0.0.13}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hostinger_api
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.13
|
|
4
4
|
Summary: Hostinger API
|
|
5
5
|
Home-page: https://github.com/hostinger/api-python-sdk
|
|
6
6
|
Author: Hostinger
|
|
@@ -33,7 +33,7 @@ For more information, please visit [https://developers.hostinger.com](https://de
|
|
|
33
33
|
|
|
34
34
|
## Requirements.
|
|
35
35
|
|
|
36
|
-
Python 3.
|
|
36
|
+
Python 3.8+
|
|
37
37
|
|
|
38
38
|
## Installation & Usage
|
|
39
39
|
### pip install
|
|
@@ -89,10 +89,12 @@ configuration = hostinger_api.Configuration(
|
|
|
89
89
|
with hostinger_api.ApiClient(configuration) as api_client:
|
|
90
90
|
# Create an instance of the API class
|
|
91
91
|
api_instance = hostinger_api.BillingCatalogApi(api_client)
|
|
92
|
+
category = 'VPS' # str | Filter catalog items by category (optional)
|
|
93
|
+
name = '.COM*' # str | Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain (optional)
|
|
92
94
|
|
|
93
95
|
try:
|
|
94
96
|
# Get catalog item list
|
|
95
|
-
api_response = api_instance.get_catalog_item_list_v1()
|
|
97
|
+
api_response = api_instance.get_catalog_item_list_v1(category=category, name=name)
|
|
96
98
|
print("The response of BillingCatalogApi->get_catalog_item_list_v1:\n")
|
|
97
99
|
pprint(api_response)
|
|
98
100
|
except ApiException as e:
|
|
@@ -180,6 +182,7 @@ Class | Method | HTTP request | Description
|
|
|
180
182
|
*VPSVirtualMachineApi* | [**get_metrics_v1**](docs/VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
|
|
181
183
|
*VPSVirtualMachineApi* | [**get_virtual_machine_list_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_list_v1) | **GET** /api/vps/v1/virtual-machines | Get virtual machine list
|
|
182
184
|
*VPSVirtualMachineApi* | [**get_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine
|
|
185
|
+
*VPSVirtualMachineApi* | [**purchase_new_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#purchase_new_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines | Purchase new virtual machine
|
|
183
186
|
*VPSVirtualMachineApi* | [**recreate_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#recreate_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/recreate | Recreate virtual machine
|
|
184
187
|
*VPSVirtualMachineApi* | [**reset_hostname_v1**](docs/VPSVirtualMachineApi.md#reset_hostname_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/hostname | Reset hostname
|
|
185
188
|
*VPSVirtualMachineApi* | [**restart_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#restart_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/restart | Restart virtual machine
|
|
@@ -194,20 +197,21 @@ Class | Method | HTTP request | Description
|
|
|
194
197
|
|
|
195
198
|
## Documentation For Models
|
|
196
199
|
|
|
200
|
+
- [BillingCreateNewServiceOrderV1422Response](docs/BillingCreateNewServiceOrderV1422Response.md)
|
|
201
|
+
- [BillingCreateNewServiceOrderV1422ResponseErrors](docs/BillingCreateNewServiceOrderV1422ResponseErrors.md)
|
|
202
|
+
- [BillingGetCatalogItemListV1401Response](docs/BillingGetCatalogItemListV1401Response.md)
|
|
203
|
+
- [BillingGetCatalogItemListV1500Response](docs/BillingGetCatalogItemListV1500Response.md)
|
|
197
204
|
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
|
|
198
205
|
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
|
|
199
206
|
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
|
|
200
207
|
- [BillingV1OrderOrderResource](docs/BillingV1OrderOrderResource.md)
|
|
201
208
|
- [BillingV1OrderStoreRequest](docs/BillingV1OrderStoreRequest.md)
|
|
202
209
|
- [BillingV1OrderStoreRequestItemsInner](docs/BillingV1OrderStoreRequestItemsInner.md)
|
|
210
|
+
- [BillingV1OrderVirtualMachineOrderResource](docs/BillingV1OrderVirtualMachineOrderResource.md)
|
|
203
211
|
- [BillingV1PaymentMethodPaymentMethodResource](docs/BillingV1PaymentMethodPaymentMethodResource.md)
|
|
204
212
|
- [BillingV1SubscriptionCancelRequest](docs/BillingV1SubscriptionCancelRequest.md)
|
|
205
213
|
- [BillingV1SubscriptionSubscriptionResource](docs/BillingV1SubscriptionSubscriptionResource.md)
|
|
206
|
-
- [CommonSchemaErrorResponseSchema](docs/CommonSchemaErrorResponseSchema.md)
|
|
207
214
|
- [CommonSchemaPaginationMetaSchema](docs/CommonSchemaPaginationMetaSchema.md)
|
|
208
|
-
- [CommonSchemaUnauthorizedResponseSchema](docs/CommonSchemaUnauthorizedResponseSchema.md)
|
|
209
|
-
- [CommonSchemaUnprocessableContentResponseSchema](docs/CommonSchemaUnprocessableContentResponseSchema.md)
|
|
210
|
-
- [CommonSchemaUnprocessableContentResponseSchemaErrors](docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md)
|
|
211
215
|
- [CommonSuccessEmptyResource](docs/CommonSuccessEmptyResource.md)
|
|
212
216
|
- [DNSV1SnapshotSnapshotResource](docs/DNSV1SnapshotSnapshotResource.md)
|
|
213
217
|
- [DNSV1SnapshotSnapshotWithContentResource](docs/DNSV1SnapshotSnapshotWithContentResource.md)
|
|
@@ -247,6 +251,12 @@ Class | Method | HTTP request | Description
|
|
|
247
251
|
- [VPSV1IPAddressIPAddressResource](docs/VPSV1IPAddressIPAddressResource.md)
|
|
248
252
|
- [VPSV1MalwareMetricsResource](docs/VPSV1MalwareMetricsResource.md)
|
|
249
253
|
- [VPSV1MetricsMetricsCollection](docs/VPSV1MetricsMetricsCollection.md)
|
|
254
|
+
- [VPSV1MetricsMetricsCollectionCpuUsage](docs/VPSV1MetricsMetricsCollectionCpuUsage.md)
|
|
255
|
+
- [VPSV1MetricsMetricsCollectionDiskSpace](docs/VPSV1MetricsMetricsCollectionDiskSpace.md)
|
|
256
|
+
- [VPSV1MetricsMetricsCollectionIncomingTraffic](docs/VPSV1MetricsMetricsCollectionIncomingTraffic.md)
|
|
257
|
+
- [VPSV1MetricsMetricsCollectionOutgoingTraffic](docs/VPSV1MetricsMetricsCollectionOutgoingTraffic.md)
|
|
258
|
+
- [VPSV1MetricsMetricsCollectionRamUsage](docs/VPSV1MetricsMetricsCollectionRamUsage.md)
|
|
259
|
+
- [VPSV1MetricsMetricsCollectionUptime](docs/VPSV1MetricsMetricsCollectionUptime.md)
|
|
250
260
|
- [VPSV1MetricsMetricsResource](docs/VPSV1MetricsMetricsResource.md)
|
|
251
261
|
- [VPSV1PostInstallScriptPostInstallScriptResource](docs/VPSV1PostInstallScriptPostInstallScriptResource.md)
|
|
252
262
|
- [VPSV1PostInstallScriptStoreRequest](docs/VPSV1PostInstallScriptStoreRequest.md)
|
|
@@ -256,13 +266,18 @@ Class | Method | HTTP request | Description
|
|
|
256
266
|
- [VPSV1SnapshotSnapshotResource](docs/VPSV1SnapshotSnapshotResource.md)
|
|
257
267
|
- [VPSV1TemplateTemplateResource](docs/VPSV1TemplateTemplateResource.md)
|
|
258
268
|
- [VPSV1VirtualMachineHostnameUpdateRequest](docs/VPSV1VirtualMachineHostnameUpdateRequest.md)
|
|
269
|
+
- [VPSV1VirtualMachineMetricGetRequest](docs/VPSV1VirtualMachineMetricGetRequest.md)
|
|
259
270
|
- [VPSV1VirtualMachineNameserversUpdateRequest](docs/VPSV1VirtualMachineNameserversUpdateRequest.md)
|
|
260
271
|
- [VPSV1VirtualMachinePanelPasswordUpdateRequest](docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md)
|
|
272
|
+
- [VPSV1VirtualMachinePurchaseRequest](docs/VPSV1VirtualMachinePurchaseRequest.md)
|
|
261
273
|
- [VPSV1VirtualMachineRecoveryStartRequest](docs/VPSV1VirtualMachineRecoveryStartRequest.md)
|
|
262
274
|
- [VPSV1VirtualMachineRecreateRequest](docs/VPSV1VirtualMachineRecreateRequest.md)
|
|
263
275
|
- [VPSV1VirtualMachineRootPasswordUpdateRequest](docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md)
|
|
264
276
|
- [VPSV1VirtualMachineSetupRequest](docs/VPSV1VirtualMachineSetupRequest.md)
|
|
265
277
|
- [VPSV1VirtualMachineSetupRequestPublicKey](docs/VPSV1VirtualMachineSetupRequestPublicKey.md)
|
|
266
278
|
- [VPSV1VirtualMachineVirtualMachineResource](docs/VPSV1VirtualMachineVirtualMachineResource.md)
|
|
279
|
+
- [VPSV1VirtualMachineVirtualMachineResourceIpv4](docs/VPSV1VirtualMachineVirtualMachineResourceIpv4.md)
|
|
280
|
+
- [VPSV1VirtualMachineVirtualMachineResourceIpv6](docs/VPSV1VirtualMachineVirtualMachineResourceIpv6.md)
|
|
281
|
+
- [VPSV1VirtualMachineVirtualMachineResourceTemplate](docs/VPSV1VirtualMachineVirtualMachineResourceTemplate.md)
|
|
267
282
|
|
|
268
283
|
|
|
@@ -9,7 +9,7 @@ For more information, please visit [https://developers.hostinger.com](https://de
|
|
|
9
9
|
|
|
10
10
|
## Requirements.
|
|
11
11
|
|
|
12
|
-
Python 3.
|
|
12
|
+
Python 3.8+
|
|
13
13
|
|
|
14
14
|
## Installation & Usage
|
|
15
15
|
### pip install
|
|
@@ -65,10 +65,12 @@ configuration = hostinger_api.Configuration(
|
|
|
65
65
|
with hostinger_api.ApiClient(configuration) as api_client:
|
|
66
66
|
# Create an instance of the API class
|
|
67
67
|
api_instance = hostinger_api.BillingCatalogApi(api_client)
|
|
68
|
+
category = 'VPS' # str | Filter catalog items by category (optional)
|
|
69
|
+
name = '.COM*' # str | Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain (optional)
|
|
68
70
|
|
|
69
71
|
try:
|
|
70
72
|
# Get catalog item list
|
|
71
|
-
api_response = api_instance.get_catalog_item_list_v1()
|
|
73
|
+
api_response = api_instance.get_catalog_item_list_v1(category=category, name=name)
|
|
72
74
|
print("The response of BillingCatalogApi->get_catalog_item_list_v1:\n")
|
|
73
75
|
pprint(api_response)
|
|
74
76
|
except ApiException as e:
|
|
@@ -156,6 +158,7 @@ Class | Method | HTTP request | Description
|
|
|
156
158
|
*VPSVirtualMachineApi* | [**get_metrics_v1**](docs/VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
|
|
157
159
|
*VPSVirtualMachineApi* | [**get_virtual_machine_list_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_list_v1) | **GET** /api/vps/v1/virtual-machines | Get virtual machine list
|
|
158
160
|
*VPSVirtualMachineApi* | [**get_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#get_virtual_machine_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine
|
|
161
|
+
*VPSVirtualMachineApi* | [**purchase_new_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#purchase_new_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines | Purchase new virtual machine
|
|
159
162
|
*VPSVirtualMachineApi* | [**recreate_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#recreate_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/recreate | Recreate virtual machine
|
|
160
163
|
*VPSVirtualMachineApi* | [**reset_hostname_v1**](docs/VPSVirtualMachineApi.md#reset_hostname_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/hostname | Reset hostname
|
|
161
164
|
*VPSVirtualMachineApi* | [**restart_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#restart_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/restart | Restart virtual machine
|
|
@@ -170,20 +173,21 @@ Class | Method | HTTP request | Description
|
|
|
170
173
|
|
|
171
174
|
## Documentation For Models
|
|
172
175
|
|
|
176
|
+
- [BillingCreateNewServiceOrderV1422Response](docs/BillingCreateNewServiceOrderV1422Response.md)
|
|
177
|
+
- [BillingCreateNewServiceOrderV1422ResponseErrors](docs/BillingCreateNewServiceOrderV1422ResponseErrors.md)
|
|
178
|
+
- [BillingGetCatalogItemListV1401Response](docs/BillingGetCatalogItemListV1401Response.md)
|
|
179
|
+
- [BillingGetCatalogItemListV1500Response](docs/BillingGetCatalogItemListV1500Response.md)
|
|
173
180
|
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
|
|
174
181
|
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
|
|
175
182
|
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
|
|
176
183
|
- [BillingV1OrderOrderResource](docs/BillingV1OrderOrderResource.md)
|
|
177
184
|
- [BillingV1OrderStoreRequest](docs/BillingV1OrderStoreRequest.md)
|
|
178
185
|
- [BillingV1OrderStoreRequestItemsInner](docs/BillingV1OrderStoreRequestItemsInner.md)
|
|
186
|
+
- [BillingV1OrderVirtualMachineOrderResource](docs/BillingV1OrderVirtualMachineOrderResource.md)
|
|
179
187
|
- [BillingV1PaymentMethodPaymentMethodResource](docs/BillingV1PaymentMethodPaymentMethodResource.md)
|
|
180
188
|
- [BillingV1SubscriptionCancelRequest](docs/BillingV1SubscriptionCancelRequest.md)
|
|
181
189
|
- [BillingV1SubscriptionSubscriptionResource](docs/BillingV1SubscriptionSubscriptionResource.md)
|
|
182
|
-
- [CommonSchemaErrorResponseSchema](docs/CommonSchemaErrorResponseSchema.md)
|
|
183
190
|
- [CommonSchemaPaginationMetaSchema](docs/CommonSchemaPaginationMetaSchema.md)
|
|
184
|
-
- [CommonSchemaUnauthorizedResponseSchema](docs/CommonSchemaUnauthorizedResponseSchema.md)
|
|
185
|
-
- [CommonSchemaUnprocessableContentResponseSchema](docs/CommonSchemaUnprocessableContentResponseSchema.md)
|
|
186
|
-
- [CommonSchemaUnprocessableContentResponseSchemaErrors](docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md)
|
|
187
191
|
- [CommonSuccessEmptyResource](docs/CommonSuccessEmptyResource.md)
|
|
188
192
|
- [DNSV1SnapshotSnapshotResource](docs/DNSV1SnapshotSnapshotResource.md)
|
|
189
193
|
- [DNSV1SnapshotSnapshotWithContentResource](docs/DNSV1SnapshotSnapshotWithContentResource.md)
|
|
@@ -223,6 +227,12 @@ Class | Method | HTTP request | Description
|
|
|
223
227
|
- [VPSV1IPAddressIPAddressResource](docs/VPSV1IPAddressIPAddressResource.md)
|
|
224
228
|
- [VPSV1MalwareMetricsResource](docs/VPSV1MalwareMetricsResource.md)
|
|
225
229
|
- [VPSV1MetricsMetricsCollection](docs/VPSV1MetricsMetricsCollection.md)
|
|
230
|
+
- [VPSV1MetricsMetricsCollectionCpuUsage](docs/VPSV1MetricsMetricsCollectionCpuUsage.md)
|
|
231
|
+
- [VPSV1MetricsMetricsCollectionDiskSpace](docs/VPSV1MetricsMetricsCollectionDiskSpace.md)
|
|
232
|
+
- [VPSV1MetricsMetricsCollectionIncomingTraffic](docs/VPSV1MetricsMetricsCollectionIncomingTraffic.md)
|
|
233
|
+
- [VPSV1MetricsMetricsCollectionOutgoingTraffic](docs/VPSV1MetricsMetricsCollectionOutgoingTraffic.md)
|
|
234
|
+
- [VPSV1MetricsMetricsCollectionRamUsage](docs/VPSV1MetricsMetricsCollectionRamUsage.md)
|
|
235
|
+
- [VPSV1MetricsMetricsCollectionUptime](docs/VPSV1MetricsMetricsCollectionUptime.md)
|
|
226
236
|
- [VPSV1MetricsMetricsResource](docs/VPSV1MetricsMetricsResource.md)
|
|
227
237
|
- [VPSV1PostInstallScriptPostInstallScriptResource](docs/VPSV1PostInstallScriptPostInstallScriptResource.md)
|
|
228
238
|
- [VPSV1PostInstallScriptStoreRequest](docs/VPSV1PostInstallScriptStoreRequest.md)
|
|
@@ -232,13 +242,18 @@ Class | Method | HTTP request | Description
|
|
|
232
242
|
- [VPSV1SnapshotSnapshotResource](docs/VPSV1SnapshotSnapshotResource.md)
|
|
233
243
|
- [VPSV1TemplateTemplateResource](docs/VPSV1TemplateTemplateResource.md)
|
|
234
244
|
- [VPSV1VirtualMachineHostnameUpdateRequest](docs/VPSV1VirtualMachineHostnameUpdateRequest.md)
|
|
245
|
+
- [VPSV1VirtualMachineMetricGetRequest](docs/VPSV1VirtualMachineMetricGetRequest.md)
|
|
235
246
|
- [VPSV1VirtualMachineNameserversUpdateRequest](docs/VPSV1VirtualMachineNameserversUpdateRequest.md)
|
|
236
247
|
- [VPSV1VirtualMachinePanelPasswordUpdateRequest](docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md)
|
|
248
|
+
- [VPSV1VirtualMachinePurchaseRequest](docs/VPSV1VirtualMachinePurchaseRequest.md)
|
|
237
249
|
- [VPSV1VirtualMachineRecoveryStartRequest](docs/VPSV1VirtualMachineRecoveryStartRequest.md)
|
|
238
250
|
- [VPSV1VirtualMachineRecreateRequest](docs/VPSV1VirtualMachineRecreateRequest.md)
|
|
239
251
|
- [VPSV1VirtualMachineRootPasswordUpdateRequest](docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md)
|
|
240
252
|
- [VPSV1VirtualMachineSetupRequest](docs/VPSV1VirtualMachineSetupRequest.md)
|
|
241
253
|
- [VPSV1VirtualMachineSetupRequestPublicKey](docs/VPSV1VirtualMachineSetupRequestPublicKey.md)
|
|
242
254
|
- [VPSV1VirtualMachineVirtualMachineResource](docs/VPSV1VirtualMachineVirtualMachineResource.md)
|
|
255
|
+
- [VPSV1VirtualMachineVirtualMachineResourceIpv4](docs/VPSV1VirtualMachineVirtualMachineResourceIpv4.md)
|
|
256
|
+
- [VPSV1VirtualMachineVirtualMachineResourceIpv6](docs/VPSV1VirtualMachineVirtualMachineResourceIpv6.md)
|
|
257
|
+
- [VPSV1VirtualMachineVirtualMachineResourceTemplate](docs/VPSV1VirtualMachineVirtualMachineResourceTemplate.md)
|
|
243
258
|
|
|
244
259
|
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"""
|
|
6
6
|
Hostinger API Python SDK
|
|
7
7
|
|
|
8
|
-
API Version: 0.0.
|
|
8
|
+
API Version: 0.0.68
|
|
9
9
|
|
|
10
10
|
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
11
11
|
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
12
12
|
""" # noqa: E501
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
__version__ = "0.0.
|
|
15
|
+
__version__ = "0.0.13"
|
|
16
16
|
|
|
17
17
|
# import apis into sdk package
|
|
18
18
|
from hostinger_api.api.billing_catalog_api import BillingCatalogApi
|
|
@@ -50,20 +50,21 @@ from hostinger_api.exceptions import ApiAttributeError
|
|
|
50
50
|
from hostinger_api.exceptions import ApiException
|
|
51
51
|
|
|
52
52
|
# import models into sdk package
|
|
53
|
+
from hostinger_api.models.billing_create_new_service_order_v1422_response import BillingCreateNewServiceOrderV1422Response
|
|
54
|
+
from hostinger_api.models.billing_create_new_service_order_v1422_response_errors import BillingCreateNewServiceOrderV1422ResponseErrors
|
|
55
|
+
from hostinger_api.models.billing_get_catalog_item_list_v1401_response import BillingGetCatalogItemListV1401Response
|
|
56
|
+
from hostinger_api.models.billing_get_catalog_item_list_v1500_response import BillingGetCatalogItemListV1500Response
|
|
53
57
|
from hostinger_api.models.billing_v1_catalog_catalog_item_price_resource import BillingV1CatalogCatalogItemPriceResource
|
|
54
58
|
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
|
|
55
59
|
from hostinger_api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource
|
|
56
60
|
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
|
|
57
61
|
from hostinger_api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
|
|
58
62
|
from hostinger_api.models.billing_v1_order_store_request_items_inner import BillingV1OrderStoreRequestItemsInner
|
|
63
|
+
from hostinger_api.models.billing_v1_order_virtual_machine_order_resource import BillingV1OrderVirtualMachineOrderResource
|
|
59
64
|
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
|
|
60
65
|
from hostinger_api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
|
|
61
66
|
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
|
|
62
|
-
from hostinger_api.models.common_schema_error_response_schema import CommonSchemaErrorResponseSchema
|
|
63
67
|
from hostinger_api.models.common_schema_pagination_meta_schema import CommonSchemaPaginationMetaSchema
|
|
64
|
-
from hostinger_api.models.common_schema_unauthorized_response_schema import CommonSchemaUnauthorizedResponseSchema
|
|
65
|
-
from hostinger_api.models.common_schema_unprocessable_content_response_schema import CommonSchemaUnprocessableContentResponseSchema
|
|
66
|
-
from hostinger_api.models.common_schema_unprocessable_content_response_schema_errors import CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
67
68
|
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
|
|
68
69
|
from hostinger_api.models.dnsv1_snapshot_snapshot_resource import DNSV1SnapshotSnapshotResource
|
|
69
70
|
from hostinger_api.models.dnsv1_snapshot_snapshot_with_content_resource import DNSV1SnapshotSnapshotWithContentResource
|
|
@@ -103,6 +104,12 @@ from hostinger_api.models.vpsv1_firewall_store_request import VPSV1FirewallStore
|
|
|
103
104
|
from hostinger_api.models.vpsv1_ip_address_ip_address_resource import VPSV1IPAddressIPAddressResource
|
|
104
105
|
from hostinger_api.models.vpsv1_malware_metrics_resource import VPSV1MalwareMetricsResource
|
|
105
106
|
from hostinger_api.models.vpsv1_metrics_metrics_collection import VPSV1MetricsMetricsCollection
|
|
107
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_cpu_usage import VPSV1MetricsMetricsCollectionCpuUsage
|
|
108
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_disk_space import VPSV1MetricsMetricsCollectionDiskSpace
|
|
109
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_incoming_traffic import VPSV1MetricsMetricsCollectionIncomingTraffic
|
|
110
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_outgoing_traffic import VPSV1MetricsMetricsCollectionOutgoingTraffic
|
|
111
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_ram_usage import VPSV1MetricsMetricsCollectionRamUsage
|
|
112
|
+
from hostinger_api.models.vpsv1_metrics_metrics_collection_uptime import VPSV1MetricsMetricsCollectionUptime
|
|
106
113
|
from hostinger_api.models.vpsv1_metrics_metrics_resource import VPSV1MetricsMetricsResource
|
|
107
114
|
from hostinger_api.models.vpsv1_post_install_script_post_install_script_resource import VPSV1PostInstallScriptPostInstallScriptResource
|
|
108
115
|
from hostinger_api.models.vpsv1_post_install_script_store_request import VPSV1PostInstallScriptStoreRequest
|
|
@@ -112,11 +119,16 @@ from hostinger_api.models.vpsv1_public_key_store_request import VPSV1PublicKeySt
|
|
|
112
119
|
from hostinger_api.models.vpsv1_snapshot_snapshot_resource import VPSV1SnapshotSnapshotResource
|
|
113
120
|
from hostinger_api.models.vpsv1_template_template_resource import VPSV1TemplateTemplateResource
|
|
114
121
|
from hostinger_api.models.vpsv1_virtual_machine_hostname_update_request import VPSV1VirtualMachineHostnameUpdateRequest
|
|
122
|
+
from hostinger_api.models.vpsv1_virtual_machine_metric_get_request import VPSV1VirtualMachineMetricGetRequest
|
|
115
123
|
from hostinger_api.models.vpsv1_virtual_machine_nameservers_update_request import VPSV1VirtualMachineNameserversUpdateRequest
|
|
116
124
|
from hostinger_api.models.vpsv1_virtual_machine_panel_password_update_request import VPSV1VirtualMachinePanelPasswordUpdateRequest
|
|
125
|
+
from hostinger_api.models.vpsv1_virtual_machine_purchase_request import VPSV1VirtualMachinePurchaseRequest
|
|
117
126
|
from hostinger_api.models.vpsv1_virtual_machine_recovery_start_request import VPSV1VirtualMachineRecoveryStartRequest
|
|
118
127
|
from hostinger_api.models.vpsv1_virtual_machine_recreate_request import VPSV1VirtualMachineRecreateRequest
|
|
119
128
|
from hostinger_api.models.vpsv1_virtual_machine_root_password_update_request import VPSV1VirtualMachineRootPasswordUpdateRequest
|
|
120
129
|
from hostinger_api.models.vpsv1_virtual_machine_setup_request import VPSV1VirtualMachineSetupRequest
|
|
121
130
|
from hostinger_api.models.vpsv1_virtual_machine_setup_request_public_key import VPSV1VirtualMachineSetupRequestPublicKey
|
|
122
131
|
from hostinger_api.models.vpsv1_virtual_machine_virtual_machine_resource import VPSV1VirtualMachineVirtualMachineResource
|
|
132
|
+
from hostinger_api.models.vpsv1_virtual_machine_virtual_machine_resource_ipv4 import VPSV1VirtualMachineVirtualMachineResourceIpv4
|
|
133
|
+
from hostinger_api.models.vpsv1_virtual_machine_virtual_machine_resource_ipv6 import VPSV1VirtualMachineVirtualMachineResourceIpv6
|
|
134
|
+
from hostinger_api.models.vpsv1_virtual_machine_virtual_machine_resource_template import VPSV1VirtualMachineVirtualMachineResourceTemplate
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Hostinger API Python SDK
|
|
5
5
|
|
|
6
|
-
API Version: 0.0.
|
|
6
|
+
API Version: 0.0.68
|
|
7
7
|
|
|
8
8
|
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -14,7 +14,9 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
14
14
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
15
15
|
from typing_extensions import Annotated
|
|
16
16
|
|
|
17
|
-
from
|
|
17
|
+
from pydantic import Field, StrictStr, field_validator
|
|
18
|
+
from typing import List, Optional
|
|
19
|
+
from typing_extensions import Annotated
|
|
18
20
|
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
|
|
19
21
|
|
|
20
22
|
from hostinger_api.api_client import ApiClient, RequestSerialized
|
|
@@ -33,6 +35,8 @@ class BillingCatalogApi:
|
|
|
33
35
|
@validate_call
|
|
34
36
|
def get_catalog_item_list_v1(
|
|
35
37
|
self,
|
|
38
|
+
category: Annotated[Optional[StrictStr], Field(description="Filter catalog items by category")] = None,
|
|
39
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain")] = None,
|
|
36
40
|
_request_timeout: Union[
|
|
37
41
|
None,
|
|
38
42
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -50,6 +54,10 @@ class BillingCatalogApi:
|
|
|
50
54
|
|
|
51
55
|
This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
52
56
|
|
|
57
|
+
:param category: Filter catalog items by category
|
|
58
|
+
:type category: str
|
|
59
|
+
:param name: Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
60
|
+
:type name: str
|
|
53
61
|
:param _request_timeout: timeout setting for this request. If one
|
|
54
62
|
number provided, it will be total request
|
|
55
63
|
timeout. It can also be a pair (tuple) of
|
|
@@ -73,6 +81,8 @@ class BillingCatalogApi:
|
|
|
73
81
|
""" # noqa: E501
|
|
74
82
|
|
|
75
83
|
_param = self._get_catalog_item_list_v1_serialize(
|
|
84
|
+
category=category,
|
|
85
|
+
name=name,
|
|
76
86
|
_request_auth=_request_auth,
|
|
77
87
|
_content_type=_content_type,
|
|
78
88
|
_headers=_headers,
|
|
@@ -81,8 +91,8 @@ class BillingCatalogApi:
|
|
|
81
91
|
|
|
82
92
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
83
93
|
'200': "List[BillingV1CatalogCatalogItemResource]",
|
|
84
|
-
'401': "
|
|
85
|
-
'500': "
|
|
94
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
95
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
86
96
|
}
|
|
87
97
|
response_data = self.api_client.call_api(
|
|
88
98
|
*_param,
|
|
@@ -98,6 +108,8 @@ class BillingCatalogApi:
|
|
|
98
108
|
@validate_call
|
|
99
109
|
def get_catalog_item_list_v1_with_http_info(
|
|
100
110
|
self,
|
|
111
|
+
category: Annotated[Optional[StrictStr], Field(description="Filter catalog items by category")] = None,
|
|
112
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain")] = None,
|
|
101
113
|
_request_timeout: Union[
|
|
102
114
|
None,
|
|
103
115
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -115,6 +127,10 @@ class BillingCatalogApi:
|
|
|
115
127
|
|
|
116
128
|
This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
117
129
|
|
|
130
|
+
:param category: Filter catalog items by category
|
|
131
|
+
:type category: str
|
|
132
|
+
:param name: Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
133
|
+
:type name: str
|
|
118
134
|
:param _request_timeout: timeout setting for this request. If one
|
|
119
135
|
number provided, it will be total request
|
|
120
136
|
timeout. It can also be a pair (tuple) of
|
|
@@ -138,6 +154,8 @@ class BillingCatalogApi:
|
|
|
138
154
|
""" # noqa: E501
|
|
139
155
|
|
|
140
156
|
_param = self._get_catalog_item_list_v1_serialize(
|
|
157
|
+
category=category,
|
|
158
|
+
name=name,
|
|
141
159
|
_request_auth=_request_auth,
|
|
142
160
|
_content_type=_content_type,
|
|
143
161
|
_headers=_headers,
|
|
@@ -146,8 +164,8 @@ class BillingCatalogApi:
|
|
|
146
164
|
|
|
147
165
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
148
166
|
'200': "List[BillingV1CatalogCatalogItemResource]",
|
|
149
|
-
'401': "
|
|
150
|
-
'500': "
|
|
167
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
168
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
151
169
|
}
|
|
152
170
|
response_data = self.api_client.call_api(
|
|
153
171
|
*_param,
|
|
@@ -163,6 +181,8 @@ class BillingCatalogApi:
|
|
|
163
181
|
@validate_call
|
|
164
182
|
def get_catalog_item_list_v1_without_preload_content(
|
|
165
183
|
self,
|
|
184
|
+
category: Annotated[Optional[StrictStr], Field(description="Filter catalog items by category")] = None,
|
|
185
|
+
name: Annotated[Optional[StrictStr], Field(description="Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain")] = None,
|
|
166
186
|
_request_timeout: Union[
|
|
167
187
|
None,
|
|
168
188
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -180,6 +200,10 @@ class BillingCatalogApi:
|
|
|
180
200
|
|
|
181
201
|
This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
182
202
|
|
|
203
|
+
:param category: Filter catalog items by category
|
|
204
|
+
:type category: str
|
|
205
|
+
:param name: Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
206
|
+
:type name: str
|
|
183
207
|
:param _request_timeout: timeout setting for this request. If one
|
|
184
208
|
number provided, it will be total request
|
|
185
209
|
timeout. It can also be a pair (tuple) of
|
|
@@ -203,6 +227,8 @@ class BillingCatalogApi:
|
|
|
203
227
|
""" # noqa: E501
|
|
204
228
|
|
|
205
229
|
_param = self._get_catalog_item_list_v1_serialize(
|
|
230
|
+
category=category,
|
|
231
|
+
name=name,
|
|
206
232
|
_request_auth=_request_auth,
|
|
207
233
|
_content_type=_content_type,
|
|
208
234
|
_headers=_headers,
|
|
@@ -211,8 +237,8 @@ class BillingCatalogApi:
|
|
|
211
237
|
|
|
212
238
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
213
239
|
'200': "List[BillingV1CatalogCatalogItemResource]",
|
|
214
|
-
'401': "
|
|
215
|
-
'500': "
|
|
240
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
241
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
216
242
|
}
|
|
217
243
|
response_data = self.api_client.call_api(
|
|
218
244
|
*_param,
|
|
@@ -223,6 +249,8 @@ class BillingCatalogApi:
|
|
|
223
249
|
|
|
224
250
|
def _get_catalog_item_list_v1_serialize(
|
|
225
251
|
self,
|
|
252
|
+
category,
|
|
253
|
+
name,
|
|
226
254
|
_request_auth,
|
|
227
255
|
_content_type,
|
|
228
256
|
_headers,
|
|
@@ -245,6 +273,14 @@ class BillingCatalogApi:
|
|
|
245
273
|
|
|
246
274
|
# process the path parameters
|
|
247
275
|
# process the query parameters
|
|
276
|
+
if category is not None:
|
|
277
|
+
|
|
278
|
+
_query_params.append(('category', category))
|
|
279
|
+
|
|
280
|
+
if name is not None:
|
|
281
|
+
|
|
282
|
+
_query_params.append(('name', name))
|
|
283
|
+
|
|
248
284
|
# process the header parameters
|
|
249
285
|
# process the form parameters
|
|
250
286
|
# process the body parameter
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Hostinger API Python SDK
|
|
5
5
|
|
|
6
|
-
API Version: 0.0.
|
|
6
|
+
API Version: 0.0.68
|
|
7
7
|
|
|
8
8
|
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -47,9 +47,9 @@ class BillingOrdersApi:
|
|
|
47
47
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
48
48
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
49
49
|
) -> BillingV1OrderOrderResource:
|
|
50
|
-
"""Create new service order
|
|
50
|
+
"""(Deprecated) Create new service order
|
|
51
51
|
|
|
52
|
-
This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
52
|
+
This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
53
53
|
|
|
54
54
|
:param billing_v1_order_store_request: (required)
|
|
55
55
|
:type billing_v1_order_store_request: BillingV1OrderStoreRequest
|
|
@@ -74,6 +74,7 @@ class BillingOrdersApi:
|
|
|
74
74
|
:type _host_index: int, optional
|
|
75
75
|
:return: Returns the result object.
|
|
76
76
|
""" # noqa: E501
|
|
77
|
+
warnings.warn("POST /api/billing/v1/orders is deprecated.", DeprecationWarning)
|
|
77
78
|
|
|
78
79
|
_param = self._create_new_service_order_v1_serialize(
|
|
79
80
|
billing_v1_order_store_request=billing_v1_order_store_request,
|
|
@@ -85,9 +86,9 @@ class BillingOrdersApi:
|
|
|
85
86
|
|
|
86
87
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
87
88
|
'200': "BillingV1OrderOrderResource",
|
|
88
|
-
'422': "
|
|
89
|
-
'401': "
|
|
90
|
-
'500': "
|
|
89
|
+
'422': "BillingCreateNewServiceOrderV1422Response",
|
|
90
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
91
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
91
92
|
}
|
|
92
93
|
response_data = self.api_client.call_api(
|
|
93
94
|
*_param,
|
|
@@ -117,9 +118,9 @@ class BillingOrdersApi:
|
|
|
117
118
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
118
119
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
119
120
|
) -> ApiResponse[BillingV1OrderOrderResource]:
|
|
120
|
-
"""Create new service order
|
|
121
|
+
"""(Deprecated) Create new service order
|
|
121
122
|
|
|
122
|
-
This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
123
|
+
This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
123
124
|
|
|
124
125
|
:param billing_v1_order_store_request: (required)
|
|
125
126
|
:type billing_v1_order_store_request: BillingV1OrderStoreRequest
|
|
@@ -144,6 +145,7 @@ class BillingOrdersApi:
|
|
|
144
145
|
:type _host_index: int, optional
|
|
145
146
|
:return: Returns the result object.
|
|
146
147
|
""" # noqa: E501
|
|
148
|
+
warnings.warn("POST /api/billing/v1/orders is deprecated.", DeprecationWarning)
|
|
147
149
|
|
|
148
150
|
_param = self._create_new_service_order_v1_serialize(
|
|
149
151
|
billing_v1_order_store_request=billing_v1_order_store_request,
|
|
@@ -155,9 +157,9 @@ class BillingOrdersApi:
|
|
|
155
157
|
|
|
156
158
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
157
159
|
'200': "BillingV1OrderOrderResource",
|
|
158
|
-
'422': "
|
|
159
|
-
'401': "
|
|
160
|
-
'500': "
|
|
160
|
+
'422': "BillingCreateNewServiceOrderV1422Response",
|
|
161
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
162
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
161
163
|
}
|
|
162
164
|
response_data = self.api_client.call_api(
|
|
163
165
|
*_param,
|
|
@@ -187,9 +189,9 @@ class BillingOrdersApi:
|
|
|
187
189
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
188
190
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
189
191
|
) -> RESTResponseType:
|
|
190
|
-
"""Create new service order
|
|
192
|
+
"""(Deprecated) Create new service order
|
|
191
193
|
|
|
192
|
-
This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
194
|
+
This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
193
195
|
|
|
194
196
|
:param billing_v1_order_store_request: (required)
|
|
195
197
|
:type billing_v1_order_store_request: BillingV1OrderStoreRequest
|
|
@@ -214,6 +216,7 @@ class BillingOrdersApi:
|
|
|
214
216
|
:type _host_index: int, optional
|
|
215
217
|
:return: Returns the result object.
|
|
216
218
|
""" # noqa: E501
|
|
219
|
+
warnings.warn("POST /api/billing/v1/orders is deprecated.", DeprecationWarning)
|
|
217
220
|
|
|
218
221
|
_param = self._create_new_service_order_v1_serialize(
|
|
219
222
|
billing_v1_order_store_request=billing_v1_order_store_request,
|
|
@@ -225,9 +228,9 @@ class BillingOrdersApi:
|
|
|
225
228
|
|
|
226
229
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
230
|
'200': "BillingV1OrderOrderResource",
|
|
228
|
-
'422': "
|
|
229
|
-
'401': "
|
|
230
|
-
'500': "
|
|
231
|
+
'422': "BillingCreateNewServiceOrderV1422Response",
|
|
232
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
233
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
231
234
|
}
|
|
232
235
|
response_data = self.api_client.call_api(
|
|
233
236
|
*_param,
|
{hostinger_api-0.0.12 → hostinger_api-0.0.13}/hostinger_api/api/billing_payment_methods_api.py
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Hostinger API Python SDK
|
|
5
5
|
|
|
6
|
-
API Version: 0.0.
|
|
6
|
+
API Version: 0.0.68
|
|
7
7
|
|
|
8
8
|
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -88,8 +88,8 @@ class BillingPaymentMethodsApi:
|
|
|
88
88
|
|
|
89
89
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
90
90
|
'200': "CommonSuccessEmptyResource",
|
|
91
|
-
'401': "
|
|
92
|
-
'500': "
|
|
91
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
92
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
93
93
|
}
|
|
94
94
|
response_data = self.api_client.call_api(
|
|
95
95
|
*_param,
|
|
@@ -157,8 +157,8 @@ class BillingPaymentMethodsApi:
|
|
|
157
157
|
|
|
158
158
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
159
159
|
'200': "CommonSuccessEmptyResource",
|
|
160
|
-
'401': "
|
|
161
|
-
'500': "
|
|
160
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
161
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
162
162
|
}
|
|
163
163
|
response_data = self.api_client.call_api(
|
|
164
164
|
*_param,
|
|
@@ -226,8 +226,8 @@ class BillingPaymentMethodsApi:
|
|
|
226
226
|
|
|
227
227
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
228
228
|
'200': "CommonSuccessEmptyResource",
|
|
229
|
-
'401': "
|
|
230
|
-
'500': "
|
|
229
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
230
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
231
231
|
}
|
|
232
232
|
response_data = self.api_client.call_api(
|
|
233
233
|
*_param,
|
|
@@ -351,8 +351,8 @@ class BillingPaymentMethodsApi:
|
|
|
351
351
|
|
|
352
352
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
353
353
|
'200': "List[BillingV1PaymentMethodPaymentMethodResource]",
|
|
354
|
-
'401': "
|
|
355
|
-
'500': "
|
|
354
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
355
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
356
356
|
}
|
|
357
357
|
response_data = self.api_client.call_api(
|
|
358
358
|
*_param,
|
|
@@ -416,8 +416,8 @@ class BillingPaymentMethodsApi:
|
|
|
416
416
|
|
|
417
417
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
418
418
|
'200': "List[BillingV1PaymentMethodPaymentMethodResource]",
|
|
419
|
-
'401': "
|
|
420
|
-
'500': "
|
|
419
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
420
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
421
421
|
}
|
|
422
422
|
response_data = self.api_client.call_api(
|
|
423
423
|
*_param,
|
|
@@ -481,8 +481,8 @@ class BillingPaymentMethodsApi:
|
|
|
481
481
|
|
|
482
482
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
483
483
|
'200': "List[BillingV1PaymentMethodPaymentMethodResource]",
|
|
484
|
-
'401': "
|
|
485
|
-
'500': "
|
|
484
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
485
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
486
486
|
}
|
|
487
487
|
response_data = self.api_client.call_api(
|
|
488
488
|
*_param,
|
|
@@ -607,8 +607,8 @@ class BillingPaymentMethodsApi:
|
|
|
607
607
|
|
|
608
608
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
609
609
|
'200': "CommonSuccessEmptyResource",
|
|
610
|
-
'401': "
|
|
611
|
-
'500': "
|
|
610
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
611
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
612
612
|
}
|
|
613
613
|
response_data = self.api_client.call_api(
|
|
614
614
|
*_param,
|
|
@@ -676,8 +676,8 @@ class BillingPaymentMethodsApi:
|
|
|
676
676
|
|
|
677
677
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
678
678
|
'200': "CommonSuccessEmptyResource",
|
|
679
|
-
'401': "
|
|
680
|
-
'500': "
|
|
679
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
680
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
681
681
|
}
|
|
682
682
|
response_data = self.api_client.call_api(
|
|
683
683
|
*_param,
|
|
@@ -745,8 +745,8 @@ class BillingPaymentMethodsApi:
|
|
|
745
745
|
|
|
746
746
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
747
747
|
'200': "CommonSuccessEmptyResource",
|
|
748
|
-
'401': "
|
|
749
|
-
'500': "
|
|
748
|
+
'401': "BillingGetCatalogItemListV1401Response",
|
|
749
|
+
'500': "BillingGetCatalogItemListV1500Response",
|
|
750
750
|
}
|
|
751
751
|
response_data = self.api_client.call_api(
|
|
752
752
|
*_param,
|