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
sourceimpl 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.
sourceimpl 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.
sourceimpl 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.
sourceimpl 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.
sourceimpl 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
sourceimpl 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
sourceimpl 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
sourceimpl 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
sourceimpl 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.
sourceimpl 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.
sourceimpl 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.
sourceimpl 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
sourceimpl DeepMerge for Scale
impl DeepMerge for Scale
sourcefn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge other
into self
.
sourceimpl<'de> Deserialize<'de> for Scale
impl<'de> Deserialize<'de> for Scale
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Metadata for Scale
impl Metadata for Scale
type Ty = ObjectMeta
type Ty = ObjectMeta
The type of the metadata object.
sourcefn metadata(&self) -> &<Self as Metadata>::Ty
fn metadata(&self) -> &<Self as Metadata>::Ty
Gets a reference to the metadata of this resource value.
sourcefn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <Self as Metadata>::Ty
Gets a mutable reference to the metadata of this resource value.
sourceimpl PartialEq<Scale> for Scale
impl PartialEq<Scale> for Scale
sourceimpl Resource for Scale
impl Resource for Scale
sourceconst API_VERSION: &'static str = "autoscaling/v1"
const API_VERSION: &'static str = "autoscaling/v1"
The API version of the resource. This is a composite of Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more
sourceconst GROUP: &'static str = "autoscaling"
const GROUP: &'static str = "autoscaling"
The group of the resource, or the empty string if the resource doesn’t have a group.
sourceconst URL_PATH_SEGMENT: &'static str = "scale"
const URL_PATH_SEGMENT: &'static str = "scale"
The URL path segment used to construct URLs related to this resource. Read more
type Scope = SubResourceScope
type Scope = SubResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
impl StructuralPartialEq for Scale
Auto Trait Implementations
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnwindSafe for Scale
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more