1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# 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 TldLegalAgreement(Model):
"""Legal agreement for a top level domain.
All required parameters must be populated in order to send to Azure.
:param agreement_key: Required. Unique identifier for the agreement.
:type agreement_key: str
:param title: Required. Agreement title.
:type title: str
:param content: Required. Agreement details.
:type content: str
:param url: URL where a copy of the agreement details is hosted.
:type url: str
"""
_validation = {
'agreement_key': {'required': True},
'title': {'required': True},
'content': {'required': True},
}
_attribute_map = {
'agreement_key': {'key': 'agreementKey', 'type': 'str'},
'title': {'key': 'title', 'type': 'str'},
'content': {'key': 'content', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
}
def __init__(self, *, agreement_key: str, title: str, content: str, url: str=None, **kwargs) -> None:
super(TldLegalAgreement, self).__init__(**kwargs)
self.agreement_key = agreement_key
self.title = title
self.content = content
self.url = url
|