[][src]Struct k8s_openapi::api::apps::v1::Deployment

pub struct Deployment {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<DeploymentSpec>,
    pub status: Option<DeploymentStatus>,
}

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]

create a Deployment

Use the returned crate::ResponseBody<CreateNamespacedDeploymentResponse> constructor, or CreateNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn delete_collection_namespaced_deployment(
    namespace: &str,
    optional: DeleteCollectionNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedDeploymentResponse>), RequestError>
[src]

delete collection of Deployment

Use the returned crate::ResponseBody<DeleteCollectionNamespacedDeploymentResponse> constructor, or DeleteCollectionNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn delete_namespaced_deployment(
    name: &str,
    namespace: &str,
    optional: DeleteNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedDeploymentResponse>), RequestError>
[src]

delete a Deployment

Use the returned crate::ResponseBody<DeleteNamespacedDeploymentResponse> constructor, or DeleteNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn list_deployment_for_all_namespaces(
    optional: ListDeploymentForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListDeploymentForAllNamespacesResponse>), RequestError>
[src]

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

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn list_namespaced_deployment(
    namespace: &str,
    optional: ListNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedDeploymentResponse>), RequestError>
[src]

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

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn patch_namespaced_deployment(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentResponse>), RequestError>
[src]

partially update the specified Deployment

Use the returned crate::ResponseBody<PatchNamespacedDeploymentResponse> constructor, or PatchNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn patch_namespaced_deployment_status(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedDeploymentStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentStatusResponse>), RequestError>
[src]

partially update status of the specified Deployment

Use the returned crate::ResponseBody<PatchNamespacedDeploymentStatusResponse> constructor, or PatchNamespacedDeploymentStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional 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]

read the specified Deployment

Use the returned crate::ResponseBody<ReadNamespacedDeploymentResponse> constructor, or ReadNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional 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]

read status of the specified Deployment

Use the returned crate::ResponseBody<ReadNamespacedDeploymentStatusResponse> constructor, or ReadNamespacedDeploymentStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional 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]

replace the specified Deployment

Use the returned crate::ResponseBody<ReplaceNamespacedDeploymentResponse> constructor, or ReplaceNamespacedDeploymentResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional 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]

replace status of the specified Deployment

Use the returned crate::ResponseBody<ReplaceNamespacedDeploymentStatusResponse> constructor, or ReplaceNamespacedDeploymentStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Deployment

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn watch_deployment_for_all_namespaces(
    optional: WatchDeploymentForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchDeploymentForAllNamespacesResponse>), RequestError>
[src]

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

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Deployment[src]

pub fn watch_namespaced_deployment(
    namespace: &str,
    optional: WatchNamespacedDeploymentOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedDeploymentResponse>), RequestError>
[src]

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

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for Deployment[src]

impl Metadata for Deployment[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<Deployment> for Deployment[src]

impl Default for Deployment[src]

impl Clone for Deployment[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Deployment[src]

impl Serialize for Deployment[src]

impl<'de> Deserialize<'de> for Deployment[src]

Auto Trait Implementations

impl Send for Deployment

impl Sync for Deployment

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]