diff --git a/azure-mgmt-web/MANIFEST.in b/azure-mgmt-web/MANIFEST.in index 6ceb27f7a96e..e4884efef41b 100644 --- a/azure-mgmt-web/MANIFEST.in +++ b/azure-mgmt-web/MANIFEST.in @@ -1,3 +1,4 @@ +recursive-include tests *.py *.yaml include *.rst include azure/__init__.py include azure/mgmt/__init__.py diff --git a/azure-mgmt-web/azure/mgmt/web/models/__init__.py b/azure-mgmt-web/azure/mgmt/web/models/__init__.py index 45200dfe9a17..37e3d74e01ce 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/__init__.py +++ b/azure-mgmt-web/azure/mgmt/web/models/__init__.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -603,6 +613,7 @@ 'HybridConnection', 'DeletedSite', 'ProxyOnlyResource', + 'ManagedServiceIdentityUserAssignedIdentitiesValue', 'ManagedServiceIdentity', 'GeoDistribution', 'SlotSwapStatus', @@ -792,9 +803,13 @@ 'AddressResponse', 'AppServiceEnvironmentResource', 'AppServiceEnvironmentPatchResource', + 'EndpointDetail', + 'EndpointDependency', 'HostingEnvironmentDiagnostics', + 'InboundEnvironmentEndpoint', 'MetricAvailabilily', 'MetricDefinition', + 'OutboundEnvironmentEndpoint', 'SkuInfo', 'Usage', 'WorkerPoolResource', diff --git a/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency.py b/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency.py new file mode 100644 index 000000000000..ac099b80c79a --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency.py @@ -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) diff --git a/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency_py3.py b/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency_py3.py new file mode 100644 index 000000000000..22dbd7c0d2ad --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/endpoint_dependency_py3.py @@ -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 diff --git a/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail.py b/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail.py new file mode 100644 index 000000000000..79b5aa92d977 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail.py @@ -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) diff --git a/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail_py3.py b/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail_py3.py new file mode 100644 index 000000000000..357384b93fce --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/endpoint_detail_py3.py @@ -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 diff --git a/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint.py b/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint.py new file mode 100644 index 000000000000..b2da3443dd0c --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint.py @@ -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) diff --git a/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint_py3.py b/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint_py3.py new file mode 100644 index 000000000000..f211577ee178 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/inbound_environment_endpoint_py3.py @@ -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 diff --git a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity.py b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity.py index d9f06eedc9e5..0118c423b258 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity.py +++ b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity.py @@ -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 = { @@ -38,7 +42,7 @@ 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): @@ -46,4 +50,4 @@ def __init__(self, **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) diff --git a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_py3.py b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_py3.py index ae59c0b21029..5d2da67ae7d1 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_py3.py @@ -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 = { @@ -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 diff --git a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value.py b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value.py new file mode 100644 index 000000000000..8c408a4598b3 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value.py @@ -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 ManagedServiceIdentityUserAssignedIdentitiesValue(Model): + """ManagedServiceIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: Principal Id of user assigned identity + :vartype principal_id: str + :ivar client_id: Client Id of user assigned identity + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value_py3.py b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value_py3.py new file mode 100644 index 000000000000..bc71a3561765 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/managed_service_identity_user_assigned_identities_value_py3.py @@ -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 ManagedServiceIdentityUserAssignedIdentitiesValue(Model): + """ManagedServiceIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: Principal Id of user assigned identity + :vartype principal_id: str + :ivar client_id: Client Id of user assigned identity + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint.py b/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint.py new file mode 100644 index 000000000000..fa9c33eb7e94 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint.py @@ -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) diff --git a/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint_py3.py b/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint_py3.py new file mode 100644 index 000000000000..d1f545a451d7 --- /dev/null +++ b/azure-mgmt-web/azure/mgmt/web/models/outbound_environment_endpoint_py3.py @@ -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 diff --git a/azure-mgmt-web/azure/mgmt/web/operations/app_service_environments_operations.py b/azure-mgmt-web/azure/mgmt/web/operations/app_service_environments_operations.py index 5b1752bf432a..adedf7f4355c 100644 --- a/azure-mgmt-web/azure/mgmt/web/operations/app_service_environments_operations.py +++ b/azure-mgmt-web/azure/mgmt/web/operations/app_service_environments_operations.py @@ -890,6 +890,72 @@ def get_diagnostics_item( return deserialized get_diagnostics_item.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}'} + def get_inbound_network_dependencies_endpoints( + self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): + """Get the network endpoints of all inbound dependencies of an App Service + Environment. + + Get the network endpoints of all inbound dependencies of an App Service + Environment. + + :param resource_group_name: Name of the resource group to which the + resource belongs. + :type resource_group_name: str + :param name: Name of the App Service Environment. + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.InboundEnvironmentEndpoint] or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`DefaultErrorResponseException` + """ + # Construct URL + url = self.get_inbound_network_dependencies_endpoints.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'), + 'name': self._serialize.url("name", name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.DefaultErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[InboundEnvironmentEndpoint]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_inbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints'} + def list_metric_definitions( self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): """Get global metric definitions of an App Service Environment. @@ -1893,6 +1959,72 @@ def list_operations( return deserialized list_operations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations'} + def get_outbound_network_dependencies_endpoints( + self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): + """Get the network endpoints of all outbound dependencies of an App + Service Environment. + + Get the network endpoints of all outbound dependencies of an App + Service Environment. + + :param resource_group_name: Name of the resource group to which the + resource belongs. + :type resource_group_name: str + :param name: Name of the App Service Environment. + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.web.models.OutboundEnvironmentEndpoint] or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`DefaultErrorResponseException` + """ + # Construct URL + url = self.get_outbound_network_dependencies_endpoints.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'), + 'name': self._serialize.url("name", name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.DefaultErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[OutboundEnvironmentEndpoint]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_outbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints'} + def reboot( self, resource_group_name, name, custom_headers=None, raw=False, **operation_config): """Reboot all machines in an App Service Environment.