Skip to content

Commit

Permalink
Generated from 9391af3fc5616bad2595badf714fedb5420dcf3d (#2133)
Browse files Browse the repository at this point in the history
ApiMgmt Py conf
  • Loading branch information
AutorestCI authored Mar 8, 2018
1 parent c6aa88c commit a20a8ad
Show file tree
Hide file tree
Showing 371 changed files with 39,731 additions and 0 deletions.
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.

554 changes: 554 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,62 @@
# 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: Static IP addresses of the location's virtual
machines.
:vartype public_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},
'gateway_regional_url': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'},
'public_ip_addresses': {'key': 'publicIPAddresses', '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.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,62 @@
# 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: Static IP addresses of the location's virtual
machines.
:vartype public_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},
'gateway_regional_url': {'readonly': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'ApiManagementServiceSkuProperties'},
'public_ip_addresses': {'key': 'publicIPAddresses', '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.virtual_network_configuration = virtual_network_configuration
self.gateway_regional_url = None
Loading

0 comments on commit a20a8ad

Please sign in to comment.