[−][src]Struct k8s_openapi::api::autoscaling::v2beta1::HorizontalPodAutoscaler
HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.
Fields
metadata: Option<ObjectMeta>metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<HorizontalPodAutoscalerSpec>spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
status: Option<HorizontalPodAutoscalerStatus>status is the current information about the autoscaler.
Methods
impl HorizontalPodAutoscaler[src]
pub fn create_namespaced_horizontal_pod_autoscaler(
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: CreateNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: CreateNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedHorizontalPodAutoscalerResponse>), RequestError>
create a HorizontalPodAutoscaler
Use the returned crate::ResponseBody<CreateNamespacedHorizontalPodAutoscalerResponse> constructor, or CreateNamespacedHorizontalPodAutoscalerResponse 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 HorizontalPodAutoscaler[src]
pub fn delete_collection_namespaced_horizontal_pod_autoscaler(
namespace: &str,
optional: DeleteCollectionNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
namespace: &str,
optional: DeleteCollectionNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedHorizontalPodAutoscalerResponse>), RequestError>
delete collection of HorizontalPodAutoscaler
Use the returned crate::ResponseBody<DeleteCollectionNamespacedHorizontalPodAutoscalerResponse> constructor, or DeleteCollectionNamespacedHorizontalPodAutoscalerResponse 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 HorizontalPodAutoscaler[src]
pub fn delete_namespaced_horizontal_pod_autoscaler(
name: &str,
namespace: &str,
optional: DeleteNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: DeleteNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedHorizontalPodAutoscalerResponse>), RequestError>
delete a HorizontalPodAutoscaler
Use the returned crate::ResponseBody<DeleteNamespacedHorizontalPodAutoscalerResponse> constructor, or DeleteNamespacedHorizontalPodAutoscalerResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn list_horizontal_pod_autoscaler_for_all_namespaces(
optional: ListHorizontalPodAutoscalerForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListHorizontalPodAutoscalerForAllNamespacesResponse>), RequestError>[src]
optional: ListHorizontalPodAutoscalerForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListHorizontalPodAutoscalerForAllNamespacesResponse>), RequestError>
list or watch objects of kind HorizontalPodAutoscaler
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListHorizontalPodAutoscalerForAllNamespacesResponse> constructor, or ListHorizontalPodAutoscalerForAllNamespacesResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn list_namespaced_horizontal_pod_autoscaler(
namespace: &str,
optional: ListNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
namespace: &str,
optional: ListNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedHorizontalPodAutoscalerResponse>), RequestError>
list or watch objects of kind HorizontalPodAutoscaler
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListNamespacedHorizontalPodAutoscalerResponse> constructor, or ListNamespacedHorizontalPodAutoscalerResponse 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 HorizontalPodAutoscaler[src]
pub fn patch_namespaced_horizontal_pod_autoscaler(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedHorizontalPodAutoscalerResponse>), RequestError>
partially update the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<PatchNamespacedHorizontalPodAutoscalerResponse> constructor, or PatchNamespacedHorizontalPodAutoscalerResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn patch_namespaced_horizontal_pod_autoscaler_status(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>
partially update status of the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<PatchNamespacedHorizontalPodAutoscalerStatusResponse> constructor, or PatchNamespacedHorizontalPodAutoscalerStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn read_namespaced_horizontal_pod_autoscaler(
name: &str,
namespace: &str,
optional: ReadNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: ReadNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedHorizontalPodAutoscalerResponse>), RequestError>
read the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<ReadNamespacedHorizontalPodAutoscalerResponse> constructor, or ReadNamespacedHorizontalPodAutoscalerResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn read_namespaced_horizontal_pod_autoscaler_status(
name: &str,
namespace: &str,
optional: ReadNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: ReadNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>
read status of the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<ReadNamespacedHorizontalPodAutoscalerStatusResponse> constructor, or ReadNamespacedHorizontalPodAutoscalerStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn replace_namespaced_horizontal_pod_autoscaler(
name: &str,
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: ReplaceNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: ReplaceNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerResponse>), RequestError>
replace the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerResponse> constructor, or ReplaceNamespacedHorizontalPodAutoscalerResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn replace_namespaced_horizontal_pod_autoscaler_status(
name: &str,
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: ReplaceNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &HorizontalPodAutoscaler,
optional: ReplaceNamespacedHorizontalPodAutoscalerStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerStatusResponse>), RequestError>
replace status of the specified HorizontalPodAutoscaler
Use the returned crate::ResponseBody<ReplaceNamespacedHorizontalPodAutoscalerStatusResponse> constructor, or ReplaceNamespacedHorizontalPodAutoscalerStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the HorizontalPodAutoscaler
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn watch_horizontal_pod_autoscaler_for_all_namespaces(
optional: WatchHorizontalPodAutoscalerForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchHorizontalPodAutoscalerForAllNamespacesResponse>), RequestError>[src]
optional: WatchHorizontalPodAutoscalerForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchHorizontalPodAutoscalerForAllNamespacesResponse>), RequestError>
list or watch objects of kind HorizontalPodAutoscaler
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchHorizontalPodAutoscalerForAllNamespacesResponse> constructor, or WatchHorizontalPodAutoscalerForAllNamespacesResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl HorizontalPodAutoscaler[src]
pub fn watch_namespaced_horizontal_pod_autoscaler(
namespace: &str,
optional: WatchNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedHorizontalPodAutoscalerResponse>), RequestError>[src]
namespace: &str,
optional: WatchNamespacedHorizontalPodAutoscalerOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedHorizontalPodAutoscalerResponse>), RequestError>
list or watch objects of kind HorizontalPodAutoscaler
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchNamespacedHorizontalPodAutoscalerResponse> constructor, or WatchNamespacedHorizontalPodAutoscalerResponse 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 HorizontalPodAutoscaler[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 HorizontalPodAutoscaler[src]
impl Default for HorizontalPodAutoscaler[src]
fn default() -> HorizontalPodAutoscaler[src]
impl PartialEq<HorizontalPodAutoscaler> for HorizontalPodAutoscaler[src]
fn eq(&self, other: &HorizontalPodAutoscaler) -> bool[src]
fn ne(&self, other: &HorizontalPodAutoscaler) -> bool[src]
impl Clone for HorizontalPodAutoscaler[src]
fn clone(&self) -> HorizontalPodAutoscaler[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for HorizontalPodAutoscaler[src]
impl Serialize for HorizontalPodAutoscaler[src]
impl<'de> Deserialize<'de> for HorizontalPodAutoscaler[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for HorizontalPodAutoscaler
impl Sync for HorizontalPodAutoscaler
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> 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,