Skip to content

Commit

Permalink
[AutoPR network/resource-manager] Revert "Swagger changes for App Gw …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
AutorestCI authored Dec 14, 2018
1 parent 43c6b15 commit 8a7eb7d
Show file tree
Hide file tree
Showing 879 changed files with 29,571 additions and 8,586 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/azure-mgmt-datalake-store/ @ro-joowan
/azure-mgmt-datamigration/ @vchske
/azure-mgmt-eventgrid/ @kalyanaj
/azure-mgmt-hdinsight/ @wawon-msft
/azure-mgmt-hdinsight/ @idear1203
/azure-mgmt-keyvault/ @schaabs
/azure-mgmt-machinelearningcompute/ @shutchings
/azure-mgmt-recoveryservices/ @DheerendraRathor
Expand Down
9 changes: 9 additions & 0 deletions azure-cognitiveservices-search-customimagesearch/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.1.0 (2018-12-11)
++++++++++++++++++

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

43 changes: 43 additions & 0 deletions azure-cognitiveservices-search-customimagesearch/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Cognitive Services Custom Image Search Client Library.

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

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
Usage
=====

For code examples, see `Cognitive Services Custom Image Search
<https://docs.microsoft.com/python/api/overview/azure/cognitive-services>`__
on docs.microsoft.com.


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.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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 .custom_image_search_api import CustomImageSearchAPI
from .version import VERSION

__all__ = ['CustomImageSearchAPI']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 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 msrest.service_client import SDKClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from .operations.custom_instance_operations import CustomInstanceOperations
from . import models


class CustomImageSearchAPIConfiguration(Configuration):
"""Configuration for CustomImageSearchAPI
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
:param str base_url: Service URL
"""

def __init__(
self, credentials, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if not base_url:
base_url = 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0'

super(CustomImageSearchAPIConfiguration, self).__init__(base_url)

self.add_user_agent('azure-cognitiveservices-search-customimagesearch/{}'.format(VERSION))

self.credentials = credentials


class CustomImageSearchAPI(SDKClient):
"""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.
:ivar config: Configuration for client.
:vartype config: CustomImageSearchAPIConfiguration
:ivar custom_instance: CustomInstance operations
:vartype custom_instance: azure.cognitiveservices.search.customimagesearch.operations.CustomInstanceOperations
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
:param str base_url: Service URL
"""

def __init__(
self, credentials, base_url=None):

self.config = CustomImageSearchAPIConfiguration(credentials, base_url)
super(CustomImageSearchAPI, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '1.0'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.custom_instance = CustomInstanceOperations(
self._client, self.config, self._serialize, self._deserialize)
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.
# --------------------------------------------------------------------------

try:
from .image_object_py3 import ImageObject
from .images_py3 import Images
from .search_results_answer_py3 import SearchResultsAnswer
from .query_py3 import Query
from .answer_py3 import Answer
from .media_object_py3 import MediaObject
from .response_py3 import Response
from .thing_py3 import Thing
from .creative_work_py3 import CreativeWork
from .identifiable_py3 import Identifiable
from .error_py3 import Error
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .web_page_py3 import WebPage
from .response_base_py3 import ResponseBase
except (SyntaxError, ImportError):
from .image_object import ImageObject
from .images import Images
from .search_results_answer import SearchResultsAnswer
from .query import Query
from .answer import Answer
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 .web_page import WebPage
from .response_base import ResponseBase
from .custom_image_search_api_enums import (
ErrorCode,
ErrorSubCode,
ImageAspect,
ImageColor,
Freshness,
ImageContent,
ImageType,
ImageLicense,
SafeSearch,
ImageSize,
)

__all__ = [
'ImageObject',
'Images',
'SearchResultsAnswer',
'Query',
'Answer',
'MediaObject',
'Response',
'Thing',
'CreativeWork',
'Identifiable',
'Error',
'ErrorResponse', 'ErrorResponseException',
'WebPage',
'ResponseBase',
'ErrorCode',
'ErrorSubCode',
'ImageAspect',
'ImageColor',
'Freshness',
'ImageContent',
'ImageType',
'ImageLicense',
'SafeSearch',
'ImageSize',
]
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):
"""Defines an 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.
All required parameters must be populated in order to send to Azure.
:param _type: Required. Constant filled by server.
:type _type: str
:ivar id: A String identifier.
:vartype id: str
:ivar read_link: The URL that returns this resource.
:vartype read_link: str
:ivar web_search_url: The URL To Bing's search result for this item.
:vartype web_search_url: str
"""

_validation = {
'_type': {'required': True},
'id': {'readonly': True},
'read_link': {'readonly': True},
'web_search_url': {'readonly': True},
}

_attribute_map = {
'_type': {'key': '_type', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'read_link': {'key': 'readLink', 'type': 'str'},
'web_search_url': {'key': 'webSearchUrl', 'type': 'str'},
}

_subtype_map = {
'_type': {'SearchResultsAnswer': 'SearchResultsAnswer'}
}

def __init__(self, **kwargs):
super(Answer, self).__init__(**kwargs)
self._type = 'Answer'
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):
"""Defines an 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.
All required parameters must be populated in order to send to Azure.
:param _type: Required. Constant filled by server.
:type _type: str
:ivar id: A String identifier.
:vartype id: str
:ivar read_link: The URL that returns this resource.
:vartype read_link: str
:ivar web_search_url: The URL To Bing's search result for this item.
:vartype web_search_url: str
"""

_validation = {
'_type': {'required': True},
'id': {'readonly': True},
'read_link': {'readonly': True},
'web_search_url': {'readonly': True},
}

_attribute_map = {
'_type': {'key': '_type', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'read_link': {'key': 'readLink', 'type': 'str'},
'web_search_url': {'key': 'webSearchUrl', 'type': 'str'},
}

_subtype_map = {
'_type': {'SearchResultsAnswer': 'SearchResultsAnswer'}
}

def __init__(self, **kwargs) -> None:
super(Answer, self).__init__(**kwargs)
self._type = 'Answer'
Loading

0 comments on commit 8a7eb7d

Please sign in to comment.