hostinger-api 0.0.11__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.11 → hostinger_api-0.0.13}/PKG-INFO +37 -6
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/README.md +36 -5
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/__init__.py +21 -6
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/__init__.py +2 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/billing_catalog_api.py +44 -8
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/billing_orders_api.py +19 -16
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/billing_payment_methods_api.py +19 -19
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/billing_subscriptions_api.py +16 -16
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/dns_snapshot_api.py +19 -19
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/dns_zone_api.py +43 -43
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/domains_availability_api.py +13 -13
- hostinger_api-0.0.13/hostinger_api/api/domains_forwarding_api.py +850 -0
- hostinger_api-0.0.13/hostinger_api/api/domains_portfolio_api.py +2205 -0
- hostinger_api-0.0.13/hostinger_api/api/domains_whois_api.py +1387 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_actions_api.py +13 -13
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_backups_api.py +19 -19
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_data_centers_api.py +7 -7
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_firewall_api.py +79 -79
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_malware_scanner_api.py +28 -28
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_post_install_scripts_api.py +37 -37
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_public_keys_api.py +31 -31
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_recovery_api.py +16 -16
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_snapshots_api.py +25 -25
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vps_virtual_machine_api.py +436 -132
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vpsos_templates_api.py +13 -13
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api/vpsptr_records_api.py +13 -13
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api_client.py +2 -2
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/configuration.py +3 -3
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/exceptions.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/__init__.py +18 -5
- hostinger_api-0.0.11/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.11/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.11/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.11/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.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_catalog_catalog_item_price_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_catalog_catalog_item_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_order_billing_address_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_order_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_store_request.py +2 -2
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_order_store_request_items_inner.py +4 -4
- hostinger_api-0.0.13/hostinger_api/models/billing_v1_order_virtual_machine_order_resource.py +95 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_payment_method_payment_method_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_subscription_cancel_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/billing_v1_subscription_subscription_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/common_schema_pagination_meta_schema.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/common_success_empty_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_snapshot_snapshot_with_content_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_destroy_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_destroy_request_filters_inner.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_name_record_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_record_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_reset_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request_zone_inner.py +2 -2
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/dnsv1_zone_update_request_zone_inner_records_inner.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_availability_availability_request.py +5 -5
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_availability_availability_resource.py +4 -4
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_domain_domain_extended_resource.py +152 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_domain_domain_extended_resource_domain_contacts.py +91 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_domain_domain_extended_resource_name_servers.py +87 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/domains_v1_domain_domain_resource.py +9 -9
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_forwarding_forwarding_resource.py +114 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_forwarding_store_request.py +96 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_portfolio_purchase_request.py +99 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_portfolio_purchase_request_domain_contacts.py +91 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_portfolio_update_nameservers_request.py +91 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_whois_profile_resource.py +110 -0
- hostinger_api-0.0.13/hostinger_api/models/domains_v1_whois_store_request.py +100 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_action_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_backup_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_firewall_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_post_install_script_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vps_get_public_key_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_action_action_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_backup_backup_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_data_center_data_center_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_firewall_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_firewall_rule_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_rules_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_firewall_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_ip_address_ip_address_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_malware_metrics_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_cpu_usage.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_disk_space.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_incoming_traffic.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_outgoing_traffic.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_ram_usage.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_collection_uptime.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_metrics_metrics_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_post_install_script_post_install_script_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_post_install_script_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_attach_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_public_key_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_public_key_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_template_template_resource.py +1 -1
- {hostinger_api-0.0.11 → 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.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_nameservers_update_request.py +1 -1
- {hostinger_api-0.0.11 → 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.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_recovery_start_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_recreate_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_root_password_update_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_setup_request.py +3 -3
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_setup_request_public_key.py +3 -3
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_ipv4.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_ipv6.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/models/vpsv1_virtual_machine_virtual_machine_resource_template.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/rest.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api.egg-info/PKG-INFO +37 -6
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api.egg-info/SOURCES.txt +38 -8
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/pyproject.toml +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/setup.py +2 -2
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_catalog_api.py +1 -1
- hostinger_api-0.0.11/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.11/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.11/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.11/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.11 → hostinger_api-0.0.13}/test/test_billing_orders_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_payment_methods_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_subscriptions_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_catalog_catalog_item_price_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_catalog_catalog_item_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_order_order_billing_address_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_order_order_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_order_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_order_store_request_items_inner.py +3 -1
- hostinger_api-0.0.13/test/test_billing_v1_order_virtual_machine_order_resource.py +87 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_payment_method_payment_method_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_subscription_cancel_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_billing_v1_subscription_subscription_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_common_schema_pagination_meta_schema.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_common_success_empty_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dns_snapshot_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dns_zone_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_snapshot_snapshot_with_content_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_destroy_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_destroy_request_filters_inner.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_name_record_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_record_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_reset_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request_zone_inner.py +5 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_dnsv1_zone_update_request_zone_inner_records_inner.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_domains_availability_api.py +1 -1
- hostinger_api-0.0.13/test/test_domains_forwarding_api.py +50 -0
- hostinger_api-0.0.13/test/test_domains_portfolio_api.py +85 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_domains_v1_availability_availability_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_domains_v1_availability_availability_resource.py +1 -1
- hostinger_api-0.0.13/test/test_domains_v1_domain_domain_extended_resource.py +67 -0
- hostinger_api-0.0.13/test/test_domains_v1_domain_domain_extended_resource_domain_contacts.py +52 -0
- hostinger_api-0.0.13/test/test_domains_v1_domain_domain_extended_resource_name_servers.py +50 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_domains_v1_domain_domain_resource.py +2 -2
- hostinger_api-0.0.13/test/test_domains_v1_forwarding_forwarding_resource.py +53 -0
- hostinger_api-0.0.13/test/test_domains_v1_forwarding_store_request.py +54 -0
- hostinger_api-0.0.13/test/test_domains_v1_portfolio_purchase_request.py +62 -0
- hostinger_api-0.0.13/test/test_domains_v1_portfolio_purchase_request_domain_contacts.py +52 -0
- hostinger_api-0.0.13/test/test_domains_v1_portfolio_update_nameservers_request.py +54 -0
- hostinger_api-0.0.13/test/test_domains_v1_whois_profile_resource.py +56 -0
- hostinger_api-0.0.13/test/test_domains_v1_whois_store_request.py +57 -0
- hostinger_api-0.0.13/test/test_domains_whois_api.py +64 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_actions_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_backups_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_data_centers_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_firewall_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_get_action_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_get_backup_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_get_firewall_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_get_post_install_script_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_get_public_key_list_v1200_response.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_malware_scanner_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_post_install_scripts_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_public_keys_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_recovery_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_snapshots_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vps_virtual_machine_api.py +8 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsos_templates_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsptr_records_api.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_action_action_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_backup_backup_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_data_center_data_center_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_firewall_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_firewall_rule_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_rules_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_firewall_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_ip_address_ip_address_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_malware_metrics_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_cpu_usage.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_disk_space.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_incoming_traffic.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_outgoing_traffic.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_ram_usage.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_collection_uptime.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_metrics_metrics_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_post_install_script_post_install_script_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_post_install_script_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_attach_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_public_key_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_public_key_store_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_snapshot_snapshot_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_template_template_resource.py +1 -1
- {hostinger_api-0.0.11 → 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.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_nameservers_update_request.py +1 -1
- {hostinger_api-0.0.11 → 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.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_recovery_start_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_recreate_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_root_password_update_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_setup_request.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_setup_request_public_key.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_virtual_machine_resource.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_virtual_machine_resource_ipv4.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_virtual_machine_resource_ipv6.py +1 -1
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/test/test_vpsv1_virtual_machine_virtual_machine_resource_template.py +1 -1
- hostinger_api-0.0.11/hostinger_api/api/domains_portfolio_api.py +0 -282
- hostinger_api-0.0.11/test/test_domains_portfolio_api.py +0 -36
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/api_response.py +0 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api/py.typed +0 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api.egg-info/dependency_links.txt +0 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api.egg-info/requires.txt +0 -0
- {hostinger_api-0.0.11 → hostinger_api-0.0.13}/hostinger_api.egg-info/top_level.txt +0 -0
- {hostinger_api-0.0.11 → 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
|
|
@@ -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:
|
|
@@ -122,7 +124,22 @@ Class | Method | HTTP request | Description
|
|
|
122
124
|
*DNSZoneApi* | [**update_zone_records_v1**](docs/DNSZoneApi.md#update_zone_records_v1) | **PUT** /api/dns/v1/zones/{domain} | Update zone records
|
|
123
125
|
*DNSZoneApi* | [**validate_zone_records_v1**](docs/DNSZoneApi.md#validate_zone_records_v1) | **POST** /api/dns/v1/zones/{domain}/validate | Validate zone records
|
|
124
126
|
*DomainsAvailabilityApi* | [**check_domain_availability_v1**](docs/DomainsAvailabilityApi.md#check_domain_availability_v1) | **POST** /api/domains/v1/availability | Check domain availability
|
|
127
|
+
*DomainsForwardingApi* | [**create_forwarding_data_v1**](docs/DomainsForwardingApi.md#create_forwarding_data_v1) | **POST** /api/domains/v1/forwarding | Create forwarding data
|
|
128
|
+
*DomainsForwardingApi* | [**delete_forwarding_data_v1**](docs/DomainsForwardingApi.md#delete_forwarding_data_v1) | **DELETE** /api/domains/v1/forwarding/{domain} | Delete forwarding data
|
|
129
|
+
*DomainsForwardingApi* | [**get_forwarding_data_v1**](docs/DomainsForwardingApi.md#get_forwarding_data_v1) | **GET** /api/domains/v1/forwarding/{domain} | Get forwarding data
|
|
130
|
+
*DomainsPortfolioApi* | [**disable_domain_lock_v1**](docs/DomainsPortfolioApi.md#disable_domain_lock_v1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock
|
|
131
|
+
*DomainsPortfolioApi* | [**disable_privacy_protection_v1**](docs/DomainsPortfolioApi.md#disable_privacy_protection_v1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection
|
|
132
|
+
*DomainsPortfolioApi* | [**enable_domain_lock_v1**](docs/DomainsPortfolioApi.md#enable_domain_lock_v1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock
|
|
133
|
+
*DomainsPortfolioApi* | [**enable_privacy_protection_v1**](docs/DomainsPortfolioApi.md#enable_privacy_protection_v1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection
|
|
125
134
|
*DomainsPortfolioApi* | [**get_domain_list_v1**](docs/DomainsPortfolioApi.md#get_domain_list_v1) | **GET** /api/domains/v1/portfolio | Get domain list
|
|
135
|
+
*DomainsPortfolioApi* | [**get_domain_v1**](docs/DomainsPortfolioApi.md#get_domain_v1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain
|
|
136
|
+
*DomainsPortfolioApi* | [**purchase_new_domain_v1**](docs/DomainsPortfolioApi.md#purchase_new_domain_v1) | **POST** /api/domains/v1/portfolio | Purchase new domain
|
|
137
|
+
*DomainsPortfolioApi* | [**update_nameservers_v1**](docs/DomainsPortfolioApi.md#update_nameservers_v1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update nameservers
|
|
138
|
+
*DomainsWHOISApi* | [**create_whois_profile_v1**](docs/DomainsWHOISApi.md#create_whois_profile_v1) | **POST** /api/domains/v1/whois | Create WHOIS profile
|
|
139
|
+
*DomainsWHOISApi* | [**delete_whois_profile_v1**](docs/DomainsWHOISApi.md#delete_whois_profile_v1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile
|
|
140
|
+
*DomainsWHOISApi* | [**get_whois_profile_list_v1**](docs/DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
|
|
141
|
+
*DomainsWHOISApi* | [**get_whois_profile_usage_v1**](docs/DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
|
|
142
|
+
*DomainsWHOISApi* | [**get_whois_profile_v1**](docs/DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
|
|
126
143
|
*VPSActionsApi* | [**get_action_list_v1**](docs/VPSActionsApi.md#get_action_list_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions | Get action list
|
|
127
144
|
*VPSActionsApi* | [**get_action_v1**](docs/VPSActionsApi.md#get_action_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId} | Get action
|
|
128
145
|
*VPSBackupsApi* | [**delete_backup_v1**](docs/VPSBackupsApi.md#delete_backup_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId} | Delete backup
|
|
@@ -165,6 +182,7 @@ Class | Method | HTTP request | Description
|
|
|
165
182
|
*VPSVirtualMachineApi* | [**get_metrics_v1**](docs/VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
|
|
166
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
|
|
167
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
|
|
168
186
|
*VPSVirtualMachineApi* | [**recreate_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#recreate_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/recreate | Recreate virtual machine
|
|
169
187
|
*VPSVirtualMachineApi* | [**reset_hostname_v1**](docs/VPSVirtualMachineApi.md#reset_hostname_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/hostname | Reset hostname
|
|
170
188
|
*VPSVirtualMachineApi* | [**restart_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#restart_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/restart | Restart virtual machine
|
|
@@ -179,20 +197,21 @@ Class | Method | HTTP request | Description
|
|
|
179
197
|
|
|
180
198
|
## Documentation For Models
|
|
181
199
|
|
|
200
|
+
- [BillingCreateNewServiceOrderV1422Response](docs/BillingCreateNewServiceOrderV1422Response.md)
|
|
201
|
+
- [BillingCreateNewServiceOrderV1422ResponseErrors](docs/BillingCreateNewServiceOrderV1422ResponseErrors.md)
|
|
202
|
+
- [BillingGetCatalogItemListV1401Response](docs/BillingGetCatalogItemListV1401Response.md)
|
|
203
|
+
- [BillingGetCatalogItemListV1500Response](docs/BillingGetCatalogItemListV1500Response.md)
|
|
182
204
|
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
|
|
183
205
|
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
|
|
184
206
|
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
|
|
185
207
|
- [BillingV1OrderOrderResource](docs/BillingV1OrderOrderResource.md)
|
|
186
208
|
- [BillingV1OrderStoreRequest](docs/BillingV1OrderStoreRequest.md)
|
|
187
209
|
- [BillingV1OrderStoreRequestItemsInner](docs/BillingV1OrderStoreRequestItemsInner.md)
|
|
210
|
+
- [BillingV1OrderVirtualMachineOrderResource](docs/BillingV1OrderVirtualMachineOrderResource.md)
|
|
188
211
|
- [BillingV1PaymentMethodPaymentMethodResource](docs/BillingV1PaymentMethodPaymentMethodResource.md)
|
|
189
212
|
- [BillingV1SubscriptionCancelRequest](docs/BillingV1SubscriptionCancelRequest.md)
|
|
190
213
|
- [BillingV1SubscriptionSubscriptionResource](docs/BillingV1SubscriptionSubscriptionResource.md)
|
|
191
|
-
- [CommonSchemaErrorResponseSchema](docs/CommonSchemaErrorResponseSchema.md)
|
|
192
214
|
- [CommonSchemaPaginationMetaSchema](docs/CommonSchemaPaginationMetaSchema.md)
|
|
193
|
-
- [CommonSchemaUnauthorizedResponseSchema](docs/CommonSchemaUnauthorizedResponseSchema.md)
|
|
194
|
-
- [CommonSchemaUnprocessableContentResponseSchema](docs/CommonSchemaUnprocessableContentResponseSchema.md)
|
|
195
|
-
- [CommonSchemaUnprocessableContentResponseSchemaErrors](docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md)
|
|
196
215
|
- [CommonSuccessEmptyResource](docs/CommonSuccessEmptyResource.md)
|
|
197
216
|
- [DNSV1SnapshotSnapshotResource](docs/DNSV1SnapshotSnapshotResource.md)
|
|
198
217
|
- [DNSV1SnapshotSnapshotWithContentResource](docs/DNSV1SnapshotSnapshotWithContentResource.md)
|
|
@@ -206,7 +225,17 @@ Class | Method | HTTP request | Description
|
|
|
206
225
|
- [DNSV1ZoneUpdateRequestZoneInnerRecordsInner](docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md)
|
|
207
226
|
- [DomainsV1AvailabilityAvailabilityRequest](docs/DomainsV1AvailabilityAvailabilityRequest.md)
|
|
208
227
|
- [DomainsV1AvailabilityAvailabilityResource](docs/DomainsV1AvailabilityAvailabilityResource.md)
|
|
228
|
+
- [DomainsV1DomainDomainExtendedResource](docs/DomainsV1DomainDomainExtendedResource.md)
|
|
229
|
+
- [DomainsV1DomainDomainExtendedResourceDomainContacts](docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md)
|
|
230
|
+
- [DomainsV1DomainDomainExtendedResourceNameServers](docs/DomainsV1DomainDomainExtendedResourceNameServers.md)
|
|
209
231
|
- [DomainsV1DomainDomainResource](docs/DomainsV1DomainDomainResource.md)
|
|
232
|
+
- [DomainsV1ForwardingForwardingResource](docs/DomainsV1ForwardingForwardingResource.md)
|
|
233
|
+
- [DomainsV1ForwardingStoreRequest](docs/DomainsV1ForwardingStoreRequest.md)
|
|
234
|
+
- [DomainsV1PortfolioPurchaseRequest](docs/DomainsV1PortfolioPurchaseRequest.md)
|
|
235
|
+
- [DomainsV1PortfolioPurchaseRequestDomainContacts](docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md)
|
|
236
|
+
- [DomainsV1PortfolioUpdateNameserversRequest](docs/DomainsV1PortfolioUpdateNameserversRequest.md)
|
|
237
|
+
- [DomainsV1WHOISProfileResource](docs/DomainsV1WHOISProfileResource.md)
|
|
238
|
+
- [DomainsV1WHOISStoreRequest](docs/DomainsV1WHOISStoreRequest.md)
|
|
210
239
|
- [VPSGetActionListV1200Response](docs/VPSGetActionListV1200Response.md)
|
|
211
240
|
- [VPSGetBackupListV1200Response](docs/VPSGetBackupListV1200Response.md)
|
|
212
241
|
- [VPSGetFirewallListV1200Response](docs/VPSGetFirewallListV1200Response.md)
|
|
@@ -237,8 +266,10 @@ Class | Method | HTTP request | Description
|
|
|
237
266
|
- [VPSV1SnapshotSnapshotResource](docs/VPSV1SnapshotSnapshotResource.md)
|
|
238
267
|
- [VPSV1TemplateTemplateResource](docs/VPSV1TemplateTemplateResource.md)
|
|
239
268
|
- [VPSV1VirtualMachineHostnameUpdateRequest](docs/VPSV1VirtualMachineHostnameUpdateRequest.md)
|
|
269
|
+
- [VPSV1VirtualMachineMetricGetRequest](docs/VPSV1VirtualMachineMetricGetRequest.md)
|
|
240
270
|
- [VPSV1VirtualMachineNameserversUpdateRequest](docs/VPSV1VirtualMachineNameserversUpdateRequest.md)
|
|
241
271
|
- [VPSV1VirtualMachinePanelPasswordUpdateRequest](docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md)
|
|
272
|
+
- [VPSV1VirtualMachinePurchaseRequest](docs/VPSV1VirtualMachinePurchaseRequest.md)
|
|
242
273
|
- [VPSV1VirtualMachineRecoveryStartRequest](docs/VPSV1VirtualMachineRecoveryStartRequest.md)
|
|
243
274
|
- [VPSV1VirtualMachineRecreateRequest](docs/VPSV1VirtualMachineRecreateRequest.md)
|
|
244
275
|
- [VPSV1VirtualMachineRootPasswordUpdateRequest](docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md)
|
|
@@ -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:
|
|
@@ -98,7 +100,22 @@ Class | Method | HTTP request | Description
|
|
|
98
100
|
*DNSZoneApi* | [**update_zone_records_v1**](docs/DNSZoneApi.md#update_zone_records_v1) | **PUT** /api/dns/v1/zones/{domain} | Update zone records
|
|
99
101
|
*DNSZoneApi* | [**validate_zone_records_v1**](docs/DNSZoneApi.md#validate_zone_records_v1) | **POST** /api/dns/v1/zones/{domain}/validate | Validate zone records
|
|
100
102
|
*DomainsAvailabilityApi* | [**check_domain_availability_v1**](docs/DomainsAvailabilityApi.md#check_domain_availability_v1) | **POST** /api/domains/v1/availability | Check domain availability
|
|
103
|
+
*DomainsForwardingApi* | [**create_forwarding_data_v1**](docs/DomainsForwardingApi.md#create_forwarding_data_v1) | **POST** /api/domains/v1/forwarding | Create forwarding data
|
|
104
|
+
*DomainsForwardingApi* | [**delete_forwarding_data_v1**](docs/DomainsForwardingApi.md#delete_forwarding_data_v1) | **DELETE** /api/domains/v1/forwarding/{domain} | Delete forwarding data
|
|
105
|
+
*DomainsForwardingApi* | [**get_forwarding_data_v1**](docs/DomainsForwardingApi.md#get_forwarding_data_v1) | **GET** /api/domains/v1/forwarding/{domain} | Get forwarding data
|
|
106
|
+
*DomainsPortfolioApi* | [**disable_domain_lock_v1**](docs/DomainsPortfolioApi.md#disable_domain_lock_v1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock
|
|
107
|
+
*DomainsPortfolioApi* | [**disable_privacy_protection_v1**](docs/DomainsPortfolioApi.md#disable_privacy_protection_v1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection
|
|
108
|
+
*DomainsPortfolioApi* | [**enable_domain_lock_v1**](docs/DomainsPortfolioApi.md#enable_domain_lock_v1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock
|
|
109
|
+
*DomainsPortfolioApi* | [**enable_privacy_protection_v1**](docs/DomainsPortfolioApi.md#enable_privacy_protection_v1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection
|
|
101
110
|
*DomainsPortfolioApi* | [**get_domain_list_v1**](docs/DomainsPortfolioApi.md#get_domain_list_v1) | **GET** /api/domains/v1/portfolio | Get domain list
|
|
111
|
+
*DomainsPortfolioApi* | [**get_domain_v1**](docs/DomainsPortfolioApi.md#get_domain_v1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain
|
|
112
|
+
*DomainsPortfolioApi* | [**purchase_new_domain_v1**](docs/DomainsPortfolioApi.md#purchase_new_domain_v1) | **POST** /api/domains/v1/portfolio | Purchase new domain
|
|
113
|
+
*DomainsPortfolioApi* | [**update_nameservers_v1**](docs/DomainsPortfolioApi.md#update_nameservers_v1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update nameservers
|
|
114
|
+
*DomainsWHOISApi* | [**create_whois_profile_v1**](docs/DomainsWHOISApi.md#create_whois_profile_v1) | **POST** /api/domains/v1/whois | Create WHOIS profile
|
|
115
|
+
*DomainsWHOISApi* | [**delete_whois_profile_v1**](docs/DomainsWHOISApi.md#delete_whois_profile_v1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile
|
|
116
|
+
*DomainsWHOISApi* | [**get_whois_profile_list_v1**](docs/DomainsWHOISApi.md#get_whois_profile_list_v1) | **GET** /api/domains/v1/whois | Get WHOIS profile list
|
|
117
|
+
*DomainsWHOISApi* | [**get_whois_profile_usage_v1**](docs/DomainsWHOISApi.md#get_whois_profile_usage_v1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage
|
|
118
|
+
*DomainsWHOISApi* | [**get_whois_profile_v1**](docs/DomainsWHOISApi.md#get_whois_profile_v1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile
|
|
102
119
|
*VPSActionsApi* | [**get_action_list_v1**](docs/VPSActionsApi.md#get_action_list_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions | Get action list
|
|
103
120
|
*VPSActionsApi* | [**get_action_v1**](docs/VPSActionsApi.md#get_action_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId} | Get action
|
|
104
121
|
*VPSBackupsApi* | [**delete_backup_v1**](docs/VPSBackupsApi.md#delete_backup_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId} | Delete backup
|
|
@@ -141,6 +158,7 @@ Class | Method | HTTP request | Description
|
|
|
141
158
|
*VPSVirtualMachineApi* | [**get_metrics_v1**](docs/VPSVirtualMachineApi.md#get_metrics_v1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics
|
|
142
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
|
|
143
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
|
|
144
162
|
*VPSVirtualMachineApi* | [**recreate_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#recreate_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/recreate | Recreate virtual machine
|
|
145
163
|
*VPSVirtualMachineApi* | [**reset_hostname_v1**](docs/VPSVirtualMachineApi.md#reset_hostname_v1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/hostname | Reset hostname
|
|
146
164
|
*VPSVirtualMachineApi* | [**restart_virtual_machine_v1**](docs/VPSVirtualMachineApi.md#restart_virtual_machine_v1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/restart | Restart virtual machine
|
|
@@ -155,20 +173,21 @@ Class | Method | HTTP request | Description
|
|
|
155
173
|
|
|
156
174
|
## Documentation For Models
|
|
157
175
|
|
|
176
|
+
- [BillingCreateNewServiceOrderV1422Response](docs/BillingCreateNewServiceOrderV1422Response.md)
|
|
177
|
+
- [BillingCreateNewServiceOrderV1422ResponseErrors](docs/BillingCreateNewServiceOrderV1422ResponseErrors.md)
|
|
178
|
+
- [BillingGetCatalogItemListV1401Response](docs/BillingGetCatalogItemListV1401Response.md)
|
|
179
|
+
- [BillingGetCatalogItemListV1500Response](docs/BillingGetCatalogItemListV1500Response.md)
|
|
158
180
|
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
|
|
159
181
|
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
|
|
160
182
|
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)
|
|
161
183
|
- [BillingV1OrderOrderResource](docs/BillingV1OrderOrderResource.md)
|
|
162
184
|
- [BillingV1OrderStoreRequest](docs/BillingV1OrderStoreRequest.md)
|
|
163
185
|
- [BillingV1OrderStoreRequestItemsInner](docs/BillingV1OrderStoreRequestItemsInner.md)
|
|
186
|
+
- [BillingV1OrderVirtualMachineOrderResource](docs/BillingV1OrderVirtualMachineOrderResource.md)
|
|
164
187
|
- [BillingV1PaymentMethodPaymentMethodResource](docs/BillingV1PaymentMethodPaymentMethodResource.md)
|
|
165
188
|
- [BillingV1SubscriptionCancelRequest](docs/BillingV1SubscriptionCancelRequest.md)
|
|
166
189
|
- [BillingV1SubscriptionSubscriptionResource](docs/BillingV1SubscriptionSubscriptionResource.md)
|
|
167
|
-
- [CommonSchemaErrorResponseSchema](docs/CommonSchemaErrorResponseSchema.md)
|
|
168
190
|
- [CommonSchemaPaginationMetaSchema](docs/CommonSchemaPaginationMetaSchema.md)
|
|
169
|
-
- [CommonSchemaUnauthorizedResponseSchema](docs/CommonSchemaUnauthorizedResponseSchema.md)
|
|
170
|
-
- [CommonSchemaUnprocessableContentResponseSchema](docs/CommonSchemaUnprocessableContentResponseSchema.md)
|
|
171
|
-
- [CommonSchemaUnprocessableContentResponseSchemaErrors](docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md)
|
|
172
191
|
- [CommonSuccessEmptyResource](docs/CommonSuccessEmptyResource.md)
|
|
173
192
|
- [DNSV1SnapshotSnapshotResource](docs/DNSV1SnapshotSnapshotResource.md)
|
|
174
193
|
- [DNSV1SnapshotSnapshotWithContentResource](docs/DNSV1SnapshotSnapshotWithContentResource.md)
|
|
@@ -182,7 +201,17 @@ Class | Method | HTTP request | Description
|
|
|
182
201
|
- [DNSV1ZoneUpdateRequestZoneInnerRecordsInner](docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md)
|
|
183
202
|
- [DomainsV1AvailabilityAvailabilityRequest](docs/DomainsV1AvailabilityAvailabilityRequest.md)
|
|
184
203
|
- [DomainsV1AvailabilityAvailabilityResource](docs/DomainsV1AvailabilityAvailabilityResource.md)
|
|
204
|
+
- [DomainsV1DomainDomainExtendedResource](docs/DomainsV1DomainDomainExtendedResource.md)
|
|
205
|
+
- [DomainsV1DomainDomainExtendedResourceDomainContacts](docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md)
|
|
206
|
+
- [DomainsV1DomainDomainExtendedResourceNameServers](docs/DomainsV1DomainDomainExtendedResourceNameServers.md)
|
|
185
207
|
- [DomainsV1DomainDomainResource](docs/DomainsV1DomainDomainResource.md)
|
|
208
|
+
- [DomainsV1ForwardingForwardingResource](docs/DomainsV1ForwardingForwardingResource.md)
|
|
209
|
+
- [DomainsV1ForwardingStoreRequest](docs/DomainsV1ForwardingStoreRequest.md)
|
|
210
|
+
- [DomainsV1PortfolioPurchaseRequest](docs/DomainsV1PortfolioPurchaseRequest.md)
|
|
211
|
+
- [DomainsV1PortfolioPurchaseRequestDomainContacts](docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md)
|
|
212
|
+
- [DomainsV1PortfolioUpdateNameserversRequest](docs/DomainsV1PortfolioUpdateNameserversRequest.md)
|
|
213
|
+
- [DomainsV1WHOISProfileResource](docs/DomainsV1WHOISProfileResource.md)
|
|
214
|
+
- [DomainsV1WHOISStoreRequest](docs/DomainsV1WHOISStoreRequest.md)
|
|
186
215
|
- [VPSGetActionListV1200Response](docs/VPSGetActionListV1200Response.md)
|
|
187
216
|
- [VPSGetBackupListV1200Response](docs/VPSGetBackupListV1200Response.md)
|
|
188
217
|
- [VPSGetFirewallListV1200Response](docs/VPSGetFirewallListV1200Response.md)
|
|
@@ -213,8 +242,10 @@ Class | Method | HTTP request | Description
|
|
|
213
242
|
- [VPSV1SnapshotSnapshotResource](docs/VPSV1SnapshotSnapshotResource.md)
|
|
214
243
|
- [VPSV1TemplateTemplateResource](docs/VPSV1TemplateTemplateResource.md)
|
|
215
244
|
- [VPSV1VirtualMachineHostnameUpdateRequest](docs/VPSV1VirtualMachineHostnameUpdateRequest.md)
|
|
245
|
+
- [VPSV1VirtualMachineMetricGetRequest](docs/VPSV1VirtualMachineMetricGetRequest.md)
|
|
216
246
|
- [VPSV1VirtualMachineNameserversUpdateRequest](docs/VPSV1VirtualMachineNameserversUpdateRequest.md)
|
|
217
247
|
- [VPSV1VirtualMachinePanelPasswordUpdateRequest](docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md)
|
|
248
|
+
- [VPSV1VirtualMachinePurchaseRequest](docs/VPSV1VirtualMachinePurchaseRequest.md)
|
|
218
249
|
- [VPSV1VirtualMachineRecoveryStartRequest](docs/VPSV1VirtualMachineRecoveryStartRequest.md)
|
|
219
250
|
- [VPSV1VirtualMachineRecreateRequest](docs/VPSV1VirtualMachineRecreateRequest.md)
|
|
220
251
|
- [VPSV1VirtualMachineRootPasswordUpdateRequest](docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md)
|
|
@@ -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
|
|
@@ -22,7 +22,9 @@ from hostinger_api.api.billing_subscriptions_api import BillingSubscriptionsApi
|
|
|
22
22
|
from hostinger_api.api.dns_snapshot_api import DNSSnapshotApi
|
|
23
23
|
from hostinger_api.api.dns_zone_api import DNSZoneApi
|
|
24
24
|
from hostinger_api.api.domains_availability_api import DomainsAvailabilityApi
|
|
25
|
+
from hostinger_api.api.domains_forwarding_api import DomainsForwardingApi
|
|
25
26
|
from hostinger_api.api.domains_portfolio_api import DomainsPortfolioApi
|
|
27
|
+
from hostinger_api.api.domains_whois_api import DomainsWHOISApi
|
|
26
28
|
from hostinger_api.api.vps_actions_api import VPSActionsApi
|
|
27
29
|
from hostinger_api.api.vps_backups_api import VPSBackupsApi
|
|
28
30
|
from hostinger_api.api.vps_data_centers_api import VPSDataCentersApi
|
|
@@ -48,20 +50,21 @@ from hostinger_api.exceptions import ApiAttributeError
|
|
|
48
50
|
from hostinger_api.exceptions import ApiException
|
|
49
51
|
|
|
50
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
|
|
51
57
|
from hostinger_api.models.billing_v1_catalog_catalog_item_price_resource import BillingV1CatalogCatalogItemPriceResource
|
|
52
58
|
from hostinger_api.models.billing_v1_catalog_catalog_item_resource import BillingV1CatalogCatalogItemResource
|
|
53
59
|
from hostinger_api.models.billing_v1_order_order_billing_address_resource import BillingV1OrderOrderBillingAddressResource
|
|
54
60
|
from hostinger_api.models.billing_v1_order_order_resource import BillingV1OrderOrderResource
|
|
55
61
|
from hostinger_api.models.billing_v1_order_store_request import BillingV1OrderStoreRequest
|
|
56
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
|
|
57
64
|
from hostinger_api.models.billing_v1_payment_method_payment_method_resource import BillingV1PaymentMethodPaymentMethodResource
|
|
58
65
|
from hostinger_api.models.billing_v1_subscription_cancel_request import BillingV1SubscriptionCancelRequest
|
|
59
66
|
from hostinger_api.models.billing_v1_subscription_subscription_resource import BillingV1SubscriptionSubscriptionResource
|
|
60
|
-
from hostinger_api.models.common_schema_error_response_schema import CommonSchemaErrorResponseSchema
|
|
61
67
|
from hostinger_api.models.common_schema_pagination_meta_schema import CommonSchemaPaginationMetaSchema
|
|
62
|
-
from hostinger_api.models.common_schema_unauthorized_response_schema import CommonSchemaUnauthorizedResponseSchema
|
|
63
|
-
from hostinger_api.models.common_schema_unprocessable_content_response_schema import CommonSchemaUnprocessableContentResponseSchema
|
|
64
|
-
from hostinger_api.models.common_schema_unprocessable_content_response_schema_errors import CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
65
68
|
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
|
|
66
69
|
from hostinger_api.models.dnsv1_snapshot_snapshot_resource import DNSV1SnapshotSnapshotResource
|
|
67
70
|
from hostinger_api.models.dnsv1_snapshot_snapshot_with_content_resource import DNSV1SnapshotSnapshotWithContentResource
|
|
@@ -75,7 +78,17 @@ from hostinger_api.models.dnsv1_zone_update_request_zone_inner import DNSV1ZoneU
|
|
|
75
78
|
from hostinger_api.models.dnsv1_zone_update_request_zone_inner_records_inner import DNSV1ZoneUpdateRequestZoneInnerRecordsInner
|
|
76
79
|
from hostinger_api.models.domains_v1_availability_availability_request import DomainsV1AvailabilityAvailabilityRequest
|
|
77
80
|
from hostinger_api.models.domains_v1_availability_availability_resource import DomainsV1AvailabilityAvailabilityResource
|
|
81
|
+
from hostinger_api.models.domains_v1_domain_domain_extended_resource import DomainsV1DomainDomainExtendedResource
|
|
82
|
+
from hostinger_api.models.domains_v1_domain_domain_extended_resource_domain_contacts import DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
83
|
+
from hostinger_api.models.domains_v1_domain_domain_extended_resource_name_servers import DomainsV1DomainDomainExtendedResourceNameServers
|
|
78
84
|
from hostinger_api.models.domains_v1_domain_domain_resource import DomainsV1DomainDomainResource
|
|
85
|
+
from hostinger_api.models.domains_v1_forwarding_forwarding_resource import DomainsV1ForwardingForwardingResource
|
|
86
|
+
from hostinger_api.models.domains_v1_forwarding_store_request import DomainsV1ForwardingStoreRequest
|
|
87
|
+
from hostinger_api.models.domains_v1_portfolio_purchase_request import DomainsV1PortfolioPurchaseRequest
|
|
88
|
+
from hostinger_api.models.domains_v1_portfolio_purchase_request_domain_contacts import DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
89
|
+
from hostinger_api.models.domains_v1_portfolio_update_nameservers_request import DomainsV1PortfolioUpdateNameserversRequest
|
|
90
|
+
from hostinger_api.models.domains_v1_whois_profile_resource import DomainsV1WHOISProfileResource
|
|
91
|
+
from hostinger_api.models.domains_v1_whois_store_request import DomainsV1WHOISStoreRequest
|
|
79
92
|
from hostinger_api.models.vps_get_action_list_v1200_response import VPSGetActionListV1200Response
|
|
80
93
|
from hostinger_api.models.vps_get_backup_list_v1200_response import VPSGetBackupListV1200Response
|
|
81
94
|
from hostinger_api.models.vps_get_firewall_list_v1200_response import VPSGetFirewallListV1200Response
|
|
@@ -106,8 +119,10 @@ from hostinger_api.models.vpsv1_public_key_store_request import VPSV1PublicKeySt
|
|
|
106
119
|
from hostinger_api.models.vpsv1_snapshot_snapshot_resource import VPSV1SnapshotSnapshotResource
|
|
107
120
|
from hostinger_api.models.vpsv1_template_template_resource import VPSV1TemplateTemplateResource
|
|
108
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
|
|
109
123
|
from hostinger_api.models.vpsv1_virtual_machine_nameservers_update_request import VPSV1VirtualMachineNameserversUpdateRequest
|
|
110
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
|
|
111
126
|
from hostinger_api.models.vpsv1_virtual_machine_recovery_start_request import VPSV1VirtualMachineRecoveryStartRequest
|
|
112
127
|
from hostinger_api.models.vpsv1_virtual_machine_recreate_request import VPSV1VirtualMachineRecreateRequest
|
|
113
128
|
from hostinger_api.models.vpsv1_virtual_machine_root_password_update_request import VPSV1VirtualMachineRootPasswordUpdateRequest
|
|
@@ -8,7 +8,9 @@ from hostinger_api.api.billing_subscriptions_api import BillingSubscriptionsApi
|
|
|
8
8
|
from hostinger_api.api.dns_snapshot_api import DNSSnapshotApi
|
|
9
9
|
from hostinger_api.api.dns_zone_api import DNSZoneApi
|
|
10
10
|
from hostinger_api.api.domains_availability_api import DomainsAvailabilityApi
|
|
11
|
+
from hostinger_api.api.domains_forwarding_api import DomainsForwardingApi
|
|
11
12
|
from hostinger_api.api.domains_portfolio_api import DomainsPortfolioApi
|
|
13
|
+
from hostinger_api.api.domains_whois_api import DomainsWHOISApi
|
|
12
14
|
from hostinger_api.api.vps_actions_api import VPSActionsApi
|
|
13
15
|
from hostinger_api.api.vps_backups_api import VPSBackupsApi
|
|
14
16
|
from hostinger_api.api.vps_data_centers_api import VPSDataCentersApi
|
|
@@ -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,
|