Skip to content

Commit

Permalink
Generated from 6492fb4e04a3e5d7330ceccbb9f67e2a839e2290 (#2775)
Browse files Browse the repository at this point in the history
ComputerVision add tag.hint

Hints provided additional info for whole-image analysis tags.
This PR is to make the Swagger match the service behavior.
  • Loading branch information
AutorestCI committed Jun 21, 2018
1 parent bee4351 commit 6b6469b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b6469b

Please sign in to comment.