# coding: utf-8

"""
    external/v1/auth_service.proto

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

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

    NOTE
    ----
    standard swagger-codegen-cli for this python client has been modified
    by custom templates. The purpose of these templates is to include
    typing information in the API and Model code. Please refer to the
    main grid repository for more info
"""

import pprint
import re  # noqa: F401

from typing import TYPE_CHECKING

import six

if TYPE_CHECKING:
    from datetime import datetime
    from lightning_cloud.openapi.models import *

class V1DriveStatus(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 = {
        'drive_type_status': 'V1DriveTypeStatus',
        'message': 'str',
        'phase': 'V1DriveState',
        'reason': 'V1DriveStateReason',
        'size_bytes': 'str'
    }

    attribute_map = {
        'drive_type_status': 'driveTypeStatus',
        'message': 'message',
        'phase': 'phase',
        'reason': 'reason',
        'size_bytes': 'sizeBytes'
    }

    def __init__(self, drive_type_status: 'V1DriveTypeStatus' =None, message: 'str' =None, phase: 'V1DriveState' =None, reason: 'V1DriveStateReason' =None, size_bytes: 'str' =None):  # noqa: E501
        """V1DriveStatus - a model defined in Swagger"""  # noqa: E501
        self._drive_type_status = None
        self._message = None
        self._phase = None
        self._reason = None
        self._size_bytes = None
        self.discriminator = None
        if drive_type_status is not None:
            self.drive_type_status = drive_type_status
        if message is not None:
            self.message = message
        if phase is not None:
            self.phase = phase
        if reason is not None:
            self.reason = reason
        if size_bytes is not None:
            self.size_bytes = size_bytes

    @property
    def drive_type_status(self) -> 'V1DriveTypeStatus':
        """Gets the drive_type_status of this V1DriveStatus.  # noqa: E501


        :return: The drive_type_status of this V1DriveStatus.  # noqa: E501
        :rtype: V1DriveTypeStatus
        """
        return self._drive_type_status

    @drive_type_status.setter
    def drive_type_status(self, drive_type_status: 'V1DriveTypeStatus'):
        """Sets the drive_type_status of this V1DriveStatus.


        :param drive_type_status: The drive_type_status of this V1DriveStatus.  # noqa: E501
        :type: V1DriveTypeStatus
        """

        self._drive_type_status = drive_type_status

    @property
    def message(self) -> 'str':
        """Gets the message of this V1DriveStatus.  # noqa: E501


        :return: The message of this V1DriveStatus.  # noqa: E501
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message: 'str'):
        """Sets the message of this V1DriveStatus.


        :param message: The message of this V1DriveStatus.  # noqa: E501
        :type: str
        """

        self._message = message

    @property
    def phase(self) -> 'V1DriveState':
        """Gets the phase of this V1DriveStatus.  # noqa: E501


        :return: The phase of this V1DriveStatus.  # noqa: E501
        :rtype: V1DriveState
        """
        return self._phase

    @phase.setter
    def phase(self, phase: 'V1DriveState'):
        """Sets the phase of this V1DriveStatus.


        :param phase: The phase of this V1DriveStatus.  # noqa: E501
        :type: V1DriveState
        """

        self._phase = phase

    @property
    def reason(self) -> 'V1DriveStateReason':
        """Gets the reason of this V1DriveStatus.  # noqa: E501


        :return: The reason of this V1DriveStatus.  # noqa: E501
        :rtype: V1DriveStateReason
        """
        return self._reason

    @reason.setter
    def reason(self, reason: 'V1DriveStateReason'):
        """Sets the reason of this V1DriveStatus.


        :param reason: The reason of this V1DriveStatus.  # noqa: E501
        :type: V1DriveStateReason
        """

        self._reason = reason

    @property
    def size_bytes(self) -> 'str':
        """Gets the size_bytes of this V1DriveStatus.  # noqa: E501


        :return: The size_bytes of this V1DriveStatus.  # noqa: E501
        :rtype: str
        """
        return self._size_bytes

    @size_bytes.setter
    def size_bytes(self, size_bytes: 'str'):
        """Sets the size_bytes of this V1DriveStatus.


        :param size_bytes: The size_bytes of this V1DriveStatus.  # noqa: E501
        :type: str
        """

        self._size_bytes = size_bytes

    def to_dict(self) -> dict:
        """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(V1DriveStatus, dict):
            for key, value in self.items():
                result[key] = value

        return result

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

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

    def __eq__(self, other: 'V1DriveStatus') -> bool:
        """Returns true if both objects are equal"""
        if not isinstance(other, V1DriveStatus):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other: 'V1DriveStatus') -> bool:
        """Returns true if both objects are not equal"""
        return not self == other
