[][src]Struct k8s_openapi::api::autoscaling::v1::HorizontalPodAutoscaler

pub struct HorizontalPodAutoscaler {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<HorizontalPodAutoscalerSpec>,
    pub status: Option<HorizontalPodAutoscalerStatus>,
}

configuration of a horizontal pod autoscaler.

Fields

metadata: Option<ObjectMeta>

Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: Option<HorizontalPodAutoscalerSpec>

behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.

status: Option<HorizontalPodAutoscalerStatus>

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]

create a HorizontalPodAutoscaler

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

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

delete collection of HorizontalPodAutoscaler

Use the returned crate::ResponseBody<DeleteCollectionNamespacedHorizontalPodAutoscalerResponse> constructor, or DeleteCollectionNamespacedHorizontalPodAutoscalerResponse 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 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]

delete a HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • optional

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

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

  • optional

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

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

  • namespace

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

  • optional

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

partially update the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • body

  • optional

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

partially update status of the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • body

  • optional

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

read the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • optional

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

read status of the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • optional

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

replace the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • body

  • optional

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

replace status of the specified HorizontalPodAutoscaler

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

Arguments

  • name

    name of the HorizontalPodAutoscaler

  • namespace

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

  • body

  • optional

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

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

  • optional

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

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

  • 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 HorizontalPodAutoscaler[src]

impl Metadata for HorizontalPodAutoscaler[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for HorizontalPodAutoscaler[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<HorizontalPodAutoscaler> for HorizontalPodAutoscaler[src]

impl Default for HorizontalPodAutoscaler[src]

impl Debug for HorizontalPodAutoscaler[src]

impl Serialize for HorizontalPodAutoscaler[src]

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

Auto Trait Implementations

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]