[−][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/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]
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
-
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]
namespace: &str,
optional: DeleteCollectionNamespacedReplicaSetOptional
) -> 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
-
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]
name: &str,
namespace: &str,
optional: DeleteNamespacedReplicaSetOptional
) -> 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
-
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]
namespace: &str,
optional: ListNamespacedReplicaSetOptional
) -> 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
-
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]
optional: ListReplicaSetForAllNamespacesOptional
) -> 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
-
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedReplicaSetOptional
) -> 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
-
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedReplicaSetStatusOptional
) -> 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
-
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]
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
-
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]
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
-
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]
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
-
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]
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
-
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]
namespace: &str,
optional: WatchNamespacedReplicaSetOptional
) -> 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
-
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]
optional: WatchReplicaSetForAllNamespacesOptional
) -> 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
-
optional
Optional 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]
Performs copy-assignment from source
. Read more
impl PartialEq<ReplicaSet> for ReplicaSet
[src]
fn eq(&self, other: &ReplicaSet) -> bool
[src]
fn ne(&self, other: &ReplicaSet) -> bool
[src]
impl Default for ReplicaSet
[src]
fn default() -> ReplicaSet
[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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,