forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
3,729 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. :changelog: | ||
Release History | ||
=============== | ||
|
||
0.1.0 (1970-01-01) | ||
++++++++++++++++++ | ||
|
||
* Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include *.rst | ||
include azure_bdist_wheel.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure Cognitive Services Video Search Client Library. | ||
|
||
This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6. | ||
|
||
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package. | ||
|
||
|
||
Compatibility | ||
============= | ||
|
||
**IMPORTANT**: If you have an earlier version of the azure package | ||
(version < 1.0), you should uninstall it before installing this package. | ||
|
||
You can check the version using pip: | ||
|
||
.. code:: shell | ||
pip freeze | ||
If you see azure==0.11.0 (or any version below 1.0), uninstall it first: | ||
|
||
.. code:: shell | ||
pip uninstall azure | ||
Provide Feedback | ||
================ | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__ | ||
section of the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
1 change: 1 addition & 0 deletions
1
azure-cognitiveservices-search-videosearch/azure/cognitiveservices/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
1 change: 1 addition & 0 deletions
1
azure-cognitiveservices-search-videosearch/azure/cognitiveservices/search/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
18 changes: 18 additions & 0 deletions
18
...gnitiveservices-search-videosearch/azure/cognitiveservices/search/videosearch/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 .video_search_api import VideoSearchAPI | ||
from .version import VERSION | ||
|
||
__all__ = ['VideoSearchAPI'] | ||
|
||
__version__ = VERSION | ||
|
182 changes: 182 additions & 0 deletions
182
...ognitiveservices-search-videosearch/azure/cognitiveservices/search/videosearch/build.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
{ | ||
"autorest": [ | ||
{ | ||
"resolvedInfo": null, | ||
"packageMetadata": { | ||
"name": "@microsoft.azure/autorest-core", | ||
"version": "2.0.4168", | ||
"engines": { | ||
"node": ">=7.10.0" | ||
}, | ||
"dependencies": {}, | ||
"optionalDependencies": {}, | ||
"devDependencies": { | ||
"@microsoft.azure/async-io": "~1.0.22", | ||
"@microsoft.azure/extension": "~1.2.12", | ||
"@types/commonmark": "^0.27.0", | ||
"@types/jsonpath": "^0.1.29", | ||
"@types/node": "^8.0.28", | ||
"@types/pify": "0.0.28", | ||
"@types/source-map": "^0.5.0", | ||
"@types/yargs": "^8.0.2", | ||
"commonmark": "^0.27.0", | ||
"file-url": "^2.0.2", | ||
"get-uri": "^2.0.0", | ||
"jsonpath": "^0.2.11", | ||
"linq-es2015": "^2.4.25", | ||
"mocha": "3.4.2", | ||
"mocha-typescript": "1.1.5", | ||
"pify": "^3.0.0", | ||
"safe-eval": "^0.3.0", | ||
"shx": "^0.2.2", | ||
"source-map": "^0.5.6", | ||
"source-map-support": "^0.4.15", | ||
"strip-bom": "^3.0.0", | ||
"typescript": "2.5.3", | ||
"untildify": "^3.0.2", | ||
"urijs": "^1.18.10", | ||
"vscode-jsonrpc": "^3.3.1", | ||
"yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", | ||
"yargs": "^8.0.2" | ||
}, | ||
"bundleDependencies": false, | ||
"peerDependencies": {}, | ||
"deprecated": false, | ||
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", | ||
"_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", | ||
"_shrinkwrap": null, | ||
"bin": null, | ||
"_id": "@microsoft.azure/autorest-core@2.0.4168", | ||
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", | ||
"_requested": { | ||
"type": "directory", | ||
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk", | ||
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", | ||
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", | ||
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", | ||
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" | ||
}, | ||
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", | ||
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core" | ||
}, | ||
"extensionManager": { | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest", | ||
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet" | ||
}, | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest" | ||
}, | ||
{ | ||
"resolvedInfo": null, | ||
"packageMetadata": { | ||
"name": "@microsoft.azure/autorest.modeler", | ||
"version": "2.1.22", | ||
"dependencies": { | ||
"dotnet-2.0.0": "^1.4.4" | ||
}, | ||
"optionalDependencies": {}, | ||
"devDependencies": { | ||
"coffee-script": "^1.11.1", | ||
"dotnet-sdk-2.0.0": "^1.4.4", | ||
"gulp": "^3.9.1", | ||
"gulp-filter": "^5.0.0", | ||
"gulp-line-ending-corrector": "^1.0.1", | ||
"iced-coffee-script": "^108.0.11", | ||
"marked": "^0.3.6", | ||
"marked-terminal": "^2.0.0", | ||
"moment": "^2.17.1", | ||
"run-sequence": "*", | ||
"shx": "^0.2.2", | ||
"through2-parallel": "^0.1.3", | ||
"yargs": "^8.0.2", | ||
"yarn": "^1.0.2" | ||
}, | ||
"bundleDependencies": false, | ||
"peerDependencies": {}, | ||
"deprecated": false, | ||
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", | ||
"_shasum": "ca425289fa38a210d279729048a4a91673f09c67", | ||
"_shrinkwrap": null, | ||
"bin": null, | ||
"_id": "@microsoft.azure/autorest.modeler@2.1.22", | ||
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", | ||
"_requested": { | ||
"type": "directory", | ||
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk", | ||
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", | ||
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", | ||
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", | ||
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" | ||
}, | ||
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", | ||
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler" | ||
}, | ||
"extensionManager": { | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest", | ||
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet" | ||
}, | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest" | ||
}, | ||
{ | ||
"resolvedInfo": null, | ||
"packageMetadata": { | ||
"name": "@microsoft.azure/autorest.python", | ||
"version": "2.0.19", | ||
"dependencies": { | ||
"dotnet-2.0.0": "^1.4.4" | ||
}, | ||
"optionalDependencies": {}, | ||
"devDependencies": { | ||
"@microsoft.azure/autorest.testserver": "^1.9.0", | ||
"autorest": "^2.0.0", | ||
"coffee-script": "^1.11.1", | ||
"dotnet-sdk-2.0.0": "^1.4.4", | ||
"gulp": "^3.9.1", | ||
"gulp-filter": "^5.0.0", | ||
"gulp-line-ending-corrector": "^1.0.1", | ||
"iced-coffee-script": "^108.0.11", | ||
"marked": "^0.3.6", | ||
"marked-terminal": "^2.0.0", | ||
"moment": "^2.17.1", | ||
"run-sequence": "*", | ||
"shx": "^0.2.2", | ||
"through2-parallel": "^0.1.3", | ||
"yargs": "^8.0.2", | ||
"yarn": "^1.0.2" | ||
}, | ||
"bundleDependencies": false, | ||
"peerDependencies": {}, | ||
"deprecated": false, | ||
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", | ||
"_shasum": "e069166c16fd903c8e1fdf9395b433f3043cb6e3", | ||
"_shrinkwrap": null, | ||
"bin": null, | ||
"_id": "@microsoft.azure/autorest.python@2.0.19", | ||
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", | ||
"_requested": { | ||
"type": "directory", | ||
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk", | ||
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", | ||
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", | ||
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", | ||
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" | ||
}, | ||
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", | ||
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python" | ||
}, | ||
"extensionManager": { | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest", | ||
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet" | ||
}, | ||
"installationPath": "C:\\Users\\lmazuel\\.autorest" | ||
} | ||
], | ||
"autorest_bootstrap": { | ||
"dependencies": { | ||
"autorest": { | ||
"version": "2.0.4166", | ||
"from": "autorest", | ||
"resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4166.tgz" | ||
} | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...services-search-videosearch/azure/cognitiveservices/search/videosearch/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# 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 .image_object import ImageObject | ||
from .video_object import VideoObject | ||
from .query import Query | ||
from .pivot_suggestions import PivotSuggestions | ||
from .videos import Videos | ||
from .search_results_answer import SearchResultsAnswer | ||
from .answer import Answer | ||
from .query_context import QueryContext | ||
from .media_object import MediaObject | ||
from .response import Response | ||
from .thing import Thing | ||
from .creative_work import CreativeWork | ||
from .identifiable import Identifiable | ||
from .error import Error | ||
from .error_response import ErrorResponse, ErrorResponseException | ||
from .trending_videos_tile import TrendingVideosTile | ||
from .trending_videos_subcategory import TrendingVideosSubcategory | ||
from .trending_videos_category import TrendingVideosCategory | ||
from .trending_videos import TrendingVideos | ||
from .videos_module import VideosModule | ||
from .video_details import VideoDetails | ||
from .response_base import ResponseBase | ||
from .video_search_api_enums import ( | ||
VideoQueryScenario, | ||
ErrorCode, | ||
ErrorSubCode, | ||
Freshness, | ||
VideoLength, | ||
VideoPricing, | ||
VideoResolution, | ||
SafeSearch, | ||
TextFormat, | ||
VideoInsightModule, | ||
) | ||
|
||
__all__ = [ | ||
'ImageObject', | ||
'VideoObject', | ||
'Query', | ||
'PivotSuggestions', | ||
'Videos', | ||
'SearchResultsAnswer', | ||
'Answer', | ||
'QueryContext', | ||
'MediaObject', | ||
'Response', | ||
'Thing', | ||
'CreativeWork', | ||
'Identifiable', | ||
'Error', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'TrendingVideosTile', | ||
'TrendingVideosSubcategory', | ||
'TrendingVideosCategory', | ||
'TrendingVideos', | ||
'VideosModule', | ||
'VideoDetails', | ||
'ResponseBase', | ||
'VideoQueryScenario', | ||
'ErrorCode', | ||
'ErrorSubCode', | ||
'Freshness', | ||
'VideoLength', | ||
'VideoPricing', | ||
'VideoResolution', | ||
'SafeSearch', | ||
'TextFormat', | ||
'VideoInsightModule', | ||
] |
56 changes: 56 additions & 0 deletions
56
...veservices-search-videosearch/azure/cognitiveservices/search/videosearch/models/answer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# 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 .response import Response | ||
|
||
|
||
class Answer(Response): | ||
"""Answer. | ||
You probably want to use the sub-classes and not this class directly. Known | ||
sub-classes are: SearchResultsAnswer | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:param _type: Constant filled by server. | ||
:type _type: str | ||
:ivar id: A String identifier. | ||
:vartype id: str | ||
:ivar web_search_url: The URL To Bing's search result for this item. | ||
:vartype web_search_url: str | ||
:ivar follow_up_queries: | ||
:vartype follow_up_queries: | ||
list[~azure.cognitiveservices.search.videosearch.models.Query] | ||
""" | ||
|
||
_validation = { | ||
'_type': {'required': True}, | ||
'id': {'readonly': True}, | ||
'web_search_url': {'readonly': True}, | ||
'follow_up_queries': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'_type': {'key': '_type', 'type': 'str'}, | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, | ||
'follow_up_queries': {'key': 'followUpQueries', 'type': '[Query]'}, | ||
} | ||
|
||
_subtype_map = { | ||
'_type': {'SearchResultsAnswer': 'SearchResultsAnswer'} | ||
} | ||
|
||
def __init__(self): | ||
super(Answer, self).__init__() | ||
self.follow_up_queries = None | ||
self._type = 'Answer' |
Oops, something went wrong.