#[non_exhaustive]pub struct UpdateServiceInstanceInput {
pub name: Option<String>,
pub service_name: Option<String>,
pub deployment_type: Option<DeploymentUpdateType>,
pub spec: Option<String>,
pub template_major_version: Option<String>,
pub template_minor_version: Option<String>,
pub client_token: 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.name: Option<String>
The name of the service instance to update.
service_name: Option<String>
The name of the service that the service instance belongs to.
deployment_type: Option<DeploymentUpdateType>
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service instance 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 instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service instance 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.
spec: Option<String>
The formatted specification that defines the service instance update.
template_major_version: Option<String>
The major version of the service template to update.
template_minor_version: Option<String>
The minor version of the service template to update.
client_token: Option<String>
The client token of the service instance to update.
Implementations§
source§impl UpdateServiceInstanceInput
impl UpdateServiceInstanceInput
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service that the service instance belongs to.
sourcepub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
pub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service instance 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 instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service instance 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 spec(&self) -> Option<&str>
pub fn spec(&self) -> Option<&str>
The formatted specification that defines the service instance update.
sourcepub fn template_major_version(&self) -> Option<&str>
pub fn template_major_version(&self) -> Option<&str>
The major version of the service template to update.
sourcepub fn template_minor_version(&self) -> Option<&str>
pub fn template_minor_version(&self) -> Option<&str>
The minor version of the service template to update.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The client token of the service instance to update.
source§impl UpdateServiceInstanceInput
impl UpdateServiceInstanceInput
sourcepub fn builder() -> UpdateServiceInstanceInputBuilder
pub fn builder() -> UpdateServiceInstanceInputBuilder
Creates a new builder-style object to manufacture UpdateServiceInstanceInput
.
Trait Implementations§
source§impl Clone for UpdateServiceInstanceInput
impl Clone for UpdateServiceInstanceInput
source§fn clone(&self) -> UpdateServiceInstanceInput
fn clone(&self) -> UpdateServiceInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateServiceInstanceInput
impl Debug for UpdateServiceInstanceInput
source§impl PartialEq for UpdateServiceInstanceInput
impl PartialEq for UpdateServiceInstanceInput
source§fn eq(&self, other: &UpdateServiceInstanceInput) -> bool
fn eq(&self, other: &UpdateServiceInstanceInput) -> bool
self
and other
values to be equal, and is used
by ==
.