make regen-apis

This commit is contained in:
OMGeeky
2023-10-23 12:55:17 +02:00
parent a4b0f56b8c
commit 4a258a57a6
1025 changed files with 29943 additions and 28980 deletions

View File

@@ -78,8 +78,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
params.extend(self._additional_params.iter());
@@ -330,7 +330,7 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().delete("project", "deployment")
/// .delete_policy("amet")
/// .delete_policy(&Default::default())
/// .doit().await;
/// # }
/// ```
@@ -340,7 +340,7 @@ pub struct DeploymentDeleteCall<'a, S>
pub(super) hub: &'a DeploymentManager<S>,
pub(super) _project: String,
pub(super) _deployment: String,
pub(super) _delete_policy: Option<String>,
pub(super) _delete_policy: Option<DeploymentDeletePolicyEnum>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
pub(super) _scopes: BTreeSet<String>
@@ -377,8 +377,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
if let Some(value) = self._delete_policy.as_ref() {
params.push("deletePolicy", value);
}
@@ -509,8 +509,8 @@ where
/// Sets the policy to use for deleting resources.
///
/// Sets the *delete policy* query property to the given value.
pub fn delete_policy(mut self, new_value: &str) -> DeploymentDeleteCall<'a, S> {
self._delete_policy = Some(new_value.to_string());
pub fn delete_policy(mut self, new_value: &DeploymentDeletePolicyEnum) -> DeploymentDeleteCall<'a, S> {
self._delete_policy = Some(new_value.clone());
self
}
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
@@ -661,8 +661,8 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
params.extend(self._additional_params.iter());
@@ -890,7 +890,7 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().get_iam_policy("project", "resource")
/// .options_requested_policy_version(-12)
/// .options_requested_policy_version(-55)
/// .doit().await;
/// # }
/// ```
@@ -937,8 +937,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("resource", self._resource);
params.push("project", &self._project);
params.push("resource", &self._resource);
if let Some(value) = self._options_requested_policy_version.as_ref() {
params.push("optionsRequestedPolicyVersion", value.to_string());
}
@@ -1183,7 +1183,7 @@ where
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().insert(req, "project")
/// .preview(true)
/// .create_policy("ipsum")
/// .create_policy(&Default::default())
/// .doit().await;
/// # }
/// ```
@@ -1194,7 +1194,7 @@ pub struct DeploymentInsertCall<'a, S>
pub(super) _request: Deployment,
pub(super) _project: String,
pub(super) _preview: Option<bool>,
pub(super) _create_policy: Option<String>,
pub(super) _create_policy: Option<DeploymentCreatePolicyEnum>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
pub(super) _scopes: BTreeSet<String>
@@ -1231,7 +1231,7 @@ where
}
let mut params = Params::with_capacity(6 + self._additional_params.len());
params.push("project", self._project);
params.push("project", &self._project);
if let Some(value) = self._preview.as_ref() {
params.push("preview", value.to_string());
}
@@ -1385,8 +1385,8 @@ where
/// Sets the policy to use for creating new resources.
///
/// Sets the *create policy* query property to the given value.
pub fn create_policy(mut self, new_value: &str) -> DeploymentInsertCall<'a, S> {
self._create_policy = Some(new_value.to_string());
pub fn create_policy(mut self, new_value: &DeploymentCreatePolicyEnum) -> DeploymentInsertCall<'a, S> {
self._create_policy = Some(new_value.clone());
self
}
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
@@ -1492,10 +1492,10 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().list("project")
/// .page_token("est")
/// .order_by("gubergren")
/// .max_results(84)
/// .filter("dolor")
/// .page_token("ipsum")
/// .order_by("sed")
/// .max_results(64)
/// .filter("gubergren")
/// .doit().await;
/// # }
/// ```
@@ -1544,7 +1544,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("project", self._project);
params.push("project", &self._project);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -1808,9 +1808,9 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().patch(req, "project", "deployment")
/// .preview(false)
/// .delete_policy("sed")
/// .create_policy("duo")
/// .preview(true)
/// .delete_policy(&Default::default())
/// .create_policy(&Default::default())
/// .doit().await;
/// # }
/// ```
@@ -1822,8 +1822,8 @@ pub struct DeploymentPatchCall<'a, S>
pub(super) _project: String,
pub(super) _deployment: String,
pub(super) _preview: Option<bool>,
pub(super) _delete_policy: Option<String>,
pub(super) _create_policy: Option<String>,
pub(super) _delete_policy: Option<DeploymentDeletePolicyEnum>,
pub(super) _create_policy: Option<DeploymentCreatePolicyEnum>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
pub(super) _scopes: BTreeSet<String>
@@ -1860,8 +1860,8 @@ where
}
let mut params = Params::with_capacity(8 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
if let Some(value) = self._preview.as_ref() {
params.push("preview", value.to_string());
}
@@ -2028,15 +2028,15 @@ where
/// Sets the policy to use for deleting resources.
///
/// Sets the *delete policy* query property to the given value.
pub fn delete_policy(mut self, new_value: &str) -> DeploymentPatchCall<'a, S> {
self._delete_policy = Some(new_value.to_string());
pub fn delete_policy(mut self, new_value: &DeploymentDeletePolicyEnum) -> DeploymentPatchCall<'a, S> {
self._delete_policy = Some(new_value.clone());
self
}
/// Sets the policy to use for creating new resources.
///
/// Sets the *create policy* query property to the given value.
pub fn create_policy(mut self, new_value: &str) -> DeploymentPatchCall<'a, S> {
self._create_policy = Some(new_value.to_string());
pub fn create_policy(mut self, new_value: &DeploymentCreatePolicyEnum) -> DeploymentPatchCall<'a, S> {
self._create_policy = Some(new_value.clone());
self
}
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
@@ -2194,8 +2194,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("resource", self._resource);
params.push("project", &self._project);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -2498,8 +2498,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
params.extend(self._additional_params.iter());
@@ -2802,8 +2802,8 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("resource", self._resource);
params.push("project", &self._project);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -3060,9 +3060,9 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().update(req, "project", "deployment")
/// .preview(false)
/// .delete_policy("erat")
/// .create_policy("sed")
/// .preview(true)
/// .delete_policy(&Default::default())
/// .create_policy(&Default::default())
/// .doit().await;
/// # }
/// ```
@@ -3074,8 +3074,8 @@ pub struct DeploymentUpdateCall<'a, S>
pub(super) _project: String,
pub(super) _deployment: String,
pub(super) _preview: Option<bool>,
pub(super) _delete_policy: Option<String>,
pub(super) _create_policy: Option<String>,
pub(super) _delete_policy: Option<DeploymentDeletePolicyEnum>,
pub(super) _create_policy: Option<DeploymentCreatePolicyEnum>,
pub(super) _delegate: Option<&'a mut dyn client::Delegate>,
pub(super) _additional_params: HashMap<String, String>,
pub(super) _scopes: BTreeSet<String>
@@ -3112,8 +3112,8 @@ where
}
let mut params = Params::with_capacity(8 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
if let Some(value) = self._preview.as_ref() {
params.push("preview", value.to_string());
}
@@ -3280,15 +3280,15 @@ where
/// Sets the policy to use for deleting resources.
///
/// Sets the *delete policy* query property to the given value.
pub fn delete_policy(mut self, new_value: &str) -> DeploymentUpdateCall<'a, S> {
self._delete_policy = Some(new_value.to_string());
pub fn delete_policy(mut self, new_value: &DeploymentDeletePolicyEnum) -> DeploymentUpdateCall<'a, S> {
self._delete_policy = Some(new_value.clone());
self
}
/// Sets the policy to use for creating new resources.
///
/// Sets the *create policy* query property to the given value.
pub fn create_policy(mut self, new_value: &str) -> DeploymentUpdateCall<'a, S> {
self._create_policy = Some(new_value.to_string());
pub fn create_policy(mut self, new_value: &DeploymentCreatePolicyEnum) -> DeploymentUpdateCall<'a, S> {
self._create_policy = Some(new_value.clone());
self
}
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
@@ -3440,9 +3440,9 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("manifest", self._manifest);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
params.push("manifest", &self._manifest);
params.extend(self._additional_params.iter());
@@ -3680,9 +3680,9 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.manifests().list("project", "deployment")
/// .page_token("consetetur")
/// .order_by("diam")
/// .max_results(52)
/// .page_token("et")
/// .order_by("sed")
/// .max_results(77)
/// .filter("et")
/// .doit().await;
/// # }
@@ -3733,8 +3733,8 @@ where
}
let mut params = Params::with_capacity(8 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -4047,8 +4047,8 @@ where
}
let mut params = Params::with_capacity(4 + self._additional_params.len());
params.push("project", self._project);
params.push("operation", self._operation);
params.push("project", &self._project);
params.push("operation", &self._operation);
params.extend(self._additional_params.iter());
@@ -4276,10 +4276,10 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.operations().list("project")
/// .page_token("dolor")
/// .order_by("duo")
/// .max_results(25)
/// .filter("vero")
/// .page_token("duo")
/// .order_by("dolore")
/// .max_results(79)
/// .filter("voluptua.")
/// .doit().await;
/// # }
/// ```
@@ -4328,7 +4328,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("project", self._project);
params.push("project", &self._project);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -4632,9 +4632,9 @@ where
}
let mut params = Params::with_capacity(5 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("resource", self._resource);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
params.push("resource", &self._resource);
params.extend(self._additional_params.iter());
@@ -4872,10 +4872,10 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.resources().list("project", "deployment")
/// .page_token("diam")
/// .order_by("no")
/// .max_results(1)
/// .filter("accusam")
/// .page_token("et")
/// .order_by("sadipscing")
/// .max_results(86)
/// .filter("dolor")
/// .doit().await;
/// # }
/// ```
@@ -4925,8 +4925,8 @@ where
}
let mut params = Params::with_capacity(8 + self._additional_params.len());
params.push("project", self._project);
params.push("deployment", self._deployment);
params.push("project", &self._project);
params.push("deployment", &self._deployment);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}
@@ -5194,10 +5194,10 @@ where
/// // execute the final call using `doit()`.
/// // Values shown here are possibly random and not representative !
/// let result = hub.types().list("project")
/// .page_token("consetetur")
/// .order_by("voluptua.")
/// .max_results(29)
/// .filter("erat")
/// .page_token("vero")
/// .order_by("vero")
/// .max_results(13)
/// .filter("Stet")
/// .doit().await;
/// # }
/// ```
@@ -5246,7 +5246,7 @@ where
}
let mut params = Params::with_capacity(7 + self._additional_params.len());
params.push("project", self._project);
params.push("project", &self._project);
if let Some(value) = self._page_token.as_ref() {
params.push("pageToken", value);
}

View File

@@ -39,8 +39,8 @@ use super::*;
/// // Values shown here are possibly random and not representative !
/// let result = hub.deployments().patch(req, "project", "deployment")
/// .preview(true)
/// .delete_policy("gubergren")
/// .create_policy("eos")
/// .delete_policy(&Default::default())
/// .create_policy(&Default::default())
/// .doit().await;
///
/// match result {

View File

@@ -30,3 +30,6 @@ pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -32,7 +32,7 @@ pub struct AuditLogConfig {
/// The log type that this config enables.
#[serde(rename="logType")]
pub log_type: Option<String>,
pub log_type: Option<AuditLogConfigLogTypeEnum>,
}
impl client::Part for AuditLogConfig {}
@@ -492,7 +492,7 @@ pub struct Operation {
pub start_time: Option<String>,
/// [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
pub status: Option<String>,
pub status: Option<OperationStatusEnum>,
/// [Output Only] An optional textual description of the current status of the operation.
#[serde(rename="statusMessage")]
@@ -671,7 +671,7 @@ pub struct ResourceUpdate {
pub final_properties: Option<String>,
/// Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`.
pub intent: Option<String>,
pub intent: Option<ResourceUpdateIntentEnum>,
/// Output only. URL of the manifest representing the update configuration of this resource.
pub manifest: Option<String>,
@@ -680,7 +680,7 @@ pub struct ResourceUpdate {
pub properties: Option<String>,
/// Output only. The state of the resource.
pub state: Option<String>,
pub state: Option<ResourceUpdateStateEnum>,
/// Output only. If warning messages are generated during processing of this resource, this field will be populated.
pub warnings: Option<Vec<ResourceUpdateWarnings>>,
@@ -872,7 +872,7 @@ impl client::Part for OperationErrorErrors {}
pub struct OperationWarnings {
/// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
pub code: Option<String>,
pub code: Option<OperationWarningCodeEnum>,
/// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
pub data: Option<Vec<OperationWarningsData>>,
@@ -913,7 +913,7 @@ impl client::Part for OperationWarningsData {}
pub struct ResourceWarnings {
/// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
pub code: Option<String>,
pub code: Option<ResourceWarningCodeEnum>,
/// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
pub data: Option<Vec<ResourceWarningsData>>,
@@ -992,7 +992,7 @@ impl client::Part for ResourceUpdateErrorErrors {}
pub struct ResourceUpdateWarnings {
/// [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
pub code: Option<String>,
pub code: Option<ResourceUpdateWarningCodeEnum>,
/// [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
pub data: Option<Vec<ResourceUpdateWarningsData>>,

View File

@@ -120,9 +120,9 @@
//! // execute the final call using `doit()`.
//! // Values shown here are possibly random and not representative !
//! let result = hub.deployments().patch(req, "project", "deployment")
//! .preview(true)
//! .delete_policy("amet.")
//! .create_policy("duo")
//! .preview(false)
//! .delete_policy(&Default::default())
//! .create_policy(&Default::default())
//! .doit().await;
//!
//! match result {