# coding: utf-8

"""
    acep

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class GetPodMetricResponse(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'cpu_alloc': 'float',
        'cpu_max': 'float',
        'cpu_usage': 'float',
        'cpu_online': 'int',
        'disk_free': 'int',
        'disk_total': 'int',
        'disk_usage': 'int',
        'down_bandwidth': 'int',
        'mem_alloc': 'int',
        'mem_free': 'int',
        'mem_total': 'int',
        'mem_usage': 'int',
        'pod_id': 'str',
        'time_stamp': 'int',
        'up_bandwidth': 'int',
        'write_ops': 'int'
    }

    attribute_map = {
        'cpu_alloc': 'CPUAlloc',
        'cpu_max': 'CPUMax',
        'cpu_usage': 'CPUUsage',
        'cpu_online': 'CpuOnline',
        'disk_free': 'DiskFree',
        'disk_total': 'DiskTotal',
        'disk_usage': 'DiskUsage',
        'down_bandwidth': 'DownBandwidth',
        'mem_alloc': 'MemAlloc',
        'mem_free': 'MemFree',
        'mem_total': 'MemTotal',
        'mem_usage': 'MemUsage',
        'pod_id': 'PodId',
        'time_stamp': 'TimeStamp',
        'up_bandwidth': 'UpBandwidth',
        'write_ops': 'WriteOPS'
    }

    def __init__(self, cpu_alloc=None, cpu_max=None, cpu_usage=None, cpu_online=None, disk_free=None, disk_total=None, disk_usage=None, down_bandwidth=None, mem_alloc=None, mem_free=None, mem_total=None, mem_usage=None, pod_id=None, time_stamp=None, up_bandwidth=None, write_ops=None, _configuration=None):  # noqa: E501
        """GetPodMetricResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cpu_alloc = None
        self._cpu_max = None
        self._cpu_usage = None
        self._cpu_online = None
        self._disk_free = None
        self._disk_total = None
        self._disk_usage = None
        self._down_bandwidth = None
        self._mem_alloc = None
        self._mem_free = None
        self._mem_total = None
        self._mem_usage = None
        self._pod_id = None
        self._time_stamp = None
        self._up_bandwidth = None
        self._write_ops = None
        self.discriminator = None

        if cpu_alloc is not None:
            self.cpu_alloc = cpu_alloc
        if cpu_max is not None:
            self.cpu_max = cpu_max
        if cpu_usage is not None:
            self.cpu_usage = cpu_usage
        if cpu_online is not None:
            self.cpu_online = cpu_online
        if disk_free is not None:
            self.disk_free = disk_free
        if disk_total is not None:
            self.disk_total = disk_total
        if disk_usage is not None:
            self.disk_usage = disk_usage
        if down_bandwidth is not None:
            self.down_bandwidth = down_bandwidth
        if mem_alloc is not None:
            self.mem_alloc = mem_alloc
        if mem_free is not None:
            self.mem_free = mem_free
        if mem_total is not None:
            self.mem_total = mem_total
        if mem_usage is not None:
            self.mem_usage = mem_usage
        if pod_id is not None:
            self.pod_id = pod_id
        if time_stamp is not None:
            self.time_stamp = time_stamp
        if up_bandwidth is not None:
            self.up_bandwidth = up_bandwidth
        if write_ops is not None:
            self.write_ops = write_ops

    @property
    def cpu_alloc(self):
        """Gets the cpu_alloc of this GetPodMetricResponse.  # noqa: E501


        :return: The cpu_alloc of this GetPodMetricResponse.  # noqa: E501
        :rtype: float
        """
        return self._cpu_alloc

    @cpu_alloc.setter
    def cpu_alloc(self, cpu_alloc):
        """Sets the cpu_alloc of this GetPodMetricResponse.


        :param cpu_alloc: The cpu_alloc of this GetPodMetricResponse.  # noqa: E501
        :type: float
        """

        self._cpu_alloc = cpu_alloc

    @property
    def cpu_max(self):
        """Gets the cpu_max of this GetPodMetricResponse.  # noqa: E501


        :return: The cpu_max of this GetPodMetricResponse.  # noqa: E501
        :rtype: float
        """
        return self._cpu_max

    @cpu_max.setter
    def cpu_max(self, cpu_max):
        """Sets the cpu_max of this GetPodMetricResponse.


        :param cpu_max: The cpu_max of this GetPodMetricResponse.  # noqa: E501
        :type: float
        """

        self._cpu_max = cpu_max

    @property
    def cpu_usage(self):
        """Gets the cpu_usage of this GetPodMetricResponse.  # noqa: E501


        :return: The cpu_usage of this GetPodMetricResponse.  # noqa: E501
        :rtype: float
        """
        return self._cpu_usage

    @cpu_usage.setter
    def cpu_usage(self, cpu_usage):
        """Sets the cpu_usage of this GetPodMetricResponse.


        :param cpu_usage: The cpu_usage of this GetPodMetricResponse.  # noqa: E501
        :type: float
        """

        self._cpu_usage = cpu_usage

    @property
    def cpu_online(self):
        """Gets the cpu_online of this GetPodMetricResponse.  # noqa: E501


        :return: The cpu_online of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._cpu_online

    @cpu_online.setter
    def cpu_online(self, cpu_online):
        """Sets the cpu_online of this GetPodMetricResponse.


        :param cpu_online: The cpu_online of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._cpu_online = cpu_online

    @property
    def disk_free(self):
        """Gets the disk_free of this GetPodMetricResponse.  # noqa: E501


        :return: The disk_free of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._disk_free

    @disk_free.setter
    def disk_free(self, disk_free):
        """Sets the disk_free of this GetPodMetricResponse.


        :param disk_free: The disk_free of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._disk_free = disk_free

    @property
    def disk_total(self):
        """Gets the disk_total of this GetPodMetricResponse.  # noqa: E501


        :return: The disk_total of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._disk_total

    @disk_total.setter
    def disk_total(self, disk_total):
        """Sets the disk_total of this GetPodMetricResponse.


        :param disk_total: The disk_total of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._disk_total = disk_total

    @property
    def disk_usage(self):
        """Gets the disk_usage of this GetPodMetricResponse.  # noqa: E501


        :return: The disk_usage of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._disk_usage

    @disk_usage.setter
    def disk_usage(self, disk_usage):
        """Sets the disk_usage of this GetPodMetricResponse.


        :param disk_usage: The disk_usage of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._disk_usage = disk_usage

    @property
    def down_bandwidth(self):
        """Gets the down_bandwidth of this GetPodMetricResponse.  # noqa: E501


        :return: The down_bandwidth of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._down_bandwidth

    @down_bandwidth.setter
    def down_bandwidth(self, down_bandwidth):
        """Sets the down_bandwidth of this GetPodMetricResponse.


        :param down_bandwidth: The down_bandwidth of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._down_bandwidth = down_bandwidth

    @property
    def mem_alloc(self):
        """Gets the mem_alloc of this GetPodMetricResponse.  # noqa: E501


        :return: The mem_alloc of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._mem_alloc

    @mem_alloc.setter
    def mem_alloc(self, mem_alloc):
        """Sets the mem_alloc of this GetPodMetricResponse.


        :param mem_alloc: The mem_alloc of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._mem_alloc = mem_alloc

    @property
    def mem_free(self):
        """Gets the mem_free of this GetPodMetricResponse.  # noqa: E501


        :return: The mem_free of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._mem_free

    @mem_free.setter
    def mem_free(self, mem_free):
        """Sets the mem_free of this GetPodMetricResponse.


        :param mem_free: The mem_free of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._mem_free = mem_free

    @property
    def mem_total(self):
        """Gets the mem_total of this GetPodMetricResponse.  # noqa: E501


        :return: The mem_total of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._mem_total

    @mem_total.setter
    def mem_total(self, mem_total):
        """Sets the mem_total of this GetPodMetricResponse.


        :param mem_total: The mem_total of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._mem_total = mem_total

    @property
    def mem_usage(self):
        """Gets the mem_usage of this GetPodMetricResponse.  # noqa: E501


        :return: The mem_usage of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._mem_usage

    @mem_usage.setter
    def mem_usage(self, mem_usage):
        """Sets the mem_usage of this GetPodMetricResponse.


        :param mem_usage: The mem_usage of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._mem_usage = mem_usage

    @property
    def pod_id(self):
        """Gets the pod_id of this GetPodMetricResponse.  # noqa: E501


        :return: The pod_id of this GetPodMetricResponse.  # noqa: E501
        :rtype: str
        """
        return self._pod_id

    @pod_id.setter
    def pod_id(self, pod_id):
        """Sets the pod_id of this GetPodMetricResponse.


        :param pod_id: The pod_id of this GetPodMetricResponse.  # noqa: E501
        :type: str
        """

        self._pod_id = pod_id

    @property
    def time_stamp(self):
        """Gets the time_stamp of this GetPodMetricResponse.  # noqa: E501


        :return: The time_stamp of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._time_stamp

    @time_stamp.setter
    def time_stamp(self, time_stamp):
        """Sets the time_stamp of this GetPodMetricResponse.


        :param time_stamp: The time_stamp of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._time_stamp = time_stamp

    @property
    def up_bandwidth(self):
        """Gets the up_bandwidth of this GetPodMetricResponse.  # noqa: E501


        :return: The up_bandwidth of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._up_bandwidth

    @up_bandwidth.setter
    def up_bandwidth(self, up_bandwidth):
        """Sets the up_bandwidth of this GetPodMetricResponse.


        :param up_bandwidth: The up_bandwidth of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._up_bandwidth = up_bandwidth

    @property
    def write_ops(self):
        """Gets the write_ops of this GetPodMetricResponse.  # noqa: E501


        :return: The write_ops of this GetPodMetricResponse.  # noqa: E501
        :rtype: int
        """
        return self._write_ops

    @write_ops.setter
    def write_ops(self, write_ops):
        """Sets the write_ops of this GetPodMetricResponse.


        :param write_ops: The write_ops of this GetPodMetricResponse.  # noqa: E501
        :type: int
        """

        self._write_ops = write_ops

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(GetPodMetricResponse, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, GetPodMetricResponse):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, GetPodMetricResponse):
            return True

        return self.to_dict() != other.to_dict()
