#[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 ==
.impl StructuralPartialEq for UpdateServicePipelineInput
Auto Trait Implementations§
impl Freeze for UpdateServicePipelineInput
impl RefUnwindSafe for UpdateServicePipelineInput
impl Send for UpdateServicePipelineInput
impl Sync for UpdateServicePipelineInput
impl Unpin for UpdateServicePipelineInput
impl UnwindSafe for UpdateServicePipelineInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more