logandark / digitalocean Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The Digital Ocean API has changed requiring the use of private cloud network. The gateway returns "" as per below. Unfortunately, this causes the Droplet requests to fail with a parse error.
// Data returned from a Droplet request.
"networks": { "v4": [ { "ip_address": "10.116.0.3", "netmask": "255.255.240.0", "gateway": "<nil>", "type": "private" },
The following modification to droplet.rs allows the deserialization to "work", but more correctly the "" needs to be removed.
``
/// These exist in the networks
field of a droplet.
#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct NetworkV4 {
///pub gateway: Ipv4Addr,
pub gateway: String,
pub ip_address: Ipv4Addr,
pub netmask: Ipv4Addr,
/// Note: Since `type` is a keyword in Rust `kind` is used instead.
#[serde(rename = "type")]
pub kind: String
}
Hi,
I was wondering if you plan to add VPC API endpoints for example?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.