diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py index a56377ebc3b5..789ec3e7942d 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/__init__.py @@ -13,7 +13,9 @@ from .tag import Tag from .frame import Frame from .frames import Frames -from .score import Score +from .classification_category1 import ClassificationCategory1 +from .classification_category2 import ClassificationCategory2 +from .classification_category3 import ClassificationCategory3 from .classification import Classification from .status import Status from .email import Email @@ -76,7 +78,9 @@ 'Tag', 'Frame', 'Frames', - 'Score', + 'ClassificationCategory1', + 'ClassificationCategory2', + 'ClassificationCategory3', 'Classification', 'Status', 'Email', diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py index 059f395b3e68..5040159dc2ea 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification.py @@ -15,23 +15,29 @@ class Classification(Model): """The classification details of the text. - :param category1: + :param category1: The category1 score details of the text. Click here for more + details on category classification. :type category1: - ~azure.cognitiveservices.vision.contentmoderator.models.Score - :param category2: + ~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory1 + :param category2: The category2 score details of the text. Click here for more + details on category classification. :type category2: - ~azure.cognitiveservices.vision.contentmoderator.models.Score - :param category3: + ~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory2 + :param category3: The category3 score details of the text. Click here for more + details on category classification. :type category3: - ~azure.cognitiveservices.vision.contentmoderator.models.Score + ~azure.cognitiveservices.vision.contentmoderator.models.ClassificationCategory3 :param review_recommended: The review recommended flag. :type review_recommended: bool """ _attribute_map = { - 'category1': {'key': 'Category1', 'type': 'Score'}, - 'category2': {'key': 'Category2', 'type': 'Score'}, - 'category3': {'key': 'Category3', 'type': 'Score'}, + 'category1': {'key': 'Category1', 'type': 'ClassificationCategory1'}, + 'category2': {'key': 'Category2', 'type': 'ClassificationCategory2'}, + 'category3': {'key': 'Category3', 'type': 'ClassificationCategory3'}, 'review_recommended': {'key': 'ReviewRecommended', 'type': 'bool'}, } diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category1.py similarity index 81% rename from azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py rename to azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category1.py index 4ed9e7e12641..0e6c93d586db 100644 --- a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/score.py +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category1.py @@ -12,12 +12,12 @@ from msrest.serialization import Model -class Score(Model): - """The classification score details of the text. Click here for more details on category classification. - :param score: The category score. + :param score: The category1 score. :type score: float """ @@ -26,5 +26,5 @@ class Score(Model): } def __init__(self, score=None): - super(Score, self).__init__() + super(ClassificationCategory1, self).__init__() self.score = score diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category2.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category2.py new file mode 100644 index 000000000000..e3dbc3b5cff0 --- /dev/null +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category2.py @@ -0,0 +1,30 @@ +# 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 ClassificationCategory2(Model): + """The category2 score details of the text. Click here for more + details on category classification. + + :param score: The category2 score. + :type score: float + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + } + + def __init__(self, score=None): + super(ClassificationCategory2, self).__init__() + self.score = score diff --git a/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category3.py b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category3.py new file mode 100644 index 000000000000..717136455848 --- /dev/null +++ b/azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/models/classification_category3.py @@ -0,0 +1,30 @@ +# 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 ClassificationCategory3(Model): + """The category3 score details of the text. Click here for more + details on category classification. + + :param score: The category3 score. + :type score: float + """ + + _attribute_map = { + 'score': {'key': 'Score', 'type': 'float'}, + } + + def __init__(self, score=None): + super(ClassificationCategory3, self).__init__() + self.score = score