Skip to content

Commit

Permalink
[AutoPR web/resource-manager] [Hub Generated] Review request for Micr…
Browse files Browse the repository at this point in the history
…osoft.Web to add version 2018-02-01 (#4436)

* Generated from b772c09b4e8132be83594f0a834cf7b363445a3c

Address PR description feedback

* Generated from 61d39f048374e3c8dd07112e7d9e8554e8664ea5

Fix casing

* Packaging update of azure-mgmt-web

* Generated from 66114e58530dd7027b63182defcf1c8f73d1d502

Remove incorrect pagination from examples.
  • Loading branch information
AutorestCI authored Mar 4, 2019
1 parent 21218d4 commit 11726bc
Show file tree
Hide file tree
Showing 10 changed files with 452 additions and 0 deletions.
12 changes: 12 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,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 @@ -450,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 @@ -795,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
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 OutboundEnvironmentEndpoint(Model):
"""Endpoints accessed for a common purpose that the App Service Environment
requires outbound network access to.
:param category: The type of service accessed by the App Service
Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active
Directory.
:type category: str
:param endpoints: The endpoints that the App Service Environment reaches
the service at.
:type endpoints: list[~azure.mgmt.web.models.EndpointDependency]
"""

_attribute_map = {
'category': {'key': 'category', 'type': 'str'},
'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'},
}

def __init__(self, **kwargs):
super(OutboundEnvironmentEndpoint, self).__init__(**kwargs)
self.category = kwargs.get('category', None)
self.endpoints = kwargs.get('endpoints', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 OutboundEnvironmentEndpoint(Model):
"""Endpoints accessed for a common purpose that the App Service Environment
requires outbound network access to.
:param category: The type of service accessed by the App Service
Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active
Directory.
:type category: str
:param endpoints: The endpoints that the App Service Environment reaches
the service at.
:type endpoints: list[~azure.mgmt.web.models.EndpointDependency]
"""

_attribute_map = {
'category': {'key': 'category', 'type': 'str'},
'endpoints': {'key': 'endpoints', 'type': '[EndpointDependency]'},
}

def __init__(self, *, category: str=None, endpoints=None, **kwargs) -> None:
super(OutboundEnvironmentEndpoint, self).__init__(**kwargs)
self.category = category
self.endpoints = endpoints
Loading

0 comments on commit 11726bc

Please sign in to comment.