Skip to content

Commit 8a7eb7d

Browse files
authored
[AutoPR network/resource-manager] Revert "Swagger changes for App Gw Server Variables APIs" (#4068)
* [AutoPR] network/resource-manager (#3779) * Generated from 52981377b86caf85843799cd4294ec9101af0dcf (#3777) Make NIC VM readOnly * [AutoPR network/resource-manager] [Portal Generated] Review request for Microsoft.Network to add version 2018-10-01 (#3718) * Generated from 1c4c94911c840bcab2e7e7541433713f9de4a819 Updates API version in new specs and examples * Packaging update of azure-mgmt-network * Generated from dd13fa490b5666f900241da864fd4213652d1770 (#3776) Make NIC VM ref readonly * Generated from a8dc3164dab1737d09b57c3ada8c1132aaddfd66 (#3794) change container nics property type on container nic config to resourceid * Generated from a18fe30f1349bb8e07d0ec1f3bf977b0e70d48a0 Revert "Model ContainerNic refs under ContainerNicConfig as sub resources" (#4467) * Revert "Application Gateway - Adds Rewrite rule set for Header CRUD (#4331)" This reverts commit 633d12d5b552b102f874182b8f50266eb97fdc85. * Revert "Port fix from PR 4459 to 2018-10-01 (#4463)" This reverts commit 5ea0c7b8bcf16d992bb1f2b5f3b52208354a4391. * Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from a34ad413b26c915dad887c853358c77b1c76ee5a (#3798) Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from f321a6cb703b15bbe927a4b34005830c495c4e34 Fixes the missing array for the header actions (#4497) * Generated from 8f92958053478b5df8f9489654192a68a1532578 Network py 2018-10 * Generated from e58229772d0b26de18f701e416410521e358bb00 Application gateway Identity and Keyvault support (#4387) * identity and keyvault * Capitalization comment * Generated from 428b52b308b52edc6e1dd617cb96ba8ee59e7b92 (#3842) Capitalization comment * Generated from 3749af17da52fd48f69870d8bacc577a54650ad1 (#3861) Ported fix from master branch * Rebuild by #3779 * 2018-10-01 as new latest * 2.4.0 * Network 2018-10-01 test re-recordings * Generated from b9c1d4353fbd76618c6f3f73d9d5e0b508b843e5 (#3884) Add support for list api for global reach connections * [AutoPR] sqlvirtualmachine/resource-manager (#3810) * [AutoPR sqlvirtualmachine/resource-manager] [Do Not Merge] New Swagger specification for Microsoft.SqlVirtualMachine Resource Provider. (#3748) * Generated from 5e8b28090177ca4a22ae577fdecc8f4bae4ebcd0 Addressing code review comments, adding readme file * Packaging update of azure-mgmt-sqlvirtualmachine * Generated from f2820727481088045e25bda0ffe17cd71e304d2c Addressing code review comments * Generated from 5fb1ee8844dbe6df07569a955405beda98f63e59 Addressing comments * Packaging * Packaging update of azure-mgmt-sqlvirtualmachine * Update version.py * [AutoPR] sqlvirtualmachine/resource-manager (#4020) * [AutoPR sqlvirtualmachine/resource-manager] [Portal Generated] Review request for Microsoft.SqlVirtualMachine to add version 2017-03-01-preview (#3982) * Generated from 8cf04559ccfe6540af242b9977aaac00c2d8a3cc Updating the swagger * Generated from 5ea83941799d7a33a652fbec840c663b2161232e Moving property to the end of the object * Update version.py * ChangeLog * [AutoPR] servicefabric/data-plane (#3865) * [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric/servicefabric (#3848) * Generated from cebed9a01f5c0a1a57c6a8b4108d08e6ce853dd7 typo: servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric - specificed -> specified - sucessful -> successful - resturns -> returns - commited -> committed - Double word "maximum" - Double word "with" * Packaging update of azure-servicefabric * [AutoPR servicefabric/data-plane] Swagger specification for Service Fabric runtime version 6.4 (#3898) * Generated from 6415c5920fc51ac978815e71c12089643a219c49 Swagger specification for Service Fabric runtime version 6.4 * Generated from c69b3d22ae7f74ae4932d3fdce146ff567441664 fix typos specificed -> specified, sucessful -> successful, resturns -> returns, commited -> committed, Double word "maximum", Double word "with" * Generated from 494e01db96f17beb1d349ab74358274971b26d08 remove invalid character * [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric (#4000) * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Update HISTORY.rst * Update sdk_packaging.toml * Packaging update of azure-servicefabric * [AutoPR] containerregistry/resource-manager (#3909) * [AutoPR containerregistry/resource-manager] [ACR] Add empty resource group name validation, minor cleanup (#3832) * Generated from 404ce04b1a1c4cac92a67328f319a021f320935a Add empty resource group name validation, minor cleanup * Generated from 9f8eefc2216772a9f2713725aec5ba1b92c26104 Add network rule set properties, empty resource group validation * Generated from 4acb1b6d259fdd431a87a4d4f3ce25458432078c Fix network rule set default value * Generated from 43b818a4578f6fa9b0237aad66b14d896ff6a614 Fix resource group name * Generated from 3e12549e66336e4ca6fa81b49aaf9ed7d2797cce Add network rule set properties, empty resource group validation * Generated from dd007e2442dd2126ce789aaad017872ea4adaa1e Add a missing comma * Update version.py * Update HISTORY.rst * [AutoPR] logic/resource-manager (#2782) * Generated from 95a292d7110d9797050ecf6a7305199ae4fe2d1a (#2777) Adding in description of available filter options * Generated from 67a236748ca1406e2afe69d99f39a1c1bb7167c9 (#3118) Fix for extra / on the end of the triggers endpoint * Generated from 989e7b0c282b2fd93eda33260b929a28ae975cbe (#3191) Remove extra prep files, update the readme * [AutoPR logic/resource-manager] Change some string modelled enums back into enums (#3237) * Generated from 2b946c42fe05c892efee90f150c5b2b7897d9e8d Change some string modelled enums back into enums * Generated from c016726b2b4438bf45bdbebe25f68a67330478b0 Change EDIFACT back to be an enum, not a string * Packaging update of azure-mgmt-logic * Generated from 14736179143e9c45f99655ed4066c1ff36c6a98e (#3319) Remove default response from Sessions to bring them inline with the remaining artifacts * [AutoPR logic/resource-manager] Add 2 missing endpoints to newest versions Microsoft.Logic (#3693) * Generated from 6533a0dd2a5dfbe7ec76f3f2b6c407c876d4315d Add missing endpoints to newest versions * Packaging update of azure-mgmt-logic * Generated from 09ee5609f7e335c47444a741f70625da9ce05630 Changing copy error of POST to GET. Added missing page links * Generated from 1bbdab407fa1f6f3e68f40d006d153dcea4a0b44 Fix for top level properties errir * Generated from 7ecc9d663ef1e01cd44bd527cc11dfc3f07f6bcb Rename CloudError to not a potentially reserved name and removed the x-ms-external flag * Generated from 91bb28bda57ea3c1098996d219975365b5499509 Use already existing error response object * Generated from 469707fc77ddb1e4989140acd566312a7f170318 (#3807) Don't make ResourceReference id readonly, it's causing a bug in the SDK where an Logic Apps with integration accounts can't be saved * Packaging update of azure-mgmt-logic * Generated from 145604c497541dd3ed7dc990057d1ed6e18513ba (#3995) Bugfix for swagger/sdk not matching the underlying service API * Update version.py * ChangeLog * Record with latest API * [AutoPR] cognitiveservices/data-plane/CustomWebSearch (#2597) * Generated from 8f44fce8ff071d239a14dbb1e074d39dccf38b3d (#2578) renaming custom search to custom web search * Generated from 59d29e5b9ede1195ac7ef5b826889226ad9a240d (#3771) Py conf in its own file * Update version.py * Deprecated file * ChangeLog * Packaging update of azure-cognitiveservices-search-customsearch * Update sdk_packaging.toml * Packaging update of azure-cognitiveservices-search-customsearch * Update HISTORY.rst * [AutoPR] hdinsight/resource-manager (#3460) * [AutoPR hdinsight/resource-manager] [HDInsight] Added additional parameters for security profile (#3440) * Generated from 8bf74387f7be3983a5b31f6957ef4c289cd795c4 [HDInsight] Added additional parameters for security profile * Packaging update of azure-mgmt-hdinsight * Generated from f99eb282c2ff4d338081525e31c0951f2a521332 (#3550) Added HDInsight support for MSI * [HDInsight] Rerecorded tests * Packaging update of azure-mgmt-hdinsight * Generated from 4470c45fbc3ee7fef05111908a961c64dec8f97f (#3721) Fixed non-existent extra parameter (bug) * Generated from de07e1b451ebc32e2150c85225702957853cccaf (#3785) [HDInsight] - Support KV URL * Packaging update of azure-mgmt-hdinsight * [HDInsight] - Generate code for API version package-2018-06-preview (#4023) * Rebuild by #3460 * 0.2.0 * [AutoPR] cognitiveservices/data-plane/CustomImageSearch (#2555) * [AutoPR cognitiveservices/data-plane/CustomImageSearch] Adding custom image search swagger spec (#2514) * Generated from c9d4d41fb69f65f205c2ecbcdde8d1d1262ecbb7 Adding custom image search * Generated from 9f5bcc92bfd5f05be333758d433ffa36c96e40a2 Adding custom image search * Generated from e8d819e50515f9b0ba463341a2a38b3a9ebc6210 Adding custom image search * Packaging update of azure-cognitiveservices-search-customimagesearch * Update packaging info for Custom Image Search * Packaging update of azure-cognitiveservices-search-customimagesearch * Update version.py * Update HISTORY.rst * Packaging details fix (#4048) * [AutoPR] containerservices/resource-manager (#3378) * Generated from 19c94f3e6c0b83241ce012d44f5db47765d5e6a4 (#3376) Remove serverAppSecret which is not required for AKS cluster updates * [AutoPR containerservices/resource-manager] Support two apiversion for container service (#3618) * Generated from 663fe8f24bfa51bd8ea47b8e047d1c7d27dd776d rebase and resolve conflict * Packaging update of azure-mgmt-containerservice * Generated from 902f5cc7a0d60d80fd13c9cf75c5081aac3e69d9 add osMC resource in the readme * Generated from 3f9220b29a0180bf1a037013514ea859e6a0bf22 add listcredential api back * Packaging update of azure-mgmt-containerservice * Generated from de4b057ff9497a76da9201e5a339fa4f90022320 Merge branch 'support-two-apiversion' of github.com:zqingqing1/azure-rest-api-specs into support-two-apiversion * Generated from feb703f2baba9455e3f4e671fc7ef0479111392f change default tag to 2018-09-30-preview * Generated from 6da165da530980a01c317254a5807602731621df udpate tag to lastest version * Packaging update of azure-mgmt-containerservice * ACS multi-api * ACS 4.3.0 * [AutoPR containerservices/resource-manager] ContainerServices - OpenShift - Add new routes and update (#3891) * Generated from 6b22760d25bbe32479e70eb08a6222f9e4157b50 remove private preview count limitations * Generated from ad95dc3aa4cc2e6d9948b79432cf1ac9c0d50641 Update description to remove min and max limitations * Update HISTORY.rst * Generated from f2e0fa789dbdbdb599809b597bf3c778be91e9d7 Revert "Swagger changes for App Gw Server Variables APIs (#4345)" This reverts commit 1a5e0f4e76a901d9813609370a7e8571c253dffc.
1 parent 43c6b15 commit 8a7eb7d

File tree

879 files changed

+29571
-8586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

879 files changed

+29571
-8586
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/azure-mgmt-datalake-store/ @ro-joowan
1919
/azure-mgmt-datamigration/ @vchske
2020
/azure-mgmt-eventgrid/ @kalyanaj
21-
/azure-mgmt-hdinsight/ @wawon-msft
21+
/azure-mgmt-hdinsight/ @idear1203
2222
/azure-mgmt-keyvault/ @schaabs
2323
/azure-mgmt-machinelearningcompute/ @shutchings
2424
/azure-mgmt-recoveryservices/ @DheerendraRathor
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0 (2018-12-11)
7+
++++++++++++++++++
8+
9+
* Initial Release
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include *.rst
2+
include azure/__init__.py
3+
include azure/cognitiveservices/__init__.py
4+
include azure/cognitiveservices/search/__init__.py
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure Cognitive Services Custom Image Search Client Library.
5+
6+
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
7+
8+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
9+
10+
11+
Compatibility
12+
=============
13+
14+
**IMPORTANT**: If you have an earlier version of the azure package
15+
(version < 1.0), you should uninstall it before installing this package.
16+
17+
You can check the version using pip:
18+
19+
.. code:: shell
20+
21+
pip freeze
22+
23+
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
24+
25+
.. code:: shell
26+
27+
pip uninstall azure
28+
29+
30+
Usage
31+
=====
32+
33+
For code examples, see `Cognitive Services Custom Image Search
34+
<https://docs.microsoft.com/python/api/overview/azure/cognitive-services>`__
35+
on docs.microsoft.com.
36+
37+
38+
Provide Feedback
39+
================
40+
41+
If you encounter any bugs or have suggestions, please file an issue in the
42+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
43+
section of the project.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .custom_image_search_api import CustomImageSearchAPI
13+
from .version import VERSION
14+
15+
__all__ = ['CustomImageSearchAPI']
16+
17+
__version__ = VERSION
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Configuration, Serializer, Deserializer
14+
from .version import VERSION
15+
from .operations.custom_instance_operations import CustomInstanceOperations
16+
from . import models
17+
18+
19+
class CustomImageSearchAPIConfiguration(Configuration):
20+
"""Configuration for CustomImageSearchAPI
21+
Note that all parameters used to create this instance are saved as instance
22+
attributes.
23+
24+
:param credentials: Subscription credentials which uniquely identify
25+
client subscription.
26+
:type credentials: None
27+
:param str base_url: Service URL
28+
"""
29+
30+
def __init__(
31+
self, credentials, base_url=None):
32+
33+
if credentials is None:
34+
raise ValueError("Parameter 'credentials' must not be None.")
35+
if not base_url:
36+
base_url = 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0'
37+
38+
super(CustomImageSearchAPIConfiguration, self).__init__(base_url)
39+
40+
self.add_user_agent('azure-cognitiveservices-search-customimagesearch/{}'.format(VERSION))
41+
42+
self.credentials = credentials
43+
44+
45+
class CustomImageSearchAPI(SDKClient):
46+
"""The Bing Custom Image Search API lets you send an image search query to Bing and get back image search results customized to meet your custom search definition.
47+
48+
:ivar config: Configuration for client.
49+
:vartype config: CustomImageSearchAPIConfiguration
50+
51+
:ivar custom_instance: CustomInstance operations
52+
:vartype custom_instance: azure.cognitiveservices.search.customimagesearch.operations.CustomInstanceOperations
53+
54+
:param credentials: Subscription credentials which uniquely identify
55+
client subscription.
56+
:type credentials: None
57+
:param str base_url: Service URL
58+
"""
59+
60+
def __init__(
61+
self, credentials, base_url=None):
62+
63+
self.config = CustomImageSearchAPIConfiguration(credentials, base_url)
64+
super(CustomImageSearchAPI, self).__init__(self.config.credentials, self.config)
65+
66+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
67+
self.api_version = '1.0'
68+
self._serialize = Serializer(client_models)
69+
self._deserialize = Deserializer(client_models)
70+
71+
self.custom_instance = CustomInstanceOperations(
72+
self._client, self.config, self._serialize, self._deserialize)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from .image_object_py3 import ImageObject
14+
from .images_py3 import Images
15+
from .search_results_answer_py3 import SearchResultsAnswer
16+
from .query_py3 import Query
17+
from .answer_py3 import Answer
18+
from .media_object_py3 import MediaObject
19+
from .response_py3 import Response
20+
from .thing_py3 import Thing
21+
from .creative_work_py3 import CreativeWork
22+
from .identifiable_py3 import Identifiable
23+
from .error_py3 import Error
24+
from .error_response_py3 import ErrorResponse, ErrorResponseException
25+
from .web_page_py3 import WebPage
26+
from .response_base_py3 import ResponseBase
27+
except (SyntaxError, ImportError):
28+
from .image_object import ImageObject
29+
from .images import Images
30+
from .search_results_answer import SearchResultsAnswer
31+
from .query import Query
32+
from .answer import Answer
33+
from .media_object import MediaObject
34+
from .response import Response
35+
from .thing import Thing
36+
from .creative_work import CreativeWork
37+
from .identifiable import Identifiable
38+
from .error import Error
39+
from .error_response import ErrorResponse, ErrorResponseException
40+
from .web_page import WebPage
41+
from .response_base import ResponseBase
42+
from .custom_image_search_api_enums import (
43+
ErrorCode,
44+
ErrorSubCode,
45+
ImageAspect,
46+
ImageColor,
47+
Freshness,
48+
ImageContent,
49+
ImageType,
50+
ImageLicense,
51+
SafeSearch,
52+
ImageSize,
53+
)
54+
55+
__all__ = [
56+
'ImageObject',
57+
'Images',
58+
'SearchResultsAnswer',
59+
'Query',
60+
'Answer',
61+
'MediaObject',
62+
'Response',
63+
'Thing',
64+
'CreativeWork',
65+
'Identifiable',
66+
'Error',
67+
'ErrorResponse', 'ErrorResponseException',
68+
'WebPage',
69+
'ResponseBase',
70+
'ErrorCode',
71+
'ErrorSubCode',
72+
'ImageAspect',
73+
'ImageColor',
74+
'Freshness',
75+
'ImageContent',
76+
'ImageType',
77+
'ImageLicense',
78+
'SafeSearch',
79+
'ImageSize',
80+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .response import Response
13+
14+
15+
class Answer(Response):
16+
"""Defines an answer.
17+
18+
You probably want to use the sub-classes and not this class directly. Known
19+
sub-classes are: SearchResultsAnswer
20+
21+
Variables are only populated by the server, and will be ignored when
22+
sending a request.
23+
24+
All required parameters must be populated in order to send to Azure.
25+
26+
:param _type: Required. Constant filled by server.
27+
:type _type: str
28+
:ivar id: A String identifier.
29+
:vartype id: str
30+
:ivar read_link: The URL that returns this resource.
31+
:vartype read_link: str
32+
:ivar web_search_url: The URL To Bing's search result for this item.
33+
:vartype web_search_url: str
34+
"""
35+
36+
_validation = {
37+
'_type': {'required': True},
38+
'id': {'readonly': True},
39+
'read_link': {'readonly': True},
40+
'web_search_url': {'readonly': True},
41+
}
42+
43+
_attribute_map = {
44+
'_type': {'key': '_type', 'type': 'str'},
45+
'id': {'key': 'id', 'type': 'str'},
46+
'read_link': {'key': 'readLink', 'type': 'str'},
47+
'web_search_url': {'key': 'webSearchUrl', 'type': 'str'},
48+
}
49+
50+
_subtype_map = {
51+
'_type': {'SearchResultsAnswer': 'SearchResultsAnswer'}
52+
}
53+
54+
def __init__(self, **kwargs):
55+
super(Answer, self).__init__(**kwargs)
56+
self._type = 'Answer'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .response import Response
13+
14+
15+
class Answer(Response):
16+
"""Defines an answer.
17+
18+
You probably want to use the sub-classes and not this class directly. Known
19+
sub-classes are: SearchResultsAnswer
20+
21+
Variables are only populated by the server, and will be ignored when
22+
sending a request.
23+
24+
All required parameters must be populated in order to send to Azure.
25+
26+
:param _type: Required. Constant filled by server.
27+
:type _type: str
28+
:ivar id: A String identifier.
29+
:vartype id: str
30+
:ivar read_link: The URL that returns this resource.
31+
:vartype read_link: str
32+
:ivar web_search_url: The URL To Bing's search result for this item.
33+
:vartype web_search_url: str
34+
"""
35+
36+
_validation = {
37+
'_type': {'required': True},
38+
'id': {'readonly': True},
39+
'read_link': {'readonly': True},
40+
'web_search_url': {'readonly': True},
41+
}
42+
43+
_attribute_map = {
44+
'_type': {'key': '_type', 'type': 'str'},
45+
'id': {'key': 'id', 'type': 'str'},
46+
'read_link': {'key': 'readLink', 'type': 'str'},
47+
'web_search_url': {'key': 'webSearchUrl', 'type': 'str'},
48+
}
49+
50+
_subtype_map = {
51+
'_type': {'SearchResultsAnswer': 'SearchResultsAnswer'}
52+
}
53+
54+
def __init__(self, **kwargs) -> None:
55+
super(Answer, self).__init__(**kwargs)
56+
self._type = 'Answer'

0 commit comments

Comments
 (0)