Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
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