From 1ce6465f805a6b03f0d45b3284f710c90ccb6918 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 18 Jun 2018 20:58:49 +0000 Subject: [PATCH] Generated from 6492fb4e04a3e5d7330ceccbb9f67e2a839e2290 ComputerVision add tag.hint Hints provided additional info for whole-image analysis tags. This PR is to make the Swagger match the service behavior. --- .../vision/computervision/models/image_tag.py | 4 ++++ .../vision/computervision/models/image_tag_py3.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag.py b/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag.py index 93f349e9d4c0..8e981d8e6121 100644 --- a/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag.py +++ b/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag.py @@ -19,14 +19,18 @@ class ImageTag(Model): :type name: str :param confidence: The level of confidence the service has in the caption :type confidence: float + :param hint: Optional categorization for the tag + :type hint: str """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'confidence': {'key': 'confidence', 'type': 'float'}, + 'hint': {'key': 'hint', 'type': 'str'}, } def __init__(self, **kwargs): super(ImageTag, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.confidence = kwargs.get('confidence', None) + self.hint = kwargs.get('hint', None) diff --git a/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag_py3.py b/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag_py3.py index ed598af42843..62ba57b775b2 100644 --- a/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag_py3.py +++ b/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/image_tag_py3.py @@ -19,14 +19,18 @@ class ImageTag(Model): :type name: str :param confidence: The level of confidence the service has in the caption :type confidence: float + :param hint: Optional categorization for the tag + :type hint: str """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'confidence': {'key': 'confidence', 'type': 'float'}, + 'hint': {'key': 'hint', 'type': 'str'}, } - def __init__(self, *, name: str=None, confidence: float=None, **kwargs) -> None: + def __init__(self, *, name: str=None, confidence: float=None, hint: str=None, **kwargs) -> None: super(ImageTag, self).__init__(**kwargs) self.name = name self.confidence = confidence + self.hint = hint