[−][src]Struct k8s_openapi::api::apps::v1::Deployment
Deployment enables declarative updates for Pods and ReplicaSets.
Fields
metadata: Option<ObjectMeta>Standard object metadata.
spec: Option<DeploymentSpec>Specification of the desired behavior of the Deployment.
status: Option<DeploymentStatus>Most recently observed status of the Deployment.
Methods
impl Deployment[src]
pub fn create_namespaced_deployment(
namespace: &str,
body: &Deployment,
optional: CreateNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedDeploymentResponse>), RequestError>[src]
namespace: &str,
body: &Deployment,
optional: CreateNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedDeploymentResponse>), RequestError>
create a Deployment
Use the returned crate::ResponseBody<CreateNamespacedDeploymentResponse> constructor, or CreateNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn delete_collection_namespaced_deployment(
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedDeploymentResponse>), RequestError>[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedDeploymentResponse>), RequestError>
delete collection of Deployment
Use the returned crate::ResponseBody<DeleteCollectionNamespacedDeploymentResponse> constructor, or DeleteCollectionNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
delete_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn delete_namespaced_deployment(
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedDeploymentResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedDeploymentResponse>), RequestError>
delete a Deployment
Use the returned crate::ResponseBody<DeleteNamespacedDeploymentResponse> constructor, or DeleteNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn list_deployment_for_all_namespaces(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListDeploymentForAllNamespacesResponse>), RequestError>[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListDeploymentForAllNamespacesResponse>), RequestError>
list or watch objects of kind Deployment
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListDeploymentForAllNamespacesResponse> constructor, or ListDeploymentForAllNamespacesResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn list_namespaced_deployment(
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedDeploymentResponse>), RequestError>[src]
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedDeploymentResponse>), RequestError>
list or watch objects of kind Deployment
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListNamespacedDeploymentResponse> constructor, or ListNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn patch_namespaced_deployment(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentResponse>), RequestError>
partially update the specified Deployment
Use the returned crate::ResponseBody<PatchNamespacedDeploymentResponse> constructor, or PatchNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn patch_namespaced_deployment_status(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentStatusResponse>), RequestError>
partially update status of the specified Deployment
Use the returned crate::ResponseBody<PatchNamespacedDeploymentStatusResponse> constructor, or PatchNamespacedDeploymentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn read_namespaced_deployment(
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentResponse>), RequestError>
read the specified Deployment
Use the returned crate::ResponseBody<ReadNamespacedDeploymentResponse> constructor, or ReadNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn read_namespaced_deployment_status(
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentStatusResponse>), RequestError>
read status of the specified Deployment
Use the returned crate::ResponseBody<ReadNamespacedDeploymentStatusResponse> constructor, or ReadNamespacedDeploymentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn replace_namespaced_deployment(
name: &str,
namespace: &str,
body: &Deployment,
optional: ReplaceNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Deployment,
optional: ReplaceNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentResponse>), RequestError>
replace the specified Deployment
Use the returned crate::ResponseBody<ReplaceNamespacedDeploymentResponse> constructor, or ReplaceNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn replace_namespaced_deployment_status(
name: &str,
namespace: &str,
body: &Deployment,
optional: ReplaceNamespacedDeploymentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Deployment,
optional: ReplaceNamespacedDeploymentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentStatusResponse>), RequestError>
replace status of the specified Deployment
Use the returned crate::ResponseBody<ReplaceNamespacedDeploymentStatusResponse> constructor, or ReplaceNamespacedDeploymentStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the Deployment
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn watch_deployment_for_all_namespaces(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchDeploymentForAllNamespacesResponse>), RequestError>[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchDeploymentForAllNamespacesResponse>), RequestError>
list or watch objects of kind Deployment
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchDeploymentForAllNamespacesResponse> constructor, or WatchDeploymentForAllNamespacesResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Deployment[src]
pub fn watch_namespaced_deployment(
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedDeploymentResponse>), RequestError>[src]
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedDeploymentResponse>), RequestError>
list or watch objects of kind Deployment
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchNamespacedDeploymentResponse> constructor, or WatchNamespacedDeploymentResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for Deployment[src]
fn api_version() -> &'static str[src]
fn group() -> &'static str[src]
fn kind() -> &'static str[src]
fn version() -> &'static str[src]
impl Metadata for Deployment[src]
impl Default for Deployment[src]
fn default() -> Deployment[src]
impl Clone for Deployment[src]
fn clone(&self) -> Deployment[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<Deployment> for Deployment[src]
fn eq(&self, other: &Deployment) -> bool[src]
fn ne(&self, other: &Deployment) -> bool[src]
impl Debug for Deployment[src]
impl Serialize for Deployment[src]
impl<'de> Deserialize<'de> for Deployment[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Deployment
impl Unpin for Deployment
impl Send for Deployment
impl UnwindSafe for Deployment
impl RefUnwindSafe for Deployment
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,