<gh_stars>0
# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
import re  # noqa: F401,E501
from swagger_server import util


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

    Do not edit the class manually.
    """
    def __init__(self, comment: str=None, description: str=None, keytype: str='sliver'):  # noqa: E501
        """SshkeysPost - a model defined in Swagger

        :param comment: The comment of this SshkeysPost.  # noqa: E501
        :type comment: str
        :param description: The description of this SshkeysPost.  # noqa: E501
        :type description: str
        :param keytype: The keytype of this SshkeysPost.  # noqa: E501
        :type keytype: str
        """
        self.swagger_types = {
            'comment': str,
            'description': str,
            'keytype': str
        }

        self.attribute_map = {
            'comment': 'comment',
            'description': 'description',
            'keytype': 'keytype'
        }
        self._comment = comment
        self._description = description
        self._keytype = keytype

    @classmethod
    def from_dict(cls, dikt) -> 'SshkeysPost':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The sshkeys_post of this SshkeysPost.  # noqa: E501
        :rtype: SshkeysPost
        """
        return util.deserialize_model(dikt, cls)

    @property
    def comment(self) -> str:
        """Gets the comment of this SshkeysPost.


        :return: The comment of this SshkeysPost.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment: str):
        """Sets the comment of this SshkeysPost.


        :param comment: The comment of this SshkeysPost.
        :type comment: str
        """
        if comment is None:
            raise ValueError("Invalid value for `comment`, must not be `None`")  # noqa: E501

        self._comment = comment

    @property
    def description(self) -> str:
        """Gets the description of this SshkeysPost.


        :return: The description of this SshkeysPost.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description: str):
        """Sets the description of this SshkeysPost.


        :param description: The description of this SshkeysPost.
        :type description: str
        """
        if description is None:
            raise ValueError("Invalid value for `description`, must not be `None`")  # noqa: E501

        self._description = description

    @property
    def keytype(self) -> str:
        """Gets the keytype of this SshkeysPost.


        :return: The keytype of this SshkeysPost.
        :rtype: str
        """
        return self._keytype

    @keytype.setter
    def keytype(self, keytype: str):
        """Sets the keytype of this SshkeysPost.


        :param keytype: The keytype of this SshkeysPost.
        :type keytype: str
        """
        allowed_values = ["bastion", "sliver"]  # noqa: E501
        if keytype not in allowed_values:
            raise ValueError(
                "Invalid value for `keytype` ({0}), must be one of {1}"
                .format(keytype, allowed_values)
            )

        self._keytype = keytype

# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
import re  # noqa: F401,E501
from swagger_server import util


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

    Do not edit the class manually.
    """
    def __init__(self, comment: str=None, description: str=None, keytype: str='sliver'):  # noqa: E501
        """SshkeysPost - a model defined in Swagger

        :param comment: The comment of this SshkeysPost.  # noqa: E501
        :type comment: str
        :param description: The description of this SshkeysPost.  # noqa: E501
        :type description: str
        :param keytype: The keytype of this SshkeysPost.  # noqa: E501
        :type keytype: str
        """
        self.swagger_types = {
            'comment': str,
            'description': str,
            'keytype': str
        }

        self.attribute_map = {
            'comment': 'comment',
            'description': 'description',
            'keytype': 'keytype'
        }
        self._comment = comment
        self._description = description
        self._keytype = keytype

    @classmethod
    def from_dict(cls, dikt) -> 'SshkeysPost':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The sshkeys_post of this SshkeysPost.  # noqa: E501
        :rtype: SshkeysPost
        """
        return util.deserialize_model(dikt, cls)

    @property
    def comment(self) -> str:
        """Gets the comment of this SshkeysPost.


        :return: The comment of this SshkeysPost.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment: str):
        """Sets the comment of this SshkeysPost.


        :param comment: The comment of this SshkeysPost.
        :type comment: str
        """
        if comment is None:
            raise ValueError("Invalid value for `comment`, must not be `None`")  # noqa: E501

        self._comment = comment

    @property
    def description(self) -> str:
        """Gets the description of this SshkeysPost.


        :return: The description of this SshkeysPost.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description: str):
        """Sets the description of this SshkeysPost.


        :param description: The description of this SshkeysPost.
        :type description: str
        """
        if description is None:
            raise ValueError("Invalid value for `description`, must not be `None`")  # noqa: E501

        self._description = description

    @property
    def keytype(self) -> str:
        """Gets the keytype of this SshkeysPost.


        :return: The keytype of this SshkeysPost.
        :rtype: str
        """
        return self._keytype

    @keytype.setter
    def keytype(self, keytype: str):
        """Sets the keytype of this SshkeysPost.


        :param keytype: The keytype of this SshkeysPost.
        :type keytype: str
        """
        allowed_values = ["bastion", "sliver"]  # noqa: E501
        if keytype not in allowed_values:
            raise ValueError(
                "Invalid value for `keytype` ({0}), must be one of {1}"
                .format(keytype, allowed_values)
            )

        self._keytype = keytype
# coding: utf-8 # noqa: F401 # noqa: F401 # noqa: F401,E501 NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually. # noqa: E501 SshkeysPost - a model defined in Swagger          :param comment: The comment of this SshkeysPost.  # noqa: E501         :type comment: str         :param description: The description of this SshkeysPost.  # noqa: E501         :type description: str         :param keytype: The keytype of this SshkeysPost.  # noqa: E501         :type keytype: str Returns the dict as a model          :param dikt: A dict.         :type: dict         :return: The sshkeys_post of this SshkeysPost.  # noqa: E501         :rtype: SshkeysPost Gets the comment of this SshkeysPost.           :return: The comment of this SshkeysPost.         :rtype: str Sets the comment of this SshkeysPost.           :param comment: The comment of this SshkeysPost.         :type comment: str # noqa: E501 Gets the description of this SshkeysPost.           :return: The description of this SshkeysPost.         :rtype: str Sets the description of this SshkeysPost.           :param description: The description of this SshkeysPost.         :type description: str # noqa: E501 Gets the keytype of this SshkeysPost.           :return: The keytype of this SshkeysPost.         :rtype: str Sets the keytype of this SshkeysPost.           :param keytype: The keytype of this SshkeysPost.         :type keytype: str # noqa: E501