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

pub struct ReplicaSet {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<ReplicaSetSpec>,
    pub status: Option<ReplicaSetStatus>,
}

ReplicaSet ensures that a specified number of pod replicas are running at any given time.

Fields

metadata: Option<ObjectMeta>

If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: Option<ReplicaSetSpec>

Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

status: Option<ReplicaSetStatus>

Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Methods

impl ReplicaSet[src]

pub fn create_namespaced_replica_set(
    namespace: &str,
    body: &ReplicaSet,
    optional: CreateNamespacedReplicaSetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedReplicaSetResponse>), RequestError>
[src]

create a ReplicaSet

Use the returned crate::ResponseBody<CreateNamespacedReplicaSetResponse> constructor, or CreateNamespacedReplicaSetResponse 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 ReplicaSet[src]

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

delete collection of ReplicaSet

Use the returned crate::ResponseBody<DeleteCollectionNamespacedReplicaSetResponse> constructor, or DeleteCollectionNamespacedReplicaSetResponse 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 ReplicaSet[src]

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

delete a ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • optional

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

impl ReplicaSet[src]

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

list or watch objects of kind ReplicaSet

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedReplicaSetResponse> constructor, or ListNamespacedReplicaSetResponse 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 ReplicaSet[src]

pub fn list_replica_set_for_all_namespaces(
    optional: ListReplicaSetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListReplicaSetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind ReplicaSet

This operation only supports listing all items of this type.

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

Arguments

  • optional

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

impl ReplicaSet[src]

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

partially update the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • body

  • optional

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

impl ReplicaSet[src]

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

partially update status of the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • body

  • optional

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

impl ReplicaSet[src]

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

read the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • optional

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

impl ReplicaSet[src]

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

read status of the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • optional

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

impl ReplicaSet[src]

pub fn replace_namespaced_replica_set(
    name: &str,
    namespace: &str,
    body: &ReplicaSet,
    optional: ReplaceNamespacedReplicaSetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetResponse>), RequestError>
[src]

replace the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • body

  • optional

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

impl ReplicaSet[src]

pub fn replace_namespaced_replica_set_status(
    name: &str,
    namespace: &str,
    body: &ReplicaSet,
    optional: ReplaceNamespacedReplicaSetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetStatusResponse>), RequestError>
[src]

replace status of the specified ReplicaSet

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

Arguments

  • name

    name of the ReplicaSet

  • namespace

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

  • body

  • optional

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

impl ReplicaSet[src]

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

list or watch objects of kind ReplicaSet

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchNamespacedReplicaSetResponse> constructor, or WatchNamespacedReplicaSetResponse 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 ReplicaSet[src]

pub fn watch_replica_set_for_all_namespaces(
    optional: WatchReplicaSetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchReplicaSetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind ReplicaSet

This operation only supports watching one item, or a list of items, of this type for changes.

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

Arguments

  • optional

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

Trait Implementations

impl Resource for ReplicaSet[src]

impl Metadata for ReplicaSet[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for ReplicaSet[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<ReplicaSet> for ReplicaSet[src]

impl Default for ReplicaSet[src]

impl Debug for ReplicaSet[src]

impl Serialize for ReplicaSet[src]

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

Auto Trait Implementations

impl Send for ReplicaSet

impl Sync for ReplicaSet

Blanket Implementations

impl<T> From for T[src]

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, 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> Any for T where
    T: 'static + ?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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]