Source code for azure.cognitiveservices.language.luis.authoring.models.model_info_response_py3

# 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


[docs]class ModelInfoResponse(Model): """An application model info. All required parameters must be populated in order to send to Azure. :param id: Required. The ID of the Entity Model. :type id: str :param name: Name of the Entity Model. :type name: str :param type_id: The type ID of the Entity Model. :type type_id: int :param readable_type: Required. Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' :type readable_type: str or ~azure.cognitiveservices.language.luis.authoring.models.enum :param roles: :type roles: list[~azure.cognitiveservices.language.luis.authoring.models.EntityRole] :param children: List of child entities. :type children: list[~azure.cognitiveservices.language.luis.authoring.models.ChildEntity] :param sub_lists: List of sub-lists. :type sub_lists: list[~azure.cognitiveservices.language.luis.authoring.models.SubClosedListResponse] :param custom_prebuilt_domain_name: The domain name. :type custom_prebuilt_domain_name: str :param custom_prebuilt_model_name: The intent name or entity name. :type custom_prebuilt_model_name: str :param regex_pattern: The Regex entity pattern. :type regex_pattern: str :param explicit_list: :type explicit_list: list[~azure.cognitiveservices.language.luis.authoring.models.ExplicitListItem] """ _validation = { 'id': {'required': True}, 'readable_type': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type_id': {'key': 'typeId', 'type': 'int'}, 'readable_type': {'key': 'readableType', 'type': 'str'}, 'roles': {'key': 'roles', 'type': '[EntityRole]'}, 'children': {'key': 'children', 'type': '[ChildEntity]'}, 'sub_lists': {'key': 'subLists', 'type': '[SubClosedListResponse]'}, 'custom_prebuilt_domain_name': {'key': 'customPrebuiltDomainName', 'type': 'str'}, 'custom_prebuilt_model_name': {'key': 'customPrebuiltModelName', 'type': 'str'}, 'regex_pattern': {'key': 'regexPattern', 'type': 'str'}, 'explicit_list': {'key': 'explicitList', 'type': '[ExplicitListItem]'}, } def __init__(self, *, id: str, readable_type, name: str=None, type_id: int=None, roles=None, children=None, sub_lists=None, custom_prebuilt_domain_name: str=None, custom_prebuilt_model_name: str=None, regex_pattern: str=None, explicit_list=None, **kwargs) -> None: super(ModelInfoResponse, self).__init__(**kwargs) self.id = id self.name = name self.type_id = type_id self.readable_type = readable_type self.roles = roles self.children = children self.sub_lists = sub_lists self.custom_prebuilt_domain_name = custom_prebuilt_domain_name self.custom_prebuilt_model_name = custom_prebuilt_model_name self.regex_pattern = regex_pattern self.explicit_list = explicit_list