pub struct DeploymentRequest {
pub exclude_triggers: Option<Vec<String>>,
pub force: bool,
pub latest: bool,
pub name: String,
}
Expand description
DeploymentRequest is a request to a deployment config for a new deployment.
Fields§
§exclude_triggers: Option<Vec<String>>
ExcludeTriggers instructs the instantiator to avoid processing the specified triggers. This field overrides the triggers from latest and allows clients to control specific logic. This field is ignored if not specified.
force: bool
Force will try to force a new deployment to run. If the deployment config is paused, then setting this to true will return an Invalid error.
latest: bool
Latest will update the deployment config with the latest state from all triggers.
name: String
Name of the deployment config for requesting a new deployment.
Implementations§
Source§impl DeploymentRequest
impl DeploymentRequest
Sourcepub fn create_namespaced_deployment_config_instantiate(
name: &str,
namespace: &str,
body: &DeploymentRequest,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_deployment_config_instantiate( name: &str, namespace: &str, body: &DeploymentRequest, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create instantiate of a DeploymentConfig
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the DeploymentRequest
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for DeploymentRequest
impl Clone for DeploymentRequest
Source§fn clone(&self) -> DeploymentRequest
fn clone(&self) -> DeploymentRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeploymentRequest
impl Debug for DeploymentRequest
Source§impl Default for DeploymentRequest
impl Default for DeploymentRequest
Source§fn default() -> DeploymentRequest
fn default() -> DeploymentRequest
Source§impl<'de> Deserialize<'de> for DeploymentRequest
impl<'de> Deserialize<'de> for DeploymentRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for DeploymentRequest
impl PartialEq for DeploymentRequest
Source§impl Resource for DeploymentRequest
impl Resource for DeploymentRequest
Source§const API_VERSION: &'static str = "apps.openshift.io/v1"
const API_VERSION: &'static str = "apps.openshift.io/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more