Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] apimanagement/resource-manager #2135

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions azure-mgmt-apimanagement/HISTORY.rst
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
2 changes: 2 additions & 0 deletions azure-mgmt-apimanagement/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.rst
include azure_bdist_wheel.py
49 changes: 49 additions & 0 deletions azure-mgmt-apimanagement/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure ApiManagement 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 and 3.6.

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 `ApiManagement
<https://docs.microsoft.com/python/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.
1 change: 1 addition & 0 deletions azure-mgmt-apimanagement/azure/__init__.py
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 azure-mgmt-apimanagement/azure/mgmt/__init__.py
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 azure-mgmt-apimanagement/azure/mgmt/apimanagement/__init__.py
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 .api_management_client import ApiManagementClient
from .version import VERSION

__all__ = ['ApiManagementClient']

__version__ = VERSION

Large diffs are not rendered by default.

590 changes: 590 additions & 0 deletions azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/__init__.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 AccessInformationContract(Model):
"""Tenant access information contract of the API Management service.

:param id: Identifier.
:type id: str
:param primary_key: Primary access key.
:type primary_key: str
:param secondary_key: Secondary access key.
:type secondary_key: str
:param enabled: Tenant access information of the API Management service.
:type enabled: bool
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
'secondary_key': {'key': 'secondaryKey', 'type': 'str'},
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(AccessInformationContract, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.primary_key = kwargs.get('primary_key', None)
self.secondary_key = kwargs.get('secondary_key', None)
self.enabled = kwargs.get('enabled', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 AccessInformationContract(Model):
"""Tenant access information contract of the API Management service.

:param id: Identifier.
:type id: str
:param primary_key: Primary access key.
:type primary_key: str
:param secondary_key: Secondary access key.
:type secondary_key: str
:param enabled: Tenant access information of the API Management service.
:type enabled: bool
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
'secondary_key': {'key': 'secondaryKey', 'type': 'str'},
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, *, id: str=None, primary_key: str=None, secondary_key: str=None, enabled: bool=None, **kwargs) -> None:
super(AccessInformationContract, self).__init__(**kwargs)
self.id = id
self.primary_key = primary_key
self.secondary_key = secondary_key
self.enabled = enabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 AccessInformationUpdateParameters(Model):
"""Tenant access information update parameters of the API Management service.

:param enabled: Tenant access information of the API Management service.
:type enabled: bool
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(AccessInformationUpdateParameters, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 AccessInformationUpdateParameters(Model):
"""Tenant access information update parameters of the API Management service.

:param enabled: Tenant access information of the API Management service.
:type enabled: bool
"""

_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
}

def __init__(self, *, enabled: bool=None, **kwargs) -> None:
super(AccessInformationUpdateParameters, self).__init__(**kwargs)
self.enabled = enabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 AdditionalLocation(Model):
"""Description of an additional API Management resource location.

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 location: Required. The location name of the additional region
among Azure Data center regions.
:type location: str
:param sku: Required. SKU properties of the API Management service.
:type sku:
~azure.mgmt.apimanagement.models.ApiManagementServiceSkuProperties
:ivar public_ip_addresses: Public Static Load Balanced IP addresses of the
API Management service in the additional location. Available only for
Basic, Standard and Premium SKU.
:vartype public_ip_addresses: list[str]
:ivar private_ip_addresses: Private Static Load Balanced IP addresses of
the API Management service which is deployed in an Internal Virtual
Network in a particular additional location. Available only for Basic,
Standard and Premium SKU.
:vartype private_ip_addresses: list[str]
:param virtual_network_configuration: Virtual network configuration for
the location.
:type virtual_network_configuration:
~azure.mgmt.apimanagement.models.VirtualNetworkConfiguration
:ivar gateway_regional_url: Gateway URL of the API Management service in
the Region.
:vartype gateway_regional_url: str
"""

_validation = {
'location': {'required': True},
'sku': {'required': True},
'public_ip_addresses': {'readonly': True},
'private_ip_addresses': {'readonly': True},
'gateway_regional_url': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'},
'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'},
'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'},
'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'},
'gateway_regional_url': {'key': 'gatewayRegionalUrl', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AdditionalLocation, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.sku = kwargs.get('sku', None)
self.public_ip_addresses = None
self.private_ip_addresses = None
self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None)
self.gateway_regional_url = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 AdditionalLocation(Model):
"""Description of an additional API Management resource location.

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 location: Required. The location name of the additional region
among Azure Data center regions.
:type location: str
:param sku: Required. SKU properties of the API Management service.
:type sku:
~azure.mgmt.apimanagement.models.ApiManagementServiceSkuProperties
:ivar public_ip_addresses: Public Static Load Balanced IP addresses of the
API Management service in the additional location. Available only for
Basic, Standard and Premium SKU.
:vartype public_ip_addresses: list[str]
:ivar private_ip_addresses: Private Static Load Balanced IP addresses of
the API Management service which is deployed in an Internal Virtual
Network in a particular additional location. Available only for Basic,
Standard and Premium SKU.
:vartype private_ip_addresses: list[str]
:param virtual_network_configuration: Virtual network configuration for
the location.
:type virtual_network_configuration:
~azure.mgmt.apimanagement.models.VirtualNetworkConfiguration
:ivar gateway_regional_url: Gateway URL of the API Management service in
the Region.
:vartype gateway_regional_url: str
"""

_validation = {
'location': {'required': True},
'sku': {'required': True},
'public_ip_addresses': {'readonly': True},
'private_ip_addresses': {'readonly': True},
'gateway_regional_url': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'},
'public_ip_addresses': {'key': 'publicIPAddresses', 'type': '[str]'},
'private_ip_addresses': {'key': 'privateIPAddresses', 'type': '[str]'},
'virtual_network_configuration': {'key': 'virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'},
'gateway_regional_url': {'key': 'gatewayRegionalUrl', 'type': 'str'},
}

def __init__(self, *, location: str, sku, virtual_network_configuration=None, **kwargs) -> None:
super(AdditionalLocation, self).__init__(**kwargs)
self.location = location
self.sku = sku
self.public_ip_addresses = None
self.private_ip_addresses = None
self.virtual_network_configuration = virtual_network_configuration
self.gateway_regional_url = None
Loading