Source code for azure.cognitiveservices.vision.customvision.training.models.image_region_create_result_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 ImageRegionCreateResult(Model): """ImageRegionCreateResult. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar image_id: :vartype image_id: str :ivar region_id: :vartype region_id: str :ivar tag_name: :vartype tag_name: str :ivar created: :vartype created: datetime :param tag_id: Required. Id of the tag associated with this region. :type tag_id: str :param left: Required. Coordinate of the left boundary. :type left: float :param top: Required. Coordinate of the top boundary. :type top: float :param width: Required. Width. :type width: float :param height: Required. Height. :type height: float """ _validation = { 'image_id': {'readonly': True}, 'region_id': {'readonly': True}, 'tag_name': {'readonly': True}, 'created': {'readonly': True}, 'tag_id': {'required': True}, 'left': {'required': True}, 'top': {'required': True}, 'width': {'required': True}, 'height': {'required': True}, } _attribute_map = { 'image_id': {'key': 'imageId', 'type': 'str'}, 'region_id': {'key': 'regionId', 'type': 'str'}, 'tag_name': {'key': 'tagName', 'type': 'str'}, 'created': {'key': 'created', 'type': 'iso-8601'}, 'tag_id': {'key': 'tagId', 'type': 'str'}, 'left': {'key': 'left', 'type': 'float'}, 'top': {'key': 'top', 'type': 'float'}, 'width': {'key': 'width', 'type': 'float'}, 'height': {'key': 'height', 'type': 'float'}, } def __init__(self, *, tag_id: str, left: float, top: float, width: float, height: float, **kwargs) -> None: super(ImageRegionCreateResult, self).__init__(**kwargs) self.image_id = None self.region_id = None self.tag_name = None self.created = None self.tag_id = tag_id self.left = left self.top = top self.width = width self.height = height