Skip to content
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
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions sdk/network/azure-mgmt-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"commit": "b5f54222a4a925eb0239cd6653ab8b27185195f4",
"commit": "451a462915cbde2ad9ea87dd092c776ed98ab8ff",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/network/resource-manager/readme.md",
"package-2023-02": "2023-06-19 07:26:19 +0530 0b4a0a3f4bfc198df608f373784505e42e248c2c Microsoft.Network/stable/2023-02-01/networkVirtualAppliance.json",
"package-2021-02": "2021-09-14 19:30:27 -0700 54f1c87938269d4706629dc04c26ee1f3634585a Microsoft.Network/stable/2021-02-01/privateLinkService.json",
Expand All @@ -30,5 +30,6 @@
"package-2018-11": "2020-05-09 06:55:46 +0200 42d96397744ec1e6e837a06879d6e43a13f8bc33 Microsoft.Network/stable/2018-11-01/publicIpPrefix.json",
"package-2018-04": "2019-06-13 02:23:37 +0300 e19543a6a361096e5ca11a42424a39025fd008fa Microsoft.Network/stable/2018-04-01/applicationGateway.json",
"package-2017-10": "2019-06-13 02:23:37 +0300 e19543a6a361096e5ca11a42424a39025fd008fa Microsoft.Network/stable/2017-10-01/applicationGateway.json",
"package-2015-06split": "2019-06-13 02:17:06 +0300 f0f79bfa8191ac30cfb0f87665411769bd2063a6 Microsoft.Network/stable/2015-06-15/virtualNetworkGateway.json"
"package-2015-06split": "2019-06-13 02:17:06 +0300 f0f79bfa8191ac30cfb0f87665411769bd2063a6 Microsoft.Network/stable/2015-06-15/virtualNetworkGateway.json",
"package-2023-04": "2023-07-28 12:53:34 -0400 2a4fc9da93229e16716dc34ec5275ed94a918ac4 Microsoft.Network/stable/2023-04-01/applicationGateway.json"
}
266 changes: 133 additions & 133 deletions sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "25.0.0"
VERSION = "1.0.0b1"
266 changes: 133 additions & 133 deletions sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_client.py

Large diffs are not rendered by default.

2,097 changes: 1,094 additions & 1,003 deletions sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_operations.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@
VpnServerConfigurationPolicyGroup,
VpnServerConfigurationPolicyGroupMember,
WebApplicationFirewallScrubbingRules,
MigrateLoadBalancerToIpBasedRequest,
MigratedPools,
)

from ._enums import (
Expand Down Expand Up @@ -997,6 +999,7 @@
VpnPolicyMemberAttributeType,
WebApplicationFirewallScrubbingState,
WebApplicationFirewallState,
SyncMode,
)

from ._patch import __all__ as _patch_all
Expand Down Expand Up @@ -1754,6 +1757,8 @@
"VpnServerConfigurationPolicyGroup",
"VpnServerConfigurationPolicyGroupMember",
"WebApplicationFirewallScrubbingRules",
"MigrateLoadBalancerToIpBasedRequest",
"MigratedPools",
"ApplicationGatewayCookieBasedAffinity",
"ApplicationGatewayOperationalState",
"ApplicationGatewayProtocol",
Expand Down Expand Up @@ -1992,6 +1997,7 @@
"VpnPolicyMemberAttributeType",
"WebApplicationFirewallScrubbingState",
"WebApplicationFirewallState",
"SyncMode",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class ApplicationGatewaySkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
WAF_LARGE = "WAF_Large"
STANDARD_V2 = "Standard_v2"
WAF_V2 = "WAF_v2"
BASIC = "Basic"

class ApplicationGatewayTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Tier of an application gateway."""
Expand All @@ -58,6 +59,7 @@ class ApplicationGatewayTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
WAF = "WAF"
STANDARD_V2 = "Standard_v2"
WAF_V2 = "WAF_v2"
BASIC = "Basic"

class AuthorizationUseStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The authorization use status."""
Expand Down Expand Up @@ -1848,3 +1850,9 @@ class WebApplicationFirewallState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DISABLED = "Disabled"
ENABLED = "Enabled"

class SyncMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Backend address synchronous mode for the backend pool."""

AUTOMATIC = "Automatic"
MANUAL = "Manual"

Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ class ApplicationGatewayProbe(SubResource): # pylint: disable=too-many-instance
:vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState
:ivar port: Custom port which will be used for probing the backend servers. The valid value
ranges from 1 to 65535. In case not set, port from http settings will be used. This property is
valid for Standard_v2 and WAF_v2 only.
valid for Basic, Standard_v2 and WAF_v2 only.
:vartype port: int
"""

Expand Down Expand Up @@ -1463,7 +1463,7 @@ def __init__(
~azure.mgmt.network.models.ApplicationGatewayProbeHealthResponseMatch
:keyword port: Custom port which will be used for probing the backend servers. The valid value
ranges from 1 to 65535. In case not set, port from http settings will be used. This property is
valid for Standard_v2 and WAF_v2 only.
valid for Basic, Standard_v2 and WAF_v2 only.
:paramtype port: int
"""
super().__init__(id=id, **kwargs)
Expand Down Expand Up @@ -1605,10 +1605,11 @@ class ApplicationGatewaySku(_serialization.Model):
"""SKU of an application gateway.

:ivar name: Name of an application gateway SKU. Known values are: "Standard_Small",
"Standard_Medium", "Standard_Large", "WAF_Medium", "WAF_Large", "Standard_v2", and "WAF_v2".
"Standard_Medium", "Standard_Large", "WAF_Medium", "WAF_Large", "Standard_v2", "WAF_v2", and
"Basic".
:vartype name: str or ~azure.mgmt.network.models.ApplicationGatewaySkuName
:ivar tier: Tier of an application gateway. Known values are: "Standard", "WAF", "Standard_v2",
and "WAF_v2".
"WAF_v2", and "Basic".
:vartype tier: str or ~azure.mgmt.network.models.ApplicationGatewayTier
:ivar capacity: Capacity (instance count) of an application gateway.
:vartype capacity: int
Expand All @@ -1630,10 +1631,11 @@ def __init__(
) -> None:
"""
:keyword name: Name of an application gateway SKU. Known values are: "Standard_Small",
"Standard_Medium", "Standard_Large", "WAF_Medium", "WAF_Large", "Standard_v2", and "WAF_v2".
"Standard_Medium", "Standard_Large", "WAF_Medium", "WAF_Large", "Standard_v2", "WAF_v2", and
"Basic".
:paramtype name: str or ~azure.mgmt.network.models.ApplicationGatewaySkuName
:keyword tier: Tier of an application gateway. Known values are: "Standard", "WAF",
"Standard_v2", and "WAF_v2".
"Standard_v2", "WAF_v2", and "Basic".
:paramtype tier: str or ~azure.mgmt.network.models.ApplicationGatewayTier
:keyword capacity: Capacity (instance count) of an application gateway.
:paramtype capacity: int
Expand Down Expand Up @@ -1934,6 +1936,9 @@ class BackendAddressPool(SubResource): # pylint: disable=too-many-instance-attr
:vartype drain_period_in_seconds: int
:ivar virtual_network: A reference to a virtual network.
:vartype virtual_network: ~azure.mgmt.network.models.SubResource
:ivar sync_mode: Backend address synchronous mode for the backend pool. Known values are:
"Automatic" and "Manual".
:vartype sync_mode: str or ~azure.mgmt.network.models.SyncMode
"""

_validation = {
Expand Down Expand Up @@ -1969,6 +1974,7 @@ class BackendAddressPool(SubResource): # pylint: disable=too-many-instance-attr
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"drain_period_in_seconds": {"key": "properties.drainPeriodInSeconds", "type": "int"},
"virtual_network": {"key": "properties.virtualNetwork", "type": "SubResource"},
"sync_mode": {"key": "properties.syncMode", "type": "str"},
}

def __init__(
Expand All @@ -1981,6 +1987,7 @@ def __init__(
load_balancer_backend_addresses: Optional[List["_models.LoadBalancerBackendAddress"]] = None,
drain_period_in_seconds: Optional[int] = None,
virtual_network: Optional["_models.SubResource"] = None,
sync_mode: Optional[Union[str, "_models.SyncMode"]] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -2002,6 +2009,9 @@ def __init__(
:paramtype drain_period_in_seconds: int
:keyword virtual_network: A reference to a virtual network.
:paramtype virtual_network: ~azure.mgmt.network.models.SubResource
:keyword sync_mode: Backend address synchronous mode for the backend pool. Known values are:
"Automatic" and "Manual".
:paramtype sync_mode: str or ~azure.mgmt.network.models.SyncMode
"""
super().__init__(id=id, **kwargs)
self.name = name
Expand All @@ -2018,6 +2028,7 @@ def __init__(
self.provisioning_state = None
self.drain_period_in_seconds = drain_period_in_seconds
self.virtual_network = virtual_network
self.sync_mode = sync_mode

class BgpSettings(_serialization.Model):
"""BGP settings details.
Expand Down Expand Up @@ -41673,3 +41684,41 @@ def __init__(
self.selector = selector
self.state = state

class MigrateLoadBalancerToIpBasedRequest(_serialization.Model):
"""The request for a migrateToIpBased API.

:ivar pools: A list of pool names that should be migrated from Nic based to IP based pool.
:vartype pools: list[str]
"""

_attribute_map = {
"pools": {"key": "pools", "type": "[str]"},
}

def __init__(self, *, pools: Optional[List[str]] = None, **kwargs: Any) -> None:
"""
:keyword pools: A list of pool names that should be migrated from Nic based to IP based pool.
:paramtype pools: list[str]
"""
super().__init__(**kwargs)
self.pools = pools

class MigratedPools(_serialization.Model):
"""The response for a migrateToIpBased API.

:ivar migrated_pools: A list of pools migrated from Nic based to IP based pool.
:vartype migrated_pools: list[str]
"""

_attribute_map = {
"migrated_pools": {"key": "migratedPools", "type": "[str]"},
}

def __init__(self, *, migrated_pools: Optional[List[str]] = None, **kwargs: Any) -> None:
"""
:keyword migrated_pools: A list of pools migrated from Nic based to IP based pool.
:paramtype migrated_pools: list[str]
"""
super().__init__(**kwargs)
self.migrated_pools = migrated_pools

Loading