Struct k8s_openapi::api::autoscaling::v1::Scale [−][src]
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
pub fn patch_namespaced_deployment_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_namespaced_deployment_scale(
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.
pub fn patch_namespaced_replica_set_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_namespaced_replica_set_scale(
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.
pub fn patch_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_namespaced_stateful_set_scale(
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.
pub fn patch_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_namespaced_replication_controller_scale(
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.
pub fn read_namespaced_deployment_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedDeploymentScaleOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedDeploymentScaleResponse>), RequestError>
pub fn read_namespaced_deployment_scale(
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.
pub fn read_namespaced_replica_set_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedReplicaSetScaleOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicaSetScaleResponse>), RequestError>
pub fn read_namespaced_replica_set_scale(
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.
pub fn read_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedStatefulSetScaleOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedStatefulSetScaleResponse>), RequestError>
pub fn read_namespaced_stateful_set_scale(
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.
pub fn read_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
optional: ReadNamespacedReplicationControllerScaleOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedReplicationControllerScaleResponse>), RequestError>
pub fn read_namespaced_replication_controller_scale(
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.
pub fn replace_namespaced_deployment_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_namespaced_deployment_scale(
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.
pub fn replace_namespaced_replica_set_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_namespaced_replica_set_scale(
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.
pub fn replace_namespaced_stateful_set_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_namespaced_stateful_set_scale(
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.
pub fn replace_namespaced_replication_controller_scale(
name: &str,
namespace: &str,
body: &Scale,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_namespaced_replication_controller_scale(
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
Deserialize this value from the given Serde deserializer. Read more
type Ty = ObjectMeta
type Ty = ObjectMeta
The type of the metadata object.
Gets a reference to the metadata of this resource value.
Gets a mutable reference to the metadata of this resource value.
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
The group of the resource, or the empty string if the resource doesn’t have a group.
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
Auto Trait Implementations
impl RefUnwindSafe for Scale
impl UnwindSafe for Scale
Blanket Implementations
Mutably borrows from an owned value. Read more