kubernetes_asyncio.client.models.v2_hpa_scaling_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.v2_hpa_scaling_policy.V2HPAScalingPolicy(period_seconds=None, type=None, value=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'period_seconds': 'periodSeconds', 'type': 'type', 'value': 'value'}
openapi_types = {'period_seconds': 'int', 'type': 'str', 'value': 'int'}
property period_seconds

Gets the period_seconds of this V2HPAScalingPolicy. # noqa: E501

periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). # noqa: E501

Returns:

The period_seconds of this V2HPAScalingPolicy. # noqa: E501

Return type:

int

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property type

Gets the type of this V2HPAScalingPolicy. # noqa: E501

type is used to specify the scaling policy. # noqa: E501

Returns:

The type of this V2HPAScalingPolicy. # noqa: E501

Return type:

str

property value

Gets the value of this V2HPAScalingPolicy. # noqa: E501

value contains the amount of change which is permitted by the policy. It must be greater than zero # noqa: E501

Returns:

The value of this V2HPAScalingPolicy. # noqa: E501

Return type:

int