#[non_exhaustive]pub struct UpdateServicePipelineInput {
pub service_name: Option<String>,
pub spec: Option<String>,
pub deployment_type: Option<DeploymentUpdateType>,
pub template_major_version: Option<String>,
pub template_minor_version: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_name: Option<String>
The name of the service to that the pipeline is associated with.
spec: Option<String>
The spec for the service pipeline to update.
deployment_type: Option<DeploymentUpdateType>
The deployment type.
There are four modes for updating a service pipeline. The deploymentType
field defines the mode.
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
template_major_version: Option<String>
The major version of the service template that was used to create the service that the pipeline is associated with.
template_minor_version: Option<String>
The minor version of the service template that was used to create the service that the pipeline is associated with.
Implementations§
source§impl UpdateServicePipelineInput
impl UpdateServicePipelineInput
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service to that the pipeline is associated with.
sourcepub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
pub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
The deployment type.
There are four modes for updating a service pipeline. The deploymentType
field defines the mode.
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
sourcepub fn template_major_version(&self) -> Option<&str>
pub fn template_major_version(&self) -> Option<&str>
The major version of the service template that was used to create the service that the pipeline is associated with.
sourcepub fn template_minor_version(&self) -> Option<&str>
pub fn template_minor_version(&self) -> Option<&str>
The minor version of the service template that was used to create the service that the pipeline is associated with.
source§impl UpdateServicePipelineInput
impl UpdateServicePipelineInput
sourcepub fn builder() -> UpdateServicePipelineInputBuilder
pub fn builder() -> UpdateServicePipelineInputBuilder
Creates a new builder-style object to manufacture UpdateServicePipelineInput
.
Trait Implementations§
source§impl Clone for UpdateServicePipelineInput
impl Clone for UpdateServicePipelineInput
source§fn clone(&self) -> UpdateServicePipelineInput
fn clone(&self) -> UpdateServicePipelineInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateServicePipelineInput
impl Debug for UpdateServicePipelineInput
source§impl PartialEq for UpdateServicePipelineInput
impl PartialEq for UpdateServicePipelineInput
source§fn eq(&self, other: &UpdateServicePipelineInput) -> bool
fn eq(&self, other: &UpdateServicePipelineInput) -> bool
self
and other
values to be equal, and is used
by ==
.