github HenningHolmDE/hcloud-rust v0.20.0
hcloud-rust v0.20.0

one month ago

Update to current state of Hetzner's API description. This release includes a lot of braking changes derived from changes in the API.

Changes in the release:

  • BREAKING: Field change_floating_ip_protection_request of ChangeFloatingIpProtectionParams is now body: Option<models::Protection>.
  • BREAKING: Struct ChangeReverseDnsEntryForFloatingIpParams is renamed to ChangeReverseDnsRecordsForFloatingIpParams.
  • BREAKING: Field change_reverse_dns_entry_for_floating_ip_request of ChangeReverseDnsRecordsForFloatingIpParams is now body: Option<models::DnsPtr>.
  • BREAKING: Struct ChangeReverseDnsEntryForFloatingIpError is renamed to ChangeReverseDnsRecordsForFloatingIpError.
  • BREAKING: Function change_reverse_dns_entry_for_floating_ip is renamed to change_reverse_dns_records_for_floating_ip.
  • BREAKING: Field id of GetLoadBalancerTypeParams is now of type i64.
  • BREAKING: Field id of GetServerTypeParams is now of type i64.
  • BREAKING: Field meta of ApplyToResourcesResponse is removed.
  • BREAKING: Field server of AssignFloatingIpToServerRequest is now optional.
  • BREAKING: Struct ChangeReverseDnsEntryForFloatingIpResponse is renamed to ChangeReverseDnsRecordsForFloatingIpResponse.
  • BREAKING: Field apply_to of CreateFirewallRequest is now of type Option<Vec<models::FirewallResource>>.
  • BREAKING: Fields description and server of CreateFloatingIpRequest are now optional and nullable.
  • BREAKING: Field rules of Firewall is now of type Vec<models::RuleResponse>.
  • BREAKING: Field meta of list responses is no longer optional.
  • BREAKING: Field traffic of ListPricesResponsePricing is now of type Option<serde_json::Value> (always returning None according to API spec).
  • BREAKING: Field prices of ListPricesResponsePricingPrimaryIps is now of type Vec<models::PricePerTimeWithoutTraffic> (as PricePerTime now contains traffic information which is not available for primary IPs).
  • BREAKING: MetricsTimeSeriesValue is now an enum type.
  • BREAKING: Struct PricePerTime now contains fields included_traffic and price_per_tb_traffic.
  • BREAKING: Field meta of RemoveFromResourcesResponse is removed.
  • BREAKING: Fields description of ReplaceFloatingIpRequest are now optional and nullable.
  • BREAKING: Field port of Rule are now optional and nullable.
  • BREAKING: Field server_type of Server is now of type Box<models::ServerType>.
  • BREAKING: Field included_traffic: of ServerType is now optional (always returning None according to API spec).
  • BREAKING: Field meta of SetRulesResponse is removed.
  • BREAKING: Model types now implement Display instead of ToString.
  • Update crate dependencies
  • Use OpenAPI Generator version 7.7.0 for code generation
  • Doc: Substantial docstring updates

Don't miss a new hcloud-rust release

NewReleases is sending notifications on new releases.