Struct k8s_openapi::api::autoscaling::v1::Scale
source · pub struct Scale {
pub metadata: ObjectMeta,
pub spec: Option<ScaleSpec>,
pub status: Option<ScaleStatus>,
}
Expand description
Scale represents a scaling request for a resource.
Fields§
§metadata: ObjectMeta
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
spec: Option<ScaleSpec>
defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
status: Option<ScaleStatus>
current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
Implementations§
source§impl Scale
impl Scale
sourcepub fn patch_deployment(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_deployment( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update scale of the specified Deployment
Use the returned crate::ResponseBody
<
crate::PatchResponse
<Self>>
constructor, or crate::PatchResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn patch_replica_set(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_replica_set( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
crate::PatchResponse
<Self>>
constructor, or crate::PatchResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn patch_stateful_set(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_stateful_set( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
crate::PatchResponse
<Self>>
constructor, or crate::PatchResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn patch_replication_controller(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_replication_controller( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
crate::PatchResponse
<Self>>
constructor, or crate::PatchResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn read_deployment(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadDeploymentScaleResponse>), RequestError>
pub fn read_deployment( name: &str, namespace: &str ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadDeploymentScaleResponse>), RequestError>
read scale of the specified Deployment
Use the returned crate::ResponseBody
<
ReadDeploymentScaleResponse
>
constructor, or ReadDeploymentScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
source§impl Scale
impl Scale
sourcepub fn read_replica_set(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadReplicaSetScaleResponse>), RequestError>
pub fn read_replica_set( name: &str, namespace: &str ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadReplicaSetScaleResponse>), RequestError>
read scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
ReadReplicaSetScaleResponse
>
constructor, or ReadReplicaSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
source§impl Scale
impl Scale
sourcepub fn read_stateful_set(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadStatefulSetScaleResponse>), RequestError>
pub fn read_stateful_set( name: &str, namespace: &str ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadStatefulSetScaleResponse>), RequestError>
read scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
ReadStatefulSetScaleResponse
>
constructor, or ReadStatefulSetScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
source§impl Scale
impl Scale
sourcepub fn read_replication_controller(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadReplicationControllerScaleResponse>), RequestError>
pub fn read_replication_controller( name: &str, namespace: &str ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadReplicationControllerScaleResponse>), RequestError>
read scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
ReadReplicationControllerScaleResponse
>
constructor, or ReadReplicationControllerScaleResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Scale
-
namespace
object name and auth scope, such as for teams and projects
source§impl Scale
impl Scale
sourcepub fn replace_deployment(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_deployment( name: &str, namespace: &str, body: &Scale, optional: ReplaceOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace scale of the specified Deployment
Use the returned crate::ResponseBody
<
crate::ReplaceResponse
<Self>>
constructor, or crate::ReplaceResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn replace_replica_set(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_replica_set( name: &str, namespace: &str, body: &Scale, optional: ReplaceOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace scale of the specified ReplicaSet
Use the returned crate::ResponseBody
<
crate::ReplaceResponse
<Self>>
constructor, or crate::ReplaceResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn replace_stateful_set(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_stateful_set( name: &str, namespace: &str, body: &Scale, optional: ReplaceOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace scale of the specified StatefulSet
Use the returned crate::ResponseBody
<
crate::ReplaceResponse
<Self>>
constructor, or crate::ReplaceResponse
<Self>
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.
source§impl Scale
impl Scale
sourcepub fn replace_replication_controller(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_replication_controller( name: &str, namespace: &str, body: &Scale, optional: ReplaceOptional<'_> ) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace scale of the specified ReplicationController
Use the returned crate::ResponseBody
<
crate::ReplaceResponse
<Self>>
constructor, or crate::ReplaceResponse
<Self>
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§
source§impl<'de> Deserialize<'de> for Scale
impl<'de> Deserialize<'de> for Scale
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
source§impl PartialEq<Scale> for Scale
impl PartialEq<Scale> for Scale
source§impl Resource for Scale
impl Resource for Scale
source§const API_VERSION: &'static str = "autoscaling/v1"
const API_VERSION: &'static str = "autoscaling/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more