kubernetes_asyncio.client.models.v1_custom_resource_subresource_scale module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_custom_resource_subresource_scale.V1CustomResourceSubresourceScale(label_selector_path=None, spec_replicas_path=None, status_replicas_path=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'label_selector_path': 'labelSelectorPath', 'spec_replicas_path': 'specReplicasPath', 'status_replicas_path': 'statusReplicasPath'}
- property label_selector_path
Gets the label_selector_path of this V1CustomResourceSubresourceScale. # noqa: E501
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. # noqa: E501
- Returns:
The label_selector_path of this V1CustomResourceSubresourceScale. # noqa: E501
- Return type:
str
- openapi_types = {'label_selector_path': 'str', 'spec_replicas_path': 'str', 'status_replicas_path': 'str'}
- property spec_replicas_path
Gets the spec_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501
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. # noqa: E501
- Returns:
The spec_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501
- Return type:
str
- property status_replicas_path
Gets the status_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501
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. # noqa: E501
- Returns:
The status_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model