pub struct DeploymentConfigRollback {
pub name: String,
pub spec: DeploymentConfigRollbackSpec,
pub updated_annotations: Option<BTreeMap<String, String>>,
}
Expand description
DeploymentConfigRollback provides the input to rollback generation.
Fields§
§name: String
Name of the deployment config that will be rolled back.
spec: DeploymentConfigRollbackSpec
Spec defines the options to rollback generation.
updated_annotations: Option<BTreeMap<String, String>>
UpdatedAnnotations is a set of new annotations that will be added in the deployment config.
Implementations§
Source§impl DeploymentConfigRollback
impl DeploymentConfigRollback
Sourcepub fn create_namespaced_deployment_config_rollback(
name: &str,
namespace: &str,
body: &DeploymentConfigRollback,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_deployment_config_rollback( name: &str, namespace: &str, body: &DeploymentConfigRollback, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create rollback 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 DeploymentConfigRollback
-
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 DeploymentConfigRollback
impl Clone for DeploymentConfigRollback
Source§fn clone(&self) -> DeploymentConfigRollback
fn clone(&self) -> DeploymentConfigRollback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeploymentConfigRollback
impl Debug for DeploymentConfigRollback
Source§impl Default for DeploymentConfigRollback
impl Default for DeploymentConfigRollback
Source§fn default() -> DeploymentConfigRollback
fn default() -> DeploymentConfigRollback
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeploymentConfigRollback
impl<'de> Deserialize<'de> for DeploymentConfigRollback
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeploymentConfigRollback
impl PartialEq for DeploymentConfigRollback
Source§impl Resource for DeploymentConfigRollback
impl Resource for DeploymentConfigRollback
Source§const API_VERSION: &'static str = "apps.openshift.io/v1"
const API_VERSION: &'static str = "apps.openshift.io/v1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§impl Serialize for DeploymentConfigRollback
impl Serialize for DeploymentConfigRollback
impl StructuralPartialEq for DeploymentConfigRollback
Auto Trait Implementations§
impl Freeze for DeploymentConfigRollback
impl RefUnwindSafe for DeploymentConfigRollback
impl Send for DeploymentConfigRollback
impl Sync for DeploymentConfigRollback
impl Unpin for DeploymentConfigRollback
impl UnwindSafe for DeploymentConfigRollback
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
Mutably borrows from an owned value. Read more