mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-15 22:18:10 +01:00
chore(regen-apis
This commit is contained in:
@@ -197,7 +197,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)]
|
||||
|
||||
@@ -225,6 +225,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;
|
||||
|
||||
@@ -343,6 +344,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> {}
|
||||
@@ -355,6 +358,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/v2/projects/".to_string(),
|
||||
_root_url: "https://www.googleapis.com/".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,9 +384,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/v2/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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1990,7 +2009,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/v2/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(), ());
|
||||
}
|
||||
@@ -2255,7 +2274,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/v2/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(), ());
|
||||
}
|
||||
@@ -2552,7 +2571,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/v2/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(), ());
|
||||
}
|
||||
@@ -2841,7 +2860,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/v2/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(), ());
|
||||
}
|
||||
@@ -3116,7 +3135,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/v2/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(), ());
|
||||
}
|
||||
@@ -3395,7 +3414,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/v2/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(), ());
|
||||
}
|
||||
@@ -3672,7 +3691,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/v2/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(), ());
|
||||
}
|
||||
@@ -3981,7 +4000,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/v2/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(), ());
|
||||
}
|
||||
@@ -4273,7 +4292,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/v2/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(), ());
|
||||
}
|
||||
@@ -4530,7 +4549,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/v2/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(), ());
|
||||
}
|
||||
@@ -4805,7 +4824,7 @@ impl<'a, C, A> DeploymentTestIamPermissionCall<'a, C, A> where C: BorrowMut<hype
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{resource}/testIamPermissions";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -5076,7 +5095,7 @@ impl<'a, C, A> DeploymentGetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{resource}/getIamPolicy";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -5330,7 +5349,7 @@ impl<'a, C, A> DeploymentCancelPreviewCall<'a, C, A> where C: BorrowMut<hyper::C
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/cancelPreview";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -5619,7 +5638,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/v2/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(), ());
|
||||
}
|
||||
@@ -5918,7 +5937,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/v2/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(), ());
|
||||
}
|
||||
@@ -6217,7 +6236,7 @@ impl<'a, C, A> DeploymentStopCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{deployment}/stop";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -6495,7 +6514,7 @@ impl<'a, C, A> DeploymentSetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
|
||||
params.push(("alt", "json".to_string()));
|
||||
|
||||
let mut url = "https://www.googleapis.com/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy".to_string();
|
||||
let mut url = self.hub._base_url.clone() + "{project}/global/deployments/{resource}/setIamPolicy";
|
||||
if self._scopes.len() == 0 {
|
||||
self._scopes.insert(Scope::CloudPlatform.as_ref().to_string(), ());
|
||||
}
|
||||
@@ -6771,7 +6790,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/v2/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(), ());
|
||||
}
|
||||
@@ -6953,4 +6972,3 @@ impl<'a, C, A> DeploymentDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user