[−][src]Struct k8s_openapi::api::apps::v1::ReplicaSet    
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/sig-architecture/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/sig-architecture/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/sig-architecture/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]
namespace: &str,
body: &ReplicaSet,
optional: CreateNamespacedReplicaSetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedReplicaSetResponse>), RequestError>
create a ReplicaSet
Use the returned crate::ResponseBody<CreateNamespacedReplicaSetResponse> constructor, or CreateNamespacedReplicaSetResponse 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 ReplicaSet[src]
pub fn delete_collection_namespaced_replica_set(
    namespace: &str, 
    delete_optional: DeleteOptional, 
    list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedReplicaSetResponse>), RequestError>[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedReplicaSetResponse>), RequestError>
delete collection of ReplicaSet
Use the returned crate::ResponseBody<DeleteCollectionNamespacedReplicaSetResponse> constructor, or DeleteCollectionNamespacedReplicaSetResponse 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 ReplicaSet[src]
pub fn delete_namespaced_replica_set(
    name: &str, 
    namespace: &str, 
    optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedReplicaSetResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedReplicaSetResponse>), RequestError>
delete a ReplicaSet
Use the returned crate::ResponseBody<DeleteNamespacedReplicaSetResponse> constructor, or DeleteNamespacedReplicaSetResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
optionalOptional parameters. Use Default::default()to not pass any.
impl ReplicaSet[src]
pub fn list_namespaced_replica_set(
    namespace: &str, 
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedReplicaSetResponse>), RequestError>[src]
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedReplicaSetResponse>), RequestError>
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
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
optionalOptional parameters. Use Default::default()to not pass any.
impl ReplicaSet[src]
pub fn list_replica_set_for_all_namespaces(
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListReplicaSetForAllNamespacesResponse>), RequestError>[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListReplicaSetForAllNamespacesResponse>), RequestError>
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
- 
optionalOptional parameters. Use Default::default()to not pass any.
impl ReplicaSet[src]
pub fn patch_namespaced_replica_set(
    name: &str, 
    namespace: &str, 
    body: &Patch, 
    optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetResponse>), RequestError>
partially update the specified ReplicaSet
Use the returned crate::ResponseBody<PatchNamespacedReplicaSetResponse> constructor, or PatchNamespacedReplicaSetResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
body
- 
optionalOptional 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: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetStatusResponse>), RequestError>
partially update status of the specified ReplicaSet
Use the returned crate::ResponseBody<PatchNamespacedReplicaSetStatusResponse> constructor, or PatchNamespacedReplicaSetStatusResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
body
- 
optionalOptional 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]
name: &str,
namespace: &str,
optional: ReadNamespacedReplicaSetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicaSetResponse>), RequestError>
read the specified ReplicaSet
Use the returned crate::ResponseBody<ReadNamespacedReplicaSetResponse> constructor, or ReadNamespacedReplicaSetResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
optionalOptional 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]
name: &str,
namespace: &str,
optional: ReadNamespacedReplicaSetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicaSetStatusResponse>), RequestError>
read status of the specified ReplicaSet
Use the returned crate::ResponseBody<ReadNamespacedReplicaSetStatusResponse> constructor, or ReadNamespacedReplicaSetStatusResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
optionalOptional 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]
name: &str,
namespace: &str,
body: &ReplicaSet,
optional: ReplaceNamespacedReplicaSetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetResponse>), RequestError>
replace the specified ReplicaSet
Use the returned crate::ResponseBody<ReplaceNamespacedReplicaSetResponse> constructor, or ReplaceNamespacedReplicaSetResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
body
- 
optionalOptional 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]
name: &str,
namespace: &str,
body: &ReplicaSet,
optional: ReplaceNamespacedReplicaSetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetStatusResponse>), RequestError>
replace status of the specified ReplicaSet
Use the returned crate::ResponseBody<ReplaceNamespacedReplicaSetStatusResponse> constructor, or ReplaceNamespacedReplicaSetStatusResponse directly, to parse the HTTP response.
Arguments
- 
namename of the ReplicaSet 
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
body
- 
optionalOptional parameters. Use Default::default()to not pass any.
impl ReplicaSet[src]
pub fn watch_namespaced_replica_set(
    namespace: &str, 
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedReplicaSetResponse>), RequestError>[src]
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedReplicaSetResponse>), RequestError>
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
- 
namespaceobject name and auth scope, such as for teams and projects 
- 
optionalOptional parameters. Use Default::default()to not pass any.
impl ReplicaSet[src]
pub fn watch_replica_set_for_all_namespaces(
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchReplicaSetForAllNamespacesResponse>), RequestError>[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchReplicaSetForAllNamespacesResponse>), RequestError>
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
- 
optionalOptional parameters. Use Default::default()to not pass any.
Trait Implementations
impl Resource for ReplicaSet[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 ReplicaSet[src]
impl Clone for ReplicaSet[src]
fn clone(&self) -> ReplicaSet[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ReplicaSet[src]
fn default() -> ReplicaSet[src]
impl PartialEq<ReplicaSet> for ReplicaSet[src]
fn eq(&self, other: &ReplicaSet) -> bool[src]
fn ne(&self, other: &ReplicaSet) -> bool[src]
impl Debug for ReplicaSet[src]
impl Serialize for ReplicaSet[src]
impl<'de> Deserialize<'de> for ReplicaSet[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ReplicaSet
impl Sync for ReplicaSet
impl Unpin for ReplicaSet
impl UnwindSafe for ReplicaSet
impl RefUnwindSafe for ReplicaSet
Blanket Implementations
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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, 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>,