cloud-dns

Crates.iocloud-dns
lib.rscloud-dns
version0.10.0
sourcesrc
created_at2021-11-22 12:10:35.837147
updated_at2021-11-22 12:10:35.837147
descriptionA set client library to interact with Cloud DNS
homepage
repositoryhttps://github.com/EmbarkStudios/cloud-dns
max_upload_size
id485659
size89,311
(embark-studios)

documentation

README

📒 cloud-dns

cloud-dns is a crate providing a client to interact with Google Cloud DNS v1

Embark Embark Crates.io Docs dependency status Build status

Example

#[tokio::main]
async fn main() -> cloud_dns::Result<()> {
    let project_id = std::env::var("PROJECT_ID").expect("PROJECT_ID env variable is required");
    let managed_zone =
        std::env::var("MANAGED_ZONE").expect("MANAGED_ZONE env variable is required");

    let service = tower::ServiceBuilder::new()
        .service(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()));

    let response = cloud_dns::DnsClient::new(service, project_id.as_str())
        .changes()
        .list(managed_zone.as_str())
        .await?;

    println!("{:#?}", response);

    Ok(())
}

Contribution

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started. Please also read our Contributor Terms before you make any contributions.

Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:

License

This contribution is dual licensed under EITHER OF

at your option.

For clarity, "your" refers to Embark or any other licensee/user of the contribution.

Commit count: 33

cargo fmt