mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-13 21:19:05 +01:00
chore(regen-apis
This commit is contained in:
@@ -192,7 +192,7 @@
|
||||
|
||||
// Unused attributes happen thanks to defined, but unused structures
|
||||
// We don't warn about this, as depending on the API, some data structures or facilities are never used.
|
||||
// Instead of pre-determining this, we just disable the lint. It's manually tuned to not have any
|
||||
// Instead of pre-determining this, we just disable the lint. It's manually tuned to not have any
|
||||
// unused imports in fully featured APIs. Same with unused_mut ... .
|
||||
#![allow(unused_imports, unused_mut, dead_code)]
|
||||
|
||||
@@ -220,6 +220,7 @@ use std::collections::BTreeMap;
|
||||
use serde_json as json;
|
||||
use std::io;
|
||||
use std::fs;
|
||||
use std::mem;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -338,6 +339,8 @@ pub struct DeploymentManager<C, A> {
|
||||
client: RefCell<C>,
|
||||
auth: RefCell<A>,
|
||||
_user_agent: String,
|
||||
_base_url: String,
|
||||
_root_url: String,
|
||||
}
|
||||
|
||||
impl<'a, C, A> Hub for DeploymentManager<C, A> {}
|
||||
@@ -350,6 +353,8 @@ impl<'a, C, A> DeploymentManager<C, A>
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/1.0.4".to_string(),
|
||||
_base_url: "https://www.googleapis.com/deploymentmanager/v2beta2/projects/".to_string(),
|
||||
_root_url: "https://www.googleapis.com/".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -374,9 +379,23 @@ impl<'a, C, A> DeploymentManager<C, A>
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
let prev = self._user_agent.clone();
|
||||
self._user_agent = agent_name;
|
||||
prev
|
||||
mem::replace(&mut self._user_agent, agent_name)
|
||||
}
|
||||
|
||||
/// Set the base url to use in all requests to the server.
|
||||
/// It defaults to `https://www.googleapis.com/deploymentmanager/v2beta2/projects/`.
|
||||
///
|
||||
/// Returns the previously set base url.
|
||||
pub fn base_url(&mut self, new_base_url: String) -> String {
|
||||
mem::replace(&mut self._base_url, new_base_url)
|
||||
}
|
||||
|
||||
/// Set the root url to use in all requests to the server.
|
||||
/// It defaults to `https://www.googleapis.com/`.
|
||||
///
|
||||
/// Returns the previously set root url.
|
||||
pub fn root_url(&mut self, new_root_url: String) -> String {
|
||||
mem::replace(&mut self._root_url, new_root_url)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1422,7 +1441,7 @@ impl<'a, C, A> OperationGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/operations/{operation}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/operations/{operation}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -1682,7 +1701,7 @@ impl<'a, C, A> OperationListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/operations".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/operations";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -1963,7 +1982,7 @@ impl<'a, C, A> ManifestListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}/manifests".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/manifests";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -2241,7 +2260,7 @@ impl<'a, C, A> ManifestGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/manifests/{manifest}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -2500,7 +2519,7 @@ impl<'a, C, A> ResourceGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}/resources/{resource}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/resources/{resource}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -2772,7 +2791,7 @@ impl<'a, C, A> ResourceListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}/resources".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/resources";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -3061,7 +3080,7 @@ impl<'a, C, A> TypeListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oaut
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/types".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/types";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -3349,7 +3368,7 @@ impl<'a, C, A> DeploymentUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -3641,7 +3660,7 @@ impl<'a, C, A> DeploymentGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -3893,7 +3912,7 @@ impl<'a, C, A> DeploymentInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -4167,7 +4186,7 @@ impl<'a, C, A> DeploymentListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::NdevCloudmanReadonly.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -4455,7 +4474,7 @@ impl<'a, C, A> DeploymentPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -4747,7 +4766,7 @@ impl<'a, C, A> DeploymentDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2beta2/projects/{project}/global/deployments/{deployment}".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -4922,4 +4941,3 @@ impl<'a, C, A> DeploymentDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user