kubernetes_asyncio.client.models.v1_container_resize_policy 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_container_resize_policy.V1ContainerResizePolicy(resource_name=None, restart_policy=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 = {'resource_name': 'resourceName', 'restart_policy': 'restartPolicy'}
- openapi_types = {'resource_name': 'str', 'restart_policy': 'str'}
- property resource_name
Gets the resource_name of this V1ContainerResizePolicy. # noqa: E501
Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. # noqa: E501
- Returns:
The resource_name of this V1ContainerResizePolicy. # noqa: E501
- Return type:
str
- property restart_policy
Gets the restart_policy of this V1ContainerResizePolicy. # noqa: E501
Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. # noqa: E501
- Returns:
The restart_policy of this V1ContainerResizePolicy. # 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