Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-mgmt-web/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
15 changes: 15 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from .hybrid_connection_py3 import HybridConnection
from .deleted_site_py3 import DeletedSite
from .proxy_only_resource_py3 import ProxyOnlyResource
from .managed_service_identity_user_assigned_identities_value_py3 import ManagedServiceIdentityUserAssignedIdentitiesValue
from .managed_service_identity_py3 import ManagedServiceIdentity
from .geo_distribution_py3 import GeoDistribution
from .slot_swap_status_py3 import SlotSwapStatus
Expand Down Expand Up @@ -224,9 +225,13 @@
from .address_response_py3 import AddressResponse
from .app_service_environment_resource_py3 import AppServiceEnvironmentResource
from .app_service_environment_patch_resource_py3 import AppServiceEnvironmentPatchResource
from .endpoint_detail_py3 import EndpointDetail
from .endpoint_dependency_py3 import EndpointDependency
from .hosting_environment_diagnostics_py3 import HostingEnvironmentDiagnostics
from .inbound_environment_endpoint_py3 import InboundEnvironmentEndpoint
from .metric_availabilily_py3 import MetricAvailabilily
from .metric_definition_py3 import MetricDefinition
from .outbound_environment_endpoint_py3 import OutboundEnvironmentEndpoint
from .sku_info_py3 import SkuInfo
from .usage_py3 import Usage
from .worker_pool_resource_py3 import WorkerPoolResource
Expand Down Expand Up @@ -259,6 +264,7 @@
from .hybrid_connection import HybridConnection
from .deleted_site import DeletedSite
from .proxy_only_resource import ProxyOnlyResource
from .managed_service_identity_user_assigned_identities_value import ManagedServiceIdentityUserAssignedIdentitiesValue
from .managed_service_identity import ManagedServiceIdentity
from .geo_distribution import GeoDistribution
from .slot_swap_status import SlotSwapStatus
Expand Down Expand Up @@ -448,9 +454,13 @@
from .address_response import AddressResponse
from .app_service_environment_resource import AppServiceEnvironmentResource
from .app_service_environment_patch_resource import AppServiceEnvironmentPatchResource
from .endpoint_detail import EndpointDetail
from .endpoint_dependency import EndpointDependency
from .hosting_environment_diagnostics import HostingEnvironmentDiagnostics
from .inbound_environment_endpoint import InboundEnvironmentEndpoint
from .metric_availabilily import MetricAvailabilily
from .metric_definition import MetricDefinition
from .outbound_environment_endpoint import OutboundEnvironmentEndpoint
from .sku_info import SkuInfo
from .usage import Usage
from .worker_pool_resource import WorkerPoolResource
Expand Down Expand Up @@ -603,6 +613,7 @@
'HybridConnection',
'DeletedSite',
'ProxyOnlyResource',
'ManagedServiceIdentityUserAssignedIdentitiesValue',
'ManagedServiceIdentity',
'GeoDistribution',
'SlotSwapStatus',
Expand Down Expand Up @@ -792,9 +803,13 @@
'AddressResponse',
'AppServiceEnvironmentResource',
'AppServiceEnvironmentPatchResource',
'EndpointDetail',
'EndpointDependency',
'HostingEnvironmentDiagnostics',
'InboundEnvironmentEndpoint',
'MetricAvailabilily',
'MetricDefinition',
'OutboundEnvironmentEndpoint',
'SkuInfo',
'Usage',
'WorkerPoolResource',
Expand Down
34 changes: 34 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 EndpointDependency(Model):
"""A domain name that a service is reached at, including details of the
current connection status.

:param domain_name: The domain name of the dependency.
:type domain_name: str
:param endpoint_details: The IP Addresses and Ports used when connecting
to DomainName.
:type endpoint_details: list[~azure.mgmt.web.models.EndpointDetail]
"""

_attribute_map = {
'domain_name': {'key': 'domainName', 'type': 'str'},
'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'},
}

def __init__(self, **kwargs):
super(EndpointDependency, self).__init__(**kwargs)
self.domain_name = kwargs.get('domain_name', None)
self.endpoint_details = kwargs.get('endpoint_details', None)
34 changes: 34 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 EndpointDependency(Model):
"""A domain name that a service is reached at, including details of the
current connection status.

:param domain_name: The domain name of the dependency.
:type domain_name: str
:param endpoint_details: The IP Addresses and Ports used when connecting
to DomainName.
:type endpoint_details: list[~azure.mgmt.web.models.EndpointDetail]
"""

_attribute_map = {
'domain_name': {'key': 'domainName', 'type': 'str'},
'endpoint_details': {'key': 'endpointDetails', 'type': '[EndpointDetail]'},
}

def __init__(self, *, domain_name: str=None, endpoint_details=None, **kwargs) -> None:
super(EndpointDependency, self).__init__(**kwargs)
self.domain_name = domain_name
self.endpoint_details = endpoint_details
44 changes: 44 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/endpoint_detail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 EndpointDetail(Model):
"""Current TCP connectivity information from the App Service Environment to a
single endpoint.

:param ip_address: An IP Address that Domain Name currently resolves to.
:type ip_address: str
:param port: The port an endpoint is connected to.
:type port: int
:param latency: The time in milliseconds it takes for a TCP connection to
be created from the App Service Environment to this IpAddress at this
Port.
:type latency: float
:param is_accessable: Whether it is possible to create a TCP connection
from the App Service Environment to this IpAddress at this Port.
:type is_accessable: bool
"""

_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'latency': {'key': 'latency', 'type': 'float'},
'is_accessable': {'key': 'isAccessable', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(EndpointDetail, self).__init__(**kwargs)
self.ip_address = kwargs.get('ip_address', None)
self.port = kwargs.get('port', None)
self.latency = kwargs.get('latency', None)
self.is_accessable = kwargs.get('is_accessable', None)
44 changes: 44 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/endpoint_detail_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 EndpointDetail(Model):
"""Current TCP connectivity information from the App Service Environment to a
single endpoint.

:param ip_address: An IP Address that Domain Name currently resolves to.
:type ip_address: str
:param port: The port an endpoint is connected to.
:type port: int
:param latency: The time in milliseconds it takes for a TCP connection to
be created from the App Service Environment to this IpAddress at this
Port.
:type latency: float
:param is_accessable: Whether it is possible to create a TCP connection
from the App Service Environment to this IpAddress at this Port.
:type is_accessable: bool
"""

_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'latency': {'key': 'latency', 'type': 'float'},
'is_accessable': {'key': 'isAccessable', 'type': 'bool'},
}

def __init__(self, *, ip_address: str=None, port: int=None, latency: float=None, is_accessable: bool=None, **kwargs) -> None:
super(EndpointDetail, self).__init__(**kwargs)
self.ip_address = ip_address
self.port = port
self.latency = latency
self.is_accessable = is_accessable
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 InboundEnvironmentEndpoint(Model):
"""The IP Addresses and Ports that require inbound network access to and
within the subnet of the App Service Environment.

:param description: Short text describing the purpose of the network
traffic.
:type description: str
:param endpoints: The IP addresses that network traffic will originate
from in cidr notation.
:type endpoints: list[str]
:param ports: The ports that network traffic will arrive to the App
Service Environment at.
:type ports: list[str]
"""

_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'endpoints': {'key': 'endpoints', 'type': '[str]'},
'ports': {'key': 'ports', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(InboundEnvironmentEndpoint, self).__init__(**kwargs)
self.description = kwargs.get('description', None)
self.endpoints = kwargs.get('endpoints', None)
self.ports = kwargs.get('ports', 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 InboundEnvironmentEndpoint(Model):
"""The IP Addresses and Ports that require inbound network access to and
within the subnet of the App Service Environment.

:param description: Short text describing the purpose of the network
traffic.
:type description: str
:param endpoints: The IP addresses that network traffic will originate
from in cidr notation.
:type endpoints: list[str]
:param ports: The ports that network traffic will arrive to the App
Service Environment at.
:type ports: list[str]
"""

_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'endpoints': {'key': 'endpoints', 'type': '[str]'},
'ports': {'key': 'ports', 'type': '[str]'},
}

def __init__(self, *, description: str=None, endpoints=None, ports=None, **kwargs) -> None:
super(InboundEnvironmentEndpoint, self).__init__(**kwargs)
self.description = description
self.endpoints = endpoints
self.ports = ports
12 changes: 8 additions & 4 deletions azure-mgmt-web/azure/mgmt/web/models/managed_service_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ class ManagedServiceIdentity(Model):
:vartype tenant_id: str
:ivar principal_id: Principal Id of managed service identity.
:vartype principal_id: str
:param identity_ids: Array of UserAssigned managed service identities.
:type identity_ids: list[str]
:param user_assigned_identities: The list of user assigned identities
associated with the resource. The user identity dictionary key references
will be ARM resource ids in the form:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
:type user_assigned_identities: dict[str,
~azure.mgmt.web.models.ManagedServiceIdentityUserAssignedIdentitiesValue]
"""

_validation = {
Expand All @@ -38,12 +42,12 @@ class ManagedServiceIdentity(Model):
'type': {'key': 'type', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'identity_ids': {'key': 'identityIds', 'type': '[str]'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'},
}

def __init__(self, **kwargs):
super(ManagedServiceIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.tenant_id = None
self.principal_id = None
self.identity_ids = kwargs.get('identity_ids', None)
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ class ManagedServiceIdentity(Model):
:vartype tenant_id: str
:ivar principal_id: Principal Id of managed service identity.
:vartype principal_id: str
:param identity_ids: Array of UserAssigned managed service identities.
:type identity_ids: list[str]
:param user_assigned_identities: The list of user assigned identities
associated with the resource. The user identity dictionary key references
will be ARM resource ids in the form:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}
:type user_assigned_identities: dict[str,
~azure.mgmt.web.models.ManagedServiceIdentityUserAssignedIdentitiesValue]
"""

_validation = {
Expand All @@ -38,12 +42,12 @@ class ManagedServiceIdentity(Model):
'type': {'key': 'type', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'identity_ids': {'key': 'identityIds', 'type': '[str]'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'},
}

def __init__(self, *, type=None, identity_ids=None, **kwargs) -> None:
def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None:
super(ManagedServiceIdentity, self).__init__(**kwargs)
self.type = type
self.tenant_id = None
self.principal_id = None
self.identity_ids = identity_ids
self.user_assigned_identities = user_assigned_identities
Loading