kubernetes_asyncio.client.models.v2_metric_spec 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_metric_spec.V2MetricSpec(container_resource=None, external=None, object=None, pods=None, resource=None, type=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 = {'container_resource': 'containerResource', 'external': 'external', 'object': 'object', 'pods': 'pods', 'resource': 'resource', 'type': 'type'}
property container_resource

Gets the container_resource of this V2MetricSpec. # noqa: E501

Returns:

The container_resource of this V2MetricSpec. # noqa: E501

Return type:

V2ContainerResourceMetricSource

property external

Gets the external of this V2MetricSpec. # noqa: E501

Returns:

The external of this V2MetricSpec. # noqa: E501

Return type:

V2ExternalMetricSource

property object

Gets the object of this V2MetricSpec. # noqa: E501

Returns:

The object of this V2MetricSpec. # noqa: E501

Return type:

V2ObjectMetricSource

openapi_types = {'container_resource': 'V2ContainerResourceMetricSource', 'external': 'V2ExternalMetricSource', 'object': 'V2ObjectMetricSource', 'pods': 'V2PodsMetricSource', 'resource': 'V2ResourceMetricSource', 'type': 'str'}
property pods

Gets the pods of this V2MetricSpec. # noqa: E501

Returns:

The pods of this V2MetricSpec. # noqa: E501

Return type:

V2PodsMetricSource

property resource

Gets the resource of this V2MetricSpec. # noqa: E501

Returns:

The resource of this V2MetricSpec. # noqa: E501

Return type:

V2ResourceMetricSource

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 V2MetricSpec. # noqa: E501

type is the type of metric source. It should be one of “ContainerResource”, “External”, “Object”, “Pods” or “Resource”, each mapping to a matching field in the object. # noqa: E501

Returns:

The type of this V2MetricSpec. # noqa: E501

Return type:

str