Skip to content

Commit

Permalink
Add support for Google Cloud DNS v1 API (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
patlkli authored Nov 9, 2023
1 parent d348b09 commit 2edc1a1
Show file tree
Hide file tree
Showing 82 changed files with 12,793 additions and 0 deletions.
3,404 changes: 3,404 additions & 0 deletions gcloud-protos-generator/openapi/google/dns-v1/openapi.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gcloud-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ maps-fleetengine-v1 = []
google-rest-bigquery-v2 = ["rest"]
google-rest-storage-v1 = ["rest"]
google-rest-sqladmin-v1 = ["rest"]
google-rest-dns-v1 = ["rest"]

[dependencies]
tonic = { version = "0.10", features = ["tls"] }
Expand Down
500 changes: 500 additions & 0 deletions gcloud-sdk/src/rest_apis/google_rest_apis/dns_v1/apis/changes_api.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
use serde::{Deserialize, Serialize}; /*
* Cloud DNS API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/

#[derive(Debug, Clone)]
pub struct Configuration {
pub base_path: String,
pub user_agent: Option<String>,
pub client: reqwest::Client,
pub basic_auth: Option<BasicAuth>,
pub oauth_access_token: Option<String>,
pub bearer_access_token: Option<String>,
pub api_key: Option<ApiKey>,
// TODO: take an oauth2 token source, similar to the go one
}

pub type BasicAuth = (String, Option<String>);

#[derive(Debug, Clone)]
pub struct ApiKey {
pub prefix: Option<String>,
pub key: String,
}

impl Configuration {
pub fn new() -> Configuration {
Configuration::default()
}
}

impl Default for Configuration {
fn default() -> Self {
Configuration {
base_path: "https://dns.googleapis.com".to_owned(),
user_agent: Some("OpenAPI-Generator/v1/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
bearer_access_token: None,
api_key: None,
}
}
}
Loading

0 comments on commit 2edc1a1

Please sign in to comment.