-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR apimanagement/resource-manager] add openid connect in authent…
…ication settings (#3612) * Generated from 0d3fa76ca7abc30f7d80506e5183c45c66aef6d3 add openid connect in authentication settings * Packaging update of azure-mgmt-apimanagement
- Loading branch information
1 parent
7d53537
commit d6eebe3
Showing
14 changed files
with
259 additions
and
1 deletion.
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 @@ | ||
include *.rst |
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,49 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure MyService Management Client Library. | ||
|
||
Azure Resource Manager (ARM) is the next generation of management APIs that | ||
replace the old Azure Service Management (ASM). | ||
|
||
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. | ||
|
||
For the older Azure Service Management (ASM) libraries, see | ||
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library. | ||
|
||
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 `MyService Management | ||
<https://docs.microsoft.com/python/api/overview/azure/>`__ | ||
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. |
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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
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
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
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
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
33 changes: 33 additions & 0 deletions
33
...apimanagement/azure/mgmt/apimanagement/models/open_id_authentication_settings_contract.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,33 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class OpenIdAuthenticationSettingsContract(Model): | ||
"""API OAuth2 Authentication settings details. | ||
:param openid_provider_id: OAuth authorization server identifier. | ||
:type openid_provider_id: str | ||
:param bearer_token_sending_methods: How to send token to the server. | ||
:type bearer_token_sending_methods: list[str or | ||
~azure.mgmt.apimanagement.models.BearerTokenSendingMethods] | ||
""" | ||
|
||
_attribute_map = { | ||
'openid_provider_id': {'key': 'openidProviderId', 'type': 'str'}, | ||
'bearer_token_sending_methods': {'key': 'bearerTokenSendingMethods', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OpenIdAuthenticationSettingsContract, self).__init__(**kwargs) | ||
self.openid_provider_id = kwargs.get('openid_provider_id', None) | ||
self.bearer_token_sending_methods = kwargs.get('bearer_token_sending_methods', None) |
33 changes: 33 additions & 0 deletions
33
...anagement/azure/mgmt/apimanagement/models/open_id_authentication_settings_contract_py3.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,33 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class OpenIdAuthenticationSettingsContract(Model): | ||
"""API OAuth2 Authentication settings details. | ||
:param openid_provider_id: OAuth authorization server identifier. | ||
:type openid_provider_id: str | ||
:param bearer_token_sending_methods: How to send token to the server. | ||
:type bearer_token_sending_methods: list[str or | ||
~azure.mgmt.apimanagement.models.BearerTokenSendingMethods] | ||
""" | ||
|
||
_attribute_map = { | ||
'openid_provider_id': {'key': 'openidProviderId', 'type': 'str'}, | ||
'bearer_token_sending_methods': {'key': 'bearerTokenSendingMethods', 'type': '[str]'}, | ||
} | ||
|
||
def __init__(self, *, openid_provider_id: str=None, bearer_token_sending_methods=None, **kwargs) -> None: | ||
super(OpenIdAuthenticationSettingsContract, self).__init__(**kwargs) | ||
self.openid_provider_id = openid_provider_id | ||
self.bearer_token_sending_methods = bearer_token_sending_methods |
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,7 @@ | ||
[packaging] | ||
package_name = "azure-mgmt-apimanagement" | ||
package_nspkg = "azure-mgmt-nspkg" | ||
package_pprint_name = "MyService Management" | ||
package_doc_id = "" | ||
is_stable = false | ||
is_arm = true |
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 @@ | ||
[bdist_wheel] | ||
universal=1 |
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,87 @@ | ||
#!/usr/bin/env python | ||
|
||
#------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
#-------------------------------------------------------------------------- | ||
|
||
import re | ||
import os.path | ||
from io import open | ||
from setuptools import find_packages, setup | ||
|
||
# Change the PACKAGE_NAME only to change folder and different name | ||
PACKAGE_NAME = "azure-mgmt-apimanagement" | ||
PACKAGE_PPRINT_NAME = "MyService Management" | ||
|
||
# a-b-c => a/b/c | ||
package_folder_path = PACKAGE_NAME.replace('-', '/') | ||
# a-b-c => a.b.c | ||
namespace_name = PACKAGE_NAME.replace('-', '.') | ||
|
||
# azure v0.x is not compatible with this package | ||
# azure v0.x used to have a __version__ attribute (newer versions don't) | ||
try: | ||
import azure | ||
try: | ||
ver = azure.__version__ | ||
raise Exception( | ||
'This package is incompatible with azure=={}. '.format(ver) + | ||
'Uninstall it with "pip uninstall azure".' | ||
) | ||
except AttributeError: | ||
pass | ||
except ImportError: | ||
pass | ||
|
||
# Version extraction inspired from 'requests' | ||
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: | ||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
fd.read(), re.MULTILINE).group(1) | ||
|
||
if not version: | ||
raise RuntimeError('Cannot find version information') | ||
|
||
with open('README.rst', encoding='utf-8') as f: | ||
readme = f.read() | ||
with open('HISTORY.rst', encoding='utf-8') as f: | ||
history = f.read() | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
version=version, | ||
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), | ||
long_description=readme + '\n\n' + history, | ||
license='MIT License', | ||
author='Microsoft Corporation', | ||
author_email='azpysdkhelp@microsoft.com', | ||
url='https://github.com/Azure/azure-sdk-for-python', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
zip_safe=False, | ||
packages=find_packages(exclude=[ | ||
'tests', | ||
# Exclude packages that will be covered by PEP420 or nspkg | ||
'azure', | ||
'azure.mgmt', | ||
]), | ||
install_requires=[ | ||
'msrest>=0.5.0', | ||
'msrestazure>=0.4.32,<2.0.0', | ||
'azure-common~=1.1', | ||
], | ||
extras_require={ | ||
":python_version<'3.0'": ['azure-mgmt-nspkg'], | ||
} | ||
) |