Class CustomResourceSubresourceScale
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceSubresourceScale
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CustomResourceSubresourceScaleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CustomResourceSubresourceScale extends Object implements io.fabric8.kubernetes.api.builder.Editable<CustomResourceSubresourceScaleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomResourceSubresourceScale()No args constructor for use in serializationCustomResourceSubresourceScale(String labelSelectorPath, String specReplicasPath, String statusReplicasPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceSubresourceScaleBuilderedit()Map<String,Object>getAdditionalProperties()StringgetLabelSelectorPath()labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.StringgetSpecReplicasPath()specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`.StringgetStatusReplicasPath()statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLabelSelectorPath(String labelSelectorPath)labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`.voidsetSpecReplicasPath(String specReplicasPath)specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`.voidsetStatusReplicasPath(String statusReplicasPath)statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`.CustomResourceSubresourceScaleBuildertoBuilder()
-
-
-
Method Detail
-
getLabelSelectorPath
public String getLabelSelectorPath()
labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.
-
setLabelSelectorPath
public void setLabelSelectorPath(String labelSelectorPath)
labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.
-
getSpecReplicasPath
public String getSpecReplicasPath()
specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.
-
setSpecReplicasPath
public void setSpecReplicasPath(String specReplicasPath)
specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.
-
getStatusReplicasPath
public String getStatusReplicasPath()
statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.
-
setStatusReplicasPath
public void setStatusReplicasPath(String statusReplicasPath)
statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.
-
edit
public CustomResourceSubresourceScaleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CustomResourceSubresourceScaleBuilder>
-
toBuilder
public CustomResourceSubresourceScaleBuilder toBuilder()
-
-