-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Google Cloud DNS v1 API (#104)
- Loading branch information
Showing
82 changed files
with
12,793 additions
and
0 deletions.
There are no files selected for viewing
3,404 changes: 3,404 additions & 0 deletions
3,404
gcloud-protos-generator/openapi/google/dns-v1/openapi.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
500 changes: 500 additions & 0 deletions
500
gcloud-sdk/src/rest_apis/google_rest_apis/dns_v1/apis/changes_api.rs
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
gcloud-sdk/src/rest_apis/google_rest_apis/dns_v1/apis/configuration.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} | ||
} | ||
} |
Oops, something went wrong.