Skip to content
Merged
7 changes: 7 additions & 0 deletions azure-cognitiveservices-search-visualsearch/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

0.2.0 (2018-12-11)
++++++++++++++++++

**Features**

- New parameters market, safe_search and set_lang

0.1.1 (2018-05-04)
++++++++++++++++++

Expand Down
4 changes: 4 additions & 0 deletions azure-cognitiveservices-search-visualsearch/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
include *.rst
include azure/__init__.py
include azure/cognitiveservices/__init__.py
include azure/cognitiveservices/search/__init__.py

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .visual_search_api import VisualSearchAPI
from .visual_search_client import VisualSearchClient
from .version import VERSION

__all__ = ['VisualSearchAPI']
__all__ = ['VisualSearchClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@
from .filters import Filters
from .knowledge_request import KnowledgeRequest
from .visual_search_request import VisualSearchRequest
from .visual_search_api_enums import (
from .visual_search_client_enums import (
Currency,
ItemAvailability,
ErrorCode,
ErrorSubCode,
SafeSearch,
)

__all__ = [
Expand Down Expand Up @@ -146,4 +147,5 @@
'ItemAvailability',
'ErrorCode',
'ErrorSubCode',
'SafeSearch',
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Action(CreativeWork):
"""Action.
"""Defines an action.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ImageAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .creative_work import CreativeWork
from .creative_work_py3 import CreativeWork


class Action(CreativeWork):
"""Action.
"""Defines an action.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ImageAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .offer import Offer
from .offer_py3 import Offer


class AggregateOffer(Offer):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .rating import Rating
from .rating_py3 import Rating


class AggregateRating(Rating):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .thing import Thing
from .thing_py3 import Thing


class CreativeWork(Thing):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .response import Response
from .response_py3 import Response
from msrest.exceptions import HttpOperationError


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .response_base import ResponseBase
from .response_base_py3 import ResponseBase


class Identifiable(ResponseBase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageAction(Action):
"""ImageAction.
"""Defines an image action.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ImageEntityAction, ImageModuleAction, ImageRecipesAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .action import Action
from .action_py3 import Action


class ImageAction(Action):
"""ImageAction.
"""Defines an image action.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: ImageEntityAction, ImageModuleAction, ImageRecipesAction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageEntityAction(ImageAction):
"""ImageEntityAction.
"""Defines an entity action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -67,8 +67,6 @@ class ImageEntityAction(ImageAction):
:vartype service_url: str
:ivar action_type: A string representing the type of action.
:vartype action_type: str
:ivar data: Information about the entity.
:vartype data: ~azure.cognitiveservices.search.visualsearch.models.Thing
"""

_validation = {
Expand All @@ -91,7 +89,6 @@ class ImageEntityAction(ImageAction):
'is_top_action': {'readonly': True},
'service_url': {'readonly': True},
'action_type': {'readonly': True},
'data': {'readonly': True},
}

_attribute_map = {
Expand All @@ -114,10 +111,8 @@ class ImageEntityAction(ImageAction):
'is_top_action': {'key': 'isTopAction', 'type': 'bool'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
'action_type': {'key': 'actionType', 'type': 'str'},
'data': {'key': 'data', 'type': 'Thing'},
}

def __init__(self, **kwargs):
super(ImageEntityAction, self).__init__(**kwargs)
self.data = None
self._type = 'ImageEntityAction'
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .image_action import ImageAction
from .image_action_py3 import ImageAction


class ImageEntityAction(ImageAction):
"""ImageEntityAction.
"""Defines an entity action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -67,8 +67,6 @@ class ImageEntityAction(ImageAction):
:vartype service_url: str
:ivar action_type: A string representing the type of action.
:vartype action_type: str
:ivar data: Information about the entity.
:vartype data: ~azure.cognitiveservices.search.visualsearch.models.Thing
"""

_validation = {
Expand All @@ -91,7 +89,6 @@ class ImageEntityAction(ImageAction):
'is_top_action': {'readonly': True},
'service_url': {'readonly': True},
'action_type': {'readonly': True},
'data': {'readonly': True},
}

_attribute_map = {
Expand All @@ -114,10 +111,8 @@ class ImageEntityAction(ImageAction):
'is_top_action': {'key': 'isTopAction', 'type': 'bool'},
'service_url': {'key': 'serviceUrl', 'type': 'str'},
'action_type': {'key': 'actionType', 'type': 'str'},
'data': {'key': 'data', 'type': 'Thing'},
}

def __init__(self, **kwargs) -> None:
super(ImageEntityAction, self).__init__(**kwargs)
self.data = None
self._type = 'ImageEntityAction'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageKnowledge(Response):
"""ImageKnowledge.
"""Defines a visual search API response.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .response import Response
from .response_py3 import Response


class ImageKnowledge(Response):
"""ImageKnowledge.
"""Defines a visual search API response.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageModuleAction(ImageAction):
"""ImageModuleAction.
"""Defines an image list action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .image_action import ImageAction
from .image_action_py3 import ImageAction


class ImageModuleAction(ImageAction):
"""ImageModuleAction.
"""Defines an image list action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ImageObject(MediaObject):
:ivar content_size: Size of the media object content. Use format "value
unit" (e.g., "1024 B").
:vartype content_size: str
:ivar encoding_format: Encoding format (e.g., mp3, mp4, jpeg, etc).
:ivar encoding_format: Encoding format (e.g., png, gif, jpeg, etc).
:vartype encoding_format: str
:ivar host_page_display_url: Display URL of the page that hosts the media
object.
Expand All @@ -83,7 +83,7 @@ class ImageObject(MediaObject):
image is of an apple pie, this object includes a count of the number of
websites where you can buy an apple pie. To indicate the number of offers
in your UX, include badging such as a shopping cart icon that contains the
count. When the user clicks on the icon, use imageInisghtsToken in a
count. When the user clicks on the icon, use imageInsightsToken in a
subsequent Visual Search API call to get the list of shopping websites.
:vartype insights_metadata:
~azure.cognitiveservices.search.visualsearch.models.ImagesImageMetadata
Expand All @@ -93,7 +93,7 @@ class ImageObject(MediaObject):
color that dominates the image. Use the color as the temporary background
in your client until the image is loaded.
:vartype accent_color: str
:ivar visual_words: For interal use only.
:ivar visual_words: For internal use only.
:vartype visual_words: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .media_object import MediaObject
from .media_object_py3 import MediaObject


class ImageObject(MediaObject):
Expand Down Expand Up @@ -61,7 +61,7 @@ class ImageObject(MediaObject):
:ivar content_size: Size of the media object content. Use format "value
unit" (e.g., "1024 B").
:vartype content_size: str
:ivar encoding_format: Encoding format (e.g., mp3, mp4, jpeg, etc).
:ivar encoding_format: Encoding format (e.g., png, gif, jpeg, etc).
:vartype encoding_format: str
:ivar host_page_display_url: Display URL of the page that hosts the media
object.
Expand All @@ -83,7 +83,7 @@ class ImageObject(MediaObject):
image is of an apple pie, this object includes a count of the number of
websites where you can buy an apple pie. To indicate the number of offers
in your UX, include badging such as a shopping cart icon that contains the
count. When the user clicks on the icon, use imageInisghtsToken in a
count. When the user clicks on the icon, use imageInsightsToken in a
subsequent Visual Search API call to get the list of shopping websites.
:vartype insights_metadata:
~azure.cognitiveservices.search.visualsearch.models.ImagesImageMetadata
Expand All @@ -93,7 +93,7 @@ class ImageObject(MediaObject):
color that dominates the image. Use the color as the temporary background
in your client until the image is loaded.
:vartype accent_color: str
:ivar visual_words: For interal use only.
:ivar visual_words: For internal use only.
:vartype visual_words: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageRecipesAction(ImageAction):
"""ImageRecipesAction.
"""Defines an recipe action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .image_action import ImageAction
from .image_action_py3 import ImageAction


class ImageRecipesAction(ImageAction):
"""ImageRecipesAction.
"""Defines an recipe action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageRelatedSearchesAction(ImageAction):
"""ImageRelatedSearchesAction.
"""Defines an related search action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .image_action import ImageAction
from .image_action_py3 import ImageAction


class ImageRelatedSearchesAction(ImageAction):
"""ImageRelatedSearchesAction.
"""Defines an related search action.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ImageShoppingSourcesAction(ImageAction):
"""ImageShoppingSourcesAction.
"""Defines a shopping sources action.

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