<filename>azext_iot/sdk/pnp/models/model_information_py3.py<gh_stars>1-10
# 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 ModelInformation(Model):
    """ModelInformation.

    :param comment:
    :type comment: str
    :param description:
    :type description: str
    :param display_name:
    :type display_name: str
    :param urn_id:
    :type urn_id: str
    :param model_name:
    :type model_name: str
    :param version:
    :type version: int
    :param type: Possible values include: 'interface', 'capabilityModel'
    :type type: str or ~digitaltwinmodelrepositoryservice.models.enum
    :param etag:
    :type etag: str
    :param publisher_id:
    :type publisher_id: str
    :param publisher_name:
    :type publisher_name: str
    :param created_on:
    :type created_on: datetime
    :param updated_on:
    :type updated_on: datetime
    """

    _attribute_map = {
        'comment': {'key': 'comment', 'type': 'str'},
        'description': {'key': 'description', 'type': 'str'},
        'display_name': {'key': 'displayName', 'type': 'str'},
        'urn_id': {'key': 'urnId', 'type': 'str'},
        'model_name': {'key': 'modelName', 'type': 'str'},
        'version': {'key': 'version', 'type': 'int'},
        'type': {'key': 'type', 'type': 'str'},
        'etag': {'key': 'etag', 'type': 'str'},
        'publisher_id': {'key': 'publisherId', 'type': 'str'},
        'publisher_name': {'key': 'publisherName', 'type': 'str'},
        'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
        'updated_on': {'key': 'updatedOn', 'type': 'iso-8601'},
    }

    def __init__(self, *, comment: str=None, description: str=None, display_name: str=None, urn_id: str=None, model_name: str=None, version: int=None, type=None, etag: str=None, publisher_id: str=None, publisher_name: str=None, created_on=None, updated_on=None, **kwargs) -> None:
        super(ModelInformation, self).__init__(**kwargs)
        self.comment = comment
        self.description = description
        self.display_name = display_name
        self.urn_id = urn_id
        self.model_name = model_name
        self.version = version
        self.type = type
        self.etag = etag
        self.publisher_id = publisher_id
        self.publisher_name = publisher_name
        self.created_on = created_on
        self.updated_on = updated_on

<filename>azext_iot/sdk/pnp/models/model_information_py3.py<gh_stars>1-10
# 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 ModelInformation(Model):
    """ModelInformation.

    :param comment:
    :type comment: str
    :param description:
    :type description: str
    :param display_name:
    :type display_name: str
    :param urn_id:
    :type urn_id: str
    :param model_name:
    :type model_name: str
    :param version:
    :type version: int
    :param type: Possible values include: 'interface', 'capabilityModel'
    :type type: str or ~digitaltwinmodelrepositoryservice.models.enum
    :param etag:
    :type etag: str
    :param publisher_id:
    :type publisher_id: str
    :param publisher_name:
    :type publisher_name: str
    :param created_on:
    :type created_on: datetime
    :param updated_on:
    :type updated_on: datetime
    """

    _attribute_map = {
        'comment': {'key': 'comment', 'type': 'str'},
        'description': {'key': 'description', 'type': 'str'},
        'display_name': {'key': 'displayName', 'type': 'str'},
        'urn_id': {'key': 'urnId', 'type': 'str'},
        'model_name': {'key': 'modelName', 'type': 'str'},
        'version': {'key': 'version', 'type': 'int'},
        'type': {'key': 'type', 'type': 'str'},
        'etag': {'key': 'etag', 'type': 'str'},
        'publisher_id': {'key': 'publisherId', 'type': 'str'},
        'publisher_name': {'key': 'publisherName', 'type': 'str'},
        'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
        'updated_on': {'key': 'updatedOn', 'type': 'iso-8601'},
    }

    def __init__(self, *, comment: str=None, description: str=None, display_name: str=None, urn_id: str=None, model_name: str=None, version: int=None, type=None, etag: str=None, publisher_id: str=None, publisher_name: str=None, created_on=None, updated_on=None, **kwargs) -> None:
        super(ModelInformation, self).__init__(**kwargs)
        self.comment = comment
        self.description = description
        self.display_name = display_name
        self.urn_id = urn_id
        self.model_name = model_name
        self.version = version
        self.type = type
        self.etag = etag
        self.publisher_id = publisher_id
        self.publisher_name = publisher_name
        self.created_on = created_on
        self.updated_on = updated_on

# 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. # -------------------------------------------------------------------------- ModelInformation.      :param comment:     :type comment: str     :param description:     :type description: str     :param display_name:     :type display_name: str     :param urn_id:     :type urn_id: str     :param model_name:     :type model_name: str     :param version:     :type version: int     :param type: Possible values include: 'interface', 'capabilityModel'     :type type: str or ~digitaltwinmodelrepositoryservice.models.enum     :param etag:     :type etag: str     :param publisher_id:     :type publisher_id: str     :param publisher_name:     :type publisher_name: str     :param created_on:     :type created_on: datetime     :param updated_on:     :type updated_on: datetime