[−][src]Struct k8s_openapi::api::autoscaling::v1::Scale
Scale represents a scaling request for a resource.
Fields
metadata: Option<ObjectMeta>
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
spec: Option<ScaleSpec>
defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
status: Option<ScaleStatus>
current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.
Methods
impl Scale
[src]
pub fn patch_namespaced_deployment_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedDeploymentScaleResponse>), RequestError>
partially update scale of the specified Deployment
Use the returned crate::ResponseBody
<
PatchNamespacedDeploymentScaleResponse
>
constructor, or PatchNamespacedDeploymentScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn patch_namespaced_replica_set_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicaSetScaleResponse>), RequestError>
partially update scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
PatchNamespacedReplicaSetScaleResponse
>
constructor, or PatchNamespacedReplicaSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn patch_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedStatefulSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedStatefulSetScaleResponse>), RequestError>
partially update scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
PatchNamespacedStatefulSetScaleResponse
>
constructor, or PatchNamespacedStatefulSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn patch_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicationControllerScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedReplicationControllerScaleResponse>), RequestError>
partially update scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
PatchNamespacedReplicationControllerScaleResponse
>
constructor, or PatchNamespacedReplicationControllerScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn read_namespaced_deployment_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentScaleResponse>), RequestError>
read scale of the specified Deployment
Use the returned crate::ResponseBody
<
ReadNamespacedDeploymentScaleResponse
>
constructor, or ReadNamespacedDeploymentScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn read_namespaced_replica_set_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedReplicaSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicaSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedReplicaSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicaSetScaleResponse>), RequestError>
read scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
ReadNamespacedReplicaSetScaleResponse
>
constructor, or ReadNamespacedReplicaSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn read_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedStatefulSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedStatefulSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedStatefulSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedStatefulSetScaleResponse>), RequestError>
read scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
ReadNamespacedStatefulSetScaleResponse
>
constructor, or ReadNamespacedStatefulSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn read_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedReplicationControllerScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicationControllerScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedReplicationControllerScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicationControllerScaleResponse>), RequestError>
read scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
ReadNamespacedReplicationControllerScaleResponse
>
constructor, or ReadNamespacedReplicationControllerScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn replace_namespaced_deployment_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedDeploymentScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedDeploymentScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedDeploymentScaleResponse>), RequestError>
replace scale of the specified Deployment
Use the returned crate::ResponseBody
<
ReplaceNamespacedDeploymentScaleResponse
>
constructor, or ReplaceNamespacedDeploymentScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn replace_namespaced_replica_set_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedReplicaSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedReplicaSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicaSetScaleResponse>), RequestError>
replace scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
ReplaceNamespacedReplicaSetScaleResponse
>
constructor, or ReplaceNamespacedReplicaSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn replace_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedStatefulSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedStatefulSetScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedStatefulSetScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedStatefulSetScaleResponse>), RequestError>
replace scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
ReplaceNamespacedStatefulSetScaleResponse
>
constructor, or ReplaceNamespacedStatefulSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Scale
[src]
pub fn replace_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedReplicationControllerScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicationControllerScaleResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceNamespacedReplicationControllerScaleOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedReplicationControllerScaleResponse>), RequestError>
replace scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
ReplaceNamespacedReplicationControllerScaleResponse
>
constructor, or ReplaceNamespacedReplicationControllerScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for Scale
[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 Scale
[src]
impl Default for Scale
[src]
impl Clone for Scale
[src]
impl PartialEq<Scale> for Scale
[src]
impl Debug for Scale
[src]
impl Serialize for Scale
[src]
impl<'de> Deserialize<'de> for Scale
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for Scale
impl Sync for Scale
impl Send for Scale
impl UnwindSafe for Scale
impl RefUnwindSafe for Scale
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,