Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Generated from ff5eeb4199dbd9342d28f63704b6e6ec54b26980
Fix incorrect capitalization
  • Loading branch information
AutorestCI committed May 7, 2018
commit 870883a12b602148b025a710ddf5da5b23b01fda
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@

try:
from .image_url_py3 import ImageUrl
from .image_tag_prediction_model_py3 import ImageTagPredictionModel
from .image_prediction_result_model_py3 import ImagePredictionResultModel
from .bounding_box_py3 import BoundingBox
from .prediction_py3 import Prediction
from .image_prediction_py3 import ImagePrediction
except (SyntaxError, ImportError):
from .image_url import ImageUrl
from .image_tag_prediction_model import ImageTagPredictionModel
from .image_prediction_result_model import ImagePredictionResultModel
from .bounding_box import BoundingBox
from .prediction import Prediction
from .image_prediction import ImagePrediction

__all__ = [
'ImageUrl',
'ImageTagPredictionModel',
'ImagePredictionResultModel',
'BoundingBox',
'Prediction',
'ImagePrediction',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 BoundingBox(Model):
"""BoundingBox.

:param left:
:type left: float
:param top:
:type top: float
:param width:
:type width: float
:param height:
:type height: float
"""

_attribute_map = {
'left': {'key': 'left', 'type': 'float'},
'top': {'key': 'top', 'type': 'float'},
'width': {'key': 'width', 'type': 'float'},
'height': {'key': 'height', 'type': 'float'},
}

def __init__(self, **kwargs):
super(BoundingBox, self).__init__(**kwargs)
self.left = kwargs.get('left', None)
self.top = kwargs.get('top', None)
self.width = kwargs.get('width', None)
self.height = kwargs.get('height', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 BoundingBox(Model):
"""BoundingBox.

:param left:
:type left: float
:param top:
:type top: float
:param width:
:type width: float
:param height:
:type height: float
"""

_attribute_map = {
'left': {'key': 'left', 'type': 'float'},
'top': {'key': 'top', 'type': 'float'},
'width': {'key': 'width', 'type': 'float'},
'height': {'key': 'height', 'type': 'float'},
}

def __init__(self, *, left: float=None, top: float=None, width: float=None, height: float=None, **kwargs) -> None:
super(BoundingBox, self).__init__(**kwargs)
self.left = left
self.top = top
self.width = width
self.height = height
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from msrest.serialization import Model


class ImagePredictionResultModel(Model):
"""result of an image prediction request.
class ImagePrediction(Model):
"""ImagePrediction.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -28,7 +28,7 @@ class ImagePredictionResultModel(Model):
:vartype created: datetime
:ivar predictions:
:vartype predictions:
list[~azure.cognitiveservices.vision.customvision.prediction.models.ImageTagPredictionModel]
list[~azure.cognitiveservices.vision.customvision.prediction.models.Prediction]
"""

_validation = {
Expand All @@ -40,15 +40,15 @@ class ImagePredictionResultModel(Model):
}

_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'project': {'key': 'Project', 'type': 'str'},
'iteration': {'key': 'Iteration', 'type': 'str'},
'created': {'key': 'Created', 'type': 'iso-8601'},
'predictions': {'key': 'Predictions', 'type': '[ImageTagPredictionModel]'},
'id': {'key': 'id', 'type': 'str'},
'project': {'key': 'project', 'type': 'str'},
'iteration': {'key': 'iteration', 'type': 'str'},
'created': {'key': 'created', 'type': 'iso-8601'},
'predictions': {'key': 'predictions', 'type': '[Prediction]'},
}

def __init__(self, **kwargs):
super(ImagePredictionResultModel, self).__init__(**kwargs)
super(ImagePrediction, self).__init__(**kwargs)
self.id = None
self.project = None
self.iteration = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from msrest.serialization import Model


class ImagePredictionResultModel(Model):
"""result of an image prediction request.
class ImagePrediction(Model):
"""ImagePrediction.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -28,7 +28,7 @@ class ImagePredictionResultModel(Model):
:vartype created: datetime
:ivar predictions:
:vartype predictions:
list[~azure.cognitiveservices.vision.customvision.prediction.models.ImageTagPredictionModel]
list[~azure.cognitiveservices.vision.customvision.prediction.models.Prediction]
"""

_validation = {
Expand All @@ -40,15 +40,15 @@ class ImagePredictionResultModel(Model):
}

_attribute_map = {
'id': {'key': 'Id', 'type': 'str'},
'project': {'key': 'Project', 'type': 'str'},
'iteration': {'key': 'Iteration', 'type': 'str'},
'created': {'key': 'Created', 'type': 'iso-8601'},
'predictions': {'key': 'Predictions', 'type': '[ImageTagPredictionModel]'},
'id': {'key': 'id', 'type': 'str'},
'project': {'key': 'project', 'type': 'str'},
'iteration': {'key': 'iteration', 'type': 'str'},
'created': {'key': 'created', 'type': 'iso-8601'},
'predictions': {'key': 'predictions', 'type': '[Prediction]'},
}

def __init__(self, **kwargs) -> None:
super(ImagePredictionResultModel, self).__init__(**kwargs)
super(ImagePrediction, self).__init__(**kwargs)
self.id = None
self.project = None
self.iteration = None
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ImageUrl(Model):
"""

_attribute_map = {
'url': {'key': 'Url', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ImageUrl(Model):
"""

_attribute_map = {
'url': {'key': 'Url', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
}

def __init__(self, *, url: str=None, **kwargs) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,40 @@
from msrest.serialization import Model


class ImageTagPrediction(Model):
"""ImageTagPrediction.
class Prediction(Model):
"""Prediction.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar tag_id:
:vartype tag_id: str
:ivar tag:
:vartype tag: str
:ivar probability:
:vartype probability: float
:ivar tag_id:
:vartype tag_id: str
:ivar tag_name:
:vartype tag_name: str
:ivar bounding_box:
:vartype bounding_box:
~azure.cognitiveservices.vision.customvision.prediction.models.BoundingBox
"""

_validation = {
'tag_id': {'readonly': True},
'tag': {'readonly': True},
'probability': {'readonly': True},
'tag_id': {'readonly': True},
'tag_name': {'readonly': True},
'bounding_box': {'readonly': True},
}

_attribute_map = {
'tag_id': {'key': 'TagId', 'type': 'str'},
'tag': {'key': 'Tag', 'type': 'str'},
'probability': {'key': 'Probability', 'type': 'float'},
'probability': {'key': 'probability', 'type': 'float'},
'tag_id': {'key': 'tagId', 'type': 'str'},
'tag_name': {'key': 'tagName', 'type': 'str'},
'bounding_box': {'key': 'boundingBox', 'type': 'BoundingBox'},
}

def __init__(self, **kwargs):
super(ImageTagPrediction, self).__init__(**kwargs)
self.tag_id = None
self.tag = None
super(Prediction, self).__init__(**kwargs)
self.probability = None
self.tag_id = None
self.tag_name = None
self.bounding_box = None
Loading