# 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 WebhookContract(Model):
    """WebhookContract.

    :param url:
    :type url: str
    :param type: Possible values include: 'Notification', 'DelegatedEndorser',
     'Zapier'
    :type type: str or ~credentials.models.enum
    :param enabled:
    :type enabled: bool
    :param id:
    :type id: str
    """

    _attribute_map = {
        'url': {'key': 'url', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
        'enabled': {'key': 'enabled', 'type': 'bool'},
        'id': {'key': 'id', 'type': 'str'},
    }

    def __init__(self, *, url: str=None, type=None, enabled: bool=None, id: str=None, **kwargs) -> None:
        super(WebhookContract, self).__init__(**kwargs)
        self.url = url
        self.type = type
        self.enabled = enabled
        self.id = id
