# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class TermsOfUse(Model):
    """Represents a Terms of Use for user.

    :param state: Possible values include: 'none', 'accepted', 'declined'
    :type state: str or ~dynamics.customerinsights.api.models.enum
    :param version: Gets the current version of this document.
    :type version: str
    :param created_utc: Gets the created time of terms acceptance.
    :type created_utc: datetime
    """

    _attribute_map = {
        'state': {'key': 'state', 'type': 'str'},
        'version': {'key': 'version', 'type': 'str'},
        'created_utc': {'key': 'createdUtc', 'type': 'iso-8601'},
    }

    def __init__(self, *, state=None, version: str=None, created_utc=None, **kwargs) -> None:
        super(TermsOfUse, self).__init__(**kwargs)
        self.state = state
        self.version = version
        self.created_utc = created_utc
